@marcoappio/marco-config 2.0.559 → 2.0.561
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/schemas/index.d.ts +21 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/models/account.d.ts +3 -0
- package/dist/schemas/models/account.d.ts.map +1 -1
- package/dist/schemas/models/account.js +1 -0
- package/dist/schemas/mutators/mutatorSchemas.d.ts +18 -0
- package/dist/schemas/mutators/mutatorSchemas.d.ts.map +1 -1
- package/dist/schemas/mutators/mutatorSchemas.js +18 -0
- package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts +2 -0
- package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts +38 -0
- package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/createLabel.js +19 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts +43 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteLabel.js +20 -0
- package/dist/sdk/endpoints/private/mutations/account/index.d.ts +4 -0
- package/dist/sdk/endpoints/private/mutations/account/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/mutations/account/index.js +4 -0
- package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts +44 -0
- package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/renameLabel.js +20 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts +44 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.js +20 -0
- package/dist/sdk/index.d.ts +6 -0
- 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/schemas/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare const marcoSchemas: {
|
|
|
47
47
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
48
48
|
readonly isPrimary: import("valibot").BooleanSchema<undefined>;
|
|
49
49
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
+
readonly signature: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 50000, undefined>]>, undefined>;
|
|
50
51
|
}, undefined>;
|
|
51
52
|
accountLabelSchema: import("valibot").ObjectSchema<{
|
|
52
53
|
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -64,6 +65,7 @@ export declare const marcoSchemas: {
|
|
|
64
65
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
65
66
|
readonly isPrimary: import("valibot").BooleanSchema<undefined>;
|
|
66
67
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
68
|
+
readonly signature: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 50000, undefined>]>, undefined>;
|
|
67
69
|
}, undefined>, undefined>, undefined>;
|
|
68
70
|
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
69
71
|
readonly displayName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -86,6 +88,7 @@ export declare const marcoSchemas: {
|
|
|
86
88
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
87
89
|
readonly isPrimary: import("valibot").BooleanSchema<undefined>;
|
|
88
90
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
91
|
+
readonly signature: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 50000, undefined>]>, undefined>;
|
|
89
92
|
}, undefined>, undefined>, undefined>;
|
|
90
93
|
readonly primaryAliasId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
91
94
|
readonly userId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -382,6 +385,10 @@ export declare const marcoSchemas: {
|
|
|
382
385
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
383
386
|
}, undefined>;
|
|
384
387
|
}, undefined>;
|
|
388
|
+
createLabel: import("valibot").ObjectSchema<{
|
|
389
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
390
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>;
|
|
391
|
+
}, undefined>;
|
|
385
392
|
deleteAccount: import("valibot").ObjectSchema<{
|
|
386
393
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
387
394
|
}, undefined>;
|
|
@@ -389,6 +396,15 @@ export declare const marcoSchemas: {
|
|
|
389
396
|
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
390
397
|
readonly aliasId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
391
398
|
}, undefined>;
|
|
399
|
+
deleteLabel: import("valibot").ObjectSchema<{
|
|
400
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
401
|
+
readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
402
|
+
}, undefined>;
|
|
403
|
+
renameLabel: import("valibot").ObjectSchema<{
|
|
404
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
405
|
+
readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
406
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>;
|
|
407
|
+
}, undefined>;
|
|
392
408
|
setAliasName: import("valibot").ObjectSchema<{
|
|
393
409
|
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
394
410
|
readonly aliasId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -398,6 +414,11 @@ export declare const marcoSchemas: {
|
|
|
398
414
|
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
399
415
|
readonly aliasId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
400
416
|
}, undefined>;
|
|
417
|
+
setAliasSignature: import("valibot").ObjectSchema<{
|
|
418
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
419
|
+
readonly aliasId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
420
|
+
readonly signature: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 50000, undefined>]>, undefined>;
|
|
421
|
+
}, undefined>;
|
|
401
422
|
setConnectionConfigImapRaw: import("valibot").ObjectSchema<{
|
|
402
423
|
readonly connectionConfig: import("valibot").ObjectSchema<{
|
|
403
424
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,UAAU,CAAA;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BxB,CAAA"}
|
|
@@ -5,6 +5,7 @@ export declare const accountAliasSchema: v.ObjectSchema<{
|
|
|
5
5
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
6
6
|
readonly isPrimary: v.BooleanSchema<undefined>;
|
|
7
7
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
8
|
+
readonly signature: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
|
|
8
9
|
}, undefined>;
|
|
9
10
|
export declare const accountLabelSchema: v.ObjectSchema<{
|
|
10
11
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -22,6 +23,7 @@ export declare const accountSchema: v.ObjectSchema<{
|
|
|
22
23
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
24
|
readonly isPrimary: v.BooleanSchema<undefined>;
|
|
24
25
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
26
|
+
readonly signature: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
|
|
25
27
|
}, undefined>, undefined>, undefined>;
|
|
26
28
|
readonly color: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
27
29
|
readonly displayName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -44,6 +46,7 @@ export declare const accountSchema: v.ObjectSchema<{
|
|
|
44
46
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
45
47
|
readonly isPrimary: v.BooleanSchema<undefined>;
|
|
46
48
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
|
+
readonly signature: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
|
|
47
50
|
}, undefined>, undefined>, undefined>;
|
|
48
51
|
readonly primaryAliasId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
52
|
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,kBAAkB;;;;;;;aAO7B,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;aAQ7B,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAYxB,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAA;AACzD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;AACnE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
|
|
@@ -8,6 +8,7 @@ export const accountAliasSchema = v.object({
|
|
|
8
8
|
id: string.required(),
|
|
9
9
|
isPrimary: v.boolean(),
|
|
10
10
|
name: string.nullable(),
|
|
11
|
+
signature: v.nullable(v.pipe(v.string(), v.maxLength(50000))),
|
|
11
12
|
});
|
|
12
13
|
export const accountLabelSchema = v.object({
|
|
13
14
|
accountId: string.required(),
|
|
@@ -15,6 +15,10 @@ export declare const mutatorSchemas: {
|
|
|
15
15
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
16
16
|
}, undefined>;
|
|
17
17
|
}, undefined>;
|
|
18
|
+
createLabel: v.ObjectSchema<{
|
|
19
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
20
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
21
|
+
}, undefined>;
|
|
18
22
|
deleteAccount: v.ObjectSchema<{
|
|
19
23
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
20
24
|
}, undefined>;
|
|
@@ -22,6 +26,15 @@ export declare const mutatorSchemas: {
|
|
|
22
26
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
27
|
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
24
28
|
}, undefined>;
|
|
29
|
+
deleteLabel: v.ObjectSchema<{
|
|
30
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
31
|
+
readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
32
|
+
}, undefined>;
|
|
33
|
+
renameLabel: v.ObjectSchema<{
|
|
34
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
+
readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
37
|
+
}, undefined>;
|
|
25
38
|
setAliasName: v.ObjectSchema<{
|
|
26
39
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
27
40
|
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -31,6 +44,11 @@ export declare const mutatorSchemas: {
|
|
|
31
44
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
32
45
|
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
33
46
|
}, undefined>;
|
|
47
|
+
setAliasSignature: v.ObjectSchema<{
|
|
48
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
|
+
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
+
readonly signature: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
|
|
51
|
+
}, undefined>;
|
|
34
52
|
setConnectionConfigImapRaw: v.ObjectSchema<{
|
|
35
53
|
readonly connectionConfig: v.ObjectSchema<{
|
|
36
54
|
readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/mutators/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAyF5B,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/mutators/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAyF5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwK1B,CAAA"}
|
|
@@ -74,6 +74,10 @@ export const mutatorSchemas = {
|
|
|
74
74
|
accountId: string.required(),
|
|
75
75
|
alias: accountAliasSchema,
|
|
76
76
|
}),
|
|
77
|
+
createLabel: v.object({
|
|
78
|
+
accountId: string.required(),
|
|
79
|
+
name: v.pipe(v.string(), v.nonEmpty(), v.maxLength(255)),
|
|
80
|
+
}),
|
|
77
81
|
deleteAccount: v.object({
|
|
78
82
|
id: string.required(),
|
|
79
83
|
}),
|
|
@@ -81,6 +85,15 @@ export const mutatorSchemas = {
|
|
|
81
85
|
accountId: string.required(),
|
|
82
86
|
aliasId: string.required(),
|
|
83
87
|
}),
|
|
88
|
+
deleteLabel: v.object({
|
|
89
|
+
accountId: string.required(),
|
|
90
|
+
labelId: string.required(),
|
|
91
|
+
}),
|
|
92
|
+
renameLabel: v.object({
|
|
93
|
+
accountId: string.required(),
|
|
94
|
+
labelId: string.required(),
|
|
95
|
+
name: v.pipe(v.string(), v.nonEmpty(), v.maxLength(255)),
|
|
96
|
+
}),
|
|
84
97
|
setAliasName: v.object({
|
|
85
98
|
accountId: string.required(),
|
|
86
99
|
aliasId: string.required(),
|
|
@@ -90,6 +103,11 @@ export const mutatorSchemas = {
|
|
|
90
103
|
accountId: string.required(),
|
|
91
104
|
aliasId: string.required(),
|
|
92
105
|
}),
|
|
106
|
+
setAliasSignature: v.object({
|
|
107
|
+
accountId: string.required(),
|
|
108
|
+
aliasId: string.required(),
|
|
109
|
+
signature: v.nullable(v.pipe(v.string(), v.maxLength(50000))),
|
|
110
|
+
}),
|
|
93
111
|
setConnectionConfigImapRaw: v.object({
|
|
94
112
|
connectionConfig: connectionConfigImapRawSchema,
|
|
95
113
|
id: string.required(),
|
|
@@ -35,6 +35,7 @@ export declare const getAccounts: import("../../../../..").EndpointConfig<"/v1/p
|
|
|
35
35
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
36
|
readonly isPrimary: v.BooleanSchema<undefined>;
|
|
37
37
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
38
|
+
readonly signature: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
|
|
38
39
|
}, undefined>, undefined>, undefined>;
|
|
39
40
|
readonly color: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
40
41
|
readonly displayName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -57,6 +58,7 @@ export declare const getAccounts: import("../../../../..").EndpointConfig<"/v1/p
|
|
|
57
58
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
58
59
|
readonly isPrimary: v.BooleanSchema<undefined>;
|
|
59
60
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
61
|
+
readonly signature: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
|
|
60
62
|
}, undefined>, undefined>, undefined>;
|
|
61
63
|
readonly primaryAliasId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
62
64
|
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAccounts.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/account/getAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"getAccounts.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/account/getAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAoBtB,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const createLabel: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/labels/create", v.ObjectSchema<{
|
|
3
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
5
|
+
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
6
|
+
readonly data: v.ObjectSchema<{
|
|
7
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
8
|
+
}, undefined>;
|
|
9
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
10
|
+
}, undefined>, v.ObjectSchema<{
|
|
11
|
+
readonly data: v.ObjectSchema<{
|
|
12
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
15
|
+
}, undefined>, v.ObjectSchema<{
|
|
16
|
+
readonly data: v.ObjectSchema<{
|
|
17
|
+
readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
|
|
18
|
+
}, undefined>;
|
|
19
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
20
|
+
}, undefined>, v.ObjectSchema<{
|
|
21
|
+
readonly data: v.ObjectSchema<{
|
|
22
|
+
readonly code: v.LiteralSchema<"LABEL_ALREADY_EXISTS", undefined>;
|
|
23
|
+
}, undefined>;
|
|
24
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
25
|
+
}, undefined>, v.ObjectSchema<{
|
|
26
|
+
readonly data: v.ObjectSchema<{
|
|
27
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
28
|
+
readonly issues: v.ObjectSchema<{
|
|
29
|
+
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
30
|
+
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
31
|
+
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
32
|
+
}, undefined>;
|
|
33
|
+
}, undefined>;
|
|
34
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
35
|
+
}, undefined>, v.ObjectSchema<{
|
|
36
|
+
readonly status: v.LiteralSchema<201, undefined>;
|
|
37
|
+
}, undefined>], undefined>>;
|
|
38
|
+
//# sourceMappingURL=createLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/createLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BActB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { accountNotFoundErrorSchema, authFailedErrorSchema, labelAlreadyExistsErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
+
export const createLabel = createEndpoint({
|
|
6
|
+
body: mutatorSchemas.account.createLabel,
|
|
7
|
+
method: 'POST',
|
|
8
|
+
path: '/v1/pv/models/account/:accountId/labels/create',
|
|
9
|
+
response: v.union([
|
|
10
|
+
authFailedErrorSchema,
|
|
11
|
+
userNotFoundErrorSchema,
|
|
12
|
+
accountNotFoundErrorSchema,
|
|
13
|
+
labelAlreadyExistsErrorSchema,
|
|
14
|
+
validationFailedErrorSchema,
|
|
15
|
+
v.object({
|
|
16
|
+
status: v.literal(201),
|
|
17
|
+
}),
|
|
18
|
+
]),
|
|
19
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const deleteLabel: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/labels/delete", v.ObjectSchema<{
|
|
3
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
|
+
readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
5
|
+
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
6
|
+
readonly data: v.ObjectSchema<{
|
|
7
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
8
|
+
}, undefined>;
|
|
9
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
10
|
+
}, undefined>, v.ObjectSchema<{
|
|
11
|
+
readonly data: v.ObjectSchema<{
|
|
12
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
15
|
+
}, undefined>, v.ObjectSchema<{
|
|
16
|
+
readonly data: v.ObjectSchema<{
|
|
17
|
+
readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
|
|
18
|
+
}, undefined>;
|
|
19
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
20
|
+
}, undefined>, v.ObjectSchema<{
|
|
21
|
+
readonly data: v.ObjectSchema<{
|
|
22
|
+
readonly code: v.LiteralSchema<"LABEL_NOT_FOUND", undefined>;
|
|
23
|
+
}, undefined>;
|
|
24
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
25
|
+
}, undefined>, v.ObjectSchema<{
|
|
26
|
+
readonly data: v.ObjectSchema<{
|
|
27
|
+
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
30
|
+
}, undefined>, v.ObjectSchema<{
|
|
31
|
+
readonly data: v.ObjectSchema<{
|
|
32
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
33
|
+
readonly issues: v.ObjectSchema<{
|
|
34
|
+
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
35
|
+
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
36
|
+
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
37
|
+
}, undefined>;
|
|
38
|
+
}, undefined>;
|
|
39
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
40
|
+
}, undefined>, v.ObjectSchema<{
|
|
41
|
+
readonly status: v.LiteralSchema<204, undefined>;
|
|
42
|
+
}, undefined>], undefined>>;
|
|
43
|
+
//# sourceMappingURL=deleteLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/deleteLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAetB,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { accountNotFoundErrorSchema, authFailedErrorSchema, labelNotFoundErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
+
export const deleteLabel = createEndpoint({
|
|
6
|
+
body: mutatorSchemas.account.deleteLabel,
|
|
7
|
+
method: 'DELETE',
|
|
8
|
+
path: '/v1/pv/models/account/:accountId/labels/delete',
|
|
9
|
+
response: v.union([
|
|
10
|
+
authFailedErrorSchema,
|
|
11
|
+
userNotFoundErrorSchema,
|
|
12
|
+
accountNotFoundErrorSchema,
|
|
13
|
+
labelNotFoundErrorSchema,
|
|
14
|
+
mutationRejectedErrorSchema,
|
|
15
|
+
validationFailedErrorSchema,
|
|
16
|
+
v.object({
|
|
17
|
+
status: v.literal(204),
|
|
18
|
+
}),
|
|
19
|
+
]),
|
|
20
|
+
});
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export { createAccount } from './createAccount';
|
|
2
2
|
export { createAlias } from './createAlias';
|
|
3
|
+
export { createLabel } from './createLabel';
|
|
3
4
|
export { deleteAccount } from './deleteAccount';
|
|
4
5
|
export { deleteAlias } from './deleteAlias';
|
|
6
|
+
export { deleteLabel } from './deleteLabel';
|
|
7
|
+
export { renameLabel } from './renameLabel';
|
|
5
8
|
export { setAliasName } from './setAliasName';
|
|
6
9
|
export { setAliasPrimary } from './setAliasPrimary';
|
|
10
|
+
export { setAliasSignature } from './setAliasSignature';
|
|
7
11
|
export { setConnectionConfigImap } from './setConnectionConfigImap';
|
|
8
12
|
export { setConnectionConfigOauth } from './setConnectionConfigOauth';
|
|
9
13
|
export { setSettings } from './setSettings';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export { createAccount } from './createAccount';
|
|
2
2
|
export { createAlias } from './createAlias';
|
|
3
|
+
export { createLabel } from './createLabel';
|
|
3
4
|
export { deleteAccount } from './deleteAccount';
|
|
4
5
|
export { deleteAlias } from './deleteAlias';
|
|
6
|
+
export { deleteLabel } from './deleteLabel';
|
|
7
|
+
export { renameLabel } from './renameLabel';
|
|
5
8
|
export { setAliasName } from './setAliasName';
|
|
6
9
|
export { setAliasPrimary } from './setAliasPrimary';
|
|
10
|
+
export { setAliasSignature } from './setAliasSignature';
|
|
7
11
|
export { setConnectionConfigImap } from './setConnectionConfigImap';
|
|
8
12
|
export { setConnectionConfigOauth } from './setConnectionConfigOauth';
|
|
9
13
|
export { setSettings } from './setSettings';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const renameLabel: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/labels/rename", v.ObjectSchema<{
|
|
3
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
|
+
readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
5
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
6
|
+
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
7
|
+
readonly data: v.ObjectSchema<{
|
|
8
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
9
|
+
}, undefined>;
|
|
10
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
11
|
+
}, undefined>, v.ObjectSchema<{
|
|
12
|
+
readonly data: v.ObjectSchema<{
|
|
13
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
14
|
+
}, undefined>;
|
|
15
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
16
|
+
}, undefined>, v.ObjectSchema<{
|
|
17
|
+
readonly data: v.ObjectSchema<{
|
|
18
|
+
readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
|
|
19
|
+
}, undefined>;
|
|
20
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
21
|
+
}, undefined>, v.ObjectSchema<{
|
|
22
|
+
readonly data: v.ObjectSchema<{
|
|
23
|
+
readonly code: v.LiteralSchema<"LABEL_NOT_FOUND", undefined>;
|
|
24
|
+
}, undefined>;
|
|
25
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
26
|
+
}, undefined>, v.ObjectSchema<{
|
|
27
|
+
readonly data: v.ObjectSchema<{
|
|
28
|
+
readonly code: v.LiteralSchema<"LABEL_ALREADY_EXISTS", undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
31
|
+
}, undefined>, v.ObjectSchema<{
|
|
32
|
+
readonly data: v.ObjectSchema<{
|
|
33
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
34
|
+
readonly issues: v.ObjectSchema<{
|
|
35
|
+
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
36
|
+
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
37
|
+
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
38
|
+
}, undefined>;
|
|
39
|
+
}, undefined>;
|
|
40
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
41
|
+
}, undefined>, v.ObjectSchema<{
|
|
42
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
43
|
+
}, undefined>], undefined>>;
|
|
44
|
+
//# sourceMappingURL=renameLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renameLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/renameLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAetB,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { accountNotFoundErrorSchema, authFailedErrorSchema, labelAlreadyExistsErrorSchema, labelNotFoundErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
+
export const renameLabel = createEndpoint({
|
|
6
|
+
body: mutatorSchemas.account.renameLabel,
|
|
7
|
+
method: 'PATCH',
|
|
8
|
+
path: '/v1/pv/models/account/:accountId/labels/rename',
|
|
9
|
+
response: v.union([
|
|
10
|
+
authFailedErrorSchema,
|
|
11
|
+
userNotFoundErrorSchema,
|
|
12
|
+
accountNotFoundErrorSchema,
|
|
13
|
+
labelNotFoundErrorSchema,
|
|
14
|
+
labelAlreadyExistsErrorSchema,
|
|
15
|
+
validationFailedErrorSchema,
|
|
16
|
+
v.object({
|
|
17
|
+
status: v.literal(200),
|
|
18
|
+
}),
|
|
19
|
+
]),
|
|
20
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const setAliasSignature: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/alias/:aliasId/set-signature", v.ObjectSchema<{
|
|
3
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
|
+
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
5
|
+
readonly signature: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
|
|
6
|
+
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
7
|
+
readonly data: v.ObjectSchema<{
|
|
8
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
9
|
+
}, undefined>;
|
|
10
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
11
|
+
}, undefined>, v.ObjectSchema<{
|
|
12
|
+
readonly data: v.ObjectSchema<{
|
|
13
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
14
|
+
}, undefined>;
|
|
15
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
16
|
+
}, undefined>, v.ObjectSchema<{
|
|
17
|
+
readonly data: v.ObjectSchema<{
|
|
18
|
+
readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
|
|
19
|
+
}, undefined>;
|
|
20
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
21
|
+
}, undefined>, v.ObjectSchema<{
|
|
22
|
+
readonly data: v.ObjectSchema<{
|
|
23
|
+
readonly code: v.LiteralSchema<"ALIAS_NOT_FOUND", undefined>;
|
|
24
|
+
}, undefined>;
|
|
25
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
26
|
+
}, undefined>, v.ObjectSchema<{
|
|
27
|
+
readonly data: v.ObjectSchema<{
|
|
28
|
+
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
31
|
+
}, undefined>, v.ObjectSchema<{
|
|
32
|
+
readonly data: v.ObjectSchema<{
|
|
33
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
34
|
+
readonly issues: v.ObjectSchema<{
|
|
35
|
+
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
36
|
+
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
37
|
+
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
38
|
+
}, undefined>;
|
|
39
|
+
}, undefined>;
|
|
40
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
41
|
+
}, undefined>, v.ObjectSchema<{
|
|
42
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
43
|
+
}, undefined>], undefined>>;
|
|
44
|
+
//# sourceMappingURL=setAliasSignature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setAliasSignature.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setAliasSignature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAe5B,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { accountNotFoundErrorSchema, aliasNotFoundErrorSchema, authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
+
export const setAliasSignature = createEndpoint({
|
|
6
|
+
body: mutatorSchemas.account.setAliasSignature,
|
|
7
|
+
method: 'PATCH',
|
|
8
|
+
path: '/v1/pv/models/account/:accountId/alias/:aliasId/set-signature',
|
|
9
|
+
response: v.union([
|
|
10
|
+
authFailedErrorSchema,
|
|
11
|
+
userNotFoundErrorSchema,
|
|
12
|
+
accountNotFoundErrorSchema,
|
|
13
|
+
aliasNotFoundErrorSchema,
|
|
14
|
+
mutationRejectedErrorSchema,
|
|
15
|
+
validationFailedErrorSchema,
|
|
16
|
+
v.object({
|
|
17
|
+
status: v.literal(200),
|
|
18
|
+
}),
|
|
19
|
+
]),
|
|
20
|
+
});
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -408,6 +408,12 @@ export declare const marcoSDK: {
|
|
|
408
408
|
}, undefined>;
|
|
409
409
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
410
410
|
}, undefined>;
|
|
411
|
+
readonly labelAlreadyExistsErrorSchema: import("valibot").ObjectSchema<{
|
|
412
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
413
|
+
readonly code: import("valibot").LiteralSchema<"LABEL_ALREADY_EXISTS", undefined>;
|
|
414
|
+
}, undefined>;
|
|
415
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
416
|
+
}, undefined>;
|
|
411
417
|
readonly labelNotFoundErrorSchema: import("valibot").ObjectSchema<{
|
|
412
418
|
readonly data: import("valibot").ObjectSchema<{
|
|
413
419
|
readonly code: import("valibot").LiteralSchema<"LABEL_NOT_FOUND", 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"}
|
|
@@ -107,6 +107,12 @@ export declare const contactNotFoundErrorSchema: v.ObjectSchema<{
|
|
|
107
107
|
}, undefined>;
|
|
108
108
|
readonly status: v.LiteralSchema<404, undefined>;
|
|
109
109
|
}, undefined>;
|
|
110
|
+
export declare const labelAlreadyExistsErrorSchema: v.ObjectSchema<{
|
|
111
|
+
readonly data: v.ObjectSchema<{
|
|
112
|
+
readonly code: v.LiteralSchema<"LABEL_ALREADY_EXISTS", undefined>;
|
|
113
|
+
}, undefined>;
|
|
114
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
115
|
+
}, undefined>;
|
|
110
116
|
export declare const labelNotFoundErrorSchema: v.ObjectSchema<{
|
|
111
117
|
readonly data: v.ObjectSchema<{
|
|
112
118
|
readonly code: v.LiteralSchema<"LABEL_NOT_FOUND", undefined>;
|
|
@@ -263,6 +269,12 @@ export declare const errors: {
|
|
|
263
269
|
}, undefined>;
|
|
264
270
|
readonly status: v.LiteralSchema<404, undefined>;
|
|
265
271
|
}, undefined>;
|
|
272
|
+
readonly labelAlreadyExistsErrorSchema: v.ObjectSchema<{
|
|
273
|
+
readonly data: v.ObjectSchema<{
|
|
274
|
+
readonly code: v.LiteralSchema<"LABEL_ALREADY_EXISTS", undefined>;
|
|
275
|
+
}, undefined>;
|
|
276
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
277
|
+
}, undefined>;
|
|
266
278
|
readonly labelNotFoundErrorSchema: v.ObjectSchema<{
|
|
267
279
|
readonly data: v.ObjectSchema<{
|
|
268
280
|
readonly code: v.LiteralSchema<"LABEL_NOT_FOUND", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;aAGzC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;aAGlD,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;aAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;aAG3C,CAAA;AAEF,eAA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const labelAlreadyExistsErrorSchema = v.object({
|
|
75
|
+
data: v.object({ code: v.literal('LABEL_ALREADY_EXISTS') }),
|
|
76
|
+
status: v.literal(409),
|
|
77
|
+
});
|
|
74
78
|
export const labelNotFoundErrorSchema = v.object({
|
|
75
79
|
data: v.object({ code: v.literal('LABEL_NOT_FOUND') }),
|
|
76
80
|
status: v.literal(404),
|
|
@@ -128,6 +132,7 @@ export const errors = {
|
|
|
128
132
|
invalidFileTypeErrorSchema,
|
|
129
133
|
invalidImageDimensionsErrorSchema,
|
|
130
134
|
inviteNotFoundErrorSchema,
|
|
135
|
+
labelAlreadyExistsErrorSchema,
|
|
131
136
|
labelNotFoundErrorSchema,
|
|
132
137
|
messageNotFoundErrorSchema,
|
|
133
138
|
mutationRejectedErrorSchema,
|
|
@@ -102,6 +102,12 @@ export declare const validation: {
|
|
|
102
102
|
}, undefined>;
|
|
103
103
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
104
104
|
}, undefined>;
|
|
105
|
+
readonly labelAlreadyExistsErrorSchema: import("valibot").ObjectSchema<{
|
|
106
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
107
|
+
readonly code: import("valibot").LiteralSchema<"LABEL_ALREADY_EXISTS", undefined>;
|
|
108
|
+
}, undefined>;
|
|
109
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
110
|
+
}, undefined>;
|
|
105
111
|
readonly labelNotFoundErrorSchema: import("valibot").ObjectSchema<{
|
|
106
112
|
readonly data: import("valibot").ObjectSchema<{
|
|
107
113
|
readonly code: import("valibot").LiteralSchema<"LABEL_NOT_FOUND", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU
|
|
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 type * as v from 'valibot';
|
|
2
2
|
import type { errors } from '../sdk/validation/errors';
|
|
3
|
-
export type SDKError = v.InferOutput<typeof errors.accountNotFoundErrorSchema> | v.InferOutput<typeof errors.aliasNotFoundErrorSchema> | v.InferOutput<typeof errors.attachmentNotFoundErrorSchema> | v.InferOutput<typeof errors.attachmentStateInvalidErrorSchema> | v.InferOutput<typeof errors.authCodeExpiredErrorSchema> | v.InferOutput<typeof errors.authCodeInvalidErrorSchema> | v.InferOutput<typeof errors.authCodePreviouslyUsedErrorSchema> | v.InferOutput<typeof errors.authFailedErrorSchema> | v.InferOutput<typeof errors.authRefreshTokenInvalid> | v.InferOutput<typeof errors.authServerResponseUnexpectedErrorSchema> | v.InferOutput<typeof errors.authTooManyAttemptsErrorSchema> | v.InferOutput<typeof errors.contactNotFoundErrorSchema> | v.InferOutput<typeof errors.draftNotFoundErrorSchema> | v.InferOutput<typeof errors.fileTooLargeErrorSchema> | v.InferOutput<typeof errors.invalidFileTypeErrorSchema> | v.InferOutput<typeof errors.invalidImageDimensionsErrorSchema> | v.InferOutput<typeof errors.inviteNotFoundErrorSchema> | v.InferOutput<typeof errors.labelNotFoundErrorSchema> | v.InferOutput<typeof errors.messageNotFoundErrorSchema> | v.InferOutput<typeof errors.mutationRejectedErrorSchema> | v.InferOutput<typeof errors.threadNotFoundErrorSchema> | v.InferOutput<typeof errors.userMarkedForDeletionErrorSchema> | v.InferOutput<typeof errors.userNotFoundErrorSchema> | v.InferOutput<typeof errors.validationFailedErrorSchema> | v.InferOutput<typeof errors.viewNotFoundErrorSchema> | v.InferOutput<typeof errors.subscriptionNotFoundErrorSchema>;
|
|
3
|
+
export type SDKError = v.InferOutput<typeof errors.accountNotFoundErrorSchema> | v.InferOutput<typeof errors.aliasNotFoundErrorSchema> | v.InferOutput<typeof errors.attachmentNotFoundErrorSchema> | v.InferOutput<typeof errors.attachmentStateInvalidErrorSchema> | v.InferOutput<typeof errors.authCodeExpiredErrorSchema> | v.InferOutput<typeof errors.authCodeInvalidErrorSchema> | v.InferOutput<typeof errors.authCodePreviouslyUsedErrorSchema> | v.InferOutput<typeof errors.authFailedErrorSchema> | v.InferOutput<typeof errors.authRefreshTokenInvalid> | v.InferOutput<typeof errors.authServerResponseUnexpectedErrorSchema> | v.InferOutput<typeof errors.authTooManyAttemptsErrorSchema> | v.InferOutput<typeof errors.contactNotFoundErrorSchema> | v.InferOutput<typeof errors.draftNotFoundErrorSchema> | v.InferOutput<typeof errors.fileTooLargeErrorSchema> | v.InferOutput<typeof errors.invalidFileTypeErrorSchema> | v.InferOutput<typeof errors.invalidImageDimensionsErrorSchema> | v.InferOutput<typeof errors.inviteNotFoundErrorSchema> | v.InferOutput<typeof errors.labelAlreadyExistsErrorSchema> | v.InferOutput<typeof errors.labelNotFoundErrorSchema> | v.InferOutput<typeof errors.messageNotFoundErrorSchema> | v.InferOutput<typeof errors.mutationRejectedErrorSchema> | v.InferOutput<typeof errors.threadNotFoundErrorSchema> | v.InferOutput<typeof errors.userMarkedForDeletionErrorSchema> | v.InferOutput<typeof errors.userNotFoundErrorSchema> | v.InferOutput<typeof errors.validationFailedErrorSchema> | v.InferOutput<typeof errors.viewNotFoundErrorSchema> | v.InferOutput<typeof errors.subscriptionNotFoundErrorSchema>;
|
|
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,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