@marcoappio/marco-config 11.0.11 → 11.0.13

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 (188) hide show
  1. package/dist/schemas/index.d.ts +10 -10
  2. package/dist/schemas/mutators/mutatorSchemas.d.ts +10 -10
  3. package/dist/schemas/mutators/mutatorSchemas.js +1 -1
  4. package/dist/sdk/endpoints/createEndpointConfig.d.ts +9 -3
  5. package/dist/sdk/endpoints/createEndpointConfig.d.ts.map +1 -1
  6. package/dist/sdk/endpoints/createEndpointConfig.js +3 -1
  7. package/dist/sdk/endpoints/index.d.ts +80 -15
  8. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  9. package/dist/sdk/endpoints/private/draftAttachment/index.d.ts +6 -1
  10. package/dist/sdk/endpoints/private/draftAttachment/index.d.ts.map +1 -1
  11. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts +6 -1
  12. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts.map +1 -1
  13. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +6 -1
  14. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +1 -1
  15. package/dist/sdk/endpoints/private/emailMessage/index.d.ts +6 -1
  16. package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -1
  17. package/dist/sdk/endpoints/private/index.d.ts +24 -4
  18. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  19. package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts +8 -3
  20. package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts.map +1 -1
  21. package/dist/sdk/endpoints/private/models/account/getAccounts.js +2 -2
  22. package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts +7 -2
  23. package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts.map +1 -1
  24. package/dist/sdk/endpoints/private/models/contact/getContacts.js +1 -1
  25. package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts +7 -2
  26. package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts.map +1 -1
  27. package/dist/sdk/endpoints/private/models/draft/getDrafts.js +1 -1
  28. package/dist/sdk/endpoints/private/models/task/getTaskNotes.d.ts +6 -1
  29. package/dist/sdk/endpoints/private/models/task/getTaskNotes.d.ts.map +1 -1
  30. package/dist/sdk/endpoints/private/models/task/getTasks.d.ts +6 -1
  31. package/dist/sdk/endpoints/private/models/task/getTasks.d.ts.map +1 -1
  32. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts +6 -1
  33. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts.map +1 -1
  34. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts +6 -1
  35. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts.map +1 -1
  36. package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts +15 -10
  37. package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts.map +1 -1
  38. package/dist/sdk/endpoints/private/models/thread/getThreadList.js +7 -7
  39. package/dist/sdk/endpoints/private/models/thread/getThreadMessageAttachments.d.ts +6 -1
  40. package/dist/sdk/endpoints/private/models/thread/getThreadMessageAttachments.d.ts.map +1 -1
  41. package/dist/sdk/endpoints/private/models/thread/getThreadMessageRecipients.d.ts +6 -1
  42. package/dist/sdk/endpoints/private/models/thread/getThreadMessageRecipients.d.ts.map +1 -1
  43. package/dist/sdk/endpoints/private/models/thread/getThreadMessages.d.ts +6 -1
  44. package/dist/sdk/endpoints/private/models/thread/getThreadMessages.d.ts.map +1 -1
  45. package/dist/sdk/endpoints/private/models/user/getUser.d.ts +6 -1
  46. package/dist/sdk/endpoints/private/models/user/getUser.d.ts.map +1 -1
  47. package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts +6 -1
  48. package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts.map +1 -1
  49. package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts +6 -1
  50. package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts.map +1 -1
  51. package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts +6 -1
  52. package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts.map +1 -1
  53. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts +6 -1
  54. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts.map +1 -1
  55. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts +6 -1
  56. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts.map +1 -1
  57. package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts +6 -1
  58. package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts.map +1 -1
  59. package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts +6 -1
  60. package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts.map +1 -1
  61. package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts +6 -1
  62. package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts.map +1 -1
  63. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts +6 -1
  64. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts.map +1 -1
  65. package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts +6 -1
  66. package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts.map +1 -1
  67. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts +6 -1
  68. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts.map +1 -1
  69. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts +6 -1
  70. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts.map +1 -1
  71. package/dist/sdk/endpoints/private/mutations/account/setLabelSidebarHidden.d.ts +6 -1
  72. package/dist/sdk/endpoints/private/mutations/account/setLabelSidebarHidden.d.ts.map +1 -1
  73. package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts +6 -1
  74. package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts.map +1 -1
  75. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts +6 -1
  76. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts.map +1 -1
  77. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts +6 -1
  78. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts.map +1 -1
  79. package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts +6 -1
  80. package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts.map +1 -1
  81. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts +6 -1
  82. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts.map +1 -1
  83. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts +6 -1
  84. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts.map +1 -1
  85. package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts +6 -1
  86. package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts.map +1 -1
  87. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts +6 -1
  88. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts.map +1 -1
  89. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts +6 -1
  90. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts.map +1 -1
  91. package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts +6 -1
  92. package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts.map +1 -1
  93. package/dist/sdk/endpoints/private/mutations/task/createNote.d.ts +6 -1
  94. package/dist/sdk/endpoints/private/mutations/task/createNote.d.ts.map +1 -1
  95. package/dist/sdk/endpoints/private/mutations/task/createTask.d.ts +6 -1
  96. package/dist/sdk/endpoints/private/mutations/task/createTask.d.ts.map +1 -1
  97. package/dist/sdk/endpoints/private/mutations/task/deleteNote.d.ts +6 -1
  98. package/dist/sdk/endpoints/private/mutations/task/deleteNote.d.ts.map +1 -1
  99. package/dist/sdk/endpoints/private/mutations/task/deleteTask.d.ts +6 -1
  100. package/dist/sdk/endpoints/private/mutations/task/deleteTask.d.ts.map +1 -1
  101. package/dist/sdk/endpoints/private/mutations/task/setCompleted.d.ts +6 -1
  102. package/dist/sdk/endpoints/private/mutations/task/setCompleted.d.ts.map +1 -1
  103. package/dist/sdk/endpoints/private/mutations/task/updateNote.d.ts +6 -1
  104. package/dist/sdk/endpoints/private/mutations/task/updateNote.d.ts.map +1 -1
  105. package/dist/sdk/endpoints/private/mutations/task/updateTask.d.ts +6 -1
  106. package/dist/sdk/endpoints/private/mutations/task/updateTask.d.ts.map +1 -1
  107. package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts +7 -2
  108. package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts.map +1 -1
  109. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts +7 -2
  110. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts.map +1 -1
  111. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts +7 -2
  112. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts.map +1 -1
  113. package/dist/sdk/endpoints/private/mutations/thread/retryLabelMove.d.ts +6 -1
  114. package/dist/sdk/endpoints/private/mutations/thread/retryLabelMove.d.ts.map +1 -1
  115. package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts +7 -2
  116. package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts.map +1 -1
  117. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts +7 -2
  118. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts.map +1 -1
  119. package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts +7 -2
  120. package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts.map +1 -1
  121. package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts +7 -2
  122. package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts.map +1 -1
  123. package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts +7 -2
  124. package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts.map +1 -1
  125. package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts +7 -2
  126. package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts.map +1 -1
  127. package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts +7 -2
  128. package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts.map +1 -1
  129. package/dist/sdk/endpoints/private/mutations/thread/settleLabelMove.d.ts +6 -1
  130. package/dist/sdk/endpoints/private/mutations/thread/settleLabelMove.d.ts.map +1 -1
  131. package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts +6 -1
  132. package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts.map +1 -1
  133. package/dist/sdk/endpoints/private/mutations/user/createView.d.ts +6 -1
  134. package/dist/sdk/endpoints/private/mutations/user/createView.d.ts.map +1 -1
  135. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts +6 -1
  136. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts.map +1 -1
  137. package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts +6 -1
  138. package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts.map +1 -1
  139. package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts +6 -1
  140. package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts.map +1 -1
  141. package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts +6 -1
  142. package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts.map +1 -1
  143. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts +6 -1
  144. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts.map +1 -1
  145. package/dist/sdk/endpoints/private/mutations/user/setSettingsTasksHidden.d.ts +6 -1
  146. package/dist/sdk/endpoints/private/mutations/user/setSettingsTasksHidden.d.ts.map +1 -1
  147. package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts +6 -1
  148. package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts.map +1 -1
  149. package/dist/sdk/endpoints/private/user/deleteUser.d.ts +6 -1
  150. package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -1
  151. package/dist/sdk/endpoints/private/user/index.d.ts +12 -2
  152. package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -1
  153. package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts +6 -1
  154. package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts.map +1 -1
  155. package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts +6 -1
  156. package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts.map +1 -1
  157. package/dist/sdk/endpoints/public/auth/browser/index.d.ts +18 -3
  158. package/dist/sdk/endpoints/public/auth/browser/index.d.ts.map +1 -1
  159. package/dist/sdk/endpoints/public/auth/browser/refreshAuth.d.ts +6 -1
  160. package/dist/sdk/endpoints/public/auth/browser/refreshAuth.d.ts.map +1 -1
  161. package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.d.ts +6 -1
  162. package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.d.ts.map +1 -1
  163. package/dist/sdk/endpoints/public/auth/index.d.ts +42 -7
  164. package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
  165. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +6 -1
  166. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -1
  167. package/dist/sdk/endpoints/public/auth/revokeSession.d.ts +6 -1
  168. package/dist/sdk/endpoints/public/auth/revokeSession.d.ts.map +1 -1
  169. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +6 -1
  170. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -1
  171. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +6 -1
  172. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
  173. package/dist/sdk/endpoints/public/config/index.d.ts +7 -2
  174. package/dist/sdk/endpoints/public/config/index.d.ts.map +1 -1
  175. package/dist/sdk/endpoints/public/healthcheck/index.d.ts +7 -2
  176. package/dist/sdk/endpoints/public/healthcheck/index.d.ts.map +1 -1
  177. package/dist/sdk/endpoints/public/index.d.ts +56 -11
  178. package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
  179. package/dist/sdk/index.d.ts +86 -15
  180. package/dist/sdk/index.d.ts.map +1 -1
  181. package/dist/sdk/validation/errors.d.ts +12 -0
  182. package/dist/sdk/validation/errors.d.ts.map +1 -1
  183. package/dist/sdk/validation/errors.js +5 -0
  184. package/dist/sdk/validation/index.d.ts +6 -0
  185. package/dist/sdk/validation/index.d.ts.map +1 -1
  186. package/dist/types/SDKError.d.ts +1 -1
  187. package/dist/types/SDKError.d.ts.map +1 -1
  188. package/package.json +1 -1
