@marcoappio/marco-config 11.0.12 → 11.0.14

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 (246) hide show
  1. package/dist/constants/index.d.ts +7 -0
  2. package/dist/constants/index.d.ts.map +1 -1
  3. package/dist/constants/index.js +2 -0
  4. package/dist/constants/rules.d.ts +8 -0
  5. package/dist/constants/rules.d.ts.map +1 -0
  6. package/dist/constants/rules.js +12 -0
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/schemas/id.d.ts +5 -0
  10. package/dist/schemas/id.d.ts.map +1 -1
  11. package/dist/schemas/id.js +1 -0
  12. package/dist/schemas/index.d.ts +442 -2
  13. package/dist/schemas/index.d.ts.map +1 -1
  14. package/dist/schemas/index.js +4 -1
  15. package/dist/schemas/models/index.d.ts +1 -0
  16. package/dist/schemas/models/index.d.ts.map +1 -1
  17. package/dist/schemas/models/index.js +1 -0
  18. package/dist/schemas/models/rule.d.ts +300 -0
  19. package/dist/schemas/models/rule.d.ts.map +1 -0
  20. package/dist/schemas/models/rule.js +79 -0
  21. package/dist/schemas/mutators/mutatorSchemas.d.ts +265 -0
  22. package/dist/schemas/mutators/mutatorSchemas.d.ts.map +1 -1
  23. package/dist/schemas/mutators/mutatorSchemas.js +24 -0
  24. package/dist/sdk/endpoints/createEndpointConfig.d.ts +9 -3
  25. package/dist/sdk/endpoints/createEndpointConfig.d.ts.map +1 -1
  26. package/dist/sdk/endpoints/createEndpointConfig.js +3 -1
  27. package/dist/sdk/endpoints/index.d.ts +80 -15
  28. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  29. package/dist/sdk/endpoints/private/draftAttachment/index.d.ts +6 -1
  30. package/dist/sdk/endpoints/private/draftAttachment/index.d.ts.map +1 -1
  31. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts +6 -1
  32. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts.map +1 -1
  33. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +6 -1
  34. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +1 -1
  35. package/dist/sdk/endpoints/private/emailMessage/index.d.ts +6 -1
  36. package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -1
  37. package/dist/sdk/endpoints/private/index.d.ts +24 -4
  38. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  39. package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts +6 -1
  40. package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts.map +1 -1
  41. package/dist/sdk/endpoints/private/models/account/getRules.d.ts +155 -0
  42. package/dist/sdk/endpoints/private/models/account/getRules.d.ts.map +1 -0
  43. package/dist/sdk/endpoints/private/models/account/getRules.js +17 -0
  44. package/dist/sdk/endpoints/private/models/account/index.d.ts +1 -0
  45. package/dist/sdk/endpoints/private/models/account/index.d.ts.map +1 -1
  46. package/dist/sdk/endpoints/private/models/account/index.js +1 -0
  47. package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts +6 -1
  48. package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts.map +1 -1
  49. package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts +6 -1
  50. package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts.map +1 -1
  51. package/dist/sdk/endpoints/private/models/task/getTaskNotes.d.ts +6 -1
  52. package/dist/sdk/endpoints/private/models/task/getTaskNotes.d.ts.map +1 -1
  53. package/dist/sdk/endpoints/private/models/task/getTasks.d.ts +6 -1
  54. package/dist/sdk/endpoints/private/models/task/getTasks.d.ts.map +1 -1
  55. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts +6 -1
  56. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts.map +1 -1
  57. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts +6 -1
  58. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts.map +1 -1
  59. package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts +6 -1
  60. package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts.map +1 -1
  61. package/dist/sdk/endpoints/private/models/thread/getThreadMessageAttachments.d.ts +6 -1
  62. package/dist/sdk/endpoints/private/models/thread/getThreadMessageAttachments.d.ts.map +1 -1
  63. package/dist/sdk/endpoints/private/models/thread/getThreadMessageRecipients.d.ts +6 -1
  64. package/dist/sdk/endpoints/private/models/thread/getThreadMessageRecipients.d.ts.map +1 -1
  65. package/dist/sdk/endpoints/private/models/thread/getThreadMessages.d.ts +6 -1
  66. package/dist/sdk/endpoints/private/models/thread/getThreadMessages.d.ts.map +1 -1
  67. package/dist/sdk/endpoints/private/models/user/getUser.d.ts +6 -1
  68. package/dist/sdk/endpoints/private/models/user/getUser.d.ts.map +1 -1
  69. package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts +6 -1
  70. package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts.map +1 -1
  71. package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts +6 -1
  72. package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts.map +1 -1
  73. package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts +6 -1
  74. package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts.map +1 -1
  75. package/dist/sdk/endpoints/private/mutations/account/createRule.d.ts +170 -0
  76. package/dist/sdk/endpoints/private/mutations/account/createRule.d.ts.map +1 -0
  77. package/dist/sdk/endpoints/private/mutations/account/createRule.js +20 -0
  78. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts +6 -1
  79. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts.map +1 -1
  80. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts +6 -1
  81. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts.map +1 -1
  82. package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts +6 -1
  83. package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts.map +1 -1
  84. package/dist/sdk/endpoints/private/mutations/account/deleteRule.d.ts +48 -0
  85. package/dist/sdk/endpoints/private/mutations/account/deleteRule.d.ts.map +1 -0
  86. package/dist/sdk/endpoints/private/mutations/account/deleteRule.js +20 -0
  87. package/dist/sdk/endpoints/private/mutations/account/index.d.ts +5 -0
  88. package/dist/sdk/endpoints/private/mutations/account/index.d.ts.map +1 -1
  89. package/dist/sdk/endpoints/private/mutations/account/index.js +5 -0
  90. package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts +6 -1
  91. package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts.map +1 -1
  92. package/dist/sdk/endpoints/private/mutations/account/reorderRules.d.ts +48 -0
  93. package/dist/sdk/endpoints/private/mutations/account/reorderRules.d.ts.map +1 -0
  94. package/dist/sdk/endpoints/private/mutations/account/reorderRules.js +20 -0
  95. package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts +6 -1
  96. package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts.map +1 -1
  97. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts +6 -1
  98. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts.map +1 -1
  99. package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts +6 -1
  100. package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts.map +1 -1
  101. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts +6 -1
  102. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts.map +1 -1
  103. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts +6 -1
  104. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts.map +1 -1
  105. package/dist/sdk/endpoints/private/mutations/account/setLabelSidebarHidden.d.ts +6 -1
  106. package/dist/sdk/endpoints/private/mutations/account/setLabelSidebarHidden.d.ts.map +1 -1
  107. package/dist/sdk/endpoints/private/mutations/account/setRuleEnabled.d.ts +54 -0
  108. package/dist/sdk/endpoints/private/mutations/account/setRuleEnabled.d.ts.map +1 -0
  109. package/dist/sdk/endpoints/private/mutations/account/setRuleEnabled.js +21 -0
  110. package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts +6 -1
  111. package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts.map +1 -1
  112. package/dist/sdk/endpoints/private/mutations/account/updateRule.d.ts +175 -0
  113. package/dist/sdk/endpoints/private/mutations/account/updateRule.d.ts.map +1 -0
  114. package/dist/sdk/endpoints/private/mutations/account/updateRule.js +21 -0
  115. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts +6 -1
  116. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts.map +1 -1
  117. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts +6 -1
  118. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts.map +1 -1
  119. package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts +6 -1
  120. package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts.map +1 -1
  121. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts +6 -1
  122. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts.map +1 -1
  123. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts +6 -1
  124. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts.map +1 -1
  125. package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts +6 -1
  126. package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts.map +1 -1
  127. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts +6 -1
  128. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts.map +1 -1
  129. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts +6 -1
  130. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts.map +1 -1
  131. package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts +6 -1
  132. package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts.map +1 -1
  133. package/dist/sdk/endpoints/private/mutations/task/createNote.d.ts +6 -1
  134. package/dist/sdk/endpoints/private/mutations/task/createNote.d.ts.map +1 -1
  135. package/dist/sdk/endpoints/private/mutations/task/createTask.d.ts +6 -1
  136. package/dist/sdk/endpoints/private/mutations/task/createTask.d.ts.map +1 -1
  137. package/dist/sdk/endpoints/private/mutations/task/deleteNote.d.ts +6 -1
  138. package/dist/sdk/endpoints/private/mutations/task/deleteNote.d.ts.map +1 -1
  139. package/dist/sdk/endpoints/private/mutations/task/deleteTask.d.ts +6 -1
  140. package/dist/sdk/endpoints/private/mutations/task/deleteTask.d.ts.map +1 -1
  141. package/dist/sdk/endpoints/private/mutations/task/setCompleted.d.ts +6 -1
  142. package/dist/sdk/endpoints/private/mutations/task/setCompleted.d.ts.map +1 -1
  143. package/dist/sdk/endpoints/private/mutations/task/updateNote.d.ts +6 -1
  144. package/dist/sdk/endpoints/private/mutations/task/updateNote.d.ts.map +1 -1
  145. package/dist/sdk/endpoints/private/mutations/task/updateTask.d.ts +6 -1
  146. package/dist/sdk/endpoints/private/mutations/task/updateTask.d.ts.map +1 -1
  147. package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts +6 -1
  148. package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts.map +1 -1
  149. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts +6 -1
  150. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts.map +1 -1
  151. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts +6 -1
  152. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts.map +1 -1
  153. package/dist/sdk/endpoints/private/mutations/thread/retryLabelMove.d.ts +6 -1
  154. package/dist/sdk/endpoints/private/mutations/thread/retryLabelMove.d.ts.map +1 -1
  155. package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts +6 -1
  156. package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts.map +1 -1
  157. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts +6 -1
  158. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts.map +1 -1
  159. package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts +6 -1
  160. package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts.map +1 -1
  161. package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts +6 -1
  162. package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts.map +1 -1
  163. package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts +6 -1
  164. package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts.map +1 -1
  165. package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts +6 -1
  166. package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts.map +1 -1
  167. package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts +6 -1
  168. package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts.map +1 -1
  169. package/dist/sdk/endpoints/private/mutations/thread/settleLabelMove.d.ts +6 -1
  170. package/dist/sdk/endpoints/private/mutations/thread/settleLabelMove.d.ts.map +1 -1
  171. package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts +6 -1
  172. package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts.map +1 -1
  173. package/dist/sdk/endpoints/private/mutations/user/createView.d.ts +6 -1
  174. package/dist/sdk/endpoints/private/mutations/user/createView.d.ts.map +1 -1
  175. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts +6 -1
  176. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts.map +1 -1
  177. package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts +6 -1
  178. package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts.map +1 -1
  179. package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts +6 -1
  180. package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts.map +1 -1
  181. package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts +6 -1
  182. package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts.map +1 -1
  183. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts +6 -1
  184. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts.map +1 -1
  185. package/dist/sdk/endpoints/private/mutations/user/setSettingsTasksHidden.d.ts +6 -1
  186. package/dist/sdk/endpoints/private/mutations/user/setSettingsTasksHidden.d.ts.map +1 -1
  187. package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts +6 -1
  188. package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts.map +1 -1
  189. package/dist/sdk/endpoints/private/user/deleteUser.d.ts +6 -1
  190. package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -1
  191. package/dist/sdk/endpoints/private/user/index.d.ts +12 -2
  192. package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -1
  193. package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts +6 -1
  194. package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts.map +1 -1
  195. package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts +6 -1
  196. package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts.map +1 -1
  197. package/dist/sdk/endpoints/public/auth/browser/index.d.ts +18 -3
  198. package/dist/sdk/endpoints/public/auth/browser/index.d.ts.map +1 -1
  199. package/dist/sdk/endpoints/public/auth/browser/refreshAuth.d.ts +6 -1
  200. package/dist/sdk/endpoints/public/auth/browser/refreshAuth.d.ts.map +1 -1
  201. package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.d.ts +6 -1
  202. package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.d.ts.map +1 -1
  203. package/dist/sdk/endpoints/public/auth/index.d.ts +42 -7
  204. package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
  205. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +6 -1
  206. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -1
  207. package/dist/sdk/endpoints/public/auth/revokeSession.d.ts +6 -1
  208. package/dist/sdk/endpoints/public/auth/revokeSession.d.ts.map +1 -1
  209. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +6 -1
  210. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -1
  211. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +6 -1
  212. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
  213. package/dist/sdk/endpoints/public/config/index.d.ts +7 -2
  214. package/dist/sdk/endpoints/public/config/index.d.ts.map +1 -1
  215. package/dist/sdk/endpoints/public/healthcheck/index.d.ts +7 -2
  216. package/dist/sdk/endpoints/public/healthcheck/index.d.ts.map +1 -1
  217. package/dist/sdk/endpoints/public/index.d.ts +56 -11
  218. package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
  219. package/dist/sdk/index.d.ts +92 -15
  220. package/dist/sdk/index.d.ts.map +1 -1
  221. package/dist/sdk/validation/errors.d.ts +24 -0
  222. package/dist/sdk/validation/errors.d.ts.map +1 -1
  223. package/dist/sdk/validation/errors.js +10 -0
  224. package/dist/sdk/validation/index.d.ts +12 -0
  225. package/dist/sdk/validation/index.d.ts.map +1 -1
  226. package/dist/types/RuleActionType.d.ts +3 -0
  227. package/dist/types/RuleActionType.d.ts.map +1 -0
  228. package/dist/types/RuleActionType.js +10 -0
  229. package/dist/types/RuleConditionField.d.ts +3 -0
  230. package/dist/types/RuleConditionField.d.ts.map +1 -0
  231. package/dist/types/RuleConditionField.js +1 -0
  232. package/dist/types/RuleConditionOperator.d.ts +5 -0
  233. package/dist/types/RuleConditionOperator.d.ts.map +1 -0
  234. package/dist/types/RuleConditionOperator.js +2 -0
  235. package/dist/types/RuleDisabledReason.d.ts +3 -0
  236. package/dist/types/RuleDisabledReason.d.ts.map +1 -0
  237. package/dist/types/RuleDisabledReason.js +1 -0
  238. package/dist/types/RuleMatchMode.d.ts +3 -0
  239. package/dist/types/RuleMatchMode.d.ts.map +1 -0
  240. package/dist/types/RuleMatchMode.js +1 -0
  241. package/dist/types/SDKError.d.ts +1 -1
  242. package/dist/types/SDKError.d.ts.map +1 -1
  243. package/dist/types/index.d.ts +5 -0
  244. package/dist/types/index.d.ts.map +1 -1
  245. package/dist/types/index.js +5 -0
  246. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const deleteAccount: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/delete", v.ObjectSchema<{
