@marcoappio/marco-config 2.0.413 → 2.0.415

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 (131) hide show
  1. package/dist/clients/account.d.ts +144 -0
  2. package/dist/clients/account.d.ts.map +1 -0
  3. package/dist/clients/account.js +93 -0
  4. package/dist/clients/contact.d.ts +14 -0
  5. package/dist/clients/contact.d.ts.map +1 -0
  6. package/dist/clients/contact.js +14 -0
  7. package/dist/clients/draft.d.ts +196 -0
  8. package/dist/clients/draft.d.ts.map +1 -0
  9. package/dist/clients/draft.js +122 -0
  10. package/dist/clients/index.d.ts +526 -0
  11. package/dist/clients/index.d.ts.map +1 -0
  12. package/dist/clients/index.js +13 -0
  13. package/dist/clients/thread.d.ts +125 -0
  14. package/dist/clients/thread.d.ts.map +1 -0
  15. package/dist/clients/thread.js +117 -0
  16. package/dist/clients/user.d.ts +53 -0
  17. package/dist/clients/user.d.ts.map +1 -0
  18. package/dist/clients/user.js +52 -0
  19. package/dist/clients/utils/index.d.ts +4 -0
  20. package/dist/clients/utils/index.d.ts.map +1 -0
  21. package/dist/clients/utils/index.js +4 -0
  22. package/dist/clients/utils/labelSpecialUseOrdering.d.ts +3 -0
  23. package/dist/clients/utils/labelSpecialUseOrdering.d.ts.map +1 -0
  24. package/dist/clients/utils/labelSpecialUseOrdering.js +1 -0
  25. package/dist/index.d.ts +3 -2
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +2 -1
  28. package/dist/marcoPublicConfig.d.ts +6 -0
  29. package/dist/marcoPublicConfig.d.ts.map +1 -1
  30. package/dist/marcoPublicConfig.js +18 -0
  31. package/dist/sdk/endpoints/index.d.ts +1073 -0
  32. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  33. package/dist/sdk/endpoints/index.js +2 -0
  34. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +21 -0
  35. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +1 -0
  36. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +16 -0
  37. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +19 -0
  38. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -0
  39. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +19 -0
  40. package/dist/sdk/endpoints/private/emailMessage/index.d.ts +39 -0
  41. package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -0
  42. package/dist/sdk/endpoints/private/emailMessage/index.js +6 -0
  43. package/dist/sdk/endpoints/private/index.d.ts +938 -0
  44. package/dist/sdk/endpoints/private/index.d.ts.map +1 -0
  45. package/dist/sdk/endpoints/private/index.js +8 -0
  46. package/dist/sdk/endpoints/private/sync/index.d.ts +888 -0
  47. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -0
  48. package/dist/sdk/endpoints/private/sync/index.js +3 -0
  49. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +71 -0
  50. package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -0
  51. package/dist/sdk/endpoints/private/sync/pull/account.js +33 -0
  52. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +56 -0
  53. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +1 -0
  54. package/dist/sdk/endpoints/private/sync/pull/contact.js +40 -0
  55. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +72 -0
  56. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -0
  57. package/dist/sdk/endpoints/private/sync/pull/draft.js +36 -0
  58. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +349 -0
  59. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -0
  60. package/dist/sdk/endpoints/private/sync/pull/index.js +6 -0
  61. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +100 -0
  62. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -0
  63. package/dist/sdk/endpoints/private/sync/pull/thread.js +45 -0
  64. package/dist/sdk/endpoints/private/sync/pull/user.d.ts +57 -0
  65. package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -0
  66. package/dist/sdk/endpoints/private/sync/pull/user.js +33 -0
  67. package/dist/sdk/endpoints/private/sync/push/account.d.ts +151 -0
  68. package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -0
  69. package/dist/sdk/endpoints/private/sync/push/account.js +73 -0
  70. package/dist/sdk/endpoints/private/sync/push/draft.d.ts +206 -0
  71. package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -0
  72. package/dist/sdk/endpoints/private/sync/push/draft.js +79 -0
  73. package/dist/sdk/endpoints/private/sync/push/index.d.ts +538 -0
  74. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -0
  75. package/dist/sdk/endpoints/private/sync/push/index.js +5 -0
  76. package/dist/sdk/endpoints/private/sync/push/thread.d.ts +122 -0
  77. package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -0
  78. package/dist/sdk/endpoints/private/sync/push/thread.js +79 -0
  79. package/dist/sdk/endpoints/private/sync/push/user.d.ts +64 -0
  80. package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +1 -0
  81. package/dist/sdk/endpoints/private/sync/push/user.js +43 -0
  82. package/dist/sdk/endpoints/private/user/deleteUser.d.ts +10 -0
  83. package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -0
  84. package/dist/sdk/endpoints/private/user/deleteUser.js +13 -0
  85. package/dist/sdk/endpoints/private/user/index.d.ts +11 -0
  86. package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -0
  87. package/dist/sdk/endpoints/private/user/index.js +4 -0
  88. package/dist/sdk/endpoints/public/auth/index.d.ts +137 -0
  89. package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -0
  90. package/dist/sdk/endpoints/public/auth/index.js +8 -0
  91. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +41 -0
  92. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -0
  93. package/dist/sdk/endpoints/public/auth/refreshAuth.js +33 -0
  94. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +27 -0
  95. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -0
  96. package/dist/sdk/endpoints/public/auth/sendAuthCode.js +19 -0
  97. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +72 -0
  98. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -0
  99. package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +37 -0
  100. package/dist/sdk/endpoints/public/index.d.ts +136 -0
  101. package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
  102. package/dist/sdk/endpoints/public/index.js +2 -0
  103. package/dist/sdk/index.d.ts +1073 -0
  104. package/dist/sdk/index.d.ts.map +1 -1
  105. package/dist/types/Endpoint.d.ts +2 -1
  106. package/dist/types/Endpoint.d.ts.map +1 -1
  107. package/dist/types/MarcoClient.d.ts +12 -0
  108. package/dist/types/MarcoClient.d.ts.map +1 -0
  109. package/dist/types/MarcoClient.js +1 -0
  110. package/dist/types/SDKError.d.ts +4 -0
  111. package/dist/types/SDKError.d.ts.map +1 -0
  112. package/dist/types/SDKError.js +1 -0
  113. package/dist/types/WS.d.ts +7 -0
  114. package/dist/types/WS.d.ts.map +1 -0
  115. package/dist/types/WS.js +1 -0
  116. package/dist/types/index.d.ts +3 -0
  117. package/dist/types/index.d.ts.map +1 -1
  118. package/dist/types/index.js +3 -0
  119. package/dist/ws.d.ts +6 -0
  120. package/dist/ws.d.ts.map +1 -0
  121. package/dist/ws.js +5 -0
  122. package/package.json +1 -2
  123. package/dist/instantDB/index.d.ts +0 -3
  124. package/dist/instantDB/index.d.ts.map +0 -1
  125. package/dist/instantDB/index.js +0 -2
  126. package/dist/instantDB/instant.perms.d.ts +0 -110
  127. package/dist/instantDB/instant.perms.d.ts.map +0 -1
  128. package/dist/instantDB/instant.perms.js +0 -109
  129. package/dist/instantDB/instant.schema.d.ts +0 -313
  130. package/dist/instantDB/instant.schema.d.ts.map +0 -1
  131. package/dist/instantDB/instant.schema.js +0 -156