@@ -732,57 +732,57 @@ export declare const marcoSchemas: {
732
732
  };
733
733
  thread: {
734
734
  addLabel: import("valibot").ObjectSchema<{
735
- readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
735
+ readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>, import("valibot").ObjectSchema<{
736
736
  readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>, undefined>;
737
737
  }, undefined>, undefined>;
738
738
  readonly labelPath: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
739
739
  }, undefined>;
740
740
  delete: import("valibot").ObjectSchema<{
741
- readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
741
+ readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>, import("valibot").ObjectSchema<{
742
742
  readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>, undefined>;
743
743
  }, undefined>, undefined>;
744
744
  }, undefined>;
745
745
  removeLabel: import("valibot").ObjectSchema<{
746
- readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
746
+ readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>, import("valibot").ObjectSchema<{
747
747
  readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>, undefined>;
748
748
  }, undefined>, undefined>;
749
749
  readonly labelPath: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
750
750
  }, undefined>;
751
751
  setArchive: import("valibot").ObjectSchema<{
752
- readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
752
+ readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>, import("valibot").ObjectSchema<{
753
753
  readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>, undefined>;
754
754
  }, undefined>, undefined>;
755
755
  }, undefined>;
756
756
  setFlagged: import("valibot").ObjectSchema<{
757
- readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
757
+ readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>, import("valibot").ObjectSchema<{
758
758
  readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>, undefined>;
759
759
  }, undefined>, undefined>;
760
760
  readonly flagged: import("valibot").BooleanSchema<undefined>;
761
761
  }, undefined>;
762
762
  setInbox: import("valibot").ObjectSchema<{
763
- readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
763
+ readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>, import("valibot").ObjectSchema<{
764
764
  readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>, undefined>;
765
765
  }, undefined>, undefined>;
766
766
  }, undefined>;
767
767
  setSeen: import("valibot").ObjectSchema<{
768
- readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
768
+ readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>, import("valibot").ObjectSchema<{
769
769
  readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>, undefined>;
770
770
  }, undefined>, undefined>;
771
771
  readonly seen: import("valibot").BooleanSchema<undefined>;
772
772
  }, undefined>;
773
773
  setSnooze: import("valibot").ObjectSchema<{
774
- readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
774
+ readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>, import("valibot").ObjectSchema<{
775
775
  readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>, undefined>;
776
776
  }, undefined>, undefined>;
777
777
  readonly snoozedUntil: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
778
778
  }, undefined>;
779
779
  setSpam: import("valibot").ObjectSchema<{
780
- readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
780
+ readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>, import("valibot").ObjectSchema<{
781
781
  readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>, undefined>;
782
782
  }, undefined>, undefined>;
783
783
  }, undefined>;
784
784
  setTrash: import("valibot").ObjectSchema<{
785
- readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
785
+ readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>, import("valibot").ObjectSchema<{
786
786
  readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>, undefined>;
787
787
  }, undefined>, undefined>;
788
788
  }, undefined>;
@@ -256,57 +256,57 @@ export declare const mutatorSchemas: {
256
256
  };
257
257
  thread: {
258
258
  addLabel: v.ObjectSchema<{
259
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
259
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>, v.ObjectSchema<{
260
260
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>;
261
261
  }, undefined>, undefined>;
262
262
  readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
263
263
  }, undefined>;
264
264
  delete: v.ObjectSchema<{
265
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
265
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>, v.ObjectSchema<{
266
266
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>;
267
267
  }, undefined>, undefined>;
268
268
  }, undefined>;
269
269
  removeLabel: v.ObjectSchema<{
270
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
270
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>, v.ObjectSchema<{
271
271
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>;
272
272
  }, undefined>, undefined>;
273
273
  readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
274
274
  }, undefined>;
275
275
  setArchive: v.ObjectSchema<{
276
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
276
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>, v.ObjectSchema<{
277
277
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>;
278
278
  }, undefined>, undefined>;
279
279
  }, undefined>;
280
280
  setFlagged: v.ObjectSchema<{
281
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
281
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>, v.ObjectSchema<{
282
282
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>;
283
283
  }, undefined>, undefined>;
284
284
  readonly flagged: v.BooleanSchema<undefined>;
285
285
  }, undefined>;
286
286
  setInbox: v.ObjectSchema<{
287
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
287
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>, v.ObjectSchema<{
288
288
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>;
289
289
  }, undefined>, undefined>;
290
290
  }, undefined>;
291
291
  setSeen: v.ObjectSchema<{
292
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
292
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>, v.ObjectSchema<{
293
293
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>;
294
294
  }, undefined>, undefined>;
295
295
  readonly seen: v.BooleanSchema<undefined>;
296
296
  }, undefined>;
297
297
  setSnooze: v.ObjectSchema<{
298
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
298
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>, v.ObjectSchema<{
299
299
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>;
300
300
  }, undefined>, undefined>;
301
301
  readonly snoozedUntil: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
302
302
  }, undefined>;
303
303
  setSpam: v.ObjectSchema<{
304
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
304
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>, v.ObjectSchema<{
305
305
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>;
306
306
  }, undefined>, undefined>;
307
307
  }, undefined>;
308
308
  setTrash: v.ObjectSchema<{
309
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
309
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>, v.ObjectSchema<{
310
310
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>;
311
311
  }, undefined>, undefined>;
312
312
  }, undefined>;
@@ -11,7 +11,7 @@ const accountAliasSchema = v.object({
11
11
  id: id.aliasId.required(),
12
12
  name: string.nullable(),
13
13
  });
14
- const accountsSchema = v.record(string.required(), v.object({
14
+ const accountsSchema = v.record(id.accountId.required(), v.object({
15
15
  threadIds: v.array(id.threadId.required()),
16
16
  }));
17
17
  const baseThreadSchema = v.object({
@@ -1,12 +1,18 @@
1
- import type { GenericSchema } from 'valibot';
1
+ import * as v from 'valibot';
2
+ import { regionNotSupportedErrorSchema } from '../../sdk/validation/errors';
2
3
  import type { BodyType, EndpointConfig, HTTPMethod, SDKResponse, URLPattern } from '../../types/Endpoint';
3
4
  export declare const createURLPattern: <T extends string>(pattern: T) => (params: URLPattern<T>) => string;
4
- export declare const createEndpoint: <TPath extends string, TRequestBody extends GenericSchema | undefined, TRequestQuery extends GenericSchema | undefined, TResponse extends GenericSchema<SDKResponse>>(params: {
5
+ type EndpointResponse<TResponse extends v.GenericSchema<SDKResponse>> = v.UnionSchema<[
6
+ TResponse,
7
+ typeof regionNotSupportedErrorSchema
8
+ ], undefined>;
9
+ export declare const createEndpoint: <TPath extends string, TRequestBody extends v.GenericSchema | undefined, TRequestQuery extends v.GenericSchema | undefined, TResponse extends v.GenericSchema<SDKResponse>>(params: {
5
10
  body?: TRequestBody;
6
11
  bodyType?: BodyType;
7
12
  method: HTTPMethod;
8
13
  path: TPath;
9
14
  query?: TRequestQuery;
10
15
  response: TResponse;
11
- }) => EndpointConfig<TPath, TRequestBody, TRequestQuery, TResponse>;
16
+ }) => EndpointConfig<TPath, TRequestBody, TRequestQuery, EndpointResponse<TResponse>>;
17
+ export {};
12
18
  //# sourceMappingURL=createEndpointConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createEndpointConfig.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/createEndpointConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAEjH,eAAO,MAAM,gBAAgB,GAC1B,CAAC,SAAS,MAAM,WAAW,CAAC,cACpB,UAAU,CAAC,CAAC,CAAC,KAAG,MAWxB,CAAA;AAEH,eAAO,MAAM,cAAc,GACzB,KAAK,SAAS,MAAM,EACpB,YAAY,SAAS,aAAa,GAAG,SAAS,EAC9C,aAAa,SAAS,aAAa,GAAG,SAAS,EAC/C,SAAS,SAAS,aAAa,CAAC,WAAW,CAAC,UACpC;IACR,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,KAAK,CAAA;IACX,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,QAAQ,EAAE,SAAS,CAAA;CACpB,KAAG,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,CAQ9D,CAAA"}
1
+ {"version":3,"file":"createEndpointConfig.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/createEndpointConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAEjH,eAAO,MAAM,gBAAgB,GAC1B,CAAC,SAAS,MAAM,WAAW,CAAC,cACpB,UAAU,CAAC,CAAC,CAAC,KAAG,MAWxB,CAAA;AAGH,KAAK,gBAAgB,CAAC,SAAS,SAAS,CAAC,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,WAAW,CACnF;IAAC,SAAS;IAAE,OAAO,6BAA6B;CAAC,EACjD,SAAS,CACV,CAAA;AAED,eAAO,MAAM,cAAc,GACzB,KAAK,SAAS,MAAM,EACpB,YAAY,SAAS,CAAC,CAAC,aAAa,GAAG,SAAS,EAChD,aAAa,SAAS,CAAC,CAAC,aAAa,GAAG,SAAS,EACjD,SAAS,SAAS,CAAC,CAAC,aAAa,CAAC,WAAW,CAAC,UACtC;IACR,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,KAAK,CAAA;IACX,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,QAAQ,EAAE,SAAS,CAAA;CACpB,KAAG,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAQhF,CAAA"}
@@ -1,3 +1,5 @@
1
+ import * as v from 'valibot';
2
+ import { regionNotSupportedErrorSchema } from '../../sdk/validation/errors';
1
3
  export const createURLPattern = (pattern) => (params) => {
2
4
  const segments = pattern.split('/');
3
5
  return segments
@@ -17,5 +19,5 @@ export const createEndpoint = (params) => ({
17
19
  method: params.method,
18
20
  path: params.path,
19
21
  query: params.query,
20
- response: params.response,
22
+ response: v.union([params.response, regionNotSupportedErrorSchema]),
21
23
  });
@@ -3,7 +3,7 @@ import type { EndpointConfig } from '../../types';
3
3
  export declare const endpoints: {
4
4
  private: {
5
5
  draftAttachment: {
6
- upload: EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", import("valibot").BlobSchema<undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
6
+ upload: EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", import("valibot").BlobSchema<undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
7
7
  readonly data: import("valibot").ObjectSchema<{
8
8
  readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
9
9
  }, undefined>;
@@ -40,10 +40,15 @@ export declare const endpoints: {
40
40
  readonly status: import("valibot").LiteralSchema<400, undefined>;
41
41
  }, undefined>, import("valibot").ObjectSchema<{
42
42
  readonly status: import("valibot").LiteralSchema<200, undefined>;
43
+ }, undefined>], undefined>, import("valibot").ObjectSchema<{
44
+ readonly data: import("valibot").ObjectSchema<{
45
+ readonly code: import("valibot").LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
46
+ }, undefined>;
47
+ readonly status: import("valibot").LiteralSchema<403, undefined>;
43
48
  }, undefined>], undefined>>;
44
49
  };
45
50
  emailMessage: {
46
- getAttachment: EndpointConfig<"/v1/pv/attachment/:attachmentId", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
51
+ getAttachment: EndpointConfig<"/v1/pv/attachment/:attachmentId", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
47
52
  readonly data: import("valibot").ObjectSchema<{
48
53
  readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
49
54
  }, undefined>;
@@ -61,6 +66,11 @@ export declare const endpoints: {
61
66
  }, undefined>, import("valibot").ObjectSchema<{
62
67
  readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
63
68
  readonly status: import("valibot").LiteralSchema<200, undefined>;
69
+ }, undefined>], undefined>, import("valibot").ObjectSchema<{
70
+ readonly data: import("valibot").ObjectSchema<{
71
+ readonly code: import("valibot").LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
72
+ }, undefined>;
73
+ readonly status: import("valibot").LiteralSchema<403, undefined>;
64
74
  }, undefined>], undefined>>;
65
75
  };
66
76
  models: {
@@ -79,15 +89,20 @@ export declare const endpoints: {
79
89
  user: typeof import("./private/mutations/user");
80
90
  };
81
91
  user: {
82
- deleteUser: EndpointConfig<"/v1/pv/user", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
92
+ deleteUser: EndpointConfig<"/v1/pv/user", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
83
93
  readonly data: import("valibot").ObjectSchema<{
84
94
  readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
85
95
  }, undefined>;
86
96
  readonly status: import("valibot").LiteralSchema<401, undefined>;
87
97
  }, undefined>, import("valibot").ObjectSchema<{
88
98
  readonly status: import("valibot").LiteralSchema<204, undefined>;
99
+ }, undefined>], undefined>, import("valibot").ObjectSchema<{
100
+ readonly data: import("valibot").ObjectSchema<{
101
+ readonly code: import("valibot").LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
102
+ }, undefined>;
103
+ readonly status: import("valibot").LiteralSchema<403, undefined>;
89
104
  }, undefined>], undefined>>;
90
- uploadProfilePicture: EndpointConfig<"/v1/pv/user/profile-picture", import("valibot").BlobSchema<undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
105
+ uploadProfilePicture: EndpointConfig<"/v1/pv/user/profile-picture", import("valibot").BlobSchema<undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
91
106
  readonly data: import("valibot").ObjectSchema<{
92
107
  readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
93
108
  }, undefined>;
@@ -112,6 +127,11 @@ export declare const endpoints: {
112
127
  readonly profilePicture: import("valibot").StringSchema<undefined>;
113
128
  }, undefined>;
114
129
  readonly status: import("valibot").LiteralSchema<200, undefined>;
130
+ }, undefined>], undefined>, import("valibot").ObjectSchema<{
131
+ readonly data: import("valibot").ObjectSchema<{
132
+ readonly code: import("valibot").LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
133
+ }, undefined>;
134
+ readonly status: import("valibot").LiteralSchema<403, undefined>;
115
135
  }, undefined>], undefined>>;
116
136
  };
117
137
  };