3
3
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
4
- }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
4
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
5
5
  readonly data: v.ObjectSchema<{
6
6
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
7
7
  }, undefined>;
@@ -23,5 +23,10 @@ export declare const deleteAccount: import("../../../../..").EndpointConfig<"/v1
23
23
  readonly status: v.LiteralSchema<409, undefined>;
24
24
  }, undefined>, v.ObjectSchema<{
25
25
  readonly status: v.LiteralSchema<204, undefined>;
26
+ }, undefined>], undefined>, v.ObjectSchema<{
27
+ readonly data: v.ObjectSchema<{
28
+ readonly code: v.LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
29
+ }, undefined>;
30
+ readonly status: v.LiteralSchema<403, undefined>;
26
31
  }, undefined>], undefined>>;
27
32
  //# sourceMappingURL=deleteAccount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deleteAccount.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/deleteAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;2BAaxB,CAAA"}
1
+ {"version":3,"file":"deleteAccount.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/deleteAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAaxB,CAAA"}
@@ -2,7 +2,7 @@ import * as v from 'valibot';
2
2
  export declare const deleteAlias: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/alias/:aliasId/delete", v.ObjectSchema<{
3
3
  readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
4
4
  readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
5
- }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
5
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
6
6
  readonly data: v.ObjectSchema<{
7
7
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
8
8
  }, undefined>;
