@marcoappio/marco-config 2.0.350 → 2.0.352

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 (100) hide show
  1. package/dist/clients/account.d.ts +17 -17
  2. package/dist/clients/account.js +15 -15
  3. package/dist/clients/contact.d.ts +1 -1
  4. package/dist/clients/contact.js +1 -1
  5. package/dist/clients/draft.d.ts +25 -25
  6. package/dist/clients/draft.js +19 -19
  7. package/dist/clients/index.d.ts +64 -59
  8. package/dist/clients/index.d.ts.map +1 -1
  9. package/dist/clients/thread.d.ts +18 -13
  10. package/dist/clients/thread.d.ts.map +1 -1
  11. package/dist/clients/thread.js +18 -13
  12. package/dist/clients/user.d.ts +3 -3
  13. package/dist/clients/user.js +3 -3
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +1 -1
  17. package/dist/schemas/index.d.ts +3 -4
  18. package/dist/schemas/index.d.ts.map +1 -1
  19. package/dist/schemas/number.d.ts +1 -0
  20. package/dist/schemas/number.d.ts.map +1 -1
  21. package/dist/schemas/number.js +1 -0
  22. package/dist/schemas/pushNotifications.d.ts +2 -2
  23. package/dist/schemas/pushNotifications.js +2 -2
  24. package/dist/schemas/string.d.ts +0 -2
  25. package/dist/schemas/string.d.ts.map +1 -1
  26. package/dist/schemas/string.js +0 -3
  27. package/dist/sdk/endpoints/index.d.ts +83 -76
  28. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  29. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +1 -1
  30. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +1 -1
  31. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +1 -1
  32. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -1
  33. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +2 -1
  34. package/dist/sdk/endpoints/private/emailMessage/index.d.ts +2 -2
  35. package/dist/sdk/endpoints/private/index.d.ts +75 -68
  36. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  37. package/dist/sdk/endpoints/private/sync/index.d.ts +73 -66
  38. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
  39. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +4 -4
  40. package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
  41. package/dist/sdk/endpoints/private/sync/pull/account.js +3 -2
  42. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +2 -2
  43. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +1 -1
  44. package/dist/sdk/endpoints/private/sync/pull/contact.js +3 -2
  45. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +6 -6
  46. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -1
  47. package/dist/sdk/endpoints/private/sync/pull/draft.js +3 -2
  48. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +21 -21
  49. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +7 -7
  50. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -1
  51. package/dist/sdk/endpoints/private/sync/pull/thread.js +4 -3
  52. package/dist/sdk/endpoints/private/sync/pull/user.d.ts +2 -2
  53. package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -1
  54. package/dist/sdk/endpoints/private/sync/pull/user.js +3 -2
  55. package/dist/sdk/endpoints/private/sync/push/account.d.ts +14 -14
  56. package/dist/sdk/endpoints/private/sync/push/draft.d.ts +20 -20
  57. package/dist/sdk/endpoints/private/sync/push/index.d.ts +52 -45
  58. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
  59. package/dist/sdk/endpoints/private/sync/push/thread.d.ts +16 -9
  60. package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -1
  61. package/dist/sdk/endpoints/private/sync/push/thread.js +6 -0
  62. package/dist/sdk/endpoints/private/sync/push/user.d.ts +2 -2
  63. package/dist/sdk/endpoints/public/auth/index.d.ts +7 -7
  64. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +4 -4
  65. package/dist/sdk/endpoints/public/auth/refreshAuth.js +4 -4
  66. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +3 -3
  67. package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +3 -3
  68. package/dist/sdk/endpoints/public/config/index.d.ts +1 -1
  69. package/dist/sdk/endpoints/public/config/index.d.ts.map +1 -1
  70. package/dist/sdk/endpoints/public/config/index.js +2 -1
  71. package/dist/sdk/endpoints/public/index.d.ts +8 -8
  72. package/dist/sdk/index.d.ts +83 -76
  73. package/dist/sdk/index.d.ts.map +1 -1
  74. package/dist/utils/accounts/index.d.ts +0 -4
  75. package/dist/utils/accounts/index.d.ts.map +1 -1
  76. package/dist/utils/accounts/index.js +0 -2
  77. package/dist/utils/index.d.ts +0 -1
  78. package/dist/utils/index.d.ts.map +1 -1
  79. package/dist/utils/index.js +0 -1
  80. package/dist/ws.d.ts.map +1 -1
  81. package/dist/ws.js +1 -6
  82. package/package.json +3 -4
  83. package/dist/schemas/string.test.d.ts +0 -2
  84. package/dist/schemas/string.test.d.ts.map +0 -1
  85. package/dist/schemas/string.test.js +0 -20
  86. package/dist/utils/accounts/labelIdGenerate.d.ts +0 -5
  87. package/dist/utils/accounts/labelIdGenerate.d.ts.map +0 -1
  88. package/dist/utils/accounts/labelIdGenerate.js +0 -6
  89. package/dist/utils/accounts/labelIdGenerate.test.d.ts +0 -2
  90. package/dist/utils/accounts/labelIdGenerate.test.d.ts.map +0 -1
  91. package/dist/utils/accounts/labelIdGenerate.test.js +0 -51
  92. package/dist/utils/shortUUID/index.d.ts +0 -2
  93. package/dist/utils/shortUUID/index.d.ts.map +0 -1
  94. package/dist/utils/shortUUID/index.js +0 -1
  95. package/dist/utils/shortUUID/shortUUID.d.ts +0 -7
  96. package/dist/utils/shortUUID/shortUUID.d.ts.map +0 -1
  97. package/dist/utils/shortUUID/shortUUID.js +0 -8
  98. package/dist/utils/shortUUID/shortUUID.test.d.ts +0 -2
  99. package/dist/utils/shortUUID/shortUUID.test.d.ts.map +0 -1
  100. package/dist/utils/shortUUID/shortUUID.test.js +0 -19