@@ -120,7 +140,7 @@ export declare const endpoints: {
120
140
  browser: {
121
141
  deleteSession: EndpointConfig<"/v1/pb/auth/browser/session", GenericSchema | undefined, import("valibot").StrictObjectSchema<{
122
142
  readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
123
- }, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
143
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
124
144
  readonly data: import("valibot").StrictObjectSchema<{
125
145
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
126
146
  readonly issues: import("valibot").ObjectSchema<{
@@ -137,10 +157,15 @@ export declare const endpoints: {
137
157
  readonly status: import("valibot").LiteralSchema<502, undefined>;
138
158
  }, undefined>, import("valibot").StrictObjectSchema<{
139
159
  readonly status: import("valibot").LiteralSchema<204, undefined>;
160
+ }, undefined>], undefined>, import("valibot").ObjectSchema<{
161
+ readonly data: import("valibot").ObjectSchema<{
162
+ readonly code: import("valibot").LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
163
+ }, undefined>;
164
+ readonly status: import("valibot").LiteralSchema<403, undefined>;
140
165
  }, undefined>], undefined>>;
141
166
  refreshAuth: EndpointConfig<"/v1/pb/auth/browser/refresh", GenericSchema | undefined, import("valibot").StrictObjectSchema<{
142
167
  readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
143
- }, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
168
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
144
169
  readonly data: import("valibot").StrictObjectSchema<{
145
170
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
146
171
  readonly issues: import("valibot").ObjectSchema<{
@@ -175,6 +200,11 @@ export declare const endpoints: {
175
200
  }, undefined>;
176
201
  }, undefined>;
177
202
  readonly status: import("valibot").LiteralSchema<200, undefined>;
203
+ }, undefined>], undefined>, import("valibot").ObjectSchema<{
204
+ readonly data: import("valibot").ObjectSchema<{
205
+ readonly code: import("valibot").LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
206
+ }, undefined>;
207
+ readonly status: import("valibot").LiteralSchema<403, undefined>;
178
208
  }, undefined>], undefined>>;
