@marcoappio/marco-config 2.0.337 → 2.0.339
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/index.d.ts +0 -19
- package/dist/clients/index.d.ts.map +1 -1
- package/dist/clients/user.d.ts +0 -19
- package/dist/clients/user.d.ts.map +1 -1
- package/dist/clients/user.js +0 -16
- package/dist/sdk/endpoints/index.d.ts +22 -23
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.d.ts +22 -23
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/index.d.ts +22 -23
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +0 -8
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts +0 -8
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +5 -0
- package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/account.js +1 -0
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts +5 -0
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/draft.js +1 -0
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +22 -15
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts +5 -0
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/thread.js +1 -0
- package/dist/sdk/endpoints/private/sync/push/user.d.ts +7 -15
- package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/user.js +1 -6
- package/dist/sdk/index.d.ts +28 -23
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/validation/errors.d.ts +12 -0
- package/dist/sdk/validation/errors.d.ts.map +1 -1
- package/dist/sdk/validation/errors.js +5 -0
- package/dist/sdk/validation/index.d.ts +6 -0
- package/dist/sdk/validation/index.d.ts.map +1 -1
- package/dist/types/SDKError.d.ts +1 -1
- package/dist/types/SDKError.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/clients/index.d.ts
CHANGED
|
@@ -444,14 +444,6 @@ export declare const marcoClients: {
|
|
|
444
444
|
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
445
445
|
readonly settings: import("valibot").ObjectSchema<{
|
|
446
446
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
447
|
-
readonly notifications: import("valibot").ObjectSchema<{
|
|
448
|
-
readonly pushNotificationTokens: import("valibot").ObjectSchema<Record<"ios" | "osx" | "web", import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
|
|
449
|
-
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
450
|
-
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
451
|
-
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
452
|
-
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
453
|
-
}, undefined>, undefined>>, undefined>;
|
|
454
|
-
}, undefined>;
|
|
455
447
|
}, undefined>;
|
|
456
448
|
}, undefined>;
|
|
457
449
|
mutators: {
|
|
@@ -461,17 +453,6 @@ export declare const marcoClients: {
|
|
|
461
453
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
462
454
|
}, undefined>;
|
|
463
455
|
};
|
|
464
|
-
setSettingsPushNotificationToken: {
|
|
465
|
-
delta: import("valibot").ObjectSchema<{
|
|
466
|
-
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
467
|
-
readonly pushNotificationToken: import("valibot").ObjectSchema<{
|
|
468
|
-
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
469
|
-
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
470
|
-
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
471
|
-
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
472
|
-
}, undefined>;
|
|
473
|
-
}, undefined>;
|
|
474
|
-
};
|
|
475
456
|
};
|
|
476
457
|
name: "user";
|
|
477
458
|
pullUrl: "/v1/pv/sync/pull/user";
|
|
@@ -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
|
@@ -4,14 +4,6 @@ export declare const user: {
|
|
|
4
4
|
readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
|
|
5
5
|
readonly settings: v.ObjectSchema<{
|
|
6
6
|
readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
|
-
readonly notifications: v.ObjectSchema<{
|
|
8
|
-
readonly pushNotificationTokens: v.ObjectSchema<Record<"ios" | "osx" | "web", v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
9
|
-
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
10
|
-
readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
11
|
-
readonly platform: v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>;
|
|
12
|
-
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
13
|
-
}, undefined>, undefined>>, undefined>;
|
|
14
|
-
}, undefined>;
|
|
15
7
|
}, undefined>;
|
|
16
8
|
}, undefined>;
|
|
17
9
|
mutators: {
|
|
@@ -21,17 +13,6 @@ export declare const user: {
|
|
|
21
13
|
readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
22
14
|
}, undefined>;
|
|
23
15
|
};
|
|
24
|
-
setSettingsPushNotificationToken: {
|
|
25
|
-
delta: v.ObjectSchema<{
|
|
26
|
-
readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
|
|
27
|
-
readonly pushNotificationToken: v.ObjectSchema<{
|
|
28
|
-
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
29
|
-
readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
|
-
readonly platform: v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>;
|
|
31
|
-
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
32
|
-
}, undefined>;
|
|
33
|
-
}, undefined>;
|
|
34
|
-
};
|
|
35
16
|
};
|
|
36
17
|
name: "user";
|
|
37
18
|
pullUrl: "/v1/pv/sync/pull/user";
|
|
@@ -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;AAS5B,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;CAiBM,CAAA"}
|
package/dist/clients/user.js
CHANGED
|
@@ -1,17 +1,7 @@
|
|
|
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.object(v.entriesFromList(marcoSchemas.app.platform().options.map(x => x.literal), v.record(marcoSchemas.string.required(), pushNotificationToken)));
|
|
10
3
|
const userSettings = v.object({
|
|
11
4
|
name: marcoSchemas.string.nullable(),
|
|
12
|
-
notifications: v.object({
|
|
13
|
-
pushNotificationTokens,
|
|
14
|
-
}),
|
|
15
5
|
});
|
|
16
6
|
export const user = {
|
|
17
7
|
model: v.object({
|
|
@@ -25,12 +15,6 @@ export const user = {
|
|
|
25
15
|
name: marcoSchemas.string.nullable(),
|
|
26
16
|
}),
|
|
27
17
|
},
|
|
28
|
-
setSettingsPushNotificationToken: {
|
|
29
|
-
delta: v.object({
|
|
30
|
-
id: marcoSchemas.string.shortUUID(),
|
|
31
|
-
pushNotificationToken,
|
|
32
|
-
}),
|
|
33
|
-
},
|
|
34
18
|
},
|
|
35
19
|
name: 'user',
|
|
36
20
|
pullUrl: '/v1/pv/sync/pull/user',
|
|
@@ -325,14 +325,6 @@ export declare const endpoints: {
|
|
|
325
325
|
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
326
326
|
readonly settings: import("valibot").ObjectSchema<{
|
|
327
327
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
328
|
-
readonly notifications: import("valibot").ObjectSchema<{
|
|
329
|
-
readonly pushNotificationTokens: import("valibot").ObjectSchema<Record<"ios" | "osx" | "web", import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
|
|
330
|
-
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
331
|
-
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
332
|
-
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
333
|
-
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
334
|
-
}, undefined>, undefined>>, undefined>;
|
|
335
|
-
}, undefined>;
|
|
336
328
|
}, undefined>;
|
|
337
329
|
}, undefined>;
|
|
338
330
|
}, undefined>], undefined>, undefined>;
|
|
@@ -475,6 +467,11 @@ export declare const endpoints: {
|
|
|
475
467
|
}, undefined>;
|
|
476
468
|
}, undefined>;
|
|
477
469
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
470
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
471
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
472
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
473
|
+
}, undefined>;
|
|
474
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
478
475
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
479
476
|
readonly data: import("valibot").ObjectSchema<{
|
|
480
477
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -676,6 +673,11 @@ export declare const endpoints: {
|
|
|
676
673
|
}, undefined>;
|
|
677
674
|
}, undefined>;
|
|
678
675
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
676
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
677
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
678
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
679
|
+
}, undefined>;
|
|
680
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
679
681
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
680
682
|
readonly data: import("valibot").ObjectSchema<{
|
|
681
683
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -761,12 +763,17 @@ export declare const endpoints: {
|
|
|
761
763
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
762
764
|
}, undefined>;
|
|
763
765
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
766
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
767
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
768
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
769
|
+
}, undefined>;
|
|
770
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
764
771
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
765
772
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
766
773
|
}, undefined>], undefined>>;
|
|
767
774
|
user: EndpointConfig<"/v1/pv/sync/push/user", import("valibot").ObjectSchema<{
|
|
768
775
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
769
|
-
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<
|
|
776
|
+
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<import("valibot").ObjectSchema<{
|
|
770
777
|
readonly args: import("valibot").ObjectSchema<{
|
|
771
778
|
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
772
779
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -774,20 +781,7 @@ export declare const endpoints: {
|
|
|
774
781
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
775
782
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
776
783
|
readonly name: import("valibot").LiteralSchema<"setSettingsName", undefined>;
|
|
777
|
-
}, undefined>
|
|
778
|
-
readonly args: import("valibot").ObjectSchema<{
|
|
779
|
-
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
780
|
-
readonly pushNotificationToken: import("valibot").ObjectSchema<{
|
|
781
|
-
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
782
|
-
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
783
|
-
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
784
|
-
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
785
|
-
}, undefined>;
|
|
786
|
-
}, undefined>;
|
|
787
|
-
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
788
|
-
readonly id: import("valibot").NumberSchema<undefined>;
|
|
789
|
-
readonly name: import("valibot").LiteralSchema<"setSettingsPushNotificationToken", undefined>;
|
|
790
|
-
}, undefined>)[], undefined>, undefined>;
|
|
784
|
+
}, undefined>[], undefined>, undefined>;
|
|
791
785
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
792
786
|
readonly data: import("valibot").ObjectSchema<{
|
|
793
787
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -803,6 +797,11 @@ export declare const endpoints: {
|
|
|
803
797
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
804
798
|
}, undefined>;
|
|
805
799
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
800
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
801
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
802
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
803
|
+
}, undefined>;
|
|
804
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
806
805
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
807
806
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
808
807
|
}, undefined>], 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"}
|
|
@@ -322,14 +322,6 @@ export declare const privateGroup: {
|
|
|
322
322
|
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
323
323
|
readonly settings: import("valibot").ObjectSchema<{
|
|
324
324
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
325
|
-
readonly notifications: import("valibot").ObjectSchema<{
|
|
326
|
-
readonly pushNotificationTokens: import("valibot").ObjectSchema<Record<"ios" | "osx" | "web", import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
|
|
327
|
-
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
328
|
-
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
329
|
-
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
330
|
-
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
331
|
-
}, undefined>, undefined>>, undefined>;
|
|
332
|
-
}, undefined>;
|
|
333
325
|
}, undefined>;
|
|
334
326
|
}, undefined>;
|
|
335
327
|
}, undefined>], undefined>, undefined>;
|
|
@@ -472,6 +464,11 @@ export declare const privateGroup: {
|
|
|
472
464
|
}, undefined>;
|
|
473
465
|
}, undefined>;
|
|
474
466
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
467
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
468
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
469
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
470
|
+
}, undefined>;
|
|
471
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
475
472
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
476
473
|
readonly data: import("valibot").ObjectSchema<{
|
|
477
474
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -673,6 +670,11 @@ export declare const privateGroup: {
|
|
|
673
670
|
}, undefined>;
|
|
674
671
|
}, undefined>;
|
|
675
672
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
673
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
674
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
675
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
676
|
+
}, undefined>;
|
|
677
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
676
678
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
677
679
|
readonly data: import("valibot").ObjectSchema<{
|
|
678
680
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -758,12 +760,17 @@ export declare const privateGroup: {
|
|
|
758
760
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
759
761
|
}, undefined>;
|
|
760
762
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
763
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
764
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
765
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
766
|
+
}, undefined>;
|
|
767
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
761
768
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
762
769
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
763
770
|
}, undefined>], undefined>>;
|
|
764
771
|
user: import("../../..").EndpointConfig<"/v1/pv/sync/push/user", import("valibot").ObjectSchema<{
|
|
765
772
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
766
|
-
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<
|
|
773
|
+
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<import("valibot").ObjectSchema<{
|
|
767
774
|
readonly args: import("valibot").ObjectSchema<{
|
|
768
775
|
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
769
776
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -771,20 +778,7 @@ export declare const privateGroup: {
|
|
|
771
778
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
772
779
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
773
780
|
readonly name: import("valibot").LiteralSchema<"setSettingsName", undefined>;
|
|
774
|
-
}, undefined>
|
|
775
|
-
readonly args: import("valibot").ObjectSchema<{
|
|
776
|
-
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
777
|
-
readonly pushNotificationToken: import("valibot").ObjectSchema<{
|
|
778
|
-
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
779
|
-
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
780
|
-
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
781
|
-
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
782
|
-
}, undefined>;
|
|
783
|
-
}, undefined>;
|
|
784
|
-
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
785
|
-
readonly id: import("valibot").NumberSchema<undefined>;
|
|
786
|
-
readonly name: import("valibot").LiteralSchema<"setSettingsPushNotificationToken", undefined>;
|
|
787
|
-
}, undefined>)[], undefined>, undefined>;
|
|
781
|
+
}, undefined>[], undefined>, undefined>;
|
|
788
782
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
789
783
|
readonly data: import("valibot").ObjectSchema<{
|
|
790
784
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -800,6 +794,11 @@ export declare const privateGroup: {
|
|
|
800
794
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
801
795
|
}, undefined>;
|
|
802
796
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
797
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
798
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
799
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
800
|
+
}, undefined>;
|
|
801
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
803
802
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
804
803
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
805
804
|
}, undefined>], undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIxB,CAAA"}
|
|
@@ -289,14 +289,6 @@ export declare const sync: {
|
|
|
289
289
|
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
290
290
|
readonly settings: import("valibot").ObjectSchema<{
|
|
291
291
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
292
|
-
readonly notifications: import("valibot").ObjectSchema<{
|
|
293
|
-
readonly pushNotificationTokens: import("valibot").ObjectSchema<Record<"ios" | "osx" | "web", import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
|
|
294
|
-
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
295
|
-
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
296
|
-
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
297
|
-
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
298
|
-
}, undefined>, undefined>>, undefined>;
|
|
299
|
-
}, undefined>;
|
|
300
292
|
}, undefined>;
|
|
301
293
|
}, undefined>;
|
|
302
294
|
}, undefined>], undefined>, undefined>;
|
|
@@ -439,6 +431,11 @@ export declare const sync: {
|
|
|
439
431
|
}, undefined>;
|
|
440
432
|
}, undefined>;
|
|
441
433
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
434
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
435
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
436
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
437
|
+
}, undefined>;
|
|
438
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
442
439
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
443
440
|
readonly data: import("valibot").ObjectSchema<{
|
|
444
441
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -640,6 +637,11 @@ export declare const sync: {
|
|
|
640
637
|
}, undefined>;
|
|
641
638
|
}, undefined>;
|
|
642
639
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
640
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
641
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
642
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
643
|
+
}, undefined>;
|
|
644
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
643
645
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
644
646
|
readonly data: import("valibot").ObjectSchema<{
|
|
645
647
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -725,12 +727,17 @@ export declare const sync: {
|
|
|
725
727
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
726
728
|
}, undefined>;
|
|
727
729
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
730
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
731
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
732
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
733
|
+
}, undefined>;
|
|
734
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
728
735
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
729
736
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
730
737
|
}, undefined>], undefined>>;
|
|
731
738
|
user: import("../../../..").EndpointConfig<"/v1/pv/sync/push/user", import("valibot").ObjectSchema<{
|
|
732
739
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
733
|
-
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<
|
|
740
|
+
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<import("valibot").ObjectSchema<{
|
|
734
741
|
readonly args: import("valibot").ObjectSchema<{
|
|
735
742
|
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
736
743
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -738,20 +745,7 @@ export declare const sync: {
|
|
|
738
745
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
739
746
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
740
747
|
readonly name: import("valibot").LiteralSchema<"setSettingsName", undefined>;
|
|
741
|
-
}, undefined>
|
|
742
|
-
readonly args: import("valibot").ObjectSchema<{
|
|
743
|
-
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
744
|
-
readonly pushNotificationToken: import("valibot").ObjectSchema<{
|
|
745
|
-
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
746
|
-
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
747
|
-
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
748
|
-
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
749
|
-
}, undefined>;
|
|
750
|
-
}, undefined>;
|
|
751
|
-
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
752
|
-
readonly id: import("valibot").NumberSchema<undefined>;
|
|
753
|
-
readonly name: import("valibot").LiteralSchema<"setSettingsPushNotificationToken", undefined>;
|
|
754
|
-
}, undefined>)[], undefined>, undefined>;
|
|
748
|
+
}, undefined>[], undefined>, undefined>;
|
|
755
749
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
756
750
|
readonly data: import("valibot").ObjectSchema<{
|
|
757
751
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -767,6 +761,11 @@ export declare const sync: {
|
|
|
767
761
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
768
762
|
}, undefined>;
|
|
769
763
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
764
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
765
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
766
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
767
|
+
}, undefined>;
|
|
768
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
770
769
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
771
770
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
772
771
|
}, undefined>], undefined>>;
|
|
@@ -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"}
|
|
@@ -288,14 +288,6 @@ export declare const pull: {
|
|
|
288
288
|
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
289
289
|
readonly settings: import("valibot").ObjectSchema<{
|
|
290
290
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
291
|
-
readonly notifications: import("valibot").ObjectSchema<{
|
|
292
|
-
readonly pushNotificationTokens: import("valibot").ObjectSchema<Record<"ios" | "osx" | "web", import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
|
|
293
|
-
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
294
|
-
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
295
|
-
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
296
|
-
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
297
|
-
}, undefined>, undefined>>, undefined>;
|
|
298
|
-
}, undefined>;
|
|
299
291
|
}, undefined>;
|
|
300
292
|
}, undefined>;
|
|
301
293
|
}, undefined>], undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI
|
|
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"}
|
|
@@ -33,14 +33,6 @@ export declare const syncPullUser: import("../../../../..").EndpointConfig<"/v1/
|
|
|
33
33
|
readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
|
|
34
34
|
readonly settings: v.ObjectSchema<{
|
|
35
35
|
readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
|
-
readonly notifications: v.ObjectSchema<{
|
|
37
|
-
readonly pushNotificationTokens: v.ObjectSchema<Record<"ios" | "osx" | "web", v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
38
|
-
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
39
|
-
readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
40
|
-
readonly platform: v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>;
|
|
41
|
-
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
42
|
-
}, undefined>, undefined>>, undefined>;
|
|
43
|
-
}, undefined>;
|
|
44
36
|
}, undefined>;
|
|
45
37
|
}, undefined>;
|
|
46
38
|
}, undefined>], undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuBvB,CAAA"}
|
|
@@ -133,6 +133,11 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
|
|
|
133
133
|
}, undefined>;
|
|
134
134
|
}, undefined>;
|
|
135
135
|
readonly status: v.LiteralSchema<400, undefined>;
|
|
136
|
+
}, undefined>, v.ObjectSchema<{
|
|
137
|
+
readonly data: v.ObjectSchema<{
|
|
138
|
+
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
139
|
+
}, undefined>;
|
|
140
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
136
141
|
}, undefined>, v.ObjectSchema<{
|
|
137
142
|
readonly data: v.ObjectSchema<{
|
|
138
143
|
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwE1B,CAAA"}
|
|
@@ -192,6 +192,11 @@ export declare const syncPushDraft: import("../../../../..").EndpointConfig<"/v1
|
|
|
192
192
|
}, undefined>;
|
|
193
193
|
}, undefined>;
|
|
194
194
|
readonly status: v.LiteralSchema<400, undefined>;
|
|
195
|
+
}, undefined>, v.ObjectSchema<{
|
|
196
|
+
readonly data: v.ObjectSchema<{
|
|
197
|
+
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
198
|
+
}, undefined>;
|
|
199
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
195
200
|
}, undefined>, v.ObjectSchema<{
|
|
196
201
|
readonly data: v.ObjectSchema<{
|
|
197
202
|
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -1 +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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAoFxB,CAAA"}
|
|
@@ -133,6 +133,11 @@ export declare const push: {
|
|
|
133
133
|
}, undefined>;
|
|
134
134
|
}, undefined>;
|
|
135
135
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
136
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
137
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
138
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
139
|
+
}, undefined>;
|
|
140
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
136
141
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
137
142
|
readonly data: import("valibot").ObjectSchema<{
|
|
138
143
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -334,6 +339,11 @@ export declare const push: {
|
|
|
334
339
|
}, undefined>;
|
|
335
340
|
}, undefined>;
|
|
336
341
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
342
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
343
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
344
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
345
|
+
}, undefined>;
|
|
346
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
337
347
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
338
348
|
readonly data: import("valibot").ObjectSchema<{
|
|
339
349
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -419,12 +429,17 @@ export declare const push: {
|
|
|
419
429
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
420
430
|
}, undefined>;
|
|
421
431
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
432
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
433
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
434
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
435
|
+
}, undefined>;
|
|
436
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
422
437
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
423
438
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
424
439
|
}, undefined>], undefined>>;
|
|
425
440
|
user: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/user", import("valibot").ObjectSchema<{
|
|
426
441
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
427
|
-
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<
|
|
442
|
+
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<import("valibot").ObjectSchema<{
|
|
428
443
|
readonly args: import("valibot").ObjectSchema<{
|
|
429
444
|
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
430
445
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -432,20 +447,7 @@ export declare const push: {
|
|
|
432
447
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
433
448
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
434
449
|
readonly name: import("valibot").LiteralSchema<"setSettingsName", undefined>;
|
|
435
|
-
}, undefined>
|
|
436
|
-
readonly args: import("valibot").ObjectSchema<{
|
|
437
|
-
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
438
|
-
readonly pushNotificationToken: import("valibot").ObjectSchema<{
|
|
439
|
-
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
440
|
-
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
441
|
-
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
442
|
-
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
443
|
-
}, undefined>;
|
|
444
|
-
}, undefined>;
|
|
445
|
-
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
446
|
-
readonly id: import("valibot").NumberSchema<undefined>;
|
|
447
|
-
readonly name: import("valibot").LiteralSchema<"setSettingsPushNotificationToken", undefined>;
|
|
448
|
-
}, undefined>)[], undefined>, undefined>;
|
|
450
|
+
}, undefined>[], undefined>, undefined>;
|
|
449
451
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
450
452
|
readonly data: import("valibot").ObjectSchema<{
|
|
451
453
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -461,6 +463,11 @@ export declare const push: {
|
|
|
461
463
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
462
464
|
}, undefined>;
|
|
463
465
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
466
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
467
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
468
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
469
|
+
}, undefined>;
|
|
470
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
464
471
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
465
472
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
466
473
|
}, undefined>], undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAA"}
|
|
@@ -76,6 +76,11 @@ export declare const syncPushThread: import("../../../../..").EndpointConfig<"/v
|
|
|
76
76
|
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
77
77
|
}, undefined>;
|
|
78
78
|
readonly status: v.LiteralSchema<401, undefined>;
|
|
79
|
+
}, undefined>, v.ObjectSchema<{
|
|
80
|
+
readonly data: v.ObjectSchema<{
|
|
81
|
+
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
82
|
+
}, undefined>;
|
|
83
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
79
84
|
}, undefined>, v.ObjectSchema<{
|
|
80
85
|
readonly status: v.LiteralSchema<200, undefined>;
|
|
81
86
|
}, undefined>], undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAkEzB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const syncPushUser: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/user", v.ObjectSchema<{
|
|
3
3
|
readonly clientGroupID: v.StringSchema<undefined>;
|
|
4
|
-
readonly mutations: v.ArraySchema<v.UnionSchema<
|
|
4
|
+
readonly mutations: v.ArraySchema<v.UnionSchema<v.ObjectSchema<{
|
|
5
5
|
readonly args: v.ObjectSchema<{
|
|
6
6
|
readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
|
|
7
7
|
readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -9,20 +9,7 @@ export declare const syncPushUser: import("../../../../..").EndpointConfig<"/v1/
|
|
|
9
9
|
readonly clientID: v.StringSchema<undefined>;
|
|
10
10
|
readonly id: v.NumberSchema<undefined>;
|
|
11
11
|
readonly name: v.LiteralSchema<"setSettingsName", undefined>;
|
|
12
|
-
}, undefined>
|
|
13
|
-
readonly args: v.ObjectSchema<{
|
|
14
|
-
readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
|
|
15
|
-
readonly pushNotificationToken: v.ObjectSchema<{
|
|
16
|
-
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
17
|
-
readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
18
|
-
readonly platform: v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"osx", undefined>, v.LiteralSchema<"web", undefined>], undefined>;
|
|
19
|
-
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
20
|
-
}, undefined>;
|
|
21
|
-
}, undefined>;
|
|
22
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
23
|
-
readonly id: v.NumberSchema<undefined>;
|
|
24
|
-
readonly name: v.LiteralSchema<"setSettingsPushNotificationToken", undefined>;
|
|
25
|
-
}, undefined>)[], undefined>, undefined>;
|
|
12
|
+
}, undefined>[], undefined>, undefined>;
|
|
26
13
|
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
27
14
|
readonly data: v.ObjectSchema<{
|
|
28
15
|
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -38,6 +25,11 @@ export declare const syncPushUser: import("../../../../..").EndpointConfig<"/v1/
|
|
|
38
25
|
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
39
26
|
}, undefined>;
|
|
40
27
|
readonly status: v.LiteralSchema<401, undefined>;
|
|
28
|
+
}, undefined>, v.ObjectSchema<{
|
|
29
|
+
readonly data: v.ObjectSchema<{
|
|
30
|
+
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
31
|
+
}, undefined>;
|
|
32
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
41
33
|
}, undefined>, v.ObjectSchema<{
|
|
42
34
|
readonly status: v.LiteralSchema<200, undefined>;
|
|
43
35
|
}, undefined>], undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwBvB,CAAA"}
|
|
@@ -12,12 +12,6 @@ export const syncPushUser = createEndpoint({
|
|
|
12
12
|
id: v.number(),
|
|
13
13
|
name: v.literal('setSettingsName'),
|
|
14
14
|
}),
|
|
15
|
-
setSettingsPushNotificationToken: v.object({
|
|
16
|
-
args: user.mutators.setSettingsPushNotificationToken.delta,
|
|
17
|
-
clientID: v.string(),
|
|
18
|
-
id: v.number(),
|
|
19
|
-
name: v.literal('setSettingsPushNotificationToken'),
|
|
20
|
-
}),
|
|
21
15
|
}))),
|
|
22
16
|
}),
|
|
23
17
|
method: 'POST',
|
|
@@ -25,6 +19,7 @@ export const syncPushUser = createEndpoint({
|
|
|
25
19
|
response: v.union([
|
|
26
20
|
errors.validationFailedErrorSchema,
|
|
27
21
|
errors.authFailedErrorSchema,
|
|
22
|
+
errors.mutationRejectedErrorSchema,
|
|
28
23
|
v.object({ status: v.literal(200) }),
|
|
29
24
|
]),
|
|
30
25
|
});
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -324,14 +324,6 @@ export declare const marcoSDK: {
|
|
|
324
324
|
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
325
325
|
readonly settings: import("valibot").ObjectSchema<{
|
|
326
326
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
327
|
-
readonly notifications: import("valibot").ObjectSchema<{
|
|
328
|
-
readonly pushNotificationTokens: import("valibot").ObjectSchema<Record<"ios" | "osx" | "web", import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
|
|
329
|
-
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
330
|
-
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
331
|
-
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
332
|
-
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
333
|
-
}, undefined>, undefined>>, undefined>;
|
|
334
|
-
}, undefined>;
|
|
335
327
|
}, undefined>;
|
|
336
328
|
}, undefined>;
|
|
337
329
|
}, undefined>], undefined>, undefined>;
|
|
@@ -474,6 +466,11 @@ export declare const marcoSDK: {
|
|
|
474
466
|
}, undefined>;
|
|
475
467
|
}, undefined>;
|
|
476
468
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
469
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
470
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
471
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
472
|
+
}, undefined>;
|
|
473
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
477
474
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
478
475
|
readonly data: import("valibot").ObjectSchema<{
|
|
479
476
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -675,6 +672,11 @@ export declare const marcoSDK: {
|
|
|
675
672
|
}, undefined>;
|
|
676
673
|
}, undefined>;
|
|
677
674
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
675
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
676
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
677
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
678
|
+
}, undefined>;
|
|
679
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
678
680
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
679
681
|
readonly data: import("valibot").ObjectSchema<{
|
|
680
682
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -760,12 +762,17 @@ export declare const marcoSDK: {
|
|
|
760
762
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
761
763
|
}, undefined>;
|
|
762
764
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
765
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
766
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
767
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
768
|
+
}, undefined>;
|
|
769
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
763
770
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
764
771
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
765
772
|
}, undefined>], undefined>>;
|
|
766
773
|
user: import("..").EndpointConfig<"/v1/pv/sync/push/user", import("valibot").ObjectSchema<{
|
|
767
774
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
768
|
-
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<
|
|
775
|
+
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<import("valibot").ObjectSchema<{
|
|
769
776
|
readonly args: import("valibot").ObjectSchema<{
|
|
770
777
|
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
771
778
|
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,20 +780,7 @@ export declare const marcoSDK: {
|
|
|
773
780
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
774
781
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
775
782
|
readonly name: import("valibot").LiteralSchema<"setSettingsName", undefined>;
|
|
776
|
-
}, undefined>
|
|
777
|
-
readonly args: import("valibot").ObjectSchema<{
|
|
778
|
-
readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
|
|
779
|
-
readonly pushNotificationToken: import("valibot").ObjectSchema<{
|
|
780
|
-
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
781
|
-
readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
782
|
-
readonly platform: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ios", undefined>, import("valibot").LiteralSchema<"osx", undefined>, import("valibot").LiteralSchema<"web", undefined>], undefined>;
|
|
783
|
-
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
784
|
-
}, undefined>;
|
|
785
|
-
}, undefined>;
|
|
786
|
-
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
787
|
-
readonly id: import("valibot").NumberSchema<undefined>;
|
|
788
|
-
readonly name: import("valibot").LiteralSchema<"setSettingsPushNotificationToken", undefined>;
|
|
789
|
-
}, undefined>)[], undefined>, undefined>;
|
|
783
|
+
}, undefined>[], undefined>, undefined>;
|
|
790
784
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
791
785
|
readonly data: import("valibot").ObjectSchema<{
|
|
792
786
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -802,6 +796,11 @@ export declare const marcoSDK: {
|
|
|
802
796
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
803
797
|
}, undefined>;
|
|
804
798
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
799
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
800
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
801
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
802
|
+
}, undefined>;
|
|
803
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
805
804
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
806
805
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
807
806
|
}, undefined>], undefined>>;
|
|
@@ -1028,6 +1027,12 @@ export declare const marcoSDK: {
|
|
|
1028
1027
|
}, undefined>;
|
|
1029
1028
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
1030
1029
|
}, undefined>;
|
|
1030
|
+
readonly mutationRejectedErrorSchema: import("valibot").ObjectSchema<{
|
|
1031
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
1032
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
1033
|
+
}, undefined>;
|
|
1034
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
1035
|
+
}, undefined>;
|
|
1031
1036
|
readonly userMarkedForDeletionErrorSchema: import("valibot").ObjectSchema<{
|
|
1032
1037
|
readonly data: import("valibot").ObjectSchema<{
|
|
1033
1038
|
readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
|
package/dist/sdk/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
|
|
@@ -71,6 +71,12 @@ export declare const accountNotFoundErrorSchema: v.ObjectSchema<{
|
|
|
71
71
|
}, undefined>;
|
|
72
72
|
readonly status: v.LiteralSchema<404, undefined>;
|
|
73
73
|
}, undefined>;
|
|
74
|
+
export declare const mutationRejectedErrorSchema: v.ObjectSchema<{
|
|
75
|
+
readonly data: v.ObjectSchema<{
|
|
76
|
+
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
77
|
+
}, undefined>;
|
|
78
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
79
|
+
}, undefined>;
|
|
74
80
|
export declare const validationFailedErrorSchema: v.ObjectSchema<{
|
|
75
81
|
readonly data: v.ObjectSchema<{
|
|
76
82
|
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -143,6 +149,12 @@ export declare const errors: {
|
|
|
143
149
|
}, undefined>;
|
|
144
150
|
readonly status: v.LiteralSchema<404, undefined>;
|
|
145
151
|
}, undefined>;
|
|
152
|
+
readonly mutationRejectedErrorSchema: v.ObjectSchema<{
|
|
153
|
+
readonly data: v.ObjectSchema<{
|
|
154
|
+
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
155
|
+
}, undefined>;
|
|
156
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
157
|
+
}, undefined>;
|
|
146
158
|
readonly userMarkedForDeletionErrorSchema: v.ObjectSchema<{
|
|
147
159
|
readonly data: v.ObjectSchema<{
|
|
148
160
|
readonly code: v.LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;aAGzC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;aAGlD,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;aAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;aAG3C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;aAUtC,CAAA;AAEF,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;aAGzC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;aAGlD,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;aAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;aAG3C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;aAGtC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;aAUtC,CAAA;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAeT,CAAA"}
|
|
@@ -47,6 +47,10 @@ export const accountNotFoundErrorSchema = v.object({
|
|
|
47
47
|
data: v.object({ code: v.literal('ACCOUNT_NOT_FOUND') }),
|
|
48
48
|
status: v.literal(404),
|
|
49
49
|
});
|
|
50
|
+
export const mutationRejectedErrorSchema = v.object({
|
|
51
|
+
data: v.object({ code: v.literal('MUTATION_REJECTED') }),
|
|
52
|
+
status: v.literal(409),
|
|
53
|
+
});
|
|
50
54
|
export const validationFailedErrorSchema = v.object({
|
|
51
55
|
data: v.object({
|
|
52
56
|
code: v.literal('VALIDATION_FAILED'),
|
|
@@ -69,6 +73,7 @@ export const errors = {
|
|
|
69
73
|
authTooManyAttemptsErrorSchema,
|
|
70
74
|
inviteNotFoundErrorSchema,
|
|
71
75
|
messageNotFoundErrorSchema,
|
|
76
|
+
mutationRejectedErrorSchema,
|
|
72
77
|
userMarkedForDeletionErrorSchema,
|
|
73
78
|
userNotFoundErrorSchema,
|
|
74
79
|
validationFailedErrorSchema,
|
|
@@ -60,6 +60,12 @@ export declare const validation: {
|
|
|
60
60
|
}, undefined>;
|
|
61
61
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
62
62
|
}, undefined>;
|
|
63
|
+
readonly mutationRejectedErrorSchema: import("valibot").ObjectSchema<{
|
|
64
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
65
|
+
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
66
|
+
}, undefined>;
|
|
67
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
68
|
+
}, undefined>;
|
|
63
69
|
readonly userMarkedForDeletionErrorSchema: import("valibot").ObjectSchema<{
|
|
64
70
|
readonly data: import("valibot").ObjectSchema<{
|
|
65
71
|
readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAA"}
|
package/dist/types/SDKError.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { errors } from '../sdk/validation/errors';
|
|
3
|
-
export type SDKError = v.InferOutput<typeof errors.authCodeExpiredErrorSchema> | v.InferOutput<typeof errors.authCodePreviouslyUsedErrorSchema> | v.InferOutput<typeof errors.authRefreshTokenInvalid> | v.InferOutput<typeof errors.authServerResponseUnexpectedErrorSchema> | v.InferOutput<typeof errors.authTooManyAttemptsErrorSchema> | v.InferOutput<typeof errors.authCodeInvalidErrorSchema> | v.InferOutput<typeof errors.authFailedErrorSchema> | v.InferOutput<typeof errors.messageNotFoundErrorSchema> | v.InferOutput<typeof errors.accountNotFoundErrorSchema> | v.InferOutput<typeof errors.userNotFoundErrorSchema> | v.InferOutput<typeof errors.validationFailedErrorSchema> | v.InferOutput<typeof errors.inviteNotFoundErrorSchema> | v.InferOutput<typeof errors.userMarkedForDeletionErrorSchema>;
|
|
3
|
+
export type SDKError = v.InferOutput<typeof errors.authCodeExpiredErrorSchema> | v.InferOutput<typeof errors.authCodePreviouslyUsedErrorSchema> | v.InferOutput<typeof errors.authRefreshTokenInvalid> | v.InferOutput<typeof errors.authServerResponseUnexpectedErrorSchema> | v.InferOutput<typeof errors.authTooManyAttemptsErrorSchema> | v.InferOutput<typeof errors.authCodeInvalidErrorSchema> | v.InferOutput<typeof errors.authFailedErrorSchema> | v.InferOutput<typeof errors.messageNotFoundErrorSchema> | v.InferOutput<typeof errors.accountNotFoundErrorSchema> | v.InferOutput<typeof errors.userNotFoundErrorSchema> | v.InferOutput<typeof errors.validationFailedErrorSchema> | v.InferOutput<typeof errors.inviteNotFoundErrorSchema> | v.InferOutput<typeof errors.userMarkedForDeletionErrorSchema> | v.InferOutput<typeof errors.mutationRejectedErrorSchema>;
|
|
4
4
|
//# sourceMappingURL=SDKError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDKError.d.ts","sourceRoot":"","sources":["../../src/types/SDKError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAA;AAE5D,MAAM,MAAM,QAAQ,GAChB,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,iCAAiC,CAAC,GAC9D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uBAAuB,CAAC,GACpD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uCAAuC,CAAC,GACpE,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,8BAA8B,CAAC,GAC3D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,qBAAqB,CAAC,GAClD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uBAAuB,CAAC,GACpD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,2BAA2B,CAAC,GACxD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,yBAAyB,CAAC,GACtD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,gCAAgC,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"SDKError.d.ts","sourceRoot":"","sources":["../../src/types/SDKError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAA;AAE5D,MAAM,MAAM,QAAQ,GAChB,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,iCAAiC,CAAC,GAC9D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uBAAuB,CAAC,GACpD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uCAAuC,CAAC,GACpE,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,8BAA8B,CAAC,GAC3D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,qBAAqB,CAAC,GAClD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uBAAuB,CAAC,GACpD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,2BAA2B,CAAC,GACxD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,yBAAyB,CAAC,GACtD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,gCAAgC,CAAC,GAC7D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,2BAA2B,CAAC,CAAA"}
|
package/package.json
CHANGED