@@ -3,14 +3,21 @@ export declare const syncPushThread: import("../../../../..").EndpointConfig<"/v
3
3
  readonly clientGroupID: v.StringSchema<undefined>;
4
4
  readonly mutations: v.ArraySchema<v.UnionSchema<(v.ObjectSchema<{
5
5
  readonly args: v.ObjectSchema<{
6
- readonly threadId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
6
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
7
  }, undefined>;
8
8
  readonly clientID: v.StringSchema<undefined>;
9
9
  readonly id: v.NumberSchema<undefined>;
10
10
  readonly name: v.LiteralSchema<"delete", undefined>;
11
11
  }, undefined> | v.ObjectSchema<{
12
12
  readonly args: v.ObjectSchema<{
13
- readonly threadId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
13
+ readonly attachmentId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
14
+ }, undefined>;
15
+ readonly clientID: v.StringSchema<undefined>;
16
+ readonly id: v.NumberSchema<undefined>;
17
+ readonly name: v.LiteralSchema<"requestAttachmentDownload", undefined>;
18
+ }, undefined> | v.ObjectSchema<{
19
+ readonly args: v.ObjectSchema<{
20
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
14
21
  }, undefined>;
15
22
  readonly clientID: v.StringSchema<undefined>;
16
23
  readonly id: v.NumberSchema<undefined>;
@@ -18,22 +25,22 @@ export declare const syncPushThread: import("../../../../..").EndpointConfig<"/v
18
25
  }, undefined> | v.ObjectSchema<{
19
26
  readonly args: v.ObjectSchema<{
20
27
  readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
21
- readonly threadId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
28
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
22
29
  }, undefined>;
23
30
  readonly clientID: v.StringSchema<undefined>;
24
31
  readonly id: v.NumberSchema<undefined>;
25
32
  readonly name: v.LiteralSchema<"setFlagged", undefined>;
26
33
  }, undefined> | v.ObjectSchema<{
27
34
  readonly args: v.ObjectSchema<{
28
- readonly threadId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
35
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
29
36
  }, undefined>;
30
37
  readonly clientID: v.StringSchema<undefined>;
31
38
  readonly id: v.NumberSchema<undefined>;
32
39
  readonly name: v.LiteralSchema<"setInbox", undefined>;
33
40
  }, undefined> | v.ObjectSchema<{
34
41
  readonly args: v.ObjectSchema<{
35
- readonly labelIds: v.ArraySchema<v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>;
36
- readonly threadId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
42
+ readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
43
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
37
44
  }, undefined>;
38
45
  readonly clientID: v.StringSchema<undefined>;
39
46
  readonly id: v.NumberSchema<undefined>;
@@ -41,21 +48,21 @@ export declare const syncPushThread: import("../../../../..").EndpointConfig<"/v
41
48
  }, undefined> | v.ObjectSchema<{
42
49
  readonly args: v.ObjectSchema<{
43
50
  readonly seen: v.BooleanSchema<undefined>;
44
- readonly threadId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
51
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
45
52
  }, undefined>;
46
53
  readonly clientID: v.StringSchema<undefined>;
47
54
  readonly id: v.NumberSchema<undefined>;
48
55
  readonly name: v.LiteralSchema<"setSeen", undefined>;
49
56
  }, undefined> | v.ObjectSchema<{
50
57
  readonly args: v.ObjectSchema<{
51
- readonly threadId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
58
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
52
59
  }, undefined>;
53
60
  readonly clientID: v.StringSchema<undefined>;
54
61
  readonly id: v.NumberSchema<undefined>;
55
62
  readonly name: v.LiteralSchema<"setSpam", undefined>;
56
63
  }, undefined> | v.ObjectSchema<{
57
64
  readonly args: v.ObjectSchema<{
58
- readonly threadId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
65
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
59
66
  }, undefined>;
60
67
  readonly clientID: v.StringSchema<undefined>;
61
68
  readonly id: v.NumberSchema<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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAkEzB,CAAA"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwEzB,CAAA"}
@@ -12,6 +12,12 @@ export const syncPushThread = createEndpoint({
12
12
  id: v.number(),
13
13
  name: v.literal('delete'),
14
14
  }),
15
+ requestAttachmentDownload: v.object({
16
+ args: thread.mutators.requestAttachmentDownload.delta,
17
+ clientID: v.string(),
18
+ id: v.number(),
19
+ name: v.literal('requestAttachmentDownload'),
20
+ }),
15
21
  setArchive: v.object({
16
22
  args: thread.mutators.setArchive.delta,
17
23
  clientID: v.string(),
@@ -3,7 +3,7 @@ export declare const syncPushUser: import("../../../../..").EndpointConfig<"/v1/
3
3
  readonly clientGroupID: v.StringSchema<undefined>;
4
4
  readonly mutations: v.ArraySchema<v.UnionSchema<(v.ObjectSchema<{
5
5
  readonly args: v.ObjectSchema<{
6
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
6
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
7
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
8
8
  }, undefined>;
9
9
  readonly clientID: v.StringSchema<undefined>;
@@ -11,7 +11,7 @@ export declare const syncPushUser: import("../../../../..").EndpointConfig<"/v1/
11
11
  readonly name: v.LiteralSchema<"setSettingsName", undefined>;
12
12
  }, undefined> | v.ObjectSchema<{
13
13
  readonly args: v.ObjectSchema<{
14
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
14
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
15
15
  readonly pushNotificationToken: v.ObjectSchema<{
16
16
  readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
17
17
  readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -1,6 +1,6 @@
1
1
  export declare const auth: {
2
2
  refreshAuth: import("../../../..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
3
- readonly refreshToken: import("valibot").StringSchema<undefined>;
3
+ readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
5
5
  readonly data: import("valibot").ObjectSchema<{
6
6
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
@@ -23,14 +23,14 @@ export declare const auth: {
23
23
  readonly status: import("valibot").LiteralSchema<502, undefined>;
24
24
  }, undefined>, import("valibot").ObjectSchema<{
25
25
  readonly data: import("valibot").ObjectSchema<{
26
- readonly accessToken: import("valibot").StringSchema<undefined>;
27
- readonly refreshToken: import("valibot").StringSchema<undefined>;
26
+ readonly accessToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
27
+ readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
28
28
  readonly user: import("valibot").ObjectSchema<{
29
29
  readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
30
30
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
31
31
  readonly emailVerified: import("valibot").BooleanSchema<undefined>;
32
32
  readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
33
- readonly id: import("valibot").StringSchema<undefined>;
33
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
34
34
  readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
35
35
  readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
36
36
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -118,14 +118,14 @@ export declare const auth: {
118
118
  readonly status: import("valibot").LiteralSchema<409, undefined>;
119
119
  }, undefined>, import("valibot").ObjectSchema<{
120
120
  readonly data: import("valibot").ObjectSchema<{
121
- readonly accessToken: import("valibot").StringSchema<undefined>;
122
- readonly refreshToken: import("valibot").StringSchema<undefined>;
121
+ readonly accessToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
122
+ readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
123
123
  readonly user: import("valibot").ObjectSchema<{
124
124
  readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
125
125
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
126
126
  readonly emailVerified: import("valibot").BooleanSchema<undefined>;
127
127
  readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
128
- readonly id: import("valibot").StringSchema<undefined>;
128
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
129
129
  readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
130
130
  readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
131
131
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -1,6 +1,6 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const refreshAuth: import("../../../..").EndpointConfig<"/v1/pb/auth/refresh", v.ObjectSchema<{
3
- readonly refreshToken: v.StringSchema<undefined>;
3
+ readonly refreshToken: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
5
5
  readonly data: v.ObjectSchema<{
6
6
  readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
@@ -23,14 +23,14 @@ export declare const refreshAuth: import("../../../..").EndpointConfig<"/v1/pb/a
23
23
  readonly status: v.LiteralSchema<502, undefined>;
24
24
  }, undefined>, v.ObjectSchema<{
25
25
  readonly data: v.ObjectSchema<{
26
- readonly accessToken: v.StringSchema<undefined>;
27
- readonly refreshToken: v.StringSchema<undefined>;
26
+ readonly accessToken: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
27
+ readonly refreshToken: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
28
28
  readonly user: v.ObjectSchema<{
29
29
  readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
30
30
  readonly email: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
31
31
  readonly emailVerified: v.BooleanSchema<undefined>;
32
32
  readonly firstName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
- readonly id: v.StringSchema<undefined>;
33
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
34
  readonly lastName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
35
35
  readonly profilePictureUrl: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
36
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -4,7 +4,7 @@ import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
4
4
  import { errors } from '../../../../sdk/validation/errors';
5
5
  export const refreshAuth = createEndpoint({
6
6
  body: v.object({
7
- refreshToken: v.string(),
7
+ refreshToken: marcoSchemas.string.required(),
8
8
  }),
9
9
  method: 'POST',
10
10
  path: '/v1/pb/auth/refresh',
@@ -14,14 +14,14 @@ export const refreshAuth = createEndpoint({
14
14
  errors.authServerResponseUnexpectedErrorSchema,
15
15
  v.object({
16
16
  data: v.object({
17
- accessToken: v.string(),
18
- refreshToken: v.string(),
17
+ accessToken: marcoSchemas.string.required(),
18
+ refreshToken: marcoSchemas.string.required(),
19
19
  user: v.object({
20
20
  createdAt: marcoSchemas.string.required(),
21
21
  email: marcoSchemas.string.email(),
22
22
  emailVerified: v.boolean(),
23
23
  firstName: marcoSchemas.string.nullable(),
24
- id: v.string(),
24
+ id: marcoSchemas.string.required(),
25
25
  lastName: marcoSchemas.string.nullable(),
26
26
  profilePictureUrl: marcoSchemas.string.nullable(),
27
27
  updatedAt: marcoSchemas.string.required(),
@@ -54,14 +54,14 @@ export declare const verifyAuthCode: import("../../../..").EndpointConfig<"/v1/p
54
54
  readonly status: v.LiteralSchema<409, undefined>;
55
55
  }, undefined>, v.ObjectSchema<{
56
56
  readonly data: v.ObjectSchema<{
57
- readonly accessToken: v.StringSchema<undefined>;
58
- readonly refreshToken: v.StringSchema<undefined>;
57
+ readonly accessToken: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
58
+ readonly refreshToken: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
59
59
  readonly user: v.ObjectSchema<{
60
60
  readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
61
61
  readonly email: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
62
62
  readonly emailVerified: v.BooleanSchema<undefined>;
63
63
  readonly firstName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
64
- readonly id: v.StringSchema<undefined>;
64
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
65
65
  readonly lastName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
66
66
  readonly profilePictureUrl: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
67
67
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -21,14 +21,14 @@ export const verifyAuthCode = createEndpoint({
21
21
  errors.userMarkedForDeletionErrorSchema,
22
22
  v.object({
23
23
  data: v.object({
24
- accessToken: v.string(),
25
- refreshToken: v.string(),
24
+ accessToken: marcoSchemas.string.required(),
25
+ refreshToken: marcoSchemas.string.required(),
26
26
  user: v.object({
27
27
  createdAt: marcoSchemas.string.required(),
28
28
  email: marcoSchemas.string.email(),
29
29
  emailVerified: v.boolean(),
30
30
  firstName: marcoSchemas.string.nullable(),
31
- id: v.string(),
31
+ id: marcoSchemas.string.required(),
32
32
  lastName: marcoSchemas.string.nullable(),
33
33
  profilePictureUrl: marcoSchemas.string.nullable(),
34
34
  updatedAt: marcoSchemas.string.required(),
@@ -2,7 +2,7 @@ import * as v from 'valibot';
2
2
  export declare const config: import("../../../..").EndpointConfig<"/v1/pb/config", v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.ObjectSchema<{
3
3
  readonly data: v.ObjectSchema<{
4
4
  readonly app: v.ObjectSchema<{
5
- readonly minimumVersion: v.StringSchema<undefined>;
5
+ readonly minimumVersion: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
6
6
  }, undefined>;
7
7
  }, undefined>;
8
8
  readonly status: v.LiteralSchema<200, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,eAAO,MAAM,MAAM;;;;;;;cAWjB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,MAAM;;;;;;;cAWjB,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../schemas';
2
3
  import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
4
  export const config = createEndpoint({
4
5
  method: 'GET',
@@ -6,7 +7,7 @@ export const config = createEndpoint({
6
7
  response: v.object({
7
8
  data: v.object({
8
9
  app: v.object({
9
- minimumVersion: v.string(),
10
+ minimumVersion: marcoSchemas.string.required(),
10
11
  }),
11
12
  }),
12
13
  status: v.literal(200),
@@ -1,7 +1,7 @@
1
1
  export declare const publicGroup: {
2
2
  auth: {
3
3
  refreshAuth: import("../../..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
4
- readonly refreshToken: import("valibot").StringSchema<undefined>;
4
+ readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
5
5
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
6
6
  readonly data: import("valibot").ObjectSchema<{
7
7
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
@@ -24,14 +24,14 @@ export declare const publicGroup: {
24
24
  readonly status: import("valibot").LiteralSchema<502, undefined>;
25
25
  }, undefined>, import("valibot").ObjectSchema<{
26
26
  readonly data: import("valibot").ObjectSchema<{
27
- readonly accessToken: import("valibot").StringSchema<undefined>;
28
- readonly refreshToken: import("valibot").StringSchema<undefined>;
27
+ readonly accessToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
28
+ readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
29
29
  readonly user: import("valibot").ObjectSchema<{
30
30
  readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
31
31
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
32
32
  readonly emailVerified: import("valibot").BooleanSchema<undefined>;
33
33
  readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
34
- readonly id: import("valibot").StringSchema<undefined>;
34
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
35
35
  readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
36
36
  readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
37
37
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -119,14 +119,14 @@ export declare const publicGroup: {
119
119
  readonly status: import("valibot").LiteralSchema<409, undefined>;
120
120
  }, undefined>, import("valibot").ObjectSchema<{
121
121
  readonly data: import("valibot").ObjectSchema<{
122
- readonly accessToken: import("valibot").StringSchema<undefined>;
123
- readonly refreshToken: import("valibot").StringSchema<undefined>;
122
+ readonly accessToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
123
+ readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
124
124
  readonly user: import("valibot").ObjectSchema<{
125
125
  readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
126
126
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
127
127
  readonly emailVerified: import("valibot").BooleanSchema<undefined>;
128
128
  readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
129
- readonly id: import("valibot").StringSchema<undefined>;
129
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
130
130
  readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
131
131
  readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
132
132
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -138,7 +138,7 @@ export declare const publicGroup: {
138
138
  config: import("../../..").EndpointConfig<"/v1/pb/config", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").ObjectSchema<{
139
139
  readonly data: import("valibot").ObjectSchema<{
140
140
  readonly app: import("valibot").ObjectSchema<{
141
- readonly minimumVersion: import("valibot").StringSchema<undefined>;
141
+ readonly minimumVersion: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
142
142
  }, undefined>;
143
143
  }, undefined>;
144
144
  readonly status: import("valibot").LiteralSchema<200, undefined>;