179
209
  verifyAuthCode: EndpointConfig<"/v1/pb/auth/browser/verify-code", import("valibot").ObjectSchema<{
180
210
  readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
@@ -182,7 +212,7 @@ export declare const endpoints: {
182
212
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
183
213
  }, undefined>, import("valibot").StrictObjectSchema<{
184
214
  readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
185
- }, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
215
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
186
216
  readonly data: import("valibot").StrictObjectSchema<{
187
217
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
188
218
  readonly issues: import("valibot").ObjectSchema<{
@@ -242,11 +272,16 @@ export declare const endpoints: {
242
272
  }, undefined>;
243
273
  }, undefined>;
244
274
  readonly status: import("valibot").LiteralSchema<200, undefined>;
275
+ }, undefined>], undefined>, import("valibot").ObjectSchema<{
276
+ readonly data: import("valibot").ObjectSchema<{
277
+ readonly code: import("valibot").LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
278
+ }, undefined>;
279
+ readonly status: import("valibot").LiteralSchema<403, undefined>;
245
280
  }, undefined>], undefined>>;
246
281
  };
247
282
  refreshAuth: EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
248
283
  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>;
249
- }, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
284
+ }, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
250
285
  readonly data: import("valibot").ObjectSchema<{
251
286
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
252
287
  readonly issues: import("valibot").ObjectSchema<{
@@ -282,10 +317,15 @@ export declare const endpoints: {
282
317
  }, undefined>;
283
318
  }, undefined>;
284
319
  readonly status: import("valibot").LiteralSchema<200, undefined>;
320
+ }, undefined>], undefined>, import("valibot").ObjectSchema<{
321
+ readonly data: import("valibot").ObjectSchema<{
322
+ readonly code: import("valibot").LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
323
+ }, undefined>;
324
+ readonly status: import("valibot").LiteralSchema<403, undefined>;
285
325
  }, undefined>], undefined>>;
