@marcoappio/marco-config 2.0.408 → 2.0.409

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 (144) hide show
  1. package/dist/constants/emailProvider.d.ts.map +1 -1
  2. package/dist/index.d.ts +3 -4
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +2 -3
  5. package/dist/marcoPublicConfig.d.ts +0 -6
  6. package/dist/marcoPublicConfig.d.ts.map +1 -1
  7. package/dist/marcoPublicConfig.js +15 -32
  8. package/dist/schemas/app.d.ts.map +1 -1
  9. package/dist/schemas/app.js +1 -5
  10. package/dist/schemas/drafts.d.ts.map +1 -1
  11. package/dist/schemas/drafts.js +1 -4
  12. package/dist/schemas/emailAccount.d.ts.map +1 -1
  13. package/dist/schemas/emailAccount.js +1 -4
  14. package/dist/schemas/labels.d.ts.map +1 -1
  15. package/dist/schemas/labels.js +1 -7
  16. package/dist/schemas/number.d.ts.map +1 -1
  17. package/dist/schemas/oauth.d.ts.map +1 -1
  18. package/dist/schemas/oauth.js +1 -4
  19. package/dist/schemas/pushNotifications.d.ts.map +1 -1
  20. package/dist/schemas/pushNotifications.js +1 -3
  21. package/dist/schemas/string.d.ts.map +1 -1
  22. package/dist/sdk/endpoints/createEndpointConfig.d.ts +2 -2
  23. package/dist/sdk/endpoints/createEndpointConfig.d.ts.map +1 -1
  24. package/dist/sdk/endpoints/index.d.ts +2 -1083
  25. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  26. package/dist/sdk/endpoints/index.js +0 -2
  27. package/dist/sdk/endpoints/public/index.d.ts +0 -136
  28. package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
  29. package/dist/sdk/endpoints/public/index.js +0 -2
  30. package/dist/sdk/index.d.ts +0 -1081
  31. package/dist/sdk/index.d.ts.map +1 -1
  32. package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts +1 -1
  33. package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts.map +1 -1
  34. package/dist/types/Endpoint.d.ts +2 -3
  35. package/dist/types/Endpoint.d.ts.map +1 -1
  36. package/dist/types/index.d.ts +0 -3
  37. package/dist/types/index.d.ts.map +1 -1
  38. package/dist/types/index.js +0 -3
  39. package/dist/utils/accounts/generateAccountColor.d.ts.map +1 -1
  40. package/dist/utils/accounts/generateAccountColor.js +12 -3
  41. package/dist/utils/stringPatch/stringPatch.d.ts +2 -2
  42. package/dist/utils/stringPatch/stringPatch.d.ts.map +1 -1
  43. package/dist/utils/stringPatch/stringPatch.test.js +2 -2
  44. package/package.json +38 -46
  45. package/.eslintrc.json +0 -294
  46. package/dist/clients/account.d.ts +0 -144
  47. package/dist/clients/account.d.ts.map +0 -1
  48. package/dist/clients/account.js +0 -93
  49. package/dist/clients/contact.d.ts +0 -14
  50. package/dist/clients/contact.d.ts.map +0 -1
  51. package/dist/clients/contact.js +0 -14
  52. package/dist/clients/draft.d.ts +0 -202
  53. package/dist/clients/draft.d.ts.map +0 -1
  54. package/dist/clients/draft.js +0 -137
  55. package/dist/clients/index.d.ts +0 -532
  56. package/dist/clients/index.d.ts.map +0 -1
  57. package/dist/clients/index.js +0 -13
  58. package/dist/clients/thread.d.ts +0 -125
  59. package/dist/clients/thread.d.ts.map +0 -1
  60. package/dist/clients/thread.js +0 -121
  61. package/dist/clients/user.d.ts +0 -53
  62. package/dist/clients/user.d.ts.map +0 -1
  63. package/dist/clients/user.js +0 -52
  64. package/dist/clients/utils/index.d.ts +0 -4
  65. package/dist/clients/utils/index.d.ts.map +0 -1
  66. package/dist/clients/utils/index.js +0 -4
  67. package/dist/clients/utils/labelSpecialUseOrdering.d.ts +0 -3
  68. package/dist/clients/utils/labelSpecialUseOrdering.d.ts.map +0 -1
  69. package/dist/clients/utils/labelSpecialUseOrdering.js +0 -7
  70. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +0 -21
  71. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +0 -1
  72. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +0 -16
  73. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +0 -19
  74. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +0 -1
  75. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +0 -19
  76. package/dist/sdk/endpoints/private/emailMessage/index.d.ts +0 -39
  77. package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +0 -1
  78. package/dist/sdk/endpoints/private/emailMessage/index.js +0 -6
  79. package/dist/sdk/endpoints/private/index.d.ts +0 -946
  80. package/dist/sdk/endpoints/private/index.d.ts.map +0 -1
  81. package/dist/sdk/endpoints/private/index.js +0 -8
  82. package/dist/sdk/endpoints/private/sync/index.d.ts +0 -896
  83. package/dist/sdk/endpoints/private/sync/index.d.ts.map +0 -1
  84. package/dist/sdk/endpoints/private/sync/index.js +0 -3
  85. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +0 -71
  86. package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +0 -1
  87. package/dist/sdk/endpoints/private/sync/pull/account.js +0 -33
  88. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +0 -56
  89. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +0 -1
  90. package/dist/sdk/endpoints/private/sync/pull/contact.js +0 -40
  91. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +0 -72
  92. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +0 -1
  93. package/dist/sdk/endpoints/private/sync/pull/draft.js +0 -36
  94. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +0 -349
  95. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +0 -1
  96. package/dist/sdk/endpoints/private/sync/pull/index.js +0 -6
  97. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +0 -100
  98. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +0 -1
  99. package/dist/sdk/endpoints/private/sync/pull/thread.js +0 -45
  100. package/dist/sdk/endpoints/private/sync/pull/user.d.ts +0 -57
  101. package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +0 -1
  102. package/dist/sdk/endpoints/private/sync/pull/user.js +0 -33
  103. package/dist/sdk/endpoints/private/sync/push/account.d.ts +0 -151
  104. package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +0 -1
  105. package/dist/sdk/endpoints/private/sync/push/account.js +0 -73
  106. package/dist/sdk/endpoints/private/sync/push/draft.d.ts +0 -214
  107. package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +0 -1
  108. package/dist/sdk/endpoints/private/sync/push/draft.js +0 -85
  109. package/dist/sdk/endpoints/private/sync/push/index.d.ts +0 -546
  110. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +0 -1
  111. package/dist/sdk/endpoints/private/sync/push/index.js +0 -5
  112. package/dist/sdk/endpoints/private/sync/push/thread.d.ts +0 -122
  113. package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +0 -1
  114. package/dist/sdk/endpoints/private/sync/push/thread.js +0 -79
  115. package/dist/sdk/endpoints/private/sync/push/user.d.ts +0 -64
  116. package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +0 -1
  117. package/dist/sdk/endpoints/private/sync/push/user.js +0 -43
  118. package/dist/sdk/endpoints/private/user/deleteUser.d.ts +0 -10
  119. package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +0 -1
  120. package/dist/sdk/endpoints/private/user/deleteUser.js +0 -13
  121. package/dist/sdk/endpoints/private/user/index.d.ts +0 -11
  122. package/dist/sdk/endpoints/private/user/index.d.ts.map +0 -1
  123. package/dist/sdk/endpoints/private/user/index.js +0 -4
  124. package/dist/sdk/endpoints/public/auth/index.d.ts +0 -137
  125. package/dist/sdk/endpoints/public/auth/index.d.ts.map +0 -1
  126. package/dist/sdk/endpoints/public/auth/index.js +0 -8
  127. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +0 -41
  128. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +0 -1
  129. package/dist/sdk/endpoints/public/auth/refreshAuth.js +0 -33
  130. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +0 -27
  131. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +0 -1
  132. package/dist/sdk/endpoints/public/auth/sendAuthCode.js +0 -19
  133. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +0 -72
  134. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +0 -1
  135. package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +0 -40
  136. package/dist/types/MarcoClient.d.ts +0 -14
  137. package/dist/types/MarcoClient.d.ts.map +0 -1
  138. package/dist/types/MarcoClient.js +0 -1
  139. package/dist/types/SDKError.d.ts +0 -4
  140. package/dist/types/SDKError.d.ts.map +0 -1
  141. package/dist/types/SDKError.js +0 -1
  142. package/dist/types/WS.d.ts +0 -7
  143. package/dist/types/WS.d.ts.map +0 -1
  144. package/dist/types/WS.js +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAA"}