@@ -0,0 +1,33 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../schemas';
3
+ import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
4
+ import { errors } from '../../../../sdk/validation/errors';
5
+ export const refreshAuth = createEndpoint({
6
+ body: v.object({
7
+ refreshToken: marcoSchemas.string.required(),
8
+ }),
9
+ method: 'POST',
10
+ path: '/v1/pb/auth/refresh',
11
+ response: v.union([
12
+ errors.validationFailedErrorSchema,
13
+ errors.authRefreshTokenInvalid,
14
+ errors.authServerResponseUnexpectedErrorSchema,
15
+ v.object({
16
+ data: v.object({
17
+ accessToken: v.string(),
18
+ refreshToken: v.string(),
19
+ user: v.object({
20
+ createdAt: marcoSchemas.string.required(),
21
+ email: marcoSchemas.string.email(),
22
+ emailVerified: v.boolean(),
23
+ firstName: marcoSchemas.string.nullable(),
24
+ id: marcoSchemas.string.required(),
25
+ lastName: marcoSchemas.string.nullable(),
26
+ profilePictureUrl: marcoSchemas.string.nullable(),
27
+ updatedAt: marcoSchemas.string.required(),
28
+ }),
29
+ }),
30
+ status: v.literal(200),
31
+ }),
32
+ ]),
33
+ });
@@ -0,0 +1,27 @@
1
+ import * as v from 'valibot';
2
+ export declare const sendAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/send-code", v.ObjectSchema<{
3
+ readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
4
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
5
+ readonly data: v.ObjectSchema<{
6
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
7
+ readonly issues: v.ObjectSchema<{
8
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
9
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
10
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
11
+ }, undefined>;
12
+ }, undefined>;
13
+ readonly status: v.LiteralSchema<400, undefined>;
14
+ }, undefined>, v.ObjectSchema<{
15
+ readonly data: v.ObjectSchema<{
16
+ readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
17
+ }, undefined>;
18
+ readonly status: v.LiteralSchema<502, undefined>;
19
+ }, undefined>, v.ObjectSchema<{
20
+ readonly data: v.ObjectSchema<{
21
+ readonly code: v.LiteralSchema<"INVITE_NOT_FOUND", undefined>;
22
+ }, undefined>;
23
+ readonly status: v.LiteralSchema<404, undefined>;
24
+ }, undefined>, v.ObjectSchema<{
25
+ readonly status: v.LiteralSchema<200, undefined>;
26
+ }, undefined>], undefined>>;
27
+ //# sourceMappingURL=sendAuthCode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendAuthCode.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/sendAuthCode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;2BAcvB,CAAA"}
@@ -0,0 +1,19 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../schemas';
3
+ import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
4
+ import { errors } from '../../../../sdk/validation/errors';
5
+ export const sendAuthCode = createEndpoint({
6
+ body: v.object({
7
+ email: marcoSchemas.string.email(),
8
+ }),
9
+ method: 'POST',
10
+ path: '/v1/pb/auth/send-code',
11
+ response: v.union([
12
+ errors.validationFailedErrorSchema,
13
+ errors.authServerResponseUnexpectedErrorSchema,
14
+ errors.inviteNotFoundErrorSchema,
15
+ v.object({
16
+ status: v.literal(200),
17
+ }),
18
+ ]),
19
+ });
@@ -0,0 +1,72 @@
1
+ import * as v from 'valibot';
2
+ export declare const verifyAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/verify-code", v.UnionSchema<[v.ObjectSchema<{
3
+ readonly authType: v.LiteralSchema<"CODE", undefined>;
4
+ readonly code: v.StringSchema<undefined>;
5
+ readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
6
+ }, undefined>, v.ObjectSchema<{
7
+ readonly authType: v.LiteralSchema<"PASSWORD", undefined>;
8
+ readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
9
+ readonly password: v.StringSchema<undefined>;
10
+ }, undefined>], undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
11
+ readonly data: v.ObjectSchema<{
12
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
13
+ readonly issues: v.ObjectSchema<{
14
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
15
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
16
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
17
+ }, undefined>;
18
+ }, undefined>;
19
+ readonly status: v.LiteralSchema<400, undefined>;
20
+ }, undefined>, v.ObjectSchema<{
21
+ readonly data: v.ObjectSchema<{
22
+ readonly code: v.LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
23
+ }, undefined>;
24
+ readonly status: v.LiteralSchema<401, undefined>;
25
+ }, undefined>, v.ObjectSchema<{
26
+ readonly data: v.ObjectSchema<{
27
+ readonly code: v.LiteralSchema<"AUTH_CODE_INVALID", undefined>;
28
+ }, undefined>;
29
+ readonly status: v.LiteralSchema<401, undefined>;
30
+ }, undefined>, v.ObjectSchema<{
31
+ readonly data: v.ObjectSchema<{
32
+ readonly code: v.LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
33
+ }, undefined>;
34
+ readonly status: v.LiteralSchema<401, undefined>;
35
+ }, undefined>, v.ObjectSchema<{
36
+ readonly data: v.ObjectSchema<{
37
+ readonly code: v.LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
38
+ }, undefined>;
39
+ readonly status: v.LiteralSchema<401, undefined>;
40
+ }, undefined>, v.ObjectSchema<{
41
+ readonly data: v.ObjectSchema<{
42
+ readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
43
+ }, undefined>;
44
+ readonly status: v.LiteralSchema<502, undefined>;
45
+ }, undefined>, v.ObjectSchema<{
46
+ readonly data: v.ObjectSchema<{
47
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
48
+ }, undefined>;
49
+ readonly status: v.LiteralSchema<404, undefined>;
50
+ }, undefined>, v.ObjectSchema<{
51
+ readonly data: v.ObjectSchema<{
52
+ readonly code: v.LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
53
+ }, undefined>;
54
+ readonly status: v.LiteralSchema<409, undefined>;
55
+ }, undefined>, v.ObjectSchema<{
56
+ readonly data: v.ObjectSchema<{
57
+ readonly accessToken: v.StringSchema<undefined>;
58
+ readonly refreshToken: v.StringSchema<undefined>;
59
+ readonly user: v.ObjectSchema<{
60
+ readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
61
+ readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
62
+ readonly emailVerified: v.BooleanSchema<undefined>;
63
+ readonly firstName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
64
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
65
+ readonly lastName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
66
+ readonly profilePictureUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
67
+ readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
68
+ }, undefined>;
69
+ }, undefined>;
70
+ readonly status: v.LiteralSchema<200, undefined>;
71
+ }, undefined>], undefined>>;
72
+ //# sourceMappingURL=verifyAuthCode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifyAuthCode.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/verifyAuthCode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+BzB,CAAA"}
@@ -0,0 +1,37 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../schemas';
3
+ import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
4
+ import { errors } from '../../../../sdk/validation/errors';
5
+ const verifyAuthCodeBody = v.union([marcoSchemas.auth.code, marcoSchemas.auth.password]);
6
+ export const verifyAuthCode = createEndpoint({
7
+ body: verifyAuthCodeBody,
8
+ method: 'POST',
9
+ path: '/v1/pb/auth/verify-code',
10
+ response: v.union([
11
+ errors.validationFailedErrorSchema,
12
+ errors.authCodeExpiredErrorSchema,
13
+ errors.authCodeInvalidErrorSchema,
14
+ errors.authCodePreviouslyUsedErrorSchema,
15
+ errors.authTooManyAttemptsErrorSchema,
16
+ errors.authServerResponseUnexpectedErrorSchema,
17
+ errors.userNotFoundErrorSchema,
18
+ errors.userMarkedForDeletionErrorSchema,
19
+ v.object({
20
+ data: v.object({
21
+ accessToken: v.string(),
22
+ refreshToken: v.string(),
23
+ user: v.object({
24
+ createdAt: marcoSchemas.string.required(),
25
+ email: marcoSchemas.string.email(),
26
+ emailVerified: v.boolean(),
27
+ firstName: marcoSchemas.string.nullable(),
28
+ id: marcoSchemas.string.required(),
29
+ lastName: marcoSchemas.string.nullable(),
30
+ profilePictureUrl: marcoSchemas.string.nullable(),
31
+ updatedAt: marcoSchemas.string.required(),
32
+ }),
33
+ }),
34
+ status: v.literal(200),
35
+ }),
36
+ ]),
37
+ });
@@ -1,4 +1,140 @@
1
1
  export declare const publicGroup: {
2
+ auth: {
3
+ refreshAuth: import("../../..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
4
+ readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
5
+ }, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
6
+ readonly data: import("valibot").ObjectSchema<{
7
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
8
+ readonly issues: import("valibot").ObjectSchema<{
9
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
10
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
11
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
12
+ }, undefined>;
13
+ }, undefined>;
14
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
15
+ }, undefined>, import("valibot").ObjectSchema<{
16
+ readonly data: import("valibot").ObjectSchema<{
17
+ readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
18
+ }, undefined>;
19
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
20
+ }, undefined>, import("valibot").ObjectSchema<{
21
+ readonly data: import("valibot").ObjectSchema<{
22
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
23
+ }, undefined>;
24
+ readonly status: import("valibot").LiteralSchema<502, undefined>;
25
+ }, undefined>, import("valibot").ObjectSchema<{
26
+ readonly data: import("valibot").ObjectSchema<{
27
+ readonly accessToken: import("valibot").StringSchema<undefined>;
28
+ readonly refreshToken: import("valibot").StringSchema<undefined>;
29
+ readonly user: import("valibot").ObjectSchema<{
30
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
31
+ readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
32
+ readonly emailVerified: import("valibot").BooleanSchema<undefined>;
33
+ readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
34
+ 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>;
35
+ readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
36
+ readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
37
+ readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
38
+ }, undefined>;
39
+ }, undefined>;
40
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
41
+ }, undefined>], undefined>>;
42
+ sendAuthCode: import("../../..").EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
43
+ readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
44
+ }, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
45
+ readonly data: import("valibot").ObjectSchema<{
46
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
47
+ readonly issues: import("valibot").ObjectSchema<{
48
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
49
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
50
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
51
+ }, undefined>;
52
+ }, undefined>;
53
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
54
+ }, undefined>, import("valibot").ObjectSchema<{
55
+ readonly data: import("valibot").ObjectSchema<{
56
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
57
+ }, undefined>;
58
+ readonly status: import("valibot").LiteralSchema<502, undefined>;
59
+ }, undefined>, import("valibot").ObjectSchema<{
60
+ readonly data: import("valibot").ObjectSchema<{
61
+ readonly code: import("valibot").LiteralSchema<"INVITE_NOT_FOUND", undefined>;
62
+ }, undefined>;
63
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
64
+ }, undefined>, import("valibot").ObjectSchema<{
65
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
66
+ }, undefined>], undefined>>;
67
+ verifyAuthCode: import("../../..").EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
68
+ readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
69
+ readonly code: import("valibot").StringSchema<undefined>;
70
+ readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
71
+ }, undefined>, import("valibot").ObjectSchema<{
72
+ readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
73
+ readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
74
+ readonly password: import("valibot").StringSchema<undefined>;
75
+ }, undefined>], undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
76
+ readonly data: import("valibot").ObjectSchema<{
77
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
78
+ readonly issues: import("valibot").ObjectSchema<{
79
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
80
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
81
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
82
+ }, undefined>;
83
+ }, undefined>;
84
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
85
+ }, undefined>, import("valibot").ObjectSchema<{
86
+ readonly data: import("valibot").ObjectSchema<{
87
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
88
+ }, undefined>;
89
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
90
+ }, undefined>, import("valibot").ObjectSchema<{
91
+ readonly data: import("valibot").ObjectSchema<{
92
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_INVALID", undefined>;
93
+ }, undefined>;
94
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
95
+ }, undefined>, import("valibot").ObjectSchema<{
96
+ readonly data: import("valibot").ObjectSchema<{
97
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
98
+ }, undefined>;
99
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
100
+ }, undefined>, import("valibot").ObjectSchema<{
101
+ readonly data: import("valibot").ObjectSchema<{
102
+ readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
103
+ }, undefined>;
104
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
105
+ }, undefined>, import("valibot").ObjectSchema<{
106
+ readonly data: import("valibot").ObjectSchema<{
107
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
108
+ }, undefined>;
109
+ readonly status: import("valibot").LiteralSchema<502, undefined>;
110
+ }, undefined>, import("valibot").ObjectSchema<{
111
+ readonly data: import("valibot").ObjectSchema<{
112
+ readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
113
+ }, undefined>;
114
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
115
+ }, undefined>, import("valibot").ObjectSchema<{
116
+ readonly data: import("valibot").ObjectSchema<{
117
+ readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
118
+ }, undefined>;
119
+ readonly status: import("valibot").LiteralSchema<409, undefined>;
120
+ }, undefined>, import("valibot").ObjectSchema<{
121
+ readonly data: import("valibot").ObjectSchema<{
122
+ readonly accessToken: import("valibot").StringSchema<undefined>;
123
+ readonly refreshToken: import("valibot").StringSchema<undefined>;
124
+ readonly user: import("valibot").ObjectSchema<{
125
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
126
+ readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
127
+ readonly emailVerified: import("valibot").BooleanSchema<undefined>;
128
+ readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
129
+ 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>;
130
+ readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
131
+ readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
132
+ readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
133
+ }, undefined>;
134
+ }, undefined>;
135
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
136
+ }, undefined>], undefined>>;
137
+ };
2
138
  config: import("../../..").EndpointConfig<"/v1/pb/config", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").ObjectSchema<{
3
139
  readonly data: import("valibot").ObjectSchema<{
4
140
  readonly app: import("valibot").ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;CAGvB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAA"}
@@ -1,6 +1,8 @@
1
+ import { auth } from './auth';
1
2
  import { config } from './config';
2
3
  import { healthcheck } from './healthcheck';
3
4
  export const publicGroup = {
5
+ auth,
4
6
  config,
5
7
  healthcheck,
6
8
  };