@@ -29,5 +29,10 @@ export declare const deleteAlias: import("../../../../..").EndpointConfig<"/v1/p
29
29
  readonly status: v.LiteralSchema<409, undefined>;
30
30
  }, undefined>, v.ObjectSchema<{
31
31
  readonly status: v.LiteralSchema<204, undefined>;
32
+ }, undefined>], undefined>, v.ObjectSchema<{
33
+ readonly data: v.ObjectSchema<{
34
+ readonly code: v.LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
35
+ }, undefined>;
36
+ readonly status: v.LiteralSchema<403, undefined>;
32
37
  }, undefined>], undefined>>;
33
38
  //# sourceMappingURL=deleteAlias.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deleteAlias.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/deleteAlias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BActB,CAAA"}
1
+ {"version":3,"file":"deleteAlias.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/deleteAlias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BActB,CAAA"}
@@ -2,7 +2,7 @@ import * as v from 'valibot';
2
2
  export declare const deleteLabel: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/labels/delete", v.ObjectSchema<{
3
3
  readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
4
4
  readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
5
- }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
5
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
6
6
  readonly data: v.ObjectSchema<{
7
7
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
8
8
  }, undefined>;
@@ -39,5 +39,10 @@ export declare const deleteLabel: import("../../../../..").EndpointConfig<"/v1/p
39
39
  readonly status: v.LiteralSchema<400, undefined>;
