@marcoappio/marco-config 11.0.8 → 11.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/schemas/emailAccount.d.ts +1 -0
  2. package/dist/schemas/emailAccount.d.ts.map +1 -1
  3. package/dist/schemas/emailAccount.js +1 -0
  4. package/dist/schemas/index.d.ts +10 -0
  5. package/dist/schemas/index.d.ts.map +1 -1
  6. package/dist/schemas/models/account.d.ts +2 -0
  7. package/dist/schemas/models/account.d.ts.map +1 -1
  8. package/dist/schemas/models/account.js +1 -0
  9. package/dist/schemas/mutators/mutatorSchemas.d.ts +6 -0
  10. package/dist/schemas/mutators/mutatorSchemas.d.ts.map +1 -1
  11. package/dist/schemas/mutators/mutatorSchemas.js +5 -0
  12. package/dist/schemas/oauth.d.ts +1 -0
  13. package/dist/schemas/oauth.d.ts.map +1 -1
  14. package/dist/schemas/oauth.js +2 -0
  15. package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts +1 -0
  16. package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts.map +1 -1
  17. package/dist/sdk/endpoints/private/mutations/account/index.d.ts +1 -0
  18. package/dist/sdk/endpoints/private/mutations/account/index.d.ts.map +1 -1
  19. package/dist/sdk/endpoints/private/mutations/account/index.js +1 -0
  20. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts +1 -0
  21. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts.map +1 -1
  22. package/dist/sdk/endpoints/private/mutations/account/setLabelSidebarHidden.d.ts +44 -0
  23. package/dist/sdk/endpoints/private/mutations/account/setLabelSidebarHidden.d.ts.map +1 -0
  24. package/dist/sdk/endpoints/private/mutations/account/setLabelSidebarHidden.js +20 -0
  25. package/package.json +3 -3
@@ -15,6 +15,7 @@ export declare const emailAccount: {
15
15
  }, undefined>;
16
16
  connectionConfigOauth: () => v.ObjectSchema<{
17
17
  readonly code: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
18
+ readonly codeVerifier: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
18
19
  readonly provider: v.PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
19
20
  readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
20
21
  }, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"emailAccount.d.ts","sourceRoot":"","sources":["../../src/schemas/emailAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,gBAAgB,uGAAqD,CAAA;AAElF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;CAsBxB,CAAA"}
1
+ {"version":3,"file":"emailAccount.d.ts","sourceRoot":"","sources":["../../src/schemas/emailAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,gBAAgB,uGAAqD,CAAA;AAElF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;CAuBxB,CAAA"}
@@ -19,6 +19,7 @@ export const emailAccount = {
19
19
  }),
20
20
  connectionConfigOauth: () => v.object({
21
21
  code: string.required(4096),
22
+ codeVerifier: v.optional(oauth.codeVerifier()),
22
23
  provider: oauth.provider(),
23
24
  user: string.required(4096),
24
25
  }),
@@ -30,6 +30,7 @@ export declare const marcoSchemas: {
30
30
  }, undefined>;
31
31
  connectionConfigOauth: () => import("valibot").ObjectSchema<{
32
32
  readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
33
+ readonly codeVerifier: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, undefined>]>, undefined>;
33
34
  readonly provider: import("valibot").PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
34
35
  readonly user: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
35
36
  }, undefined>;
@@ -111,6 +112,7 @@ export declare const marcoSchemas: {
111
112
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "LabelId">]>, undefined>;
112
113
  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>;
113
114
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
115
+ readonly sidebarHidden: import("valibot").BooleanSchema<undefined>;
114
116
  readonly specialUse: import("valibot").NullableSchema<import("valibot").PicklistSchema<readonly ["ARCHIVE", "INBOX", "SENT", "SPAM", "TRASH"], undefined>, undefined>;
115
117
  readonly uidValidity: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
116
118
  readonly unreadCount: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
@@ -133,6 +135,7 @@ export declare const marcoSchemas: {
133
135
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "LabelId">]>, undefined>;
134
136
  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>;
135
137
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
138
+ readonly sidebarHidden: import("valibot").BooleanSchema<undefined>;
136
139
  readonly specialUse: import("valibot").NullableSchema<import("valibot").PicklistSchema<readonly ["ARCHIVE", "INBOX", "SENT", "SPAM", "TRASH"], undefined>, undefined>;
137
140
  readonly uidValidity: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
138
141
  readonly unreadCount: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
