@interfere/attio 0.1.2 → 0.2.0

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 (563) hide show
  1. package/README.md +123 -53
  2. package/dist/commonjs/funcs/files-delete-v2-files-file-id.d.ts +22 -0
  3. package/dist/commonjs/funcs/files-delete-v2-files-file-id.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/files-delete-v2-files-file-id.js +128 -0
  5. package/dist/commonjs/funcs/files-delete-v2-files-file-id.js.map +1 -0
  6. package/dist/commonjs/funcs/files-get-v2-files-file-id-download.d.ts +21 -0
  7. package/dist/commonjs/funcs/files-get-v2-files-file-id-download.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/files-get-v2-files-file-id-download.js +124 -0
  9. package/dist/commonjs/funcs/files-get-v2-files-file-id-download.js.map +1 -0
  10. package/dist/commonjs/funcs/files-get-v2-files-file-id.d.ts +22 -0
  11. package/dist/commonjs/funcs/files-get-v2-files-file-id.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/files-get-v2-files-file-id.js +128 -0
  13. package/dist/commonjs/funcs/files-get-v2-files-file-id.js.map +1 -0
  14. package/dist/commonjs/funcs/files-get-v2-files.d.ts +21 -0
  15. package/dist/commonjs/funcs/files-get-v2-files.d.ts.map +1 -0
  16. package/dist/commonjs/funcs/files-get-v2-files.js +127 -0
  17. package/dist/commonjs/funcs/files-get-v2-files.js.map +1 -0
  18. package/dist/commonjs/funcs/files-post-v2-files-upload.d.ts +21 -0
  19. package/dist/commonjs/funcs/files-post-v2-files-upload.d.ts.map +1 -0
  20. package/dist/commonjs/funcs/files-post-v2-files-upload.js +148 -0
  21. package/dist/commonjs/funcs/files-post-v2-files-upload.js.map +1 -0
  22. package/dist/commonjs/funcs/files-post-v2-files.d.ts +21 -0
  23. package/dist/commonjs/funcs/files-post-v2-files.d.ts.map +1 -0
  24. package/dist/commonjs/funcs/files-post-v2-files.js +119 -0
  25. package/dist/commonjs/funcs/files-post-v2-files.js.map +1 -0
  26. package/dist/commonjs/funcs/notes-create.d.ts +1 -1
  27. package/dist/commonjs/funcs/notes-create.d.ts.map +1 -1
  28. package/dist/commonjs/funcs/notes-create.js +2 -2
  29. package/dist/commonjs/funcs/notes-create.js.map +1 -1
  30. package/dist/commonjs/funcs/scim-groups-get-scimv2-groups.d.ts +19 -0
  31. package/dist/commonjs/funcs/scim-groups-get-scimv2-groups.d.ts.map +1 -0
  32. package/dist/commonjs/funcs/scim-groups-get-scimv2-groups.js +106 -0
  33. package/dist/commonjs/funcs/scim-groups-get-scimv2-groups.js.map +1 -0
  34. package/dist/commonjs/funcs/scim-groups-post-scimv2-groups.d.ts +19 -0
  35. package/dist/commonjs/funcs/scim-groups-post-scimv2-groups.d.ts.map +1 -0
  36. package/dist/commonjs/funcs/scim-groups-post-scimv2-groups.js +106 -0
  37. package/dist/commonjs/funcs/scim-groups-post-scimv2-groups.js.map +1 -0
  38. package/dist/commonjs/funcs/scim-schemas-list.d.ts +1 -1
  39. package/dist/commonjs/funcs/scim-schemas-list.js +1 -1
  40. package/dist/commonjs/funcs/scim-users-get-scimv2-users.d.ts +19 -0
  41. package/dist/commonjs/funcs/scim-users-get-scimv2-users.d.ts.map +1 -0
  42. package/dist/commonjs/funcs/scim-users-get-scimv2-users.js +106 -0
  43. package/dist/commonjs/funcs/scim-users-get-scimv2-users.js.map +1 -0
  44. package/dist/commonjs/funcs/scim-users-post-scimv2-users.d.ts +19 -0
  45. package/dist/commonjs/funcs/scim-users-post-scimv2-users.d.ts.map +1 -0
  46. package/dist/commonjs/funcs/scim-users-post-scimv2-users.js +106 -0
  47. package/dist/commonjs/funcs/scim-users-post-scimv2-users.js.map +1 -0
  48. package/dist/commonjs/lib/config.d.ts +3 -3
  49. package/dist/commonjs/lib/config.js +3 -3
  50. package/dist/commonjs/lib/matchers.d.ts.map +1 -1
  51. package/dist/commonjs/lib/matchers.js +0 -1
  52. package/dist/commonjs/lib/matchers.js.map +1 -1
  53. package/dist/commonjs/lib/security.d.ts.map +1 -1
  54. package/dist/commonjs/lib/security.js +1 -2
  55. package/dist/commonjs/lib/security.js.map +1 -1
  56. package/dist/commonjs/models/connected-file.d.ts +107 -0
  57. package/dist/commonjs/models/connected-file.d.ts.map +1 -0
  58. package/dist/commonjs/models/connected-file.js +120 -0
  59. package/dist/commonjs/models/connected-file.js.map +1 -0
  60. package/dist/commonjs/models/connected-folder.d.ts +107 -0
  61. package/dist/commonjs/models/connected-folder.d.ts.map +1 -0
  62. package/dist/commonjs/models/connected-folder.js +120 -0
  63. package/dist/commonjs/models/connected-folder.js.map +1 -0
  64. package/dist/commonjs/models/errors/get-v2-files-file-id.d.ts +29 -0
  65. package/dist/commonjs/models/errors/get-v2-files-file-id.d.ts.map +1 -0
  66. package/dist/commonjs/models/errors/get-v2-files-file-id.js +78 -0
  67. package/dist/commonjs/models/errors/get-v2-files-file-id.js.map +1 -0
  68. package/dist/commonjs/models/errors/get-v2-objects-object.d.ts +25 -0
  69. package/dist/commonjs/models/errors/get-v2-objects-object.d.ts.map +1 -1
  70. package/dist/commonjs/models/errors/get-v2-objects-object.js +34 -1
  71. package/dist/commonjs/models/errors/get-v2-objects-object.js.map +1 -1
  72. package/dist/commonjs/models/errors/index.d.ts +1 -0
  73. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  74. package/dist/commonjs/models/errors/index.js +1 -0
  75. package/dist/commonjs/models/errors/index.js.map +1 -1
  76. package/dist/commonjs/models/file.d.ts +127 -0
  77. package/dist/commonjs/models/file.d.ts.map +1 -0
  78. package/dist/commonjs/models/file.js +132 -0
  79. package/dist/commonjs/models/file.js.map +1 -0
  80. package/dist/commonjs/models/folder.d.ts +107 -0
  81. package/dist/commonjs/models/folder.d.ts.map +1 -0
  82. package/dist/commonjs/models/folder.js +119 -0
  83. package/dist/commonjs/models/folder.js.map +1 -0
  84. package/dist/commonjs/models/index.d.ts +4 -0
  85. package/dist/commonjs/models/index.d.ts.map +1 -1
  86. package/dist/commonjs/models/index.js +4 -0
  87. package/dist/commonjs/models/index.js.map +1 -1
  88. package/dist/commonjs/models/operations/get-scim-v2-groups.d.ts +17 -0
  89. package/dist/commonjs/models/operations/get-scim-v2-groups.d.ts.map +1 -0
  90. package/dist/commonjs/models/operations/get-scim-v2-groups.js +60 -0
  91. package/dist/commonjs/models/operations/get-scim-v2-groups.js.map +1 -0
  92. package/dist/commonjs/models/operations/get-scim-v2-users.d.ts +17 -0
  93. package/dist/commonjs/models/operations/get-scim-v2-users.d.ts.map +1 -0
  94. package/dist/commonjs/models/operations/get-scim-v2-users.js +60 -0
  95. package/dist/commonjs/models/operations/get-scim-v2-users.js.map +1 -0
  96. package/dist/commonjs/models/operations/get-v2-files-file-id-download.d.ts +21 -0
  97. package/dist/commonjs/models/operations/get-v2-files-file-id-download.d.ts.map +1 -0
  98. package/dist/commonjs/models/operations/get-v2-files-file-id-download.js +61 -0
  99. package/dist/commonjs/models/operations/get-v2-files-file-id-download.js.map +1 -0
  100. package/dist/commonjs/models/operations/get-v2-files-file-id.d.ts +169 -0
  101. package/dist/commonjs/models/operations/get-v2-files-file-id.d.ts.map +1 -0
  102. package/dist/commonjs/models/operations/get-v2-files-file-id.js +187 -0
  103. package/dist/commonjs/models/operations/get-v2-files-file-id.js.map +1 -0
  104. package/dist/commonjs/models/operations/get-v2-files.d.ts +70 -0
  105. package/dist/commonjs/models/operations/get-v2-files.d.ts.map +1 -0
  106. package/dist/commonjs/models/operations/get-v2-files.js +114 -0
  107. package/dist/commonjs/models/operations/get-v2-files.js.map +1 -0
  108. package/dist/commonjs/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.d.ts +4402 -0
  109. package/dist/commonjs/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.d.ts.map +1 -0
  110. package/dist/commonjs/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.js +3773 -0
  111. package/dist/commonjs/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.js.map +1 -0
  112. package/dist/commonjs/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.d.ts +538 -0
  113. package/dist/commonjs/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.d.ts.map +1 -0
  114. package/dist/commonjs/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.js +499 -0
  115. package/dist/commonjs/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.js.map +1 -0
  116. package/dist/commonjs/models/operations/get-v2-self.d.ts +1 -1
  117. package/dist/commonjs/models/operations/get-v2-self.d.ts.map +1 -1
  118. package/dist/commonjs/models/operations/get-v2-self.js +1 -1
  119. package/dist/commonjs/models/operations/get-v2-self.js.map +1 -1
  120. package/dist/commonjs/models/operations/index.d.ts +15 -2
  121. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  122. package/dist/commonjs/models/operations/index.js +15 -2
  123. package/dist/commonjs/models/operations/index.js.map +1 -1
  124. package/dist/commonjs/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.d.ts +3854 -0
  125. package/dist/commonjs/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.d.ts.map +1 -0
  126. package/dist/commonjs/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.js +3221 -0
  127. package/dist/commonjs/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.js.map +1 -0
  128. package/dist/commonjs/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.d.ts +3675 -0
  129. package/dist/commonjs/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.d.ts.map +1 -0
  130. package/dist/commonjs/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.js +3065 -0
  131. package/dist/commonjs/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.js.map +1 -0
  132. package/dist/commonjs/models/operations/patch-v2-tasks-task-id-response.d.ts +583 -0
  133. package/dist/commonjs/models/operations/patch-v2-tasks-task-id-response.d.ts.map +1 -0
  134. package/dist/commonjs/models/operations/patch-v2-tasks-task-id-response.js +572 -0
  135. package/dist/commonjs/models/operations/patch-v2-tasks-task-id-response.js.map +1 -0
  136. package/dist/commonjs/models/operations/post-scim-v2-groups.d.ts +33 -0
  137. package/dist/commonjs/models/operations/post-scim-v2-groups.d.ts.map +1 -0
  138. package/dist/commonjs/models/operations/post-scim-v2-groups.js +80 -0
  139. package/dist/commonjs/models/operations/post-scim-v2-groups.js.map +1 -0
  140. package/dist/commonjs/models/operations/post-scim-v2-users.d.ts +51 -0
  141. package/dist/commonjs/models/operations/post-scim-v2-users.d.ts.map +1 -0
  142. package/dist/commonjs/models/operations/post-scim-v2-users.js +97 -0
  143. package/dist/commonjs/models/operations/post-scim-v2-users.js.map +1 -0
  144. package/dist/commonjs/models/operations/post-v2-files-upload.d.ts +54 -0
  145. package/dist/commonjs/models/operations/post-v2-files-upload.d.ts.map +1 -0
  146. package/dist/commonjs/models/operations/post-v2-files-upload.js +84 -0
  147. package/dist/commonjs/models/operations/post-v2-files-upload.js.map +1 -0
  148. package/dist/commonjs/models/operations/post-v2-files.d.ts +165 -0
  149. package/dist/commonjs/models/operations/post-v2-files.d.ts.map +1 -0
  150. package/dist/commonjs/models/operations/post-v2-files.js +159 -0
  151. package/dist/commonjs/models/operations/post-v2-files.js.map +1 -0
  152. package/dist/commonjs/models/operations/post-v2-tasks-assignee-workspace-member.d.ts +4040 -0
  153. package/dist/commonjs/models/operations/post-v2-tasks-assignee-workspace-member.d.ts.map +1 -0
  154. package/dist/commonjs/models/operations/post-v2-tasks-assignee-workspace-member.js +3440 -0
  155. package/dist/commonjs/models/operations/post-v2-tasks-assignee-workspace-member.js.map +1 -0
  156. package/dist/commonjs/sdk/files.d.ts +71 -0
  157. package/dist/commonjs/sdk/files.d.ts.map +1 -0
  158. package/dist/commonjs/sdk/files.js +96 -0
  159. package/dist/commonjs/sdk/files.js.map +1 -0
  160. package/dist/commonjs/sdk/scim-groups.d.ts +23 -0
  161. package/dist/commonjs/sdk/scim-groups.d.ts.map +1 -0
  162. package/dist/commonjs/sdk/scim-groups.js +36 -0
  163. package/dist/commonjs/sdk/scim-groups.js.map +1 -0
  164. package/dist/commonjs/sdk/scim-schemas.d.ts +1 -1
  165. package/dist/commonjs/sdk/scim-schemas.js +1 -1
  166. package/dist/commonjs/sdk/scim-users.d.ts +23 -0
  167. package/dist/commonjs/sdk/scim-users.d.ts.map +1 -0
  168. package/dist/commonjs/sdk/scim-users.js +36 -0
  169. package/dist/commonjs/sdk/scim-users.js.map +1 -0
  170. package/dist/commonjs/sdk/sdk.d.ts +9 -0
  171. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  172. package/dist/commonjs/sdk/sdk.js +12 -0
  173. package/dist/commonjs/sdk/sdk.js.map +1 -1
  174. package/dist/esm/funcs/files-delete-v2-files-file-id.d.ts +22 -0
  175. package/dist/esm/funcs/files-delete-v2-files-file-id.d.ts.map +1 -0
  176. package/dist/esm/funcs/files-delete-v2-files-file-id.js +92 -0
  177. package/dist/esm/funcs/files-delete-v2-files-file-id.js.map +1 -0
  178. package/dist/esm/funcs/files-get-v2-files-file-id-download.d.ts +21 -0
  179. package/dist/esm/funcs/files-get-v2-files-file-id-download.d.ts.map +1 -0
  180. package/dist/esm/funcs/files-get-v2-files-file-id-download.js +88 -0
  181. package/dist/esm/funcs/files-get-v2-files-file-id-download.js.map +1 -0
  182. package/dist/esm/funcs/files-get-v2-files-file-id.d.ts +22 -0
  183. package/dist/esm/funcs/files-get-v2-files-file-id.d.ts.map +1 -0
  184. package/dist/esm/funcs/files-get-v2-files-file-id.js +92 -0
  185. package/dist/esm/funcs/files-get-v2-files-file-id.js.map +1 -0
  186. package/dist/esm/funcs/files-get-v2-files.d.ts +21 -0
  187. package/dist/esm/funcs/files-get-v2-files.d.ts.map +1 -0
  188. package/dist/esm/funcs/files-get-v2-files.js +91 -0
  189. package/dist/esm/funcs/files-get-v2-files.js.map +1 -0
  190. package/dist/esm/funcs/files-post-v2-files-upload.d.ts +21 -0
  191. package/dist/esm/funcs/files-post-v2-files-upload.d.ts.map +1 -0
  192. package/dist/esm/funcs/files-post-v2-files-upload.js +112 -0
  193. package/dist/esm/funcs/files-post-v2-files-upload.js.map +1 -0
  194. package/dist/esm/funcs/files-post-v2-files.d.ts +21 -0
  195. package/dist/esm/funcs/files-post-v2-files.d.ts.map +1 -0
  196. package/dist/esm/funcs/files-post-v2-files.js +83 -0
  197. package/dist/esm/funcs/files-post-v2-files.js.map +1 -0
  198. package/dist/esm/funcs/notes-create.d.ts +1 -1
  199. package/dist/esm/funcs/notes-create.d.ts.map +1 -1
  200. package/dist/esm/funcs/notes-create.js +2 -2
  201. package/dist/esm/funcs/notes-create.js.map +1 -1
  202. package/dist/esm/funcs/scim-groups-get-scimv2-groups.d.ts +19 -0
  203. package/dist/esm/funcs/scim-groups-get-scimv2-groups.d.ts.map +1 -0
  204. package/dist/esm/funcs/scim-groups-get-scimv2-groups.js +70 -0
  205. package/dist/esm/funcs/scim-groups-get-scimv2-groups.js.map +1 -0
  206. package/dist/esm/funcs/scim-groups-post-scimv2-groups.d.ts +19 -0
  207. package/dist/esm/funcs/scim-groups-post-scimv2-groups.d.ts.map +1 -0
  208. package/dist/esm/funcs/scim-groups-post-scimv2-groups.js +70 -0
  209. package/dist/esm/funcs/scim-groups-post-scimv2-groups.js.map +1 -0
  210. package/dist/esm/funcs/scim-schemas-list.d.ts +1 -1
  211. package/dist/esm/funcs/scim-schemas-list.js +1 -1
  212. package/dist/esm/funcs/scim-users-get-scimv2-users.d.ts +19 -0
  213. package/dist/esm/funcs/scim-users-get-scimv2-users.d.ts.map +1 -0
  214. package/dist/esm/funcs/scim-users-get-scimv2-users.js +70 -0
  215. package/dist/esm/funcs/scim-users-get-scimv2-users.js.map +1 -0
  216. package/dist/esm/funcs/scim-users-post-scimv2-users.d.ts +19 -0
  217. package/dist/esm/funcs/scim-users-post-scimv2-users.d.ts.map +1 -0
  218. package/dist/esm/funcs/scim-users-post-scimv2-users.js +70 -0
  219. package/dist/esm/funcs/scim-users-post-scimv2-users.js.map +1 -0
  220. package/dist/esm/lib/config.d.ts +3 -3
  221. package/dist/esm/lib/config.js +3 -3
  222. package/dist/esm/lib/matchers.d.ts.map +1 -1
  223. package/dist/esm/lib/matchers.js +0 -1
  224. package/dist/esm/lib/matchers.js.map +1 -1
  225. package/dist/esm/lib/security.d.ts.map +1 -1
  226. package/dist/esm/lib/security.js +1 -2
  227. package/dist/esm/lib/security.js.map +1 -1
  228. package/dist/esm/models/connected-file.d.ts +107 -0
  229. package/dist/esm/models/connected-file.d.ts.map +1 -0
  230. package/dist/esm/models/connected-file.js +81 -0
  231. package/dist/esm/models/connected-file.js.map +1 -0
  232. package/dist/esm/models/connected-folder.d.ts +107 -0
  233. package/dist/esm/models/connected-folder.d.ts.map +1 -0
  234. package/dist/esm/models/connected-folder.js +81 -0
  235. package/dist/esm/models/connected-folder.js.map +1 -0
  236. package/dist/esm/models/errors/get-v2-files-file-id.d.ts +29 -0
  237. package/dist/esm/models/errors/get-v2-files-file-id.d.ts.map +1 -0
  238. package/dist/esm/models/errors/get-v2-files-file-id.js +41 -0
  239. package/dist/esm/models/errors/get-v2-files-file-id.js.map +1 -0
  240. package/dist/esm/models/errors/get-v2-objects-object.d.ts +25 -0
  241. package/dist/esm/models/errors/get-v2-objects-object.d.ts.map +1 -1
  242. package/dist/esm/models/errors/get-v2-objects-object.js +32 -0
  243. package/dist/esm/models/errors/get-v2-objects-object.js.map +1 -1
  244. package/dist/esm/models/errors/index.d.ts +1 -0
  245. package/dist/esm/models/errors/index.d.ts.map +1 -1
  246. package/dist/esm/models/errors/index.js +1 -0
  247. package/dist/esm/models/errors/index.js.map +1 -1
  248. package/dist/esm/models/file.d.ts +127 -0
  249. package/dist/esm/models/file.d.ts.map +1 -0
  250. package/dist/esm/models/file.js +93 -0
  251. package/dist/esm/models/file.js.map +1 -0
  252. package/dist/esm/models/folder.d.ts +107 -0
  253. package/dist/esm/models/folder.d.ts.map +1 -0
  254. package/dist/esm/models/folder.js +80 -0
  255. package/dist/esm/models/folder.js.map +1 -0
  256. package/dist/esm/models/index.d.ts +4 -0
  257. package/dist/esm/models/index.d.ts.map +1 -1
  258. package/dist/esm/models/index.js +4 -0
  259. package/dist/esm/models/index.js.map +1 -1
  260. package/dist/esm/models/operations/get-scim-v2-groups.d.ts +17 -0
  261. package/dist/esm/models/operations/get-scim-v2-groups.d.ts.map +1 -0
  262. package/dist/esm/models/operations/get-scim-v2-groups.js +23 -0
  263. package/dist/esm/models/operations/get-scim-v2-groups.js.map +1 -0
  264. package/dist/esm/models/operations/get-scim-v2-users.d.ts +17 -0
  265. package/dist/esm/models/operations/get-scim-v2-users.d.ts.map +1 -0
  266. package/dist/esm/models/operations/get-scim-v2-users.js +23 -0
  267. package/dist/esm/models/operations/get-scim-v2-users.js.map +1 -0
  268. package/dist/esm/models/operations/get-v2-files-file-id-download.d.ts +21 -0
  269. package/dist/esm/models/operations/get-v2-files-file-id-download.d.ts.map +1 -0
  270. package/dist/esm/models/operations/get-v2-files-file-id-download.js +23 -0
  271. package/dist/esm/models/operations/get-v2-files-file-id-download.js.map +1 -0
  272. package/dist/esm/models/operations/get-v2-files-file-id.d.ts +169 -0
  273. package/dist/esm/models/operations/get-v2-files-file-id.d.ts.map +1 -0
  274. package/dist/esm/models/operations/get-v2-files-file-id.js +143 -0
  275. package/dist/esm/models/operations/get-v2-files-file-id.js.map +1 -0
  276. package/dist/esm/models/operations/get-v2-files.d.ts +70 -0
  277. package/dist/esm/models/operations/get-v2-files.d.ts.map +1 -0
  278. package/dist/esm/models/operations/get-v2-files.js +74 -0
  279. package/dist/esm/models/operations/get-v2-files.js.map +1 -0
  280. package/dist/esm/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.d.ts +4402 -0
  281. package/dist/esm/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.d.ts.map +1 -0
  282. package/dist/esm/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.js +3639 -0
  283. package/dist/esm/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.js.map +1 -0
  284. package/dist/esm/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.d.ts +538 -0
  285. package/dist/esm/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.d.ts.map +1 -0
  286. package/dist/esm/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.js +445 -0
  287. package/dist/esm/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.js.map +1 -0
  288. package/dist/esm/models/operations/get-v2-self.d.ts +1 -1
  289. package/dist/esm/models/operations/get-v2-self.d.ts.map +1 -1
  290. package/dist/esm/models/operations/get-v2-self.js +1 -1
  291. package/dist/esm/models/operations/get-v2-self.js.map +1 -1
  292. package/dist/esm/models/operations/index.d.ts +15 -2
  293. package/dist/esm/models/operations/index.d.ts.map +1 -1
  294. package/dist/esm/models/operations/index.js +15 -2
  295. package/dist/esm/models/operations/index.js.map +1 -1
  296. package/dist/esm/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.d.ts +3854 -0
  297. package/dist/esm/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.d.ts.map +1 -0
  298. package/dist/esm/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.js +3085 -0
  299. package/dist/esm/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.js.map +1 -0
  300. package/dist/esm/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.d.ts +3675 -0
  301. package/dist/esm/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.d.ts.map +1 -0
  302. package/dist/esm/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.js +2932 -0
  303. package/dist/esm/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.js.map +1 -0
  304. package/dist/esm/models/operations/patch-v2-tasks-task-id-response.d.ts +583 -0
  305. package/dist/esm/models/operations/patch-v2-tasks-task-id-response.d.ts.map +1 -0
  306. package/dist/esm/models/operations/patch-v2-tasks-task-id-response.js +516 -0
  307. package/dist/esm/models/operations/patch-v2-tasks-task-id-response.js.map +1 -0
  308. package/dist/esm/models/operations/post-scim-v2-groups.d.ts +33 -0
  309. package/dist/esm/models/operations/post-scim-v2-groups.d.ts.map +1 -0
  310. package/dist/esm/models/operations/post-scim-v2-groups.js +41 -0
  311. package/dist/esm/models/operations/post-scim-v2-groups.js.map +1 -0
  312. package/dist/esm/models/operations/post-scim-v2-users.d.ts +51 -0
  313. package/dist/esm/models/operations/post-scim-v2-users.d.ts.map +1 -0
  314. package/dist/esm/models/operations/post-scim-v2-users.js +56 -0
  315. package/dist/esm/models/operations/post-scim-v2-users.js.map +1 -0
  316. package/dist/esm/models/operations/post-v2-files-upload.d.ts +54 -0
  317. package/dist/esm/models/operations/post-v2-files-upload.d.ts.map +1 -0
  318. package/dist/esm/models/operations/post-v2-files-upload.js +45 -0
  319. package/dist/esm/models/operations/post-v2-files-upload.js.map +1 -0
  320. package/dist/esm/models/operations/post-v2-files.d.ts +165 -0
  321. package/dist/esm/models/operations/post-v2-files.d.ts.map +1 -0
  322. package/dist/esm/models/operations/post-v2-files.js +117 -0
  323. package/dist/esm/models/operations/post-v2-files.js.map +1 -0
  324. package/dist/esm/models/operations/post-v2-tasks-assignee-workspace-member.d.ts +4040 -0
  325. package/dist/esm/models/operations/post-v2-tasks-assignee-workspace-member.d.ts.map +1 -0
  326. package/dist/esm/models/operations/post-v2-tasks-assignee-workspace-member.js +3303 -0
  327. package/dist/esm/models/operations/post-v2-tasks-assignee-workspace-member.js.map +1 -0
  328. package/dist/esm/sdk/files.d.ts +71 -0
  329. package/dist/esm/sdk/files.d.ts.map +1 -0
  330. package/dist/esm/sdk/files.js +92 -0
  331. package/dist/esm/sdk/files.js.map +1 -0
  332. package/dist/esm/sdk/scim-groups.d.ts +23 -0
  333. package/dist/esm/sdk/scim-groups.d.ts.map +1 -0
  334. package/dist/esm/sdk/scim-groups.js +32 -0
  335. package/dist/esm/sdk/scim-groups.js.map +1 -0
  336. package/dist/esm/sdk/scim-schemas.d.ts +1 -1
  337. package/dist/esm/sdk/scim-schemas.js +1 -1
  338. package/dist/esm/sdk/scim-users.d.ts +23 -0
  339. package/dist/esm/sdk/scim-users.d.ts.map +1 -0
  340. package/dist/esm/sdk/scim-users.js +32 -0
  341. package/dist/esm/sdk/scim-users.js.map +1 -0
  342. package/dist/esm/sdk/sdk.d.ts +9 -0
  343. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  344. package/dist/esm/sdk/sdk.js +12 -0
  345. package/dist/esm/sdk/sdk.js.map +1 -1
  346. package/jsr.json +1 -1
  347. package/package.json +2 -2
  348. package/src/funcs/files-delete-v2-files-file-id.ts +181 -0
  349. package/src/funcs/files-get-v2-files-file-id-download.ts +172 -0
  350. package/src/funcs/files-get-v2-files-file-id.ts +181 -0
  351. package/src/funcs/files-get-v2-files.ts +174 -0
  352. package/src/funcs/files-post-v2-files-upload.ts +206 -0
  353. package/src/funcs/files-post-v2-files.ts +165 -0
  354. package/src/funcs/notes-create.ts +5 -1
  355. package/src/funcs/scim-groups-get-scimv2-groups.ts +144 -0
  356. package/src/funcs/scim-groups-post-scimv2-groups.ts +144 -0
  357. package/src/funcs/scim-schemas-list.ts +1 -1
  358. package/src/funcs/scim-users-get-scimv2-users.ts +144 -0
  359. package/src/funcs/scim-users-post-scimv2-users.ts +144 -0
  360. package/src/lib/config.ts +3 -3
  361. package/src/lib/matchers.ts +3 -2
  362. package/src/lib/security.ts +1 -2
  363. package/src/models/connected-file.ts +208 -0
  364. package/src/models/connected-folder.ts +208 -0
  365. package/src/models/errors/get-v2-files-file-id.ts +70 -0
  366. package/src/models/errors/get-v2-objects-object.ts +61 -0
  367. package/src/models/errors/index.ts +1 -0
  368. package/src/models/file.ts +224 -0
  369. package/src/models/folder.ts +197 -0
  370. package/src/models/index.ts +4 -0
  371. package/src/models/operations/get-scim-v2-groups.ts +50 -0
  372. package/src/models/operations/get-scim-v2-users.ts +50 -0
  373. package/src/models/operations/get-v2-files-file-id-download.ts +64 -0
  374. package/src/models/operations/get-v2-files-file-id.ts +404 -0
  375. package/src/models/operations/get-v2-files.ts +195 -0
  376. package/src/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-owner-actor-type.ts +8164 -0
  377. package/src/models/operations/get-v2-lists-list-entries-entry-id-attributes-attribute-values-response.ts +1446 -0
  378. package/src/models/operations/get-v2-self.ts +2 -2
  379. package/src/models/operations/index.ts +15 -2
  380. package/src/models/operations/patch-v2-lists-list-entries-entry-id-entry-value-rating.ts +7440 -0
  381. package/src/models/operations/patch-v2-objects-object-records-record-id-bad-request-type.ts +6858 -0
  382. package/src/models/operations/patch-v2-tasks-task-id-response.ts +1152 -0
  383. package/src/models/operations/post-scim-v2-groups.ts +99 -0
  384. package/src/models/operations/post-scim-v2-users.ts +141 -0
  385. package/src/models/operations/post-v2-files-upload.ts +117 -0
  386. package/src/models/operations/post-v2-files.ts +336 -0
  387. package/src/models/operations/post-v2-tasks-assignee-workspace-member.ts +7843 -0
  388. package/src/sdk/files.ts +141 -0
  389. package/src/sdk/scim-groups.ts +45 -0
  390. package/src/sdk/scim-schemas.ts +1 -1
  391. package/src/sdk/scim-users.ts +45 -0
  392. package/src/sdk/sdk.ts +18 -0
  393. package/.devcontainer/devcontainer.json +0 -45
  394. package/dist/commonjs/models/operations/get-v2-lists-list.d.ts +0 -8779
  395. package/dist/commonjs/models/operations/get-v2-lists-list.d.ts.map +0 -1
  396. package/dist/commonjs/models/operations/get-v2-lists-list.js +0 -7398
  397. package/dist/commonjs/models/operations/get-v2-lists-list.js.map +0 -1
  398. package/dist/commonjs/models/operations/get-v2-objects-object.d.ts +0 -8272
  399. package/dist/commonjs/models/operations/get-v2-objects-object.d.ts.map +0 -1
  400. package/dist/commonjs/models/operations/get-v2-objects-object.js +0 -6977
  401. package/dist/commonjs/models/operations/get-v2-objects-object.js.map +0 -1
  402. package/dist/esm/models/operations/get-v2-lists-list.d.ts +0 -8779
  403. package/dist/esm/models/operations/get-v2-lists-list.d.ts.map +0 -1
  404. package/dist/esm/models/operations/get-v2-lists-list.js +0 -7146
  405. package/dist/esm/models/operations/get-v2-lists-list.js.map +0 -1
  406. package/dist/esm/models/operations/get-v2-objects-object.d.ts +0 -8272
  407. package/dist/esm/models/operations/get-v2-objects-object.d.ts.map +0 -1
  408. package/dist/esm/models/operations/get-v2-objects-object.js +0 -6723
  409. package/dist/esm/models/operations/get-v2-objects-object.js.map +0 -1
  410. package/examples/node_modules/.package-lock.json +0 -174
  411. package/examples/node_modules/@esbuild/darwin-arm64/package.json +0 -20
  412. package/examples/node_modules/@types/node/assert/strict.d.ts +0 -8
  413. package/examples/node_modules/@types/node/assert.d.ts +0 -1062
  414. package/examples/node_modules/@types/node/async_hooks.d.ts +0 -605
  415. package/examples/node_modules/@types/node/buffer.buffer.d.ts +0 -471
  416. package/examples/node_modules/@types/node/buffer.d.ts +0 -1936
  417. package/examples/node_modules/@types/node/child_process.d.ts +0 -1475
  418. package/examples/node_modules/@types/node/cluster.d.ts +0 -577
  419. package/examples/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  420. package/examples/node_modules/@types/node/compatibility/index.d.ts +0 -9
  421. package/examples/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  422. package/examples/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  423. package/examples/node_modules/@types/node/console.d.ts +0 -452
  424. package/examples/node_modules/@types/node/constants.d.ts +0 -21
  425. package/examples/node_modules/@types/node/crypto.d.ts +0 -4590
  426. package/examples/node_modules/@types/node/dgram.d.ts +0 -597
  427. package/examples/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  428. package/examples/node_modules/@types/node/dns/promises.d.ts +0 -479
  429. package/examples/node_modules/@types/node/dns.d.ts +0 -871
  430. package/examples/node_modules/@types/node/domain.d.ts +0 -170
  431. package/examples/node_modules/@types/node/events.d.ts +0 -977
  432. package/examples/node_modules/@types/node/fs/promises.d.ts +0 -1270
  433. package/examples/node_modules/@types/node/fs.d.ts +0 -4375
  434. package/examples/node_modules/@types/node/globals.d.ts +0 -172
  435. package/examples/node_modules/@types/node/globals.typedarray.d.ts +0 -38
  436. package/examples/node_modules/@types/node/http.d.ts +0 -2049
  437. package/examples/node_modules/@types/node/http2.d.ts +0 -2631
  438. package/examples/node_modules/@types/node/https.d.ts +0 -578
  439. package/examples/node_modules/@types/node/index.d.ts +0 -93
  440. package/examples/node_modules/@types/node/inspector.generated.d.ts +0 -3966
  441. package/examples/node_modules/@types/node/module.d.ts +0 -539
  442. package/examples/node_modules/@types/node/net.d.ts +0 -1012
  443. package/examples/node_modules/@types/node/os.d.ts +0 -506
  444. package/examples/node_modules/@types/node/package.json +0 -140
  445. package/examples/node_modules/@types/node/path.d.ts +0 -200
  446. package/examples/node_modules/@types/node/perf_hooks.d.ts +0 -961
  447. package/examples/node_modules/@types/node/process.d.ts +0 -1966
  448. package/examples/node_modules/@types/node/punycode.d.ts +0 -117
  449. package/examples/node_modules/@types/node/querystring.d.ts +0 -152
  450. package/examples/node_modules/@types/node/readline/promises.d.ts +0 -162
  451. package/examples/node_modules/@types/node/readline.d.ts +0 -589
  452. package/examples/node_modules/@types/node/repl.d.ts +0 -430
  453. package/examples/node_modules/@types/node/sea.d.ts +0 -153
  454. package/examples/node_modules/@types/node/stream/consumers.d.ts +0 -38
  455. package/examples/node_modules/@types/node/stream/promises.d.ts +0 -90
  456. package/examples/node_modules/@types/node/stream/web.d.ts +0 -533
  457. package/examples/node_modules/@types/node/stream.d.ts +0 -1675
  458. package/examples/node_modules/@types/node/string_decoder.d.ts +0 -67
  459. package/examples/node_modules/@types/node/test.d.ts +0 -1787
  460. package/examples/node_modules/@types/node/timers/promises.d.ts +0 -108
  461. package/examples/node_modules/@types/node/timers.d.ts +0 -286
  462. package/examples/node_modules/@types/node/tls.d.ts +0 -1259
  463. package/examples/node_modules/@types/node/trace_events.d.ts +0 -197
  464. package/examples/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
  465. package/examples/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
  466. package/examples/node_modules/@types/node/ts5.6/index.d.ts +0 -93
  467. package/examples/node_modules/@types/node/tty.d.ts +0 -208
  468. package/examples/node_modules/@types/node/url.d.ts +0 -964
  469. package/examples/node_modules/@types/node/util.d.ts +0 -2331
  470. package/examples/node_modules/@types/node/v8.d.ts +0 -809
  471. package/examples/node_modules/@types/node/vm.d.ts +0 -1001
  472. package/examples/node_modules/@types/node/wasi.d.ts +0 -181
  473. package/examples/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  474. package/examples/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  475. package/examples/node_modules/@types/node/web-globals/events.d.ts +0 -97
  476. package/examples/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
  477. package/examples/node_modules/@types/node/worker_threads.d.ts +0 -715
  478. package/examples/node_modules/@types/node/zlib.d.ts +0 -540
  479. package/examples/node_modules/dotenv/config.d.ts +0 -1
  480. package/examples/node_modules/dotenv/config.js +0 -9
  481. package/examples/node_modules/dotenv/lib/cli-options.js +0 -17
  482. package/examples/node_modules/dotenv/lib/env-options.js +0 -28
  483. package/examples/node_modules/dotenv/lib/main.d.ts +0 -162
  484. package/examples/node_modules/dotenv/lib/main.js +0 -386
  485. package/examples/node_modules/dotenv/package.json +0 -62
  486. package/examples/node_modules/esbuild/install.js +0 -289
  487. package/examples/node_modules/esbuild/lib/main.d.ts +0 -716
  488. package/examples/node_modules/esbuild/lib/main.js +0 -2242
  489. package/examples/node_modules/esbuild/package.json +0 -49
  490. package/examples/node_modules/fsevents/fsevents.d.ts +0 -46
  491. package/examples/node_modules/fsevents/fsevents.js +0 -83
  492. package/examples/node_modules/fsevents/package.json +0 -62
  493. package/examples/node_modules/get-tsconfig/dist/index.mjs +0 -7
  494. package/examples/node_modules/get-tsconfig/package.json +0 -46
  495. package/examples/node_modules/resolve-pkg-maps/dist/index.mjs +0 -1
  496. package/examples/node_modules/resolve-pkg-maps/package.json +0 -42
  497. package/examples/node_modules/tsx/dist/cjs/api/index.mjs +0 -1
  498. package/examples/node_modules/tsx/dist/cjs/index.mjs +0 -1
  499. package/examples/node_modules/tsx/dist/cli.mjs +0 -55
  500. package/examples/node_modules/tsx/dist/client-BQVF1NaW.mjs +0 -1
  501. package/examples/node_modules/tsx/dist/esm/api/index.mjs +0 -1
  502. package/examples/node_modules/tsx/dist/esm/index.mjs +0 -2
  503. package/examples/node_modules/tsx/dist/get-pipe-path-BHW2eJdv.mjs +0 -1
  504. package/examples/node_modules/tsx/dist/index-7AaEi15b.mjs +0 -14
  505. package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +0 -1
  506. package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +0 -3
  507. package/examples/node_modules/tsx/dist/loader.mjs +0 -1
  508. package/examples/node_modules/tsx/dist/node-features-_8ZFwP_x.mjs +0 -1
  509. package/examples/node_modules/tsx/dist/package-CeBgXWuR.mjs +0 -1
  510. package/examples/node_modules/tsx/dist/patch-repl.mjs +0 -1
  511. package/examples/node_modules/tsx/dist/preflight.mjs +0 -1
  512. package/examples/node_modules/tsx/dist/register-B7jrtLTO.mjs +0 -1
  513. package/examples/node_modules/tsx/dist/register-CFH5oNdT.mjs +0 -4
  514. package/examples/node_modules/tsx/dist/repl.mjs +0 -3
  515. package/examples/node_modules/tsx/dist/require-DQxpCAr4.mjs +0 -1
  516. package/examples/node_modules/tsx/dist/suppress-warnings.mjs +0 -1
  517. package/examples/node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs +0 -1
  518. package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +0 -5
  519. package/examples/node_modules/tsx/package.json +0 -68
  520. package/examples/node_modules/undici-types/agent.d.ts +0 -31
  521. package/examples/node_modules/undici-types/api.d.ts +0 -43
  522. package/examples/node_modules/undici-types/balanced-pool.d.ts +0 -29
  523. package/examples/node_modules/undici-types/cache.d.ts +0 -36
  524. package/examples/node_modules/undici-types/client.d.ts +0 -108
  525. package/examples/node_modules/undici-types/connector.d.ts +0 -34
  526. package/examples/node_modules/undici-types/content-type.d.ts +0 -21
  527. package/examples/node_modules/undici-types/cookies.d.ts +0 -28
  528. package/examples/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  529. package/examples/node_modules/undici-types/dispatcher.d.ts +0 -256
  530. package/examples/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  531. package/examples/node_modules/undici-types/errors.d.ts +0 -149
  532. package/examples/node_modules/undici-types/eventsource.d.ts +0 -61
  533. package/examples/node_modules/undici-types/fetch.d.ts +0 -209
  534. package/examples/node_modules/undici-types/file.d.ts +0 -39
  535. package/examples/node_modules/undici-types/filereader.d.ts +0 -54
  536. package/examples/node_modules/undici-types/formdata.d.ts +0 -108
  537. package/examples/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  538. package/examples/node_modules/undici-types/global-origin.d.ts +0 -7
  539. package/examples/node_modules/undici-types/handlers.d.ts +0 -15
  540. package/examples/node_modules/undici-types/header.d.ts +0 -4
  541. package/examples/node_modules/undici-types/index.d.ts +0 -71
  542. package/examples/node_modules/undici-types/interceptors.d.ts +0 -17
  543. package/examples/node_modules/undici-types/mock-agent.d.ts +0 -50
  544. package/examples/node_modules/undici-types/mock-client.d.ts +0 -25
  545. package/examples/node_modules/undici-types/mock-errors.d.ts +0 -12
  546. package/examples/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  547. package/examples/node_modules/undici-types/mock-pool.d.ts +0 -25
  548. package/examples/node_modules/undici-types/package.json +0 -55
  549. package/examples/node_modules/undici-types/patch.d.ts +0 -33
  550. package/examples/node_modules/undici-types/pool-stats.d.ts +0 -19
  551. package/examples/node_modules/undici-types/pool.d.ts +0 -39
  552. package/examples/node_modules/undici-types/proxy-agent.d.ts +0 -28
  553. package/examples/node_modules/undici-types/readable.d.ts +0 -65
  554. package/examples/node_modules/undici-types/retry-agent.d.ts +0 -8
  555. package/examples/node_modules/undici-types/retry-handler.d.ts +0 -116
  556. package/examples/node_modules/undici-types/util.d.ts +0 -18
  557. package/examples/node_modules/undici-types/webidl.d.ts +0 -228
  558. package/examples/node_modules/undici-types/websocket.d.ts +0 -150
  559. package/examples/package-lock.json +0 -611
  560. package/examples/package.json +0 -18
  561. package/src/models/operations/get-v2-lists-list.ts +0 -17016
  562. package/src/models/operations/get-v2-objects-object.ts +0 -15794
  563. package/tsconfig.json +0 -40