40
40
  }, undefined>, v.ObjectSchema<{
41
41
  readonly status: v.LiteralSchema<204, undefined>;
42
+ }, undefined>], undefined>, v.ObjectSchema<{
43
+ readonly data: v.ObjectSchema<{
44
+ readonly code: v.LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
45
+ }, undefined>;
46
+ readonly status: v.LiteralSchema<403, undefined>;
42
47
  }, undefined>], undefined>>;
43
48
  //# sourceMappingURL=deleteLabel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deleteLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/deleteLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAetB,CAAA"}
1
+ {"version":3,"file":"deleteLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/deleteLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAetB,CAAA"}
@@ -0,0 +1,48 @@
1
+ import * as v from 'valibot';
2
+ export declare const deleteRule: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/rules/delete", v.ObjectSchema<{
3
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
4
+ readonly ruleId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "RuleId">]>, undefined>;
5
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
6
+ readonly data: v.ObjectSchema<{
7
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
8
+ }, undefined>;
9
+ readonly status: v.LiteralSchema<401, undefined>;
10
+ }, undefined>, v.ObjectSchema<{
11
+ readonly data: v.ObjectSchema<{
12
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
13
+ }, undefined>;
14
+ readonly status: v.LiteralSchema<404, undefined>;
15
+ }, undefined>, v.ObjectSchema<{
16
+ readonly data: v.ObjectSchema<{
17
+ readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
18
+ }, undefined>;
19
+ readonly status: v.LiteralSchema<404, undefined>;
20
+ }, undefined>, v.ObjectSchema<{
21
+ readonly data: v.ObjectSchema<{
22
+ readonly code: v.LiteralSchema<"RULE_NOT_FOUND", undefined>;
23
+ }, undefined>;
24
+ readonly status: v.LiteralSchema<404, undefined>;
25
+ }, undefined>, v.ObjectSchema<{
26
+ readonly data: v.ObjectSchema<{
27
+ readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
28
+ }, undefined>;
29
+ readonly status: v.LiteralSchema<409, undefined>;
30
+ }, undefined>, v.ObjectSchema<{
31
+ readonly data: v.ObjectSchema<{
32
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
33
+ readonly issues: v.ObjectSchema<{
34
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
35
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
36
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
37
+ }, undefined>;
38
+ }, undefined>;
39
+ readonly status: v.LiteralSchema<400, undefined>;
40
+ }, undefined>, v.ObjectSchema<{
41
+ readonly status: v.LiteralSchema<204, undefined>;
42
+ }, undefined>], undefined>, v.ObjectSchema<{
43
+ readonly data: v.ObjectSchema<{
44
+ readonly code: v.LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
45
+ }, undefined>;
46
+ readonly status: v.LiteralSchema<403, undefined>;
47
+ }, undefined>], undefined>>;
48
+ //# sourceMappingURL=deleteRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteRule.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/deleteRule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAerB,CAAA"}
@@ -0,0 +1,20 @@
1
+ import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
3
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
+ import { accountNotFoundErrorSchema, authFailedErrorSchema, mutationRejectedErrorSchema, ruleNotFoundErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
5
+ export const deleteRule = createEndpoint({
6
+ body: mutatorSchemas.account.deleteRule,
7
+ method: 'DELETE',
8
+ path: '/v1/pv/models/account/:accountId/rules/delete',
9
+ response: v.union([
10
+ authFailedErrorSchema,
11
+ userNotFoundErrorSchema,
12
+ accountNotFoundErrorSchema,
13
+ ruleNotFoundErrorSchema,
14
+ mutationRejectedErrorSchema,
15
+ validationFailedErrorSchema,
16
+ v.object({
17
+ status: v.literal(204),
18
+ }),
19
+ ]),
20
+ });
@@ -1,15 +1,20 @@
1
1
  export { createAccount } from './createAccount';
2
2
  export { createAlias } from './createAlias';
3
3
  export { createLabel } from './createLabel';
4
+ export { createRule } from './createRule';
4
5
  export { deleteAccount } from './deleteAccount';
5
6
  export { deleteAlias } from './deleteAlias';
6
7
  export { deleteLabel } from './deleteLabel';
8
+ export { deleteRule } from './deleteRule';
7
9
  export { renameLabel } from './renameLabel';
10
+ export { reorderRules } from './reorderRules';
8
11
  export { setAliasName } from './setAliasName';
9
12
  export { setAliasPrimary } from './setAliasPrimary';
10
13
  export { setAliasSignature } from './setAliasSignature';
11
14
  export { setConnectionConfigImap } from './setConnectionConfigImap';
12
15
  export { setConnectionConfigOauth } from './setConnectionConfigOauth';
13
16
  export { setLabelSidebarHidden } from './setLabelSidebarHidden';
17
+ export { setRuleEnabled } from './setRuleEnabled';
14
18
  export { setSettings } from './setSettings';
19
+ export { updateRule } from './updateRule';
15
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
@@ -1,14 +1,19 @@
1
1
  export { createAccount } from './createAccount';
2
2
  export { createAlias } from './createAlias';
3
3
  export { createLabel } from './createLabel';
4
+ export { createRule } from './createRule';
4
5
  export { deleteAccount } from './deleteAccount';
5
6
  export { deleteAlias } from './deleteAlias';
6
7
  export { deleteLabel } from './deleteLabel';
8
+ export { deleteRule } from './deleteRule';
7
9
  export { renameLabel } from './renameLabel';
10
+ export { reorderRules } from './reorderRules';
8
11
  export { setAliasName } from './setAliasName';
9
12
  export { setAliasPrimary } from './setAliasPrimary';
10
13
  export { setAliasSignature } from './setAliasSignature';
11
14
  export { setConnectionConfigImap } from './setConnectionConfigImap';
12
15
  export { setConnectionConfigOauth } from './setConnectionConfigOauth';
13
16
  export { setLabelSidebarHidden } from './setLabelSidebarHidden';
17
+ export { setRuleEnabled } from './setRuleEnabled';
14
18
  export { setSettings } from './setSettings';
19
+ export { updateRule } from './updateRule';
@@ -3,7 +3,7 @@ export declare const renameLabel: import("../../../../..").EndpointConfig<"/v1/p
3
3
  readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
4
4
  readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
5
5
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
6
- }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
6
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
7
7
  readonly data: v.ObjectSchema<{
8
8
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
9
9
  }, undefined>;
