@interfere/attio 0.1.2 → 0.1.3

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