@@ -1,5 +0,0 @@
1
- import { syncPushAccount as account } from './account';
2
- import { syncPushDraft as draft } from './draft';
3
- import { syncPushThread as thread } from './thread';
4
- import { syncPushUser as user } from './user';
5
- export const push = { account, draft, thread, user };
@@ -1,122 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const syncPushThread: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/thread", v.ObjectSchema<{
3
- readonly clientGroupID: v.StringSchema<undefined>;
4
- readonly mutations: v.ArraySchema<v.UnionSchema<(v.ObjectSchema<{
5
- readonly args: v.ObjectSchema<{
6
- readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
8
- }, undefined>;
9
- readonly clientID: v.StringSchema<undefined>;
10
- readonly id: v.NumberSchema<undefined>;
11
- readonly name: v.LiteralSchema<"addLabel", undefined>;
12
- }, undefined> | v.ObjectSchema<{
13
- readonly args: v.UnionSchema<[v.ObjectSchema<{
14
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
15
- }, undefined>, v.ObjectSchema<{
16
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
17
- }, undefined>], undefined>;
18
- readonly clientID: v.StringSchema<undefined>;
19
- readonly id: v.NumberSchema<undefined>;
20
- readonly name: v.LiteralSchema<"delete", undefined>;
21
- }, undefined> | v.ObjectSchema<{
22
- readonly args: v.ObjectSchema<{
23
- readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
24
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
25
- }, undefined>;
26
- readonly clientID: v.StringSchema<undefined>;
27
- readonly id: v.NumberSchema<undefined>;
28
- readonly name: v.LiteralSchema<"removeLabel", undefined>;
29
- }, undefined> | v.ObjectSchema<{
30
- readonly args: v.UnionSchema<readonly [v.ObjectSchema<{
31
- readonly attachmentId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
32
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
- }, undefined>, v.ObjectSchema<{
34
- readonly attachmentIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
35
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
36
- }, undefined>], undefined>;
37
- readonly clientID: v.StringSchema<undefined>;
38
- readonly id: v.NumberSchema<undefined>;
39
- readonly name: v.LiteralSchema<"requestAttachmentDownload", undefined>;
40
- }, undefined> | v.ObjectSchema<{
41
- readonly args: v.UnionSchema<[v.ObjectSchema<{
42
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
43
- }, undefined>, v.ObjectSchema<{
44
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
45
- }, undefined>], undefined>;
46
- readonly clientID: v.StringSchema<undefined>;
47
- readonly id: v.NumberSchema<undefined>;
48
- readonly name: v.LiteralSchema<"setArchive", undefined>;
49
- }, undefined> | v.ObjectSchema<{
50
- readonly args: v.UnionSchema<readonly [v.ObjectSchema<{
51
- readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
52
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
53
- }, undefined>, v.ObjectSchema<{
54
- readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
55
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
56
- }, undefined>], undefined>;
57
- readonly clientID: v.StringSchema<undefined>;
58
- readonly id: v.NumberSchema<undefined>;
59
- readonly name: v.LiteralSchema<"setFlagged", undefined>;
60
- }, undefined> | v.ObjectSchema<{
61
- readonly args: v.UnionSchema<[v.ObjectSchema<{
62
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
63
- }, undefined>, v.ObjectSchema<{
64
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
65
- }, undefined>], undefined>;
66
- readonly clientID: v.StringSchema<undefined>;
67
- readonly id: v.NumberSchema<undefined>;
68
- readonly name: v.LiteralSchema<"setInbox", undefined>;
69
- }, undefined> | v.ObjectSchema<{
70
- readonly args: v.UnionSchema<readonly [v.ObjectSchema<{
71
- readonly seen: v.BooleanSchema<undefined>;
72
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
73
- }, undefined>, v.ObjectSchema<{
74
- readonly seen: v.BooleanSchema<undefined>;
75
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
76
- }, undefined>], undefined>;
77
- readonly clientID: v.StringSchema<undefined>;
78
- readonly id: v.NumberSchema<undefined>;
79
- readonly name: v.LiteralSchema<"setSeen", undefined>;
80
- }, undefined> | v.ObjectSchema<{
81
- readonly args: v.UnionSchema<[v.ObjectSchema<{
82
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
83
- }, undefined>, v.ObjectSchema<{
84
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
85
- }, undefined>], undefined>;
86
- readonly clientID: v.StringSchema<undefined>;
87
- readonly id: v.NumberSchema<undefined>;
88
- readonly name: v.LiteralSchema<"setSpam", undefined>;
89
- }, undefined> | v.ObjectSchema<{
90
- readonly args: v.UnionSchema<[v.ObjectSchema<{
91
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
92
- }, undefined>, v.ObjectSchema<{
93
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
94
- }, undefined>], undefined>;
95
- readonly clientID: v.StringSchema<undefined>;
96
- readonly id: v.NumberSchema<undefined>;
97
- readonly name: v.LiteralSchema<"setTrash", undefined>;
98
- }, undefined>)[], undefined>, undefined>;
99
- }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
100
- readonly data: v.ObjectSchema<{
101
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
102
- readonly issues: v.ObjectSchema<{
103
- readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
104
- readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
105
- readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
106
- }, undefined>;
107
- }, undefined>;
108
- readonly status: v.LiteralSchema<400, undefined>;
109
- }, undefined>, v.ObjectSchema<{
110
- readonly data: v.ObjectSchema<{
111
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
112
- }, undefined>;
113
- readonly status: v.LiteralSchema<401, undefined>;
114
- }, undefined>, v.ObjectSchema<{
115
- readonly data: v.ObjectSchema<{
116
- readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
117
- }, undefined>;
118
- readonly status: v.LiteralSchema<409, undefined>;
119
- }, undefined>, v.ObjectSchema<{
120
- readonly status: v.LiteralSchema<200, undefined>;
121
- }, undefined>], undefined>>;
122
- //# sourceMappingURL=thread.d.ts.map
@@ -1 +0,0 @@
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA8EzB,CAAA"}
@@ -1,79 +0,0 @@
1
- import * as v from 'valibot';
2
- import { thread } from '../../../../../clients/thread';
3
- import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
- import { errors } from '../../../../../sdk/validation/errors';
5
- export const syncPushThread = createEndpoint({
6
- body: v.object({
7
- clientGroupID: v.string(),
8
- mutations: v.array(v.union(Object.values({
9
- addLabel: v.object({
10
- args: thread.mutators.addLabel.delta,
11
- clientID: v.string(),
12
- id: v.number(),
13
- name: v.literal('addLabel'),
14
- }),
15
- delete: v.object({
16
- args: thread.mutators.delete.delta,
17
- clientID: v.string(),
18
- id: v.number(),
19
- name: v.literal('delete'),
20
- }),
21
- removeLabel: v.object({
22
- args: thread.mutators.removeLabel.delta,
23
- clientID: v.string(),
24
- id: v.number(),
25
- name: v.literal('removeLabel'),
26
- }),
27
- requestAttachmentDownload: v.object({
28
- args: thread.mutators.requestAttachmentDownload.delta,
29
- clientID: v.string(),
30
- id: v.number(),
31
- name: v.literal('requestAttachmentDownload'),
32
- }),
33
- setArchive: v.object({
34
- args: thread.mutators.setArchive.delta,
35
- clientID: v.string(),
36
- id: v.number(),
37
- name: v.literal('setArchive'),
38
- }),
39
- setFlagged: v.object({
40
- args: thread.mutators.setFlagged.delta,
41
- clientID: v.string(),
42
- id: v.number(),
43
- name: v.literal('setFlagged'),
44
- }),
45
- setInbox: v.object({
46
- args: thread.mutators.setInbox.delta,
47
- clientID: v.string(),
48
- id: v.number(),
49
- name: v.literal('setInbox'),
50
- }),
51
- setSeen: v.object({
52
- args: thread.mutators.setSeen.delta,
53
- clientID: v.string(),
54
- id: v.number(),
55
- name: v.literal('setSeen'),
56
- }),
57
- setSpam: v.object({
58
- args: thread.mutators.setSpam.delta,
59
- clientID: v.string(),
60
- id: v.number(),
61
- name: v.literal('setSpam'),
62
- }),
63
- setTrash: v.object({
64
- args: thread.mutators.setTrash.delta,
65
- clientID: v.string(),
66
- id: v.number(),
67
- name: v.literal('setTrash'),
68
- }),
69
- }))),
70
- }),
71
- method: 'POST',
72
- path: thread.pushUrl,
73
- response: v.union([
74
- errors.validationFailedErrorSchema,
75
- errors.authFailedErrorSchema,
76
- errors.mutationRejectedErrorSchema,
77
- v.object({ status: v.literal(200) }),
78
- ]),
79
- });
@@ -1,64 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const syncPushUser: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/user", v.ObjectSchema<{
3
- readonly clientGroupID: v.StringSchema<undefined>;
4
- readonly mutations: v.ArraySchema<v.UnionSchema<(v.ObjectSchema<{
5
- readonly args: v.ObjectSchema<{
6
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
- readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
8
- }, undefined>;
9
- readonly clientID: v.StringSchema<undefined>;
10
- readonly id: v.NumberSchema<undefined>;
11
- readonly name: v.LiteralSchema<"deleteSettingsPushNotificationToken", undefined>;
12
- }, undefined> | v.ObjectSchema<{
13
- readonly args: v.ObjectSchema<{
14
- readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
15
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
16
- }, undefined>;
17
- readonly clientID: v.StringSchema<undefined>;
18
- readonly id: v.NumberSchema<undefined>;
19
- readonly name: v.LiteralSchema<"deleteSettingsPushNotificationTokenForDevice", undefined>;
20
- }, undefined> | v.ObjectSchema<{
21
- readonly args: v.ObjectSchema<{
22
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
23
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
24
- }, undefined>;
25
- readonly clientID: v.StringSchema<undefined>;
26
- readonly id: v.NumberSchema<undefined>;
27
- readonly name: v.LiteralSchema<"setSettingsName", undefined>;
28
- }, undefined> | v.ObjectSchema<{
29
- readonly args: v.ObjectSchema<{
30
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
31
- readonly pushNotificationToken: v.ObjectSchema<{
32
- readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
33
- readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
- readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
35
- }, undefined>;
36
- }, undefined>;
37
- readonly clientID: v.StringSchema<undefined>;
38
- readonly id: v.NumberSchema<undefined>;
39
- readonly name: v.LiteralSchema<"setSettingsPushNotificationToken", undefined>;
40
- }, undefined>)[], undefined>, undefined>;
41
- }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
42
- readonly data: v.ObjectSchema<{
43
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
44
- readonly issues: v.ObjectSchema<{
45
- readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
46
- readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
47
- readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
48
- }, undefined>;
49
- }, undefined>;
50
- readonly status: v.LiteralSchema<400, undefined>;
51
- }, undefined>, v.ObjectSchema<{
52
- readonly data: v.ObjectSchema<{
53
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
54
- }, undefined>;
55
- readonly status: v.LiteralSchema<401, undefined>;
56
- }, undefined>, v.ObjectSchema<{
57
- readonly data: v.ObjectSchema<{
58
- readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
59
- }, undefined>;
60
- readonly status: v.LiteralSchema<409, undefined>;
61
- }, undefined>, v.ObjectSchema<{
62
- readonly status: v.LiteralSchema<200, undefined>;
63
- }, undefined>], undefined>>;
64
- //# sourceMappingURL=user.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0CvB,CAAA"}
@@ -1,43 +0,0 @@
1
- import * as v from 'valibot';
2
- import { user } from '../../../../../clients/user';
3
- import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
- import { errors } from '../../../../../sdk/validation/errors';
5
- export const syncPushUser = createEndpoint({
6
- body: v.object({
7
- clientGroupID: v.string(),
8
- mutations: v.array(v.union(Object.values({
9
- deleteSettingsPushNotificationToken: v.object({
10
- args: user.mutators.deleteSettingsPushNotificationToken.delta,
11
- clientID: v.string(),
12
- id: v.number(),
13
- name: v.literal('deleteSettingsPushNotificationToken'),
14
- }),
15
- deleteSettingsPushNotificationTokenForDevice: v.object({
16
- args: user.mutators.deleteSettingsPushNotificationTokenForDevice.delta,
17
- clientID: v.string(),
18
- id: v.number(),
19
- name: v.literal('deleteSettingsPushNotificationTokenForDevice'),
20
- }),
21
- setSettingsName: v.object({
22
- args: user.mutators.setSettingsName.delta,
23
- clientID: v.string(),
24
- id: v.number(),
25
- name: v.literal('setSettingsName'),
26
- }),
27
- setSettingsPushNotificationToken: v.object({
28
- args: user.mutators.setSettingsPushNotificationToken.delta,
29
- clientID: v.string(),
30
- id: v.number(),
31
- name: v.literal('setSettingsPushNotificationToken'),
32
- }),
33
- }))),
34
- }),
35
- method: 'POST',
36
- path: user.pushUrl,
37
- response: v.union([
38
- errors.validationFailedErrorSchema,
39
- errors.authFailedErrorSchema,
40
- errors.mutationRejectedErrorSchema,
41
- v.object({ status: v.literal(200) }),
42
- ]),
43
- });
@@ -1,10 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const deleteUser: import("../../../..").EndpointConfig<"/v1/pv/user", v.GenericSchema | undefined, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
3
- readonly data: v.ObjectSchema<{
4
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
5
- }, undefined>;
6
- readonly status: v.LiteralSchema<401, undefined>;
7
- }, undefined>, v.ObjectSchema<{
8
- readonly status: v.LiteralSchema<204, undefined>;
9
- }, undefined>], undefined>>;
10
- //# sourceMappingURL=deleteUser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deleteUser.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/deleteUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,UAAU;;;;;;;2BASrB,CAAA"}
@@ -1,13 +0,0 @@
1
- import * as v from 'valibot';
2
- import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
- import { authFailedErrorSchema } from '../../../../sdk/validation/errors';
4
- export const deleteUser = createEndpoint({
5
- method: 'DELETE',
6
- path: '/v1/pv/user',
7
- response: v.union([
8
- authFailedErrorSchema,
9
- v.object({
10
- status: v.literal(204),
11
- }),
12
- ]),
13
- });
@@ -1,11 +0,0 @@
1
- export declare const user: {
2
- deleteUser: import("../../../..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
3
- readonly data: import("valibot").ObjectSchema<{
4
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
5
- }, undefined>;
6
- readonly status: import("valibot").LiteralSchema<401, undefined>;
7
- }, undefined>, import("valibot").ObjectSchema<{
8
- readonly status: import("valibot").LiteralSchema<204, undefined>;
9
- }, undefined>], undefined>>;
10
- };
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;;;CAEhB,CAAA"}
@@ -1,4 +0,0 @@
1
- import { deleteUser } from './deleteUser';
2
- export const user = {
3
- deleteUser,
4
- };
@@ -1,137 +0,0 @@
1
- export declare const auth: {
2
- refreshAuth: import("../../../..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
3
- 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>;
4
- }, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
5
- readonly data: import("valibot").ObjectSchema<{
6
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
7
- readonly issues: import("valibot").ObjectSchema<{
8
- 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>;
9
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
10
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
11
- }, undefined>;
12
- }, undefined>;
13
- readonly status: import("valibot").LiteralSchema<400, undefined>;
14
- }, undefined>, import("valibot").ObjectSchema<{
15
- readonly data: import("valibot").ObjectSchema<{
16
- readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
17
- }, undefined>;
18
- readonly status: import("valibot").LiteralSchema<401, undefined>;
19
- }, undefined>, import("valibot").ObjectSchema<{
20
- readonly data: import("valibot").ObjectSchema<{
21
- readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
22
- }, undefined>;
23
- readonly status: import("valibot").LiteralSchema<502, undefined>;
24
- }, undefined>, import("valibot").ObjectSchema<{
25
- readonly data: import("valibot").ObjectSchema<{
26
- readonly accessToken: import("valibot").StringSchema<undefined>;
27
- readonly refreshToken: import("valibot").StringSchema<undefined>;
28
- readonly user: import("valibot").ObjectSchema<{
29
- 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>;
30
- 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>;
31
- readonly emailVerified: import("valibot").BooleanSchema<undefined>;
32
- 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>;
33
- 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>;
34
- 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>;
35
- 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>;
36
- 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>;
37
- }, undefined>;
38
- }, undefined>;
39
- readonly status: import("valibot").LiteralSchema<200, undefined>;
40
- }, undefined>], undefined>>;
41
- sendAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
42
- 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>;
43
- }, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
44
- readonly data: import("valibot").ObjectSchema<{
45
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
46
- readonly issues: import("valibot").ObjectSchema<{
47
- 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>;
48
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
49
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
50
- }, undefined>;
51
- }, undefined>;
52
- readonly status: import("valibot").LiteralSchema<400, undefined>;
53
- }, undefined>, import("valibot").ObjectSchema<{
54
- readonly data: import("valibot").ObjectSchema<{
55
- readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
56
- }, undefined>;
57
- readonly status: import("valibot").LiteralSchema<502, undefined>;
58
- }, undefined>, import("valibot").ObjectSchema<{
59
- readonly data: import("valibot").ObjectSchema<{
60
- readonly code: import("valibot").LiteralSchema<"INVITE_NOT_FOUND", undefined>;
61
- }, undefined>;
62
- readonly status: import("valibot").LiteralSchema<404, undefined>;
63
- }, undefined>, import("valibot").ObjectSchema<{
64
- readonly status: import("valibot").LiteralSchema<200, undefined>;
65
- }, undefined>], undefined>>;
66
- verifyAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
67
- readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
68
- readonly code: import("valibot").StringSchema<undefined>;
69
- 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>;
70
- }, undefined>, import("valibot").ObjectSchema<{
71
- readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
72
- 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>;
73
- readonly password: import("valibot").StringSchema<undefined>;
74
- }, undefined>], undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
75
- readonly data: import("valibot").ObjectSchema<{
76
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
77
- readonly issues: import("valibot").ObjectSchema<{
78
- 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>;
79
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
80
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
81
- }, undefined>;
82
- }, undefined>;
83
- readonly status: import("valibot").LiteralSchema<400, undefined>;
84
- }, undefined>, import("valibot").ObjectSchema<{
85
- readonly data: import("valibot").ObjectSchema<{
86
- readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
87
- }, undefined>;
88
- readonly status: import("valibot").LiteralSchema<401, undefined>;
89
- }, undefined>, import("valibot").ObjectSchema<{
90
- readonly data: import("valibot").ObjectSchema<{
91
- readonly code: import("valibot").LiteralSchema<"AUTH_CODE_INVALID", undefined>;
92
- }, undefined>;
93
- readonly status: import("valibot").LiteralSchema<401, undefined>;
94
- }, undefined>, import("valibot").ObjectSchema<{
95
- readonly data: import("valibot").ObjectSchema<{
96
- readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
97
- }, undefined>;
98
- readonly status: import("valibot").LiteralSchema<401, undefined>;
99
- }, undefined>, import("valibot").ObjectSchema<{
100
- readonly data: import("valibot").ObjectSchema<{
101
- readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
102
- }, undefined>;
103
- readonly status: import("valibot").LiteralSchema<401, undefined>;
104
- }, undefined>, import("valibot").ObjectSchema<{
105
- readonly data: import("valibot").ObjectSchema<{
106
- readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
107
- }, undefined>;
108
- readonly status: import("valibot").LiteralSchema<502, undefined>;
109
- }, undefined>, import("valibot").ObjectSchema<{
110
- readonly data: import("valibot").ObjectSchema<{
111
- readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
112
- }, undefined>;
113
- readonly status: import("valibot").LiteralSchema<404, undefined>;
114
- }, undefined>, import("valibot").ObjectSchema<{
115
- readonly data: import("valibot").ObjectSchema<{
116
- readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
117
- }, undefined>;
118
- readonly status: import("valibot").LiteralSchema<409, undefined>;
119
- }, undefined>, import("valibot").ObjectSchema<{
120
- readonly data: import("valibot").ObjectSchema<{
121
- readonly accessToken: import("valibot").StringSchema<undefined>;
122
- readonly refreshToken: import("valibot").StringSchema<undefined>;
123
- readonly user: import("valibot").ObjectSchema<{
124
- 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>;
125
- 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>;
126
- readonly emailVerified: import("valibot").BooleanSchema<undefined>;
127
- 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>;
128
- 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>;
129
- 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>;
130
- 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>;
131
- 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>;
132
- }, undefined>;
133
- }, undefined>;
134
- readonly status: import("valibot").LiteralSchema<200, undefined>;
135
- }, undefined>], undefined>>;
136
- };
137
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhB,CAAA"}
@@ -1,8 +0,0 @@
1
- import { refreshAuth } from './refreshAuth';
2
- import { sendAuthCode } from './sendAuthCode';
3
- import { verifyAuthCode } from './verifyAuthCode';
4
- export const auth = {
5
- refreshAuth,
6
- sendAuthCode,
7
- verifyAuthCode,
8
- };
@@ -1,41 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const refreshAuth: import("../../../..").EndpointConfig<"/v1/pb/auth/refresh", v.ObjectSchema<{
3
- readonly refreshToken: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, 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_REFRESH_TOKEN_INVALID", undefined>;
17
- }, undefined>;
18
- readonly status: v.LiteralSchema<401, undefined>;
19
- }, undefined>, v.ObjectSchema<{
20
- readonly data: v.ObjectSchema<{
21
- readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
22
- }, undefined>;
23
- readonly status: v.LiteralSchema<502, undefined>;
24
- }, undefined>, v.ObjectSchema<{
25
- readonly data: v.ObjectSchema<{
26
- readonly accessToken: v.StringSchema<undefined>;
27
- readonly refreshToken: v.StringSchema<undefined>;
28
- readonly user: v.ObjectSchema<{
29
- readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
30
- readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
31
- readonly emailVerified: v.BooleanSchema<undefined>;
32
- readonly firstName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
- readonly lastName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
35
- readonly profilePictureUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
- readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
37
- }, undefined>;
38
- }, undefined>;
39
- readonly status: v.LiteralSchema<200, undefined>;
40
- }, undefined>], undefined>>;
41
- //# sourceMappingURL=refreshAuth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"refreshAuth.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/refreshAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA4BtB,CAAA"}