@@ -45,5 +45,10 @@ export declare const renameLabel: import("../../../../..").EndpointConfig<"/v1/p
45
45
  readonly status: v.LiteralSchema<400, undefined>;
46
46
  }, undefined>, v.ObjectSchema<{
47
47
  readonly status: v.LiteralSchema<200, undefined>;
48
+ }, undefined>], undefined>, v.ObjectSchema<{
49
+ readonly data: v.ObjectSchema<{
50
+ readonly code: v.LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
51
+ }, undefined>;
52
+ readonly status: v.LiteralSchema<403, undefined>;
48
53
  }, undefined>], undefined>>;
49
54
  //# sourceMappingURL=renameLabel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"renameLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/renameLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAgBtB,CAAA"}
1
+ {"version":3,"file":"renameLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/renameLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAgBtB,CAAA"}
@@ -0,0 +1,48 @@
1
+ import * as v from 'valibot';
2
+ export declare const reorderRules: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/rules/reorder", v.ObjectSchema<{
3
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
4
+ readonly ruleIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "RuleId">]>, undefined>, undefined>, v.MaxLengthAction<(string & v.Brand<"RuleId">)[], number, undefined>, v.CheckAction<(string & v.Brand<"RuleId">)[], "Rule IDs must be unique">]>;
5
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
6
+ readonly data: v.ObjectSchema<{
7
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
8
+ }, undefined>;
9
+ readonly status: v.LiteralSchema<401, undefined>;
10
+ }, undefined>, v.ObjectSchema<{
11
+ readonly data: v.ObjectSchema<{
12
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
13
+ }, undefined>;
14
+ readonly status: v.LiteralSchema<404, undefined>;
15
+ }, undefined>, v.ObjectSchema<{
16
+ readonly data: v.ObjectSchema<{
17
+ readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
18
+ }, undefined>;
19
+ readonly status: v.LiteralSchema<404, undefined>;
20
+ }, undefined>, v.ObjectSchema<{
21
+ readonly data: v.ObjectSchema<{
22
+ readonly code: v.LiteralSchema<"RULE_NOT_FOUND", undefined>;
23
+ }, undefined>;
24
+ readonly status: v.LiteralSchema<404, undefined>;
25
+ }, undefined>, v.ObjectSchema<{
26
+ readonly data: v.ObjectSchema<{
27
+ readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
28
+ }, undefined>;
29
+ readonly status: v.LiteralSchema<409, undefined>;
30
+ }, undefined>, v.ObjectSchema<{
31
+ readonly data: v.ObjectSchema<{
32
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
33
+ readonly issues: v.ObjectSchema<{
34
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
35
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
36
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
37
+ }, undefined>;
38
+ }, undefined>;
39
+ readonly status: v.LiteralSchema<400, undefined>;
40
+ }, undefined>, v.ObjectSchema<{
41
+ readonly status: v.LiteralSchema<200, undefined>;
42
+ }, undefined>], undefined>, v.ObjectSchema<{
43
+ readonly data: v.ObjectSchema<{
44
+ readonly code: v.LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
45
+ }, undefined>;
46
+ readonly status: v.LiteralSchema<403, undefined>;
47
+ }, undefined>], undefined>>;
48
+ //# sourceMappingURL=reorderRules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reorderRules.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/reorderRules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAevB,CAAA"}
@@ -0,0 +1,20 @@
1
+ import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
3
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
+ import { accountNotFoundErrorSchema, authFailedErrorSchema, mutationRejectedErrorSchema, ruleNotFoundErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
5
+ export const reorderRules = createEndpoint({
6
+ body: mutatorSchemas.account.reorderRules,
7
+ method: 'PATCH',
8
+ path: '/v1/pv/models/account/:accountId/rules/reorder',
9
+ response: v.union([
10
+ authFailedErrorSchema,
11
+ userNotFoundErrorSchema,
12
+ accountNotFoundErrorSchema,
13
+ ruleNotFoundErrorSchema,
14
+ mutationRejectedErrorSchema,
15
+ validationFailedErrorSchema,
16
+ v.object({
17
+ status: v.literal(200),
18
+ }),
19
+ ]),
20
+ });
@@ -3,7 +3,7 @@ export declare const setAliasName: import("../../../../..").EndpointConfig<"/v1/
3
3
  readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
4
4
  readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
5
5
  readonly displayName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
6
- }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
6
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
7
7
  readonly data: v.ObjectSchema<{
8
8
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
9
9
  }, undefined>;