286
326
  revokeSession: EndpointConfig<"/v1/pb/auth/session/revoke", import("valibot").StrictObjectSchema<{
287
327
  readonly accessToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
288
- }, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
328
+ }, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
289
329
  readonly data: import("valibot").ObjectSchema<{
290
330
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
291
331
  readonly issues: import("valibot").ObjectSchema<{
@@ -307,10 +347,15 @@ export declare const endpoints: {
307
347
  readonly status: import("valibot").LiteralSchema<502, undefined>;
308
348
  }, undefined>, import("valibot").StrictObjectSchema<{
309
349
  readonly status: import("valibot").LiteralSchema<204, undefined>;
350
+ }, undefined>], undefined>, import("valibot").ObjectSchema<{
351
+ readonly data: import("valibot").ObjectSchema<{
352
+ readonly code: import("valibot").LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
353
+ }, undefined>;
354
+ readonly status: import("valibot").LiteralSchema<403, undefined>;
310
355
  }, undefined>], undefined>>;
311
356
  sendAuthCode: EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
312
357
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
313
- }, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
358
+ }, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
314
359
  readonly data: import("valibot").ObjectSchema<{
315
360
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
316
361
  readonly issues: import("valibot").ObjectSchema<{
@@ -332,12 +377,17 @@ export declare const endpoints: {
332
377
  readonly status: import("valibot").LiteralSchema<404, undefined>;
333
378
  }, undefined>, import("valibot").ObjectSchema<{
334
379
  readonly status: import("valibot").LiteralSchema<200, undefined>;
380
+ }, undefined>], undefined>, import("valibot").ObjectSchema<{
381
+ readonly data: import("valibot").ObjectSchema<{
382
+ readonly code: import("valibot").LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
383
+ }, undefined>;
384
+ readonly status: import("valibot").LiteralSchema<403, undefined>;
335
385
  }, undefined>], undefined>>;