@@ -0,0 +1,1152 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { smartUnion } from "../../types/smart-union.js";
11
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
12
+ import * as models from "../index.js";
13
+ import {
14
+ PostV2TasksAssignee,
15
+ PostV2TasksAssignee$Outbound,
16
+ PostV2TasksAssignee$outboundSchema,
17
+ PostV2TasksAssigneeWorkspaceMember,
18
+ PostV2TasksAssigneeWorkspaceMember$Outbound,
19
+ PostV2TasksAssigneeWorkspaceMember$outboundSchema,
20
+ PostV2TasksFormat,
21
+ PostV2TasksFormat$outboundSchema,
22
+ PostV2TasksLinkedRecordUnion,
23
+ PostV2TasksLinkedRecordUnion$Outbound,
24
+ PostV2TasksLinkedRecordUnion$outboundSchema,
25
+ } from "./post-v2-tasks-assignee-workspace-member.js";
26
+
27
+ export type PostV2TasksAssigneeUnion =
28
+ | PostV2TasksAssigneeWorkspaceMember
29
+ | PostV2TasksAssignee;
30
+
31
+ export type PostV2TasksData = {
32
+ /**
33
+ * The text content of the task, in the format specified by the `format` property. A max length of 2000 characters is enforced.
34
+ */
35
+ content: string;
36
+ /**
37
+ * The format of the task content to be created. Rich text formatting, links and @references are not supported.
38
+ */
39
+ format: PostV2TasksFormat;
40
+ /**
41
+ * The deadline of the task, in ISO 8601 format.
42
+ */
43
+ deadlineAt: string | null;
44
+ /**
45
+ * Whether the task has been completed.
46
+ */
47
+ isCompleted: boolean;
48
+ /**
49
+ * Records linked to the task. Creating record links within task content text is not possible via the API at present.
50
+ */
51
+ linkedRecords: Array<PostV2TasksLinkedRecordUnion>;
52
+ /**
53
+ * Workspace members assigned to this task.
54
+ */
55
+ assignees: Array<PostV2TasksAssigneeWorkspaceMember | PostV2TasksAssignee>;
56
+ };
57
+
58
+ export type PostV2TasksRequest = {
59
+ data: PostV2TasksData;
60
+ };
61
+
62
+ export const PostV2TasksBadRequestType = {
63
+ InvalidRequestError: "invalid_request_error",
64
+ } as const;
65
+ export type PostV2TasksBadRequestType = ClosedEnum<
66
+ typeof PostV2TasksBadRequestType
67
+ >;
68
+
69
+ export const PostV2TasksCodeValidationType = {
70
+ ValidationType: "validation_type",
71
+ } as const;
72
+ export type PostV2TasksCodeValidationType = ClosedEnum<
73
+ typeof PostV2TasksCodeValidationType
74
+ >;
75
+
76
+ /**
77
+ * Success
78
+ */
79
+ export type PostV2TasksResponse = {
80
+ data: models.Task;
81
+ };
82
+
83
+ export type PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5 = {
84
+ /**
85
+ * A raw text field. Values are limited to 10MB.
86
+ */
87
+ value?: string | undefined;
88
+ };
89
+
90
+ /**
91
+ * The ISO 3166-1 alpha-2 country code representing the country that this phone number belongs to.
92
+ */
93
+ export const PatchV2TasksTaskIdCountryCode = {
94
+ Af: "AF",
95
+ Ax: "AX",
96
+ Al: "AL",
97
+ Dz: "DZ",
98
+ As: "AS",
99
+ Ad: "AD",
100
+ Ao: "AO",
101
+ Ai: "AI",
102
+ Aq: "AQ",
103
+ Ag: "AG",
104
+ Ar: "AR",
105
+ Am: "AM",
106
+ Aw: "AW",
107
+ Au: "AU",
108
+ At: "AT",
109
+ Az: "AZ",
110
+ Bs: "BS",
111
+ Bh: "BH",
112
+ Bd: "BD",
113
+ Bb: "BB",
114
+ By: "BY",
115
+ Be: "BE",
116
+ Bz: "BZ",
117
+ Bj: "BJ",
118
+ Bm: "BM",
119
+ Bt: "BT",
120
+ Bo: "BO",
121
+ Ba: "BA",
122
+ Bw: "BW",
123
+ Bv: "BV",
124
+ Br: "BR",
125
+ Io: "IO",
126
+ Bn: "BN",
127
+ Bg: "BG",
128
+ Bf: "BF",
129
+ Bi: "BI",
130
+ Kh: "KH",
131
+ Cm: "CM",
132
+ Ca: "CA",
133
+ Cv: "CV",
134
+ Ky: "KY",
135
+ Cf: "CF",
136
+ Td: "TD",
137
+ Cl: "CL",
138
+ Cn: "CN",
139
+ Cx: "CX",
140
+ Cc: "CC",
141
+ Co: "CO",
142
+ Km: "KM",
143
+ Cg: "CG",
144
+ Cd: "CD",
145
+ Ck: "CK",
146
+ Cr: "CR",
147
+ Ci: "CI",
148
+ Hr: "HR",
149
+ Cu: "CU",
150
+ Cw: "CW",
151
+ Cy: "CY",
152
+ Cz: "CZ",
153
+ Dk: "DK",
154
+ Dj: "DJ",
155
+ Dm: "DM",
156
+ Do: "DO",
157
+ Ec: "EC",
158
+ Eg: "EG",
159
+ Sv: "SV",
160
+ Gq: "GQ",
161
+ Er: "ER",
162
+ Ee: "EE",
163
+ Et: "ET",
164
+ Fk: "FK",
165
+ Fo: "FO",
166
+ Fj: "FJ",
167
+ Fi: "FI",
168
+ Fr: "FR",
169
+ Gf: "GF",
170
+ Pf: "PF",
171
+ Tf: "TF",
172
+ Ga: "GA",
173
+ Gm: "GM",
174
+ Ge: "GE",
175
+ De: "DE",
176
+ Gh: "GH",
177
+ Gi: "GI",
178
+ Gr: "GR",
179
+ Gl: "GL",
180
+ Gd: "GD",
181
+ Gp: "GP",
182
+ Gu: "GU",
183
+ Gt: "GT",
184
+ Gg: "GG",
185
+ Gn: "GN",
186
+ Gw: "GW",
187
+ Gy: "GY",
188
+ Ht: "HT",
189
+ Hm: "HM",
190
+ Va: "VA",
191
+ Hn: "HN",
192
+ Hk: "HK",
193
+ Hu: "HU",
194
+ Is: "IS",
195
+ In: "IN",
196
+ Id: "ID",
197
+ Ir: "IR",
198
+ Iq: "IQ",
199
+ Ie: "IE",
200
+ Im: "IM",
201
+ Il: "IL",
202
+ It: "IT",
203
+ Jm: "JM",
204
+ Jp: "JP",
205
+ Je: "JE",
206
+ Jo: "JO",
207
+ Kz: "KZ",
208
+ Ke: "KE",
209
+ Ki: "KI",
210
+ Kr: "KR",
211
+ Kw: "KW",
212
+ Kg: "KG",
213
+ La: "LA",
214
+ Lv: "LV",
215
+ Lb: "LB",
216
+ Ls: "LS",
217
+ Lr: "LR",
218
+ Ly: "LY",
219
+ Li: "LI",
220
+ Lt: "LT",
221
+ Lu: "LU",
222
+ Mo: "MO",
223
+ Mk: "MK",
224
+ Mg: "MG",
225
+ Mw: "MW",
226
+ My: "MY",
227
+ Mv: "MV",
228
+ Ml: "ML",
229
+ Mt: "MT",
230
+ Mh: "MH",
231
+ Mq: "MQ",
232
+ Mr: "MR",
233
+ Mu: "MU",
234
+ Yt: "YT",
235
+ Mx: "MX",
236
+ Fm: "FM",
237
+ Md: "MD",
238
+ Mc: "MC",
239
+ Mn: "MN",
240
+ Me: "ME",
241
+ Ms: "MS",
242
+ Ma: "MA",
243
+ Mz: "MZ",
244
+ Mm: "MM",
245
+ Na: "NA",
246
+ Nr: "NR",
247
+ Np: "NP",
248
+ Nl: "NL",
249
+ An: "AN",
250
+ Nc: "NC",
251
+ Nz: "NZ",
252
+ Ni: "NI",
253
+ Ne: "NE",
254
+ Ng: "NG",
255
+ Nu: "NU",
256
+ Nf: "NF",
257
+ Mp: "MP",
258
+ No: "NO",
259
+ Om: "OM",
260
+ Pk: "PK",
261
+ Pw: "PW",
262
+ Ps: "PS",
263
+ Pa: "PA",
264
+ Pg: "PG",
265
+ Py: "PY",
266
+ Pe: "PE",
267
+ Ph: "PH",
268
+ Pn: "PN",
269
+ Pl: "PL",
270
+ Pt: "PT",
271
+ Pr: "PR",
272
+ Qa: "QA",
273
+ Re: "RE",
274
+ Ro: "RO",
275
+ Ru: "RU",
276
+ Rw: "RW",
277
+ Bl: "BL",
278
+ Sh: "SH",
279
+ Kn: "KN",
280
+ Lc: "LC",
281
+ Mf: "MF",
282
+ Pm: "PM",
283
+ Vc: "VC",
284
+ Ws: "WS",
285
+ Sm: "SM",
286
+ St: "ST",
287
+ Sa: "SA",
288
+ Sn: "SN",
289
+ Ss: "SS",
290
+ Rs: "RS",
291
+ Sc: "SC",
292
+ Sl: "SL",
293
+ Sg: "SG",
294
+ Sk: "SK",
295
+ Si: "SI",
296
+ Sb: "SB",
297
+ So: "SO",
298
+ Za: "ZA",
299
+ Gs: "GS",
300
+ Es: "ES",
301
+ Lk: "LK",
302
+ Sd: "SD",
303
+ Sr: "SR",
304
+ Sj: "SJ",
305
+ Sz: "SZ",
306
+ Se: "SE",
307
+ Ch: "CH",
308
+ Sy: "SY",
309
+ Tw: "TW",
310
+ Tj: "TJ",
311
+ Tz: "TZ",
312
+ Th: "TH",
313
+ Tl: "TL",
314
+ Tg: "TG",
315
+ Tk: "TK",
316
+ To: "TO",
317
+ Tt: "TT",
318
+ Tn: "TN",
319
+ Tr: "TR",
320
+ Tm: "TM",
321
+ Tc: "TC",
322
+ Tv: "TV",
323
+ Ug: "UG",
324
+ Ua: "UA",
325
+ Ae: "AE",
326
+ Gb: "GB",
327
+ Us: "US",
328
+ Um: "UM",
329
+ Uy: "UY",
330
+ Uz: "UZ",
331
+ Vu: "VU",
332
+ Ve: "VE",
333
+ Vn: "VN",
334
+ Vg: "VG",
335
+ Vi: "VI",
336
+ Wf: "WF",
337
+ Eh: "EH",
338
+ Ye: "YE",
339
+ Zm: "ZM",
340
+ Zw: "ZW",
341
+ Bq: "BQ",
342
+ Kp: "KP",
343
+ Sx: "SX",
344
+ Xk: "XK",
345
+ Ac: "AC",
346
+ } as const;
347
+ /**
348
+ * The ISO 3166-1 alpha-2 country code representing the country that this phone number belongs to.
349
+ */
350
+ export type PatchV2TasksTaskIdCountryCode = ClosedEnum<
351
+ typeof PatchV2TasksTaskIdCountryCode
352
+ >;
353
+
354
+ export type PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4 = {
355
+ /**
356
+ * The raw, original phone number, as inputted.
357
+ */
358
+ originalPhoneNumber?: string | undefined;
359
+ /**
360
+ * The ISO 3166-1 alpha-2 country code representing the country that this phone number belongs to.
361
+ */
362
+ countryCode?: PatchV2TasksTaskIdCountryCode | null | undefined;
363
+ };
364
+
365
+ export type PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3 = {
366
+ /**
367
+ * Numbers are persisted as 64 bit floats.
368
+ */
369
+ value?: number | undefined;
370
+ };
371
+
372
+ export type PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2 = {
373
+ /**
374
+ * An email address string
375
+ */
376
+ emailAddress?: string | undefined;
377
+ };
378
+
379
+ export type PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1 = {
380
+ /**
381
+ * The full domain of the website.
382
+ */
383
+ domain?: string | undefined;
384
+ };
385
+
386
+ export type PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion =
387
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1
388
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2
389
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3
390
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4
391
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5;
392
+
393
+ export type PatchV2TasksTaskIdLinkedRecord2 = {
394
+ /**
395
+ * A UUID or slug to identify the object that the referenced record belongs to.
396
+ */
397
+ targetObject: string;
398
+ /**
399
+ * In addition to referencing records directly by record ID, you may also reference by a matching attribute of your choice. For example, if you want to add a reference to the person record with email "alice@website.com", you should pass a value with `target_object` set to `"people"` and `email_addresses` set to `[{email_address:"alice@website.com"}]`. The key should be the slug or ID of the matching attribute you would like to use and the value should be an array containing a single value of the appropriate attribute type (as specified below). Matching on multiple values is not currently supported. Matching attributes must be unique. This process is similar to how you use the `matching_attribute` query param in Attio's [assert endpoints](/rest-api/endpoint-reference/records/assert-a-record).
400
+ */
401
+ slugOrIdOfMatchingAttribute: Array<
402
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1
403
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2
404
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3
405
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4
406
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5
407
+ >;
408
+ };
409
+
410
+ export type PatchV2TasksTaskIdLinkedRecord1 = {
411
+ /**
412
+ * The ID or slug of the parent object the tasks refers to. This can reference both standard and custom objects.`
413
+ */
414
+ targetObject: string;
415
+ /**
416
+ * The ID of the parent record the task refers to.
417
+ */
418
+ targetRecordId: string;
419
+ };
420
+
421
+ export type PatchV2TasksTaskIdLinkedRecordUnion =
422
+ | PatchV2TasksTaskIdLinkedRecord1
423
+ | PatchV2TasksTaskIdLinkedRecord2;
424
+
425
+ export type PatchV2TasksTaskIdAssignee = {
426
+ /**
427
+ * Workspace member actors can be referenced by email address as well as actor ID.
428
+ */
429
+ workspaceMemberEmailAddress: string;
430
+ };
431
+
432
+ /**
433
+ * The actor type of the task assignee. Only `workspace-member` actors can be assigned to tasks. [Read more information on actor types here](/docs/actors).
434
+ */
435
+ export const PatchV2TasksTaskIdReferencedActorType = {
436
+ WorkspaceMember: "workspace-member",
437
+ } as const;
438
+ /**
439
+ * The actor type of the task assignee. Only `workspace-member` actors can be assigned to tasks. [Read more information on actor types here](/docs/actors).
440
+ */
441
+ export type PatchV2TasksTaskIdReferencedActorType = ClosedEnum<
442
+ typeof PatchV2TasksTaskIdReferencedActorType
443
+ >;
444
+
445
+ export type PatchV2TasksTaskIdAssigneeWorkspaceMember = {
446
+ /**
447
+ * The actor type of the task assignee. Only `workspace-member` actors can be assigned to tasks. [Read more information on actor types here](/docs/actors).
448
+ */
449
+ referencedActorType: PatchV2TasksTaskIdReferencedActorType;
450
+ /**
451
+ * The ID of the actor assigned to this task.
452
+ */
453
+ referencedActorId: string;
454
+ };
455
+
456
+ export type PatchV2TasksTaskIdAssigneeUnion =
457
+ | PatchV2TasksTaskIdAssigneeWorkspaceMember
458
+ | PatchV2TasksTaskIdAssignee;
459
+
460
+ export type PatchV2TasksTaskIdData = {
461
+ /**
462
+ * The deadline of the task, in ISO 8601 format.
463
+ */
464
+ deadlineAt?: string | null | undefined;
465
+ /**
466
+ * Whether the task has been completed.
467
+ */
468
+ isCompleted?: boolean | undefined;
469
+ /**
470
+ * Records linked to the task. Creating record links within task content text is not possible via the API at present.
471
+ */
472
+ linkedRecords?:
473
+ | Array<PatchV2TasksTaskIdLinkedRecord1 | PatchV2TasksTaskIdLinkedRecord2>
474
+ | undefined;
475
+ /**
476
+ * Workspace members assigned to this task.
477
+ */
478
+ assignees?:
479
+ | Array<
480
+ PatchV2TasksTaskIdAssigneeWorkspaceMember | PatchV2TasksTaskIdAssignee
481
+ >
482
+ | undefined;
483
+ };
484
+
485
+ export type PatchV2TasksTaskIdRequestBody = {
486
+ data: PatchV2TasksTaskIdData;
487
+ };
488
+
489
+ export type PatchV2TasksTaskIdRequest = {
490
+ taskId: string;
491
+ body: PatchV2TasksTaskIdRequestBody;
492
+ };
493
+
494
+ export const PatchV2TasksTaskIdNotFoundType = {
495
+ InvalidRequestError: "invalid_request_error",
496
+ } as const;
497
+ export type PatchV2TasksTaskIdNotFoundType = ClosedEnum<
498
+ typeof PatchV2TasksTaskIdNotFoundType
499
+ >;
500
+
501
+ export const PatchV2TasksTaskIdNotFoundCode = {
502
+ NotFound: "not_found",
503
+ } as const;
504
+ export type PatchV2TasksTaskIdNotFoundCode = ClosedEnum<
505
+ typeof PatchV2TasksTaskIdNotFoundCode
506
+ >;
507
+
508
+ /**
509
+ * Success
510
+ */
511
+ export type PatchV2TasksTaskIdResponse = {
512
+ data: models.Task;
513
+ };
514
+
515
+ /** @internal */
516
+ export type PostV2TasksAssigneeUnion$Outbound =
517
+ | PostV2TasksAssigneeWorkspaceMember$Outbound
518
+ | PostV2TasksAssignee$Outbound;
519
+
520
+ /** @internal */
521
+ export const PostV2TasksAssigneeUnion$outboundSchema: z.ZodMiniType<
522
+ PostV2TasksAssigneeUnion$Outbound,
523
+ PostV2TasksAssigneeUnion
524
+ > = smartUnion([
525
+ PostV2TasksAssigneeWorkspaceMember$outboundSchema,
526
+ PostV2TasksAssignee$outboundSchema,
527
+ ]);
528
+
529
+ export function postV2TasksAssigneeUnionToJSON(
530
+ postV2TasksAssigneeUnion: PostV2TasksAssigneeUnion,
531
+ ): string {
532
+ return JSON.stringify(
533
+ PostV2TasksAssigneeUnion$outboundSchema.parse(postV2TasksAssigneeUnion),
534
+ );
535
+ }
536
+
537
+ /** @internal */
538
+ export type PostV2TasksData$Outbound = {
539
+ content: string;
540
+ format: string;
541
+ deadline_at: string | null;
542
+ is_completed: boolean;
543
+ linked_records: Array<PostV2TasksLinkedRecordUnion$Outbound>;
544
+ assignees: Array<
545
+ PostV2TasksAssigneeWorkspaceMember$Outbound | PostV2TasksAssignee$Outbound
546
+ >;
547
+ };
548
+
549
+ /** @internal */
550
+ export const PostV2TasksData$outboundSchema: z.ZodMiniType<
551
+ PostV2TasksData$Outbound,
552
+ PostV2TasksData
553
+ > = z.pipe(
554
+ z.object({
555
+ content: z.string(),
556
+ format: PostV2TasksFormat$outboundSchema,
557
+ deadlineAt: z.nullable(z.string()),
558
+ isCompleted: z.boolean(),
559
+ linkedRecords: z.array(PostV2TasksLinkedRecordUnion$outboundSchema),
560
+ assignees: z.array(
561
+ smartUnion([
562
+ PostV2TasksAssigneeWorkspaceMember$outboundSchema,
563
+ PostV2TasksAssignee$outboundSchema,
564
+ ]),
565
+ ),
566
+ }),
567
+ z.transform((v) => {
568
+ return remap$(v, {
569
+ deadlineAt: "deadline_at",
570
+ isCompleted: "is_completed",
571
+ linkedRecords: "linked_records",
572
+ });
573
+ }),
574
+ );
575
+
576
+ export function postV2TasksDataToJSON(
577
+ postV2TasksData: PostV2TasksData,
578
+ ): string {
579
+ return JSON.stringify(PostV2TasksData$outboundSchema.parse(postV2TasksData));
580
+ }
581
+
582
+ /** @internal */
583
+ export type PostV2TasksRequest$Outbound = {
584
+ data: PostV2TasksData$Outbound;
585
+ };
586
+
587
+ /** @internal */
588
+ export const PostV2TasksRequest$outboundSchema: z.ZodMiniType<
589
+ PostV2TasksRequest$Outbound,
590
+ PostV2TasksRequest
591
+ > = z.object({
592
+ data: z.lazy(() => PostV2TasksData$outboundSchema),
593
+ });
594
+
595
+ export function postV2TasksRequestToJSON(
596
+ postV2TasksRequest: PostV2TasksRequest,
597
+ ): string {
598
+ return JSON.stringify(
599
+ PostV2TasksRequest$outboundSchema.parse(postV2TasksRequest),
600
+ );
601
+ }
602
+
603
+ /** @internal */
604
+ export const PostV2TasksBadRequestType$inboundSchema: z.ZodMiniEnum<
605
+ typeof PostV2TasksBadRequestType
606
+ > = z.enum(PostV2TasksBadRequestType);
607
+
608
+ /** @internal */
609
+ export const PostV2TasksCodeValidationType$inboundSchema: z.ZodMiniEnum<
610
+ typeof PostV2TasksCodeValidationType
611
+ > = z.enum(PostV2TasksCodeValidationType);
612
+
613
+ /** @internal */
614
+ export const PostV2TasksResponse$inboundSchema: z.ZodMiniType<
615
+ PostV2TasksResponse,
616
+ unknown
617
+ > = z.object({
618
+ data: models.Task$inboundSchema,
619
+ });
620
+
621
+ export function postV2TasksResponseFromJSON(
622
+ jsonString: string,
623
+ ): SafeParseResult<PostV2TasksResponse, SDKValidationError> {
624
+ return safeParse(
625
+ jsonString,
626
+ (x) => PostV2TasksResponse$inboundSchema.parse(JSON.parse(x)),
627
+ `Failed to parse 'PostV2TasksResponse' from JSON`,
628
+ );
629
+ }
630
+
631
+ /** @internal */
632
+ export type PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$Outbound = {
633
+ value?: string | undefined;
634
+ };
635
+
636
+ /** @internal */
637
+ export const PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$outboundSchema:
638
+ z.ZodMiniType<
639
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$Outbound,
640
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5
641
+ > = z.object({
642
+ value: z.optional(z.string()),
643
+ });
644
+
645
+ export function patchV2TasksTaskIdSlugOrIdOfMatchingAttribute5ToJSON(
646
+ patchV2TasksTaskIdSlugOrIdOfMatchingAttribute5:
647
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5,
648
+ ): string {
649
+ return JSON.stringify(
650
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$outboundSchema.parse(
651
+ patchV2TasksTaskIdSlugOrIdOfMatchingAttribute5,
652
+ ),
653
+ );
654
+ }
655
+
656
+ /** @internal */
657
+ export const PatchV2TasksTaskIdCountryCode$outboundSchema: z.ZodMiniEnum<
658
+ typeof PatchV2TasksTaskIdCountryCode
659
+ > = z.enum(PatchV2TasksTaskIdCountryCode);
660
+
661
+ /** @internal */
662
+ export type PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$Outbound = {
663
+ original_phone_number?: string | undefined;
664
+ country_code?: string | null | undefined;
665
+ };
666
+
667
+ /** @internal */
668
+ export const PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$outboundSchema:
669
+ z.ZodMiniType<
670
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$Outbound,
671
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4
672
+ > = z.pipe(
673
+ z.object({
674
+ originalPhoneNumber: z.optional(z.string()),
675
+ countryCode: z.optional(
676
+ z.nullable(PatchV2TasksTaskIdCountryCode$outboundSchema),
677
+ ),
678
+ }),
679
+ z.transform((v) => {
680
+ return remap$(v, {
681
+ originalPhoneNumber: "original_phone_number",
682
+ countryCode: "country_code",
683
+ });
684
+ }),
685
+ );
686
+
687
+ export function patchV2TasksTaskIdSlugOrIdOfMatchingAttribute4ToJSON(
688
+ patchV2TasksTaskIdSlugOrIdOfMatchingAttribute4:
689
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4,
690
+ ): string {
691
+ return JSON.stringify(
692
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$outboundSchema.parse(
693
+ patchV2TasksTaskIdSlugOrIdOfMatchingAttribute4,
694
+ ),
695
+ );
696
+ }
697
+
698
+ /** @internal */
699
+ export type PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$Outbound = {
700
+ value?: number | undefined;
701
+ };
702
+
703
+ /** @internal */
704
+ export const PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$outboundSchema:
705
+ z.ZodMiniType<
706
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$Outbound,
707
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3
708
+ > = z.object({
709
+ value: z.optional(z.number()),
710
+ });
711
+
712
+ export function patchV2TasksTaskIdSlugOrIdOfMatchingAttribute3ToJSON(
713
+ patchV2TasksTaskIdSlugOrIdOfMatchingAttribute3:
714
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3,
715
+ ): string {
716
+ return JSON.stringify(
717
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$outboundSchema.parse(
718
+ patchV2TasksTaskIdSlugOrIdOfMatchingAttribute3,
719
+ ),
720
+ );
721
+ }
722
+
723
+ /** @internal */
724
+ export type PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$Outbound = {
725
+ email_address?: string | undefined;
726
+ };
727
+
728
+ /** @internal */
729
+ export const PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$outboundSchema:
730
+ z.ZodMiniType<
731
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$Outbound,
732
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2
733
+ > = z.pipe(
734
+ z.object({
735
+ emailAddress: z.optional(z.string()),
736
+ }),
737
+ z.transform((v) => {
738
+ return remap$(v, {
739
+ emailAddress: "email_address",
740
+ });
741
+ }),
742
+ );
743
+
744
+ export function patchV2TasksTaskIdSlugOrIdOfMatchingAttribute2ToJSON(
745
+ patchV2TasksTaskIdSlugOrIdOfMatchingAttribute2:
746
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2,
747
+ ): string {
748
+ return JSON.stringify(
749
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$outboundSchema.parse(
750
+ patchV2TasksTaskIdSlugOrIdOfMatchingAttribute2,
751
+ ),
752
+ );
753
+ }
754
+
755
+ /** @internal */
756
+ export type PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$Outbound = {
757
+ domain?: string | undefined;
758
+ };
759
+
760
+ /** @internal */
761
+ export const PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$outboundSchema:
762
+ z.ZodMiniType<
763
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$Outbound,
764
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1
765
+ > = z.object({
766
+ domain: z.optional(z.string()),
767
+ });
768
+
769
+ export function patchV2TasksTaskIdSlugOrIdOfMatchingAttribute1ToJSON(
770
+ patchV2TasksTaskIdSlugOrIdOfMatchingAttribute1:
771
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1,
772
+ ): string {
773
+ return JSON.stringify(
774
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$outboundSchema.parse(
775
+ patchV2TasksTaskIdSlugOrIdOfMatchingAttribute1,
776
+ ),
777
+ );
778
+ }
779
+
780
+ /** @internal */
781
+ export type PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$Outbound =
782
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$Outbound
783
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$Outbound
784
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$Outbound
785
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$Outbound
786
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$Outbound;
787
+
788
+ /** @internal */
789
+ export const PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$outboundSchema:
790
+ z.ZodMiniType<
791
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$Outbound,
792
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion
793
+ > = smartUnion([
794
+ z.lazy(() => PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$outboundSchema),
795
+ z.lazy(() => PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$outboundSchema),
796
+ z.lazy(() => PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$outboundSchema),
797
+ z.lazy(() => PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$outboundSchema),
798
+ z.lazy(() => PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$outboundSchema),
799
+ ]);
800
+
801
+ export function patchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnionToJSON(
802
+ patchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion:
803
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion,
804
+ ): string {
805
+ return JSON.stringify(
806
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion$outboundSchema.parse(
807
+ patchV2TasksTaskIdSlugOrIdOfMatchingAttributeUnion,
808
+ ),
809
+ );
810
+ }
811
+
812
+ /** @internal */
813
+ export type PatchV2TasksTaskIdLinkedRecord2$Outbound = {
814
+ target_object: string;
815
+ "[slug_or_id_of_matching_attribute]": Array<
816
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$Outbound
817
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$Outbound
818
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$Outbound
819
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$Outbound
820
+ | PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$Outbound
821
+ >;
822
+ };
823
+
824
+ /** @internal */
825
+ export const PatchV2TasksTaskIdLinkedRecord2$outboundSchema: z.ZodMiniType<
826
+ PatchV2TasksTaskIdLinkedRecord2$Outbound,
827
+ PatchV2TasksTaskIdLinkedRecord2
828
+ > = z.pipe(
829
+ z.object({
830
+ targetObject: z.string(),
831
+ slugOrIdOfMatchingAttribute: z.array(smartUnion([
832
+ z.lazy(() =>
833
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute1$outboundSchema
834
+ ),
835
+ z.lazy(() =>
836
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute2$outboundSchema
837
+ ),
838
+ z.lazy(() =>
839
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute3$outboundSchema
840
+ ),
841
+ z.lazy(() =>
842
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute4$outboundSchema
843
+ ),
844
+ z.lazy(() =>
845
+ PatchV2TasksTaskIdSlugOrIdOfMatchingAttribute5$outboundSchema
846
+ ),
847
+ ])),
848
+ }),
849
+ z.transform((v) => {
850
+ return remap$(v, {
851
+ targetObject: "target_object",
852
+ slugOrIdOfMatchingAttribute: "[slug_or_id_of_matching_attribute]",
853
+ });
854
+ }),
855
+ );
856
+
857
+ export function patchV2TasksTaskIdLinkedRecord2ToJSON(
858
+ patchV2TasksTaskIdLinkedRecord2: PatchV2TasksTaskIdLinkedRecord2,
859
+ ): string {
860
+ return JSON.stringify(
861
+ PatchV2TasksTaskIdLinkedRecord2$outboundSchema.parse(
862
+ patchV2TasksTaskIdLinkedRecord2,
863
+ ),
864
+ );
865
+ }
866
+
867
+ /** @internal */
868
+ export type PatchV2TasksTaskIdLinkedRecord1$Outbound = {
869
+ target_object: string;
870
+ target_record_id: string;
871
+ };
872
+
873
+ /** @internal */
874
+ export const PatchV2TasksTaskIdLinkedRecord1$outboundSchema: z.ZodMiniType<
875
+ PatchV2TasksTaskIdLinkedRecord1$Outbound,
876
+ PatchV2TasksTaskIdLinkedRecord1
877
+ > = z.pipe(
878
+ z.object({
879
+ targetObject: z.string(),
880
+ targetRecordId: z.string(),
881
+ }),
882
+ z.transform((v) => {
883
+ return remap$(v, {
884
+ targetObject: "target_object",
885
+ targetRecordId: "target_record_id",
886
+ });
887
+ }),
888
+ );
889
+
890
+ export function patchV2TasksTaskIdLinkedRecord1ToJSON(
891
+ patchV2TasksTaskIdLinkedRecord1: PatchV2TasksTaskIdLinkedRecord1,
892
+ ): string {
893
+ return JSON.stringify(
894
+ PatchV2TasksTaskIdLinkedRecord1$outboundSchema.parse(
895
+ patchV2TasksTaskIdLinkedRecord1,
896
+ ),
897
+ );
898
+ }
899
+
900
+ /** @internal */
901
+ export type PatchV2TasksTaskIdLinkedRecordUnion$Outbound =
902
+ | PatchV2TasksTaskIdLinkedRecord1$Outbound
903
+ | PatchV2TasksTaskIdLinkedRecord2$Outbound;
904
+
905
+ /** @internal */
906
+ export const PatchV2TasksTaskIdLinkedRecordUnion$outboundSchema: z.ZodMiniType<
907
+ PatchV2TasksTaskIdLinkedRecordUnion$Outbound,
908
+ PatchV2TasksTaskIdLinkedRecordUnion
909
+ > = smartUnion([
910
+ z.lazy(() => PatchV2TasksTaskIdLinkedRecord1$outboundSchema),
911
+ z.lazy(() => PatchV2TasksTaskIdLinkedRecord2$outboundSchema),
912
+ ]);
913
+
914
+ export function patchV2TasksTaskIdLinkedRecordUnionToJSON(
915
+ patchV2TasksTaskIdLinkedRecordUnion: PatchV2TasksTaskIdLinkedRecordUnion,
916
+ ): string {
917
+ return JSON.stringify(
918
+ PatchV2TasksTaskIdLinkedRecordUnion$outboundSchema.parse(
919
+ patchV2TasksTaskIdLinkedRecordUnion,
920
+ ),
921
+ );
922
+ }
923
+
924
+ /** @internal */
925
+ export type PatchV2TasksTaskIdAssignee$Outbound = {
926
+ workspace_member_email_address: string;
927
+ };
928
+
929
+ /** @internal */
930
+ export const PatchV2TasksTaskIdAssignee$outboundSchema: z.ZodMiniType<
931
+ PatchV2TasksTaskIdAssignee$Outbound,
932
+ PatchV2TasksTaskIdAssignee
933
+ > = z.pipe(
934
+ z.object({
935
+ workspaceMemberEmailAddress: z.string(),
936
+ }),
937
+ z.transform((v) => {
938
+ return remap$(v, {
939
+ workspaceMemberEmailAddress: "workspace_member_email_address",
940
+ });
941
+ }),
942
+ );
943
+
944
+ export function patchV2TasksTaskIdAssigneeToJSON(
945
+ patchV2TasksTaskIdAssignee: PatchV2TasksTaskIdAssignee,
946
+ ): string {
947
+ return JSON.stringify(
948
+ PatchV2TasksTaskIdAssignee$outboundSchema.parse(patchV2TasksTaskIdAssignee),
949
+ );
950
+ }
951
+
952
+ /** @internal */
953
+ export const PatchV2TasksTaskIdReferencedActorType$outboundSchema:
954
+ z.ZodMiniEnum<typeof PatchV2TasksTaskIdReferencedActorType> = z.enum(
955
+ PatchV2TasksTaskIdReferencedActorType,
956
+ );
957
+
958
+ /** @internal */
959
+ export type PatchV2TasksTaskIdAssigneeWorkspaceMember$Outbound = {
960
+ referenced_actor_type: string;
961
+ referenced_actor_id: string;
962
+ };
963
+
964
+ /** @internal */
965
+ export const PatchV2TasksTaskIdAssigneeWorkspaceMember$outboundSchema:
966
+ z.ZodMiniType<
967
+ PatchV2TasksTaskIdAssigneeWorkspaceMember$Outbound,
968
+ PatchV2TasksTaskIdAssigneeWorkspaceMember
969
+ > = z.pipe(
970
+ z.object({
971
+ referencedActorType: PatchV2TasksTaskIdReferencedActorType$outboundSchema,
972
+ referencedActorId: z.string(),
973
+ }),
974
+ z.transform((v) => {
975
+ return remap$(v, {
976
+ referencedActorType: "referenced_actor_type",
977
+ referencedActorId: "referenced_actor_id",
978
+ });
979
+ }),
980
+ );
981
+
982
+ export function patchV2TasksTaskIdAssigneeWorkspaceMemberToJSON(
983
+ patchV2TasksTaskIdAssigneeWorkspaceMember:
984
+ PatchV2TasksTaskIdAssigneeWorkspaceMember,
985
+ ): string {
986
+ return JSON.stringify(
987
+ PatchV2TasksTaskIdAssigneeWorkspaceMember$outboundSchema.parse(
988
+ patchV2TasksTaskIdAssigneeWorkspaceMember,
989
+ ),
990
+ );
991
+ }
992
+
993
+ /** @internal */
994
+ export type PatchV2TasksTaskIdAssigneeUnion$Outbound =
995
+ | PatchV2TasksTaskIdAssigneeWorkspaceMember$Outbound
996
+ | PatchV2TasksTaskIdAssignee$Outbound;
997
+
998
+ /** @internal */
999
+ export const PatchV2TasksTaskIdAssigneeUnion$outboundSchema: z.ZodMiniType<
1000
+ PatchV2TasksTaskIdAssigneeUnion$Outbound,
1001
+ PatchV2TasksTaskIdAssigneeUnion
1002
+ > = smartUnion([
1003
+ z.lazy(() => PatchV2TasksTaskIdAssigneeWorkspaceMember$outboundSchema),
1004
+ z.lazy(() => PatchV2TasksTaskIdAssignee$outboundSchema),
1005
+ ]);
1006
+
1007
+ export function patchV2TasksTaskIdAssigneeUnionToJSON(
1008
+ patchV2TasksTaskIdAssigneeUnion: PatchV2TasksTaskIdAssigneeUnion,
1009
+ ): string {
1010
+ return JSON.stringify(
1011
+ PatchV2TasksTaskIdAssigneeUnion$outboundSchema.parse(
1012
+ patchV2TasksTaskIdAssigneeUnion,
1013
+ ),
1014
+ );
1015
+ }
1016
+
1017
+ /** @internal */
1018
+ export type PatchV2TasksTaskIdData$Outbound = {
1019
+ deadline_at?: string | null | undefined;
1020
+ is_completed?: boolean | undefined;
1021
+ linked_records?:
1022
+ | Array<
1023
+ | PatchV2TasksTaskIdLinkedRecord1$Outbound
1024
+ | PatchV2TasksTaskIdLinkedRecord2$Outbound
1025
+ >
1026
+ | undefined;
1027
+ assignees?:
1028
+ | Array<
1029
+ | PatchV2TasksTaskIdAssigneeWorkspaceMember$Outbound
1030
+ | PatchV2TasksTaskIdAssignee$Outbound
1031
+ >
1032
+ | undefined;
1033
+ };
1034
+
1035
+ /** @internal */
1036
+ export const PatchV2TasksTaskIdData$outboundSchema: z.ZodMiniType<
1037
+ PatchV2TasksTaskIdData$Outbound,
1038
+ PatchV2TasksTaskIdData
1039
+ > = z.pipe(
1040
+ z.object({
1041
+ deadlineAt: z.optional(z.nullable(z.string())),
1042
+ isCompleted: z.optional(z.boolean()),
1043
+ linkedRecords: z.optional(z.array(smartUnion([
1044
+ z.lazy(() => PatchV2TasksTaskIdLinkedRecord1$outboundSchema),
1045
+ z.lazy(() =>
1046
+ PatchV2TasksTaskIdLinkedRecord2$outboundSchema
1047
+ ),
1048
+ ]))),
1049
+ assignees: z.optional(z.array(smartUnion([
1050
+ z.lazy(() => PatchV2TasksTaskIdAssigneeWorkspaceMember$outboundSchema),
1051
+ z.lazy(() =>
1052
+ PatchV2TasksTaskIdAssignee$outboundSchema
1053
+ ),
1054
+ ]))),
1055
+ }),
1056
+ z.transform((v) => {
1057
+ return remap$(v, {
1058
+ deadlineAt: "deadline_at",
1059
+ isCompleted: "is_completed",
1060
+ linkedRecords: "linked_records",
1061
+ });
1062
+ }),
1063
+ );
1064
+
1065
+ export function patchV2TasksTaskIdDataToJSON(
1066
+ patchV2TasksTaskIdData: PatchV2TasksTaskIdData,
1067
+ ): string {
1068
+ return JSON.stringify(
1069
+ PatchV2TasksTaskIdData$outboundSchema.parse(patchV2TasksTaskIdData),
1070
+ );
1071
+ }
1072
+
1073
+ /** @internal */
1074
+ export type PatchV2TasksTaskIdRequestBody$Outbound = {
1075
+ data: PatchV2TasksTaskIdData$Outbound;
1076
+ };
1077
+
1078
+ /** @internal */
1079
+ export const PatchV2TasksTaskIdRequestBody$outboundSchema: z.ZodMiniType<
1080
+ PatchV2TasksTaskIdRequestBody$Outbound,
1081
+ PatchV2TasksTaskIdRequestBody
1082
+ > = z.object({
1083
+ data: z.lazy(() => PatchV2TasksTaskIdData$outboundSchema),
1084
+ });
1085
+
1086
+ export function patchV2TasksTaskIdRequestBodyToJSON(
1087
+ patchV2TasksTaskIdRequestBody: PatchV2TasksTaskIdRequestBody,
1088
+ ): string {
1089
+ return JSON.stringify(
1090
+ PatchV2TasksTaskIdRequestBody$outboundSchema.parse(
1091
+ patchV2TasksTaskIdRequestBody,
1092
+ ),
1093
+ );
1094
+ }
1095
+
1096
+ /** @internal */
1097
+ export type PatchV2TasksTaskIdRequest$Outbound = {
1098
+ task_id: string;
1099
+ body: PatchV2TasksTaskIdRequestBody$Outbound;
1100
+ };
1101
+
1102
+ /** @internal */
1103
+ export const PatchV2TasksTaskIdRequest$outboundSchema: z.ZodMiniType<
1104
+ PatchV2TasksTaskIdRequest$Outbound,
1105
+ PatchV2TasksTaskIdRequest
1106
+ > = z.pipe(
1107
+ z.object({
1108
+ taskId: z.string(),
1109
+ body: z.lazy(() => PatchV2TasksTaskIdRequestBody$outboundSchema),
1110
+ }),
1111
+ z.transform((v) => {
1112
+ return remap$(v, {
1113
+ taskId: "task_id",
1114
+ });
1115
+ }),
1116
+ );
1117
+
1118
+ export function patchV2TasksTaskIdRequestToJSON(
1119
+ patchV2TasksTaskIdRequest: PatchV2TasksTaskIdRequest,
1120
+ ): string {
1121
+ return JSON.stringify(
1122
+ PatchV2TasksTaskIdRequest$outboundSchema.parse(patchV2TasksTaskIdRequest),
1123
+ );
1124
+ }
1125
+
1126
+ /** @internal */
1127
+ export const PatchV2TasksTaskIdNotFoundType$inboundSchema: z.ZodMiniEnum<
1128
+ typeof PatchV2TasksTaskIdNotFoundType
1129
+ > = z.enum(PatchV2TasksTaskIdNotFoundType);
1130
+
1131
+ /** @internal */
1132
+ export const PatchV2TasksTaskIdNotFoundCode$inboundSchema: z.ZodMiniEnum<
1133
+ typeof PatchV2TasksTaskIdNotFoundCode
1134
+ > = z.enum(PatchV2TasksTaskIdNotFoundCode);
1135
+
1136
+ /** @internal */
1137
+ export const PatchV2TasksTaskIdResponse$inboundSchema: z.ZodMiniType<
1138
+ PatchV2TasksTaskIdResponse,
1139
+ unknown
1140
+ > = z.object({
1141
+ data: models.Task$inboundSchema,
1142
+ });
1143
+
1144
+ export function patchV2TasksTaskIdResponseFromJSON(
1145
+ jsonString: string,
1146
+ ): SafeParseResult<PatchV2TasksTaskIdResponse, SDKValidationError> {
1147
+ return safeParse(
1148
+ jsonString,
1149
+ (x) => PatchV2TasksTaskIdResponse$inboundSchema.parse(JSON.parse(x)),
1150
+ `Failed to parse 'PatchV2TasksTaskIdResponse' from JSON`,
1151
+ );
1152
+ }