@@ -40,5 +40,10 @@ export declare const setAliasName: import("../../../../..").EndpointConfig<"/v1/
40
40
  readonly status: v.LiteralSchema<400, undefined>;
41
41
  }, undefined>, v.ObjectSchema<{
42
42
  readonly status: v.LiteralSchema<200, undefined>;
43
+ }, undefined>], undefined>, v.ObjectSchema<{
44
+ readonly data: v.ObjectSchema<{
45
+ readonly code: v.LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
46
+ }, undefined>;
47
+ readonly status: v.LiteralSchema<403, undefined>;
43
48
  }, undefined>], undefined>>;
44
49
  //# sourceMappingURL=setAliasName.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setAliasName.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setAliasName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAevB,CAAA"}
1
+ {"version":3,"file":"setAliasName.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setAliasName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAevB,CAAA"}
@@ -2,7 +2,7 @@ import * as v from 'valibot';
2
2
  export declare const setAliasPrimary: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/alias/:aliasId/set-primary", v.ObjectSchema<{
3
3
  readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
4
4
  readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
5
- }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
5
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
6
6
  readonly data: v.ObjectSchema<{
7
7
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
8
8
  }, undefined>;
@@ -29,5 +29,10 @@ export declare const setAliasPrimary: import("../../../../..").EndpointConfig<"/
29
29
  readonly status: v.LiteralSchema<409, undefined>;
30
30
  }, undefined>, v.ObjectSchema<{
31
31
  readonly status: v.LiteralSchema<200, undefined>;
32
+ }, undefined>], undefined>, v.ObjectSchema<{
33
+ readonly data: v.ObjectSchema<{
34
+ readonly code: v.LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
35
+ }, undefined>;
36
+ readonly status: v.LiteralSchema<403, undefined>;
32
37
  }, undefined>], undefined>>;