336
386
  verifyAuthCode: EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").ObjectSchema<{
337
387
  readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
338
388
  readonly code: import("valibot").StringSchema<undefined>;
339
389
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
340
- }, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
390
+ }, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
341
391
  readonly data: import("valibot").ObjectSchema<{
342
392
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
343
393
  readonly issues: import("valibot").ObjectSchema<{
@@ -398,22 +448,37 @@ export declare const endpoints: {
398
448
  }, undefined>;
399
449
  }, undefined>;
400
450
  readonly status: import("valibot").LiteralSchema<200, undefined>;
451
+ }, undefined>], undefined>, import("valibot").ObjectSchema<{
452
+ readonly data: import("valibot").ObjectSchema<{
453
+ readonly code: import("valibot").LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
454
+ }, undefined>;
455
+ readonly status: import("valibot").LiteralSchema<403, undefined>;
401
456
  }, undefined>], undefined>>;
402
457
  };
403
- config: EndpointConfig<"/v1/pb/config", GenericSchema | undefined, GenericSchema | undefined, import("valibot").ObjectSchema<{
458
+ config: EndpointConfig<"/v1/pb/config", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
404
459
  readonly data: import("valibot").ObjectSchema<{
405
460
  readonly app: import("valibot").ObjectSchema<{
406
461
  readonly minimumVersion: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
407
462
  }, undefined>;
408
463
  }, undefined>;
409
464
  readonly status: import("valibot").LiteralSchema<200, undefined>;
410
- }, undefined>>;
411
- healthcheck: EndpointConfig<"/v1/pb/healthcheck", GenericSchema | undefined, GenericSchema | undefined, import("valibot").ObjectSchema<{
465
+ }, undefined>, import("valibot").ObjectSchema<{
466
+ readonly data: import("valibot").ObjectSchema<{
467
+ readonly code: import("valibot").LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
468
+ }, undefined>;
469
+ readonly status: import("valibot").LiteralSchema<403, undefined>;
470
+ }, undefined>], undefined>>;
471
+ healthcheck: EndpointConfig<"/v1/pb/healthcheck", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
412
472
  readonly data: import("valibot").ObjectSchema<{
413
473
  readonly status: import("valibot").LiteralSchema<"ok", undefined>;
414
474
  }, undefined>;