@@ -540,11 +543,17 @@ export declare const marcoSchemas: {
540
543
  setConnectionConfigOauth: import("valibot").ObjectSchema<{
541
544
  readonly connectionConfig: import("valibot").ObjectSchema<{
542
545
  readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
546
+ readonly codeVerifier: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, undefined>]>, undefined>;
543
547
  readonly provider: import("valibot").PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
544
548
  readonly user: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
545
549
  }, undefined>;
546
550
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
547
551
  }, undefined>;
552
+ setLabelSidebarHidden: import("valibot").ObjectSchema<{
553
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
554
+ readonly labelId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "LabelId">]>, undefined>;
555
+ readonly sidebarHidden: import("valibot").BooleanSchema<undefined>;
556
+ }, undefined>;
548
557
  setSettings: import("valibot").ObjectSchema<{
549
558
  readonly color: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
550
559
  readonly displayName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
@@ -838,6 +847,7 @@ export declare const marcoSchemas: {
838
847
  positiveIntegerFromString: () => import("valibot").SchemaWithPipe<readonly [import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").TransformAction<string, number>, import("valibot").NumberSchema<undefined>, import("valibot").FiniteAction<number, undefined>]>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
839
848
  };
840
849
  oauth: {
850
+ codeVerifier: () => import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, undefined>]>;
841
851
  provider: () => import("valibot").PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
842
852
  };
843
853
  pushNotifications: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAkCA,YAAY,EACV,SAAS,EACT,OAAO,EACP,YAAY,EACZ,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,EACT,uBAAuB,EACvB,WAAW,EACX,MAAM,EACN,UAAU,EACV,QAAQ,EACR,MAAM,EACN,MAAM,GACP,MAAM,MAAM,CAAA;AACb,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,IAAI,EACJ,yBAAyB,EACzB,QAAQ,GACT,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCxB,CAAA"}
@@ -12,6 +12,7 @@ export declare const accountLabelSchema: v.ObjectSchema<{
12
12
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
13
13
  readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
14
14
  readonly path: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
15
+ readonly sidebarHidden: v.BooleanSchema<undefined>;
15
16
  readonly specialUse: v.NullableSchema<v.PicklistSchema<readonly ["ARCHIVE", "INBOX", "SENT", "SPAM", "TRASH"], undefined>, undefined>;
16
17
  readonly uidValidity: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
17
18
  readonly unreadCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
@@ -34,6 +35,7 @@ export declare const accountSchema: v.ObjectSchema<{
34
35
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
35
36
  readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
37
  readonly path: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
38
+ readonly sidebarHidden: v.BooleanSchema<undefined>;
37
39
  readonly specialUse: v.NullableSchema<v.PicklistSchema<readonly ["ARCHIVE", "INBOX", "SENT", "SPAM", "TRASH"], undefined>, undefined>;
38
40
  readonly uidValidity: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
39
41
  readonly unreadCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, 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;AAO5B,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"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,kBAAkB;;;;;;;aAO7B,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;aAS7B,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"}
@@ -16,6 +16,7 @@ export const accountLabelSchema = v.object({
16
16
  id: id.labelId.required(),
17
17
  name: string.nullable(),
18
18
  path: string.required(),
19
+ sidebarHidden: v.boolean(),
19
20
  specialUse: v.nullable(v.picklist(LABEL_SPECIAL_USES)),
20
21
  uidValidity: number.positiveInteger(),
21
22
  unreadCount: number.positiveInteger(),
@@ -68,11 +68,17 @@ export declare const mutatorSchemas: {
68
68
  setConnectionConfigOauth: v.ObjectSchema<{
69
69
  readonly connectionConfig: v.ObjectSchema<{
70
70
  readonly code: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
71
+ readonly codeVerifier: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
71
72
  readonly provider: v.PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
72
73
  readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
73
74
  }, undefined>;
74
75
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
75
76
  }, undefined>;
77
+ setLabelSidebarHidden: v.ObjectSchema<{
78
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
79
+ readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
80
+ readonly sidebarHidden: v.BooleanSchema<undefined>;
81
+ }, undefined>;
76
82
  setSettings: v.ObjectSchema<{
77
83
  readonly color: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
78
84
  readonly displayName: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, 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;AAsF5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyN1B,CAAA"}
1
+ {"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/mutators/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAsF5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8N1B,CAAA"}
@@ -112,6 +112,11 @@ export const mutatorSchemas = {
112
112
  connectionConfig: emailAccount.connectionConfigOauth(),
113
113
  id: id.accountId.required(),
114
114
  }),
115
+ setLabelSidebarHidden: v.object({
116
+ accountId: id.accountId.required(),
117
+ labelId: id.labelId.required(),
118
+ sidebarHidden: v.boolean(),
119
+ }),
115
120
  setSettings: v.object({
116
121
  color: v.optional(string.nullable()),
117
122
  displayName: v.optional(string.nullable()),
@@ -1,5 +1,6 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const oauth: {
3
+ codeVerifier: () => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
3
4
  provider: () => v.PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
4
5
  };
5
6
  //# sourceMappingURL=oauth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../src/schemas/oauth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,eAAO,MAAM,KAAK;;CAEjB,CAAA"}
1
+ {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../src/schemas/oauth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,eAAO,MAAM,KAAK;;;CAIjB,CAAA"}
@@ -1,5 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  import { OAUTH_PROVIDERS } from '../types';
3
3
  export const oauth = {
4
+ // RFC 7636: 43 to 128 unreserved characters.
5
+ codeVerifier: () => v.pipe(v.string(), v.regex(/^[A-Za-z0-9._~-]{43,128}$/)),
4
6
  provider: () => v.picklist(OAUTH_PROVIDERS),
5
7
  };
@@ -46,6 +46,7 @@ export declare const getAccounts: import("../../../../..").EndpointConfig<"/v1/p
46
46
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
47
47
  readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
48
48
  readonly path: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
49
+ readonly sidebarHidden: v.BooleanSchema<undefined>;
49
50
  readonly specialUse: v.NullableSchema<v.PicklistSchema<readonly ["ARCHIVE", "INBOX", "SENT", "SPAM", "TRASH"], undefined>, undefined>;
50
51
  readonly uidValidity: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
51
52
  readonly unreadCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAoBtB,CAAA"}
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"}
@@ -10,5 +10,6 @@ export { setAliasPrimary } from './setAliasPrimary';
10
10
  export { setAliasSignature } from './setAliasSignature';
11
11
  export { setConnectionConfigImap } from './setConnectionConfigImap';
12
12
  export { setConnectionConfigOauth } from './setConnectionConfigOauth';
13
+ export { setLabelSidebarHidden } from './setLabelSidebarHidden';
13
14
  export { setSettings } from './setSettings';
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -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,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
+ {"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,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
@@ -10,4 +10,5 @@ export { setAliasPrimary } from './setAliasPrimary';
10
10
  export { setAliasSignature } from './setAliasSignature';
11
11
  export { setConnectionConfigImap } from './setConnectionConfigImap';
12
12
  export { setConnectionConfigOauth } from './setConnectionConfigOauth';
13
+ export { setLabelSidebarHidden } from './setLabelSidebarHidden';
13
14
  export { setSettings } from './setSettings';
@@ -2,6 +2,7 @@ import * as v from 'valibot';
2
2
  export declare const setConnectionConfigOauth: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/connection/set-oauth", v.ObjectSchema<{
3
3
  readonly connectionConfig: v.ObjectSchema<{
4
4
  readonly code: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
5
+ readonly codeVerifier: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
5
6
  readonly provider: v.PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
6
7
  readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
8
  }, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"setConnectionConfigOauth.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAcnC,CAAA"}
1
+ {"version":3,"file":"setConnectionConfigOauth.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAcnC,CAAA"}
@@ -0,0 +1,44 @@
1
+ import * as v from 'valibot';
2
+ export declare const setLabelSidebarHidden: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/labels/sidebar-hidden", v.ObjectSchema<{
3
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
4
+ readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
5
+ readonly sidebarHidden: v.BooleanSchema<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<"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=setLabelSidebarHidden.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setLabelSidebarHidden.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setLabelSidebarHidden.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAehC,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 setLabelSidebarHidden = createEndpoint({
6
+ body: mutatorSchemas.account.setLabelSidebarHidden,
7
+ method: 'PATCH',
8
+ path: '/v1/pv/models/account/:accountId/labels/sidebar-hidden',
9
+ response: v.union([
10
+ authFailedErrorSchema,
11
+ userNotFoundErrorSchema,
12
+ accountNotFoundErrorSchema,
13
+ labelNotFoundErrorSchema,
14
+ mutationRejectedErrorSchema,
15
+ validationFailedErrorSchema,
16
+ v.object({
17
+ status: v.literal(200),
18
+ }),
19
+ ]),
20
+ });
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "11.0.8",
3
+ "version": "11.0.10",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",
7
- "packageManager": "bun@1.3.1",
7
+ "packageManager": "bun@1.4.4",
8
8
  "engines": {
9
- "bun": "1.3.1"
9
+ "bun": "1.4.4"
10
10
  },
11
11
  "files": [
12
12
  "dist/",