33
38
  //# sourceMappingURL=setAliasPrimary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setAliasPrimary.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setAliasPrimary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAc1B,CAAA"}
1
+ {"version":3,"file":"setAliasPrimary.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setAliasPrimary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAc1B,CAAA"}
@@ -3,7 +3,7 @@ export declare const setAliasSignature: import("../../../../..").EndpointConfig<
3
3
  readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
4
4
  readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
5
5
  readonly signature: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
6
- }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
6
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
7
7
  readonly data: v.ObjectSchema<{
8
8
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
9
9
  }, undefined>;
@@ -40,5 +40,10 @@ export declare const setAliasSignature: import("../../../../..").EndpointConfig<
40
40
  readonly status: v.LiteralSchema<400, undefined>;
41
41
  }, undefined>, v.ObjectSchema<{
42
42
  readonly status: v.LiteralSchema<200, undefined>;
43
+ }, undefined>], undefined>, v.ObjectSchema<{
44
+ readonly data: v.ObjectSchema<{
45
+ readonly code: v.LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
46
+ }, undefined>;
47
+ readonly status: v.LiteralSchema<403, undefined>;
43
48
  }, undefined>], undefined>>;
44
49
  //# sourceMappingURL=setAliasSignature.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setAliasSignature.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setAliasSignature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAe5B,CAAA"}
1
+ {"version":3,"file":"setAliasSignature.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setAliasSignature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAe5B,CAAA"}
@@ -13,7 +13,7 @@ export declare const setConnectionConfigImap: import("../../../../..").EndpointC
13
13
  readonly smtpUser: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
14
14
  }, undefined>;
15
15
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
16
- }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
16
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
17
17
  readonly data: v.ObjectSchema<{
18
18
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
19
19
  }, undefined>;
@@ -45,5 +45,10 @@ export declare const setConnectionConfigImap: import("../../../../..").EndpointC
45
45
  readonly status: v.LiteralSchema<400, undefined>;
46
46
  }, undefined>, v.ObjectSchema<{
47
47
  readonly status: v.LiteralSchema<200, undefined>;
48
+ }, undefined>], undefined>, v.ObjectSchema<{
49
+ readonly data: v.ObjectSchema<{
50
+ readonly code: v.LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
51
+ }, undefined>;
52
+ readonly status: v.LiteralSchema<403, undefined>;
48
53
  }, undefined>], undefined>>;
49
54
  //# sourceMappingURL=setConnectionConfigImap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setConnectionConfigImap.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setConnectionConfigImap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAclC,CAAA"}
1
+ {"version":3,"file":"setConnectionConfigImap.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setConnectionConfigImap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAclC,CAAA"}
@@ -7,7 +7,7 @@ export declare const setConnectionConfigOauth: import("../../../../..").Endpoint
7
7
  readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
8
8
  }, undefined>;
9
9
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
10
- }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
10
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
11
11
  readonly data: v.ObjectSchema<{
12
12
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
13
13
  }, undefined>;
@@ -39,5 +39,10 @@ export declare const setConnectionConfigOauth: import("../../../../..").Endpoint
39
39
  readonly status: v.LiteralSchema<400, undefined>;
40
40
  }, undefined>, v.ObjectSchema<{
41
41
  readonly status: v.LiteralSchema<200, undefined>;
42
+ }, undefined>], undefined>, v.ObjectSchema<{
43
+ readonly data: v.ObjectSchema<{
44
+ readonly code: v.LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
45
+ }, undefined>;
46
+ readonly status: v.LiteralSchema<403, undefined>;
42
47
  }, undefined>], undefined>>;
43
48
  //# sourceMappingURL=setConnectionConfigOauth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setConnectionConfigOauth.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAcnC,CAAA"}
1
+ {"version":3,"file":"setConnectionConfigOauth.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAcnC,CAAA"}
@@ -3,7 +3,7 @@ export declare const setLabelSidebarHidden: import("../../../../..").EndpointCon
3
3
  readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
4
4
  readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
5
5
  readonly sidebarHidden: v.BooleanSchema<undefined>;
6
- }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
6
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
7
7
  readonly data: v.ObjectSchema<{
8
8
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
9
9
  }, undefined>;
@@ -40,5 +40,10 @@ export declare const setLabelSidebarHidden: import("../../../../..").EndpointCon
40
40
  readonly status: v.LiteralSchema<400, undefined>;
41
41
  }, undefined>, v.ObjectSchema<{
42
42
  readonly status: v.LiteralSchema<200, undefined>;
43
+ }, undefined>], undefined>, v.ObjectSchema<{
44
+ readonly data: v.ObjectSchema<{
45
+ readonly code: v.LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
46
+ }, undefined>;
47
+ readonly status: v.LiteralSchema<403, undefined>;
43
48
  }, undefined>], undefined>>;
44
49
  //# sourceMappingURL=setLabelSidebarHidden.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setLabelSidebarHidden.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setLabelSidebarHidden.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAehC,CAAA"}