415
475
  readonly status: import("valibot").LiteralSchema<200, undefined>;
416
- }, undefined>>;
476
+ }, undefined>, import("valibot").ObjectSchema<{
477
+ readonly data: import("valibot").ObjectSchema<{
478
+ readonly code: import("valibot").LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
479
+ }, undefined>;
480
+ readonly status: import("valibot").LiteralSchema<403, undefined>;
481
+ }, undefined>], undefined>>;
417
482
  };
418
483
  };
419
484
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
@@ -1,5 +1,5 @@
1
1
  export declare const draftAttachment: {
2
- upload: import("../../../..").EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", import("valibot").BlobSchema<undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
2
+ upload: import("../../../..").EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", import("valibot").BlobSchema<undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
3
3
  readonly data: import("valibot").ObjectSchema<{
4
4
  readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
5
5
  }, undefined>;
@@ -36,6 +36,11 @@ export declare const draftAttachment: {
36
36
  readonly status: import("valibot").LiteralSchema<400, undefined>;
37
37
  }, undefined>, import("valibot").ObjectSchema<{
38
38
  readonly status: import("valibot").LiteralSchema<200, undefined>;
39
+ }, undefined>], undefined>, import("valibot").ObjectSchema<{
40
+ readonly data: import("valibot").ObjectSchema<{
41
+ readonly code: import("valibot").LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
42
+ }, undefined>;
43
+ readonly status: import("valibot").LiteralSchema<403, undefined>;
39
44
  }, undefined>], undefined>>;
