@marcoappio/marco-config 2.0.407 → 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 -1103
  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 -1101
  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 -209
  53. package/dist/clients/draft.d.ts.map +0 -1
  54. package/dist/clients/draft.js +0 -145
  55. package/dist/clients/index.d.ts +0 -548
  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 -134
  59. package/dist/clients/thread.d.ts.map +0 -1
  60. package/dist/clients/thread.js +0 -134
  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 -966
  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 -916
  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 -223
  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 -91
  109. package/dist/sdk/endpoints/private/sync/push/index.d.ts +0 -566
  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 -133
  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 -85
  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/clients/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMc,CAAA"}
@@ -1,13 +0,0 @@
1
- import { account } from './account';
2
- import { contact } from './contact';
3
- import { draft } from './draft';
4
- import { thread } from './thread';
5
- import { user } from './user';
6
- export { marcoClientsUtils } from './utils';
7
- export const marcoClients = {
8
- account,
9
- contact,
10
- draft,
11
- thread,
12
- user,
13
- };
@@ -1,134 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const thread: {
3
- model: v.ObjectSchema<{
4
- readonly bagOfWords: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
5
- readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
6
- readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
7
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
8
- readonly messages: v.ArraySchema<v.ObjectSchema<{
9
- readonly attachments: v.ArraySchema<v.ObjectSchema<{
10
- readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
11
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
12
- readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
13
- readonly size: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
14
- readonly status: v.UnionSchema<[v.LiteralSchema<"NOT_DOWNLOADED", undefined>, v.LiteralSchema<"DOWNLOAD_REQUESTED", undefined>, v.LiteralSchema<"DOWNLOADED", undefined>, v.LiteralSchema<"DOWNLOAD_FAILED", undefined>], undefined>;
15
- }, undefined>, undefined>;
16
- readonly bcc: v.ArraySchema<v.ObjectSchema<{
17
- readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
18
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
19
- }, undefined>, undefined>;
20
- readonly cc: v.ArraySchema<v.ObjectSchema<{
21
- readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
22
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
23
- }, undefined>, undefined>;
24
- readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
25
- readonly envelopeSubject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
26
- readonly from: v.ObjectSchema<{
27
- readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
28
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
29
- }, undefined>;
30
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
31
- readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
32
- readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
- readonly replyTo: v.ArraySchema<v.ObjectSchema<{
34
- readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
35
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
- }, undefined>, undefined>;
37
- readonly to: v.ArraySchema<v.ObjectSchema<{
38
- readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
39
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
40
- }, undefined>, undefined>;
41
- }, undefined>, undefined>;
42
- readonly seen: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
43
- }, undefined>;
44
- mutators: {
45
- addLabel: {
46
- delta: v.ObjectSchema<{
47
- readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
48
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
49
- }, undefined>;
50
- };
51
- delete: {
52
- delta: v.UnionSchema<[v.ObjectSchema<{
53
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
54
- }, undefined>, v.ObjectSchema<{
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
- };
58
- removeLabel: {
59
- delta: v.ObjectSchema<{
60
- readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
61
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
62
- }, undefined>;
63
- };
64
- requestAttachmentDownload: {
65
- delta: v.UnionSchema<readonly [v.ObjectSchema<{
66
- readonly attachmentId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
67
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
68
- }, undefined>, v.ObjectSchema<{
69
- readonly attachmentIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
70
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
71
- }, undefined>], undefined>;
72
- };
73
- setFlagged: {
74
- delta: v.UnionSchema<readonly [v.ObjectSchema<{
75
- readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
76
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
77
- }, undefined>, v.ObjectSchema<{
78
- readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
79
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
80
- }, undefined>], undefined>;
81
- };
82
- setLabels: {
83
- delta: v.UnionSchema<readonly [v.ObjectSchema<{
84
- readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
85
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
86
- }, undefined>, v.ObjectSchema<{
87
- readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
88
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
89
- }, undefined>], undefined>;
90
- };
91
- setSeen: {
92
- delta: v.UnionSchema<readonly [v.ObjectSchema<{
93
- readonly seen: v.BooleanSchema<undefined>;
94
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
95
- }, undefined>, v.ObjectSchema<{
96
- readonly seen: v.BooleanSchema<undefined>;
97
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
98
- }, undefined>], undefined>;
99
- };
100
- setArchive: {
101
- delta: v.UnionSchema<[v.ObjectSchema<{
102
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
103
- }, undefined>, v.ObjectSchema<{
104
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
105
- }, undefined>], undefined>;
106
- };
107
- setInbox: {
108
- delta: v.UnionSchema<[v.ObjectSchema<{
109
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
110
- }, undefined>, v.ObjectSchema<{
111
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
112
- }, undefined>], undefined>;
113
- };
114
- setSpam: {
115
- delta: v.UnionSchema<[v.ObjectSchema<{
116
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
117
- }, undefined>, v.ObjectSchema<{
118
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
119
- }, undefined>], undefined>;
120
- };
121
- setTrash: {
122
- delta: v.UnionSchema<[v.ObjectSchema<{
123
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
124
- }, undefined>, v.ObjectSchema<{
125
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
126
- }, undefined>], undefined>;
127
- };
128
- };
129
- name: "thread";
130
- pullUrl: "/v1/pv/sync/pull/thread";
131
- pushUrl: "/v1/pv/sync/push/thread";
132
- schemaVersion: "v1";
133
- };
134
- //# sourceMappingURL=thread.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../src/clients/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAkD5B,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FI,CAAA"}
@@ -1,134 +0,0 @@
1
- import * as v from 'valibot';
2
- import { marcoConstants } from '../constants';
3
- import { marcoSchemas } from '../schemas';
4
- const inlineContact = v.object({
5
- emailAddress: marcoSchemas.string.email(),
6
- name: marcoSchemas.string.nullable(),
7
- });
8
- const inlineAttachment = v.object({
9
- fileName: marcoSchemas.string.required(),
10
- id: marcoSchemas.string.required(),
11
- mimeType: marcoSchemas.string.required(),
12
- size: marcoSchemas.number.positiveInteger(),
13
- status: v.union([
14
- v.literal('NOT_DOWNLOADED'),
15
- v.literal('DOWNLOAD_REQUESTED'),
16
- v.literal('DOWNLOADED'),
17
- v.literal('DOWNLOAD_FAILED'),
18
- ]),
19
- });
20
- const threadIdOrIdArraySchema = v.union([
21
- v.object({
22
- threadId: marcoSchemas.string.required(),
23
- }),
24
- v.object({
25
- threadIds: v.array(marcoSchemas.string.required()),
26
- }),
27
- ]);
28
- const specialUseMutators = {
29
- setArchive: {
30
- delta: threadIdOrIdArraySchema,
31
- },
32
- setInbox: {
33
- delta: threadIdOrIdArraySchema,
34
- },
35
- setSpam: {
36
- delta: threadIdOrIdArraySchema,
37
- },
38
- setTrash: {
39
- delta: threadIdOrIdArraySchema,
40
- },
41
- };
42
- export const thread = {
43
- model: v.object({
44
- bagOfWords: v.array(marcoSchemas.string.required()),
45
- emailAccountId: marcoSchemas.string.required(),
46
- flagged: v.nonOptional(v.boolean()),
47
- id: marcoSchemas.string.required(),
48
- messages: v.array(v.object({
49
- attachments: v.array(inlineAttachment),
50
- bcc: v.array(inlineContact),
51
- cc: v.array(inlineContact),
52
- envelopeDate: marcoSchemas.number.positiveInteger(),
53
- envelopeSubject: marcoSchemas.string.nullable(),
54
- from: inlineContact,
55
- id: marcoSchemas.string.required(),
56
- labelIds: v.array(marcoSchemas.string.required()),
57
- previewText: marcoSchemas.string.required(marcoConstants.messages.PREVIEW_TEXT_MAX_LENGTH),
58
- replyTo: v.array(inlineContact),
59
- to: v.array(inlineContact),
60
- })),
61
- seen: v.nonOptional(v.boolean()),
62
- }),
63
- mutators: {
64
- ...specialUseMutators,
65
- addLabel: {
66
- delta: v.object({
67
- labelPath: marcoSchemas.string.required(),
68
- threadIds: v.array(marcoSchemas.string.required()),
69
- }),
70
- },
71
- delete: {
72
- delta: threadIdOrIdArraySchema,
73
- },
74
- removeLabel: {
75
- delta: v.object({
76
- labelPath: marcoSchemas.string.required(),
77
- threadIds: v.array(marcoSchemas.string.required()),
78
- }),
79
- },
80
- requestAttachmentDownload: {
81
- delta: v.union([
82
- v.object({
83
- attachmentId: marcoSchemas.string.required(),
84
- threadId: marcoSchemas.string.required(),
85
- }),
86
- v.object({
87
- attachmentIds: v.array(marcoSchemas.string.required()),
88
- threadIds: v.array(marcoSchemas.string.required()),
89
- }),
90
- ]),
91
- },
92
- setFlagged: {
93
- delta: v.union([
94
- v.object({
95
- flagged: v.nonOptional(v.boolean()),
96
- threadId: marcoSchemas.string.required(),
97
- }),
98
- v.object({
99
- flagged: v.nonOptional(v.boolean()),
100
- threadIds: v.array(marcoSchemas.string.required()),
101
- }),
102
- ]),
103
- },
104
- // DEPRECATED
105
- setLabels: {
106
- delta: v.union([
107
- v.object({
108
- labelIds: v.array(marcoSchemas.string.required()),
109
- threadId: marcoSchemas.string.required(),
110
- }),
111
- v.object({
112
- labelIds: v.array(marcoSchemas.string.required()),
113
- threadIds: v.array(marcoSchemas.string.required()),
114
- }),
115
- ]),
116
- },
117
- setSeen: {
118
- delta: v.union([
119
- v.object({
120
- seen: v.boolean(),
121
- threadId: marcoSchemas.string.required(),
122
- }),
123
- v.object({
124
- seen: v.boolean(),
125
- threadIds: v.array(marcoSchemas.string.required()),
126
- }),
127
- ]),
128
- },
129
- },
130
- name: 'thread',
131
- pullUrl: '/v1/pv/sync/pull/thread',
132
- pushUrl: '/v1/pv/sync/push/thread',
133
- schemaVersion: 'v1',
134
- };
@@ -1,53 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const user: {
3
- model: v.ObjectSchema<{
4
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
5
- readonly settings: v.ObjectSchema<{
6
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
- readonly notifications: v.ObjectSchema<{
8
- readonly pushNotificationTokens: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
9
- readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
10
- readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
11
- readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
12
- }, undefined>, undefined>;
13
- }, undefined>;
14
- readonly profilePicture: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
15
- readonly undoSendEnabled: v.BooleanSchema<undefined>;
16
- }, undefined>;
17
- }, undefined>;
18
- mutators: {
19
- deleteSettingsPushNotificationToken: {
20
- delta: v.ObjectSchema<{
21
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
22
- readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
23
- }, undefined>;
24
- };
25
- deleteSettingsPushNotificationTokenForDevice: {
26
- delta: v.ObjectSchema<{
27
- readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
28
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
29
- }, undefined>;
30
- };
31
- setSettingsName: {
32
- delta: v.ObjectSchema<{
33
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
35
- }, undefined>;
36
- };
37
- setSettingsPushNotificationToken: {
38
- delta: v.ObjectSchema<{
39
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
40
- readonly pushNotificationToken: v.ObjectSchema<{
41
- readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
42
- readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
43
- readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
44
- }, undefined>;
45
- }, undefined>;
46
- };
47
- };
48
- name: "user";
49
- pullUrl: "/v1/pv/sync/pull/user";
50
- pushUrl: "/v1/pv/sync/push/user";
51
- schemaVersion: "v1";
52
- };
53
- //# sourceMappingURL=user.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/clients/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAyB5B,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCM,CAAA"}
@@ -1,52 +0,0 @@
1
- import * as v from 'valibot';
2
- import { marcoSchemas } from '../schemas';
3
- const pushNotificationToken = v.object({
4
- createdAt: marcoSchemas.number.positiveInteger(),
5
- deviceId: marcoSchemas.string.required(),
6
- token: marcoSchemas.string.required(),
7
- });
8
- const pushNotificationTokens = v.record(marcoSchemas.string.required(), pushNotificationToken);
9
- const userSettings = v.object({
10
- name: marcoSchemas.string.nullable(),
11
- notifications: v.object({
12
- pushNotificationTokens,
13
- }),
14
- profilePicture: marcoSchemas.string.nullable(),
15
- undoSendEnabled: v.boolean(),
16
- });
17
- export const user = {
18
- model: v.object({
19
- id: marcoSchemas.string.required(),
20
- settings: userSettings,
21
- }),
22
- mutators: {
23
- deleteSettingsPushNotificationToken: {
24
- delta: v.object({
25
- id: marcoSchemas.string.required(),
26
- token: marcoSchemas.string.required(),
27
- }),
28
- },
29
- deleteSettingsPushNotificationTokenForDevice: {
30
- delta: v.object({
31
- deviceId: marcoSchemas.string.required(),
32
- id: marcoSchemas.string.required(),
33
- }),
34
- },
35
- setSettingsName: {
36
- delta: v.object({
37
- id: marcoSchemas.string.required(),
38
- name: marcoSchemas.string.nullable(),
39
- }),
40
- },
41
- setSettingsPushNotificationToken: {
42
- delta: v.object({
43
- id: marcoSchemas.string.required(),
44
- pushNotificationToken,
45
- }),
46
- },
47
- },
48
- name: 'user',
49
- pullUrl: '/v1/pv/sync/pull/user',
50
- pushUrl: '/v1/pv/sync/push/user',
51
- schemaVersion: 'v1',
52
- };
@@ -1,4 +0,0 @@
1
- export declare const marcoClientsUtils: {
2
- labelSpecialUseOrdering: ("ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH")[];
3
- };
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/clients/utils/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;CAE7B,CAAA"}
@@ -1,4 +0,0 @@
1
- import { labelSpecialUseOrdering } from './labelSpecialUseOrdering';
2
- export const marcoClientsUtils = {
3
- labelSpecialUseOrdering,
4
- };
@@ -1,3 +0,0 @@
1
- import { LabelSpecialUse } from '../../types';
2
- export declare const labelSpecialUseOrdering: LabelSpecialUse[];
3
- //# sourceMappingURL=labelSpecialUseOrdering.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"labelSpecialUseOrdering.d.ts","sourceRoot":"","sources":["../../../src/clients/utils/labelSpecialUseOrdering.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD,eAAO,MAAM,uBAAuB,EAAE,eAAe,EAMpD,CAAA"}
@@ -1,7 +0,0 @@
1
- export const labelSpecialUseOrdering = [
2
- 'INBOX',
3
- 'SENT',
4
- 'SPAM',
5
- 'TRASH',
6
- 'ARCHIVE',
7
- ];
@@ -1,21 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const getEmailMessageAttachment: import("../../../..").EndpointConfig<"/v1/pv/attachment/:attachmentId", 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 data: v.ObjectSchema<{
9
- readonly code: v.LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
10
- }, undefined>;
11
- readonly status: v.LiteralSchema<404, undefined>;
12
- }, undefined>, v.ObjectSchema<{
13
- readonly data: v.ObjectSchema<{
14
- readonly code: v.LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
15
- }, undefined>;
16
- readonly status: v.LiteralSchema<409, undefined>;
17
- }, undefined>, v.ObjectSchema<{
18
- readonly file: v.NonOptionalSchema<v.FileSchema<undefined>, undefined>;
19
- readonly status: v.LiteralSchema<200, undefined>;
20
- }, undefined>], undefined>>;
21
- //# sourceMappingURL=getEmailMessageAttachment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getEmailMessageAttachment.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;2BAYpC,CAAA"}
@@ -1,16 +0,0 @@
1
- import * as v from 'valibot';
2
- import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
- import { attachmentNotFoundErrorSchema, attachmentStateInvalidErrorSchema, authFailedErrorSchema } from '../../../../sdk/validation/errors';
4
- export const getEmailMessageAttachment = createEndpoint({
5
- method: 'GET',
6
- path: '/v1/pv/attachment/:attachmentId',
7
- response: v.union([
8
- authFailedErrorSchema,
9
- attachmentNotFoundErrorSchema,
10
- attachmentStateInvalidErrorSchema,
11
- v.object({
12
- file: v.nonOptional(v.file()),
13
- status: v.literal(200),
14
- }),
15
- ]),
16
- });
@@ -1,19 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const getEmailMessageHTML: import("../../../..").EndpointConfig<"/v1/pv/message/:messageId/html", 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 data: v.ObjectSchema<{
9
- readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
10
- }, undefined>;
11
- readonly status: v.LiteralSchema<404, undefined>;
12
- }, undefined>, v.ObjectSchema<{
13
- readonly data: v.ObjectSchema<{
14
- readonly content: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
15
- readonly html: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
16
- }, undefined>;
17
- readonly status: v.LiteralSchema<200, undefined>;
18
- }, undefined>], undefined>>;
19
- //# sourceMappingURL=getEmailMessageHTML.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getEmailMessageHTML.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/getEmailMessageHTML.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;2BAc9B,CAAA"}
@@ -1,19 +0,0 @@
1
- import * as v from 'valibot';
2
- import { marcoSchemas } from '../../../../schemas';
3
- import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
4
- import { authFailedErrorSchema, messageNotFoundErrorSchema } from '../../../../sdk/validation/errors';
5
- export const getEmailMessageHTML = createEndpoint({
6
- method: 'GET',
7
- path: '/v1/pv/message/:messageId/html',
8
- response: v.union([
9
- authFailedErrorSchema,
10
- messageNotFoundErrorSchema,
11
- v.object({
12
- data: v.object({
13
- content: v.record(v.string(), v.string()),
14
- html: marcoSchemas.string.required(),
15
- }),
16
- status: v.literal(200),
17
- }),
18
- ]),
19
- });
@@ -1,39 +0,0 @@
1
- export declare const emailMessage: {
2
- getAttachment: import("../../../..").EndpointConfig<"/v1/pv/attachment/:attachmentId", 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 data: import("valibot").ObjectSchema<{
9
- readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
10
- }, undefined>;
11
- readonly status: import("valibot").LiteralSchema<404, undefined>;
12
- }, undefined>, import("valibot").ObjectSchema<{
13
- readonly data: import("valibot").ObjectSchema<{
14
- readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
15
- }, undefined>;
16
- readonly status: import("valibot").LiteralSchema<409, undefined>;
17
- }, undefined>, import("valibot").ObjectSchema<{
18
- readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
19
- readonly status: import("valibot").LiteralSchema<200, undefined>;
20
- }, undefined>], undefined>>;
21
- getHTML: import("../../../..").EndpointConfig<"/v1/pv/message/:messageId/html", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
22
- readonly data: import("valibot").ObjectSchema<{
23
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
24
- }, undefined>;
25
- readonly status: import("valibot").LiteralSchema<401, undefined>;
26
- }, undefined>, import("valibot").ObjectSchema<{
27
- readonly data: import("valibot").ObjectSchema<{
28
- readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
29
- }, undefined>;
30
- readonly status: import("valibot").LiteralSchema<404, undefined>;
31
- }, undefined>, import("valibot").ObjectSchema<{
32
- readonly data: import("valibot").ObjectSchema<{
33
- readonly content: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").StringSchema<undefined>, undefined>;
34
- readonly html: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
35
- }, undefined>;
36
- readonly status: import("valibot").LiteralSchema<200, undefined>;
37
- }, undefined>], undefined>>;
38
- };
39
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxB,CAAA"}
@@ -1,6 +0,0 @@
1
- import { getEmailMessageAttachment } from './getEmailMessageAttachment';
2
- import { getEmailMessageHTML } from './getEmailMessageHTML';
3
- export const emailMessage = {
4
- getAttachment: getEmailMessageAttachment,
5
- getHTML: getEmailMessageHTML,
6
- };