1
+ {"version":3,"file":"setLabelSidebarHidden.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setLabelSidebarHidden.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAehC,CAAA"}
@@ -0,0 +1,54 @@
1
+ import * as v from 'valibot';
2
+ export declare const setRuleEnabled: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/rules/set-enabled", v.ObjectSchema<{
3
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
4
+ readonly enabled: v.BooleanSchema<undefined>;
5
+ readonly ruleId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "RuleId">]>, undefined>;
6
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
7
+ readonly data: v.ObjectSchema<{
8
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
9
+ }, undefined>;
10
+ readonly status: v.LiteralSchema<401, undefined>;
11
+ }, undefined>, v.ObjectSchema<{
12
+ readonly data: v.ObjectSchema<{
13
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
14
+ }, undefined>;
15
+ readonly status: v.LiteralSchema<404, undefined>;
16
+ }, undefined>, v.ObjectSchema<{
17
+ readonly data: v.ObjectSchema<{
18
+ readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
19
+ }, undefined>;
20
+ readonly status: v.LiteralSchema<404, undefined>;
21
+ }, undefined>, v.ObjectSchema<{
22
+ readonly data: v.ObjectSchema<{
23
+ readonly code: v.LiteralSchema<"RULE_NOT_FOUND", undefined>;
24
+ }, undefined>;
25
+ readonly status: v.LiteralSchema<404, undefined>;
26
+ }, undefined>, v.ObjectSchema<{
27
+ readonly data: v.ObjectSchema<{
28
+ readonly code: v.LiteralSchema<"LABEL_NOT_FOUND", undefined>;
29
+ }, undefined>;
30
+ readonly status: v.LiteralSchema<404, undefined>;
31
+ }, undefined>, v.ObjectSchema<{
32
+ readonly data: v.ObjectSchema<{
33
+ readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
34
+ }, undefined>;
35
+ readonly status: v.LiteralSchema<409, undefined>;
36
+ }, undefined>, v.ObjectSchema<{
37
+ readonly data: v.ObjectSchema<{
38
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
39
+ readonly issues: v.ObjectSchema<{
40
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
41
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
42
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
43
+ }, undefined>;
44
+ }, undefined>;
45
+ readonly status: v.LiteralSchema<400, undefined>;
46
+ }, undefined>, v.ObjectSchema<{
47
+ readonly status: v.LiteralSchema<200, undefined>;
48
+ }, undefined>], undefined>, v.ObjectSchema<{
49
+ readonly data: v.ObjectSchema<{
50
+ readonly code: v.LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
51
+ }, undefined>;
52
+ readonly status: v.LiteralSchema<403, undefined>;
53
+ }, undefined>], undefined>>;
54
+ //# sourceMappingURL=setRuleEnabled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setRuleEnabled.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setRuleEnabled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAgBzB,CAAA"}
@@ -0,0 +1,21 @@
1
+ import * as v from 'valibot';
2
+ import { mutatorSchemas } from '../../../../../schemas';
3
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
+ import { accountNotFoundErrorSchema, authFailedErrorSchema, labelNotFoundErrorSchema, mutationRejectedErrorSchema, ruleNotFoundErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
5
+ export const setRuleEnabled = createEndpoint({
6
+ body: mutatorSchemas.account.setRuleEnabled,
7
+ method: 'PATCH',
8
+ path: '/v1/pv/models/account/:accountId/rules/set-enabled',
9
+ response: v.union([
10
+ authFailedErrorSchema,
11
+ userNotFoundErrorSchema,
12
+ accountNotFoundErrorSchema,
13
+ ruleNotFoundErrorSchema,
14
+ labelNotFoundErrorSchema,
15
+ mutationRejectedErrorSchema,
16
+ validationFailedErrorSchema,
17
+ v.object({
18
+ status: v.literal(200),
19
+ }),
20
+ ]),
21
+ });
@@ -3,7 +3,7 @@ export declare const setSettings: import("../../../../..").EndpointConfig<"/v1/p
3
3
  readonly color: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
4
4
  readonly displayName: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
5
5
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
6
- }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
6
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
7
7
  readonly data: v.ObjectSchema<{
8
8
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
9
9
  }, undefined>;
@@ -35,5 +35,10 @@ export declare const setSettings: import("../../../../..").EndpointConfig<"/v1/p
35
35
  readonly status: v.LiteralSchema<400, undefined>;
36
36
  }, undefined>, v.ObjectSchema<{
37
37
  readonly status: v.LiteralSchema<200, undefined>;
38
+ }, undefined>], undefined>, v.ObjectSchema<{
39
+ readonly data: v.ObjectSchema<{
40
+ readonly code: v.LiteralSchema<"REGION_NOT_SUPPORTED", undefined>;
41
+ }, undefined>;
42
+ readonly status: v.LiteralSchema<403, undefined>;
38
43
  }, undefined>], undefined>>;
39
44
  //# sourceMappingURL=setSettings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setSettings.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BActB,CAAA"}
1
+ {"version":3,"file":"setSettings.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/setSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BActB,CAAA"}