40
45
  };
41
46
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/draftAttachment/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAE3B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/draftAttachment/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAE3B,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const uploadDraftAttachment: import("../../../..").EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", v.BlobSchema<undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
2
+ export declare const uploadDraftAttachment: import("../../../..").EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", v.BlobSchema<undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
3
3
  readonly data: v.ObjectSchema<{
4
4
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
5
5
  }, undefined>;
@@ -36,5 +36,10 @@ export declare const uploadDraftAttachment: import("../../../..").EndpointConfig
36
36
  readonly status: v.LiteralSchema<400, undefined>;
37
37
  }, undefined>, v.ObjectSchema<{
38
38
  readonly status: v.LiteralSchema<200, undefined>;
39
+ }, undefined>], undefined>, v.ObjectSchema<{
40
+ readonly data: v.ObjectSchema<{
41
+ readonly code: v.LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
42
+ }, undefined>;
43
+ readonly status: v.LiteralSchema<403, undefined>;
39
44
  }, undefined>], undefined>>;
40
45
  //# sourceMappingURL=uploadDraftAttachment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"uploadDraftAttachment.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAgBhC,CAAA"}
1
+ {"version":3,"file":"uploadDraftAttachment.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAgBhC,CAAA"}
@@ -1,5 +1,5 @@
1
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<{
2
+ export declare const getEmailMessageAttachment: import("../../../..").EndpointConfig<"/v1/pv/attachment/:attachmentId", v.GenericSchema | undefined, v.GenericSchema | undefined, v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
3
3
  readonly data: v.ObjectSchema<{
4
4
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
5
5
  }, undefined>;
@@ -17,5 +17,10 @@ export declare const getEmailMessageAttachment: import("../../../..").EndpointCo
17
17
  }, undefined>, v.ObjectSchema<{
18
18
  readonly file: v.NonOptionalSchema<v.FileSchema<undefined>, undefined>;
19
19
  readonly status: v.LiteralSchema<200, undefined>;
20
+ }, undefined>], undefined>, v.ObjectSchema<{
21
+ readonly data: v.ObjectSchema<{
22
+ readonly code: v.LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
23
+ }, undefined>;
24
+ readonly status: v.LiteralSchema<403, undefined>;
20
25
  }, undefined>], undefined>>;
21
26
  //# sourceMappingURL=getEmailMessageAttachment.d.ts.map
@@ -1 +1 @@
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;AAS5B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;2BAYpC,CAAA"}
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;AAS5B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;2BAYpC,CAAA"}
@@ -1,5 +1,5 @@
1
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<{
2
+ getAttachment: import("../../../..").EndpointConfig<"/v1/pv/attachment/:attachmentId", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
3
3
  readonly data: import("valibot").ObjectSchema<{
4
4
  readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
5
5
  }, undefined>;
@@ -17,6 +17,11 @@ export declare const emailMessage: {
17
17
  }, undefined>, import("valibot").ObjectSchema<{
18
18
  readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
19
19
  readonly status: import("valibot").LiteralSchema<200, undefined>;
20
+ }, undefined>], undefined>, import("valibot").ObjectSchema<{
21
+ readonly data: import("valibot").ObjectSchema<{
22
+ readonly code: import("valibot").LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
23
+ }, undefined>;
24
+ readonly status: import("valibot").LiteralSchema<403, undefined>;
20
25
  }, undefined>], undefined>>;
21
26
  };
22
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;CAExB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;CAExB,CAAA"}