@rox-one/sdk 0.0.0-stage → 0.7.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 (482) hide show
  1. package/CALLS.md +82 -0
  2. package/README.md +1259 -2
  3. package/dist/chunk-AOHK5YXC.js +5585 -0
  4. package/dist/chunk-CATFKTFD.js +80 -0
  5. package/dist/chunk-FQGPXWPJ.js +1491 -0
  6. package/dist/chunk-G43PLP2U.js +1087 -0
  7. package/dist/chunk-LMJW65ML.js +836 -0
  8. package/dist/chunk-MCSQNZ4E.js +836 -0
  9. package/dist/chunk-NSJ3GKUC.js +1552 -0
  10. package/dist/chunk-OGFKJOK7.js +2068 -0
  11. package/dist/chunk-RDEJZJBZ.js +1351 -0
  12. package/dist/chunk-TMTYN2UK.js +1128 -0
  13. package/dist/chunk-V45LUJDI.js +838 -0
  14. package/dist/chunk-YRUXFEZM.js +1044 -0
  15. package/dist/chunk-ZYBAKW25.js +994 -0
  16. package/dist/generated/agent-fold/index.d.ts +4520 -0
  17. package/dist/generated/agent-fold/index.js +0 -0
  18. package/dist/generated/agent-harness/client/client.gen.d.ts +2 -0
  19. package/dist/generated/agent-harness/client/index.d.ts +10 -0
  20. package/dist/generated/agent-harness/client/types.gen.d.ts +120 -0
  21. package/dist/generated/agent-harness/client/utils.gen.d.ts +37 -0
  22. package/dist/generated/agent-harness/client.gen.d.ts +12 -0
  23. package/dist/generated/agent-harness/core/auth.gen.d.ts +25 -0
  24. package/dist/generated/agent-harness/core/bodySerializer.gen.d.ts +25 -0
  25. package/dist/generated/agent-harness/core/params.gen.d.ts +43 -0
  26. package/dist/generated/agent-harness/core/pathSerializer.gen.d.ts +33 -0
  27. package/dist/generated/agent-harness/core/queryKeySerializer.gen.d.ts +18 -0
  28. package/dist/generated/agent-harness/core/serverSentEvents.gen.d.ts +71 -0
  29. package/dist/generated/agent-harness/core/types.gen.d.ts +83 -0
  30. package/dist/generated/agent-harness/core/utils.gen.d.ts +19 -0
  31. package/dist/generated/agent-harness/index.d.ts +2 -0
  32. package/dist/generated/agent-harness/index.js +6 -0
  33. package/dist/generated/agent-harness/sdk.gen.d.ts +375 -0
  34. package/dist/generated/agent-harness/types.gen.d.ts +4725 -0
  35. package/dist/generated/agent-reviews/index.d.ts +895 -0
  36. package/dist/generated/agent-reviews/index.js +0 -0
  37. package/dist/generated/auth/client/client.gen.d.ts +2 -0
  38. package/dist/generated/auth/client/index.d.ts +10 -0
  39. package/dist/generated/auth/client/types.gen.d.ts +120 -0
  40. package/dist/generated/auth/client/utils.gen.d.ts +37 -0
  41. package/dist/generated/auth/client.gen.d.ts +12 -0
  42. package/dist/generated/auth/core/auth.gen.d.ts +25 -0
  43. package/dist/generated/auth/core/bodySerializer.gen.d.ts +25 -0
  44. package/dist/generated/auth/core/params.gen.d.ts +43 -0
  45. package/dist/generated/auth/core/pathSerializer.gen.d.ts +33 -0
  46. package/dist/generated/auth/core/queryKeySerializer.gen.d.ts +18 -0
  47. package/dist/generated/auth/core/serverSentEvents.gen.d.ts +71 -0
  48. package/dist/generated/auth/core/types.gen.d.ts +83 -0
  49. package/dist/generated/auth/core/utils.gen.d.ts +19 -0
  50. package/dist/generated/auth/index.d.ts +2 -0
  51. package/dist/generated/auth/index.js +6 -0
  52. package/dist/generated/auth/sdk.gen.d.ts +674 -0
  53. package/dist/generated/auth/types.gen.d.ts +5233 -0
  54. package/dist/generated/calendar/client/client.gen.d.ts +2 -0
  55. package/dist/generated/calendar/client/index.d.ts +10 -0
  56. package/dist/generated/calendar/client/types.gen.d.ts +120 -0
  57. package/dist/generated/calendar/client/utils.gen.d.ts +37 -0
  58. package/dist/generated/calendar/client.gen.d.ts +12 -0
  59. package/dist/generated/calendar/core/auth.gen.d.ts +25 -0
  60. package/dist/generated/calendar/core/bodySerializer.gen.d.ts +25 -0
  61. package/dist/generated/calendar/core/params.gen.d.ts +43 -0
  62. package/dist/generated/calendar/core/pathSerializer.gen.d.ts +33 -0
  63. package/dist/generated/calendar/core/queryKeySerializer.gen.d.ts +18 -0
  64. package/dist/generated/calendar/core/serverSentEvents.gen.d.ts +71 -0
  65. package/dist/generated/calendar/core/types.gen.d.ts +83 -0
  66. package/dist/generated/calendar/core/utils.gen.d.ts +19 -0
  67. package/dist/generated/calendar/index.d.ts +2 -0
  68. package/dist/generated/calendar/index.js +6 -0
  69. package/dist/generated/calendar/sdk.gen.d.ts +157 -0
  70. package/dist/generated/calendar/types.gen.d.ts +2333 -0
  71. package/dist/generated/cognition/client/client.gen.d.ts +2 -0
  72. package/dist/generated/cognition/client/index.d.ts +10 -0
  73. package/dist/generated/cognition/client/types.gen.d.ts +120 -0
  74. package/dist/generated/cognition/client/utils.gen.d.ts +37 -0
  75. package/dist/generated/cognition/client.gen.d.ts +12 -0
  76. package/dist/generated/cognition/core/auth.gen.d.ts +25 -0
  77. package/dist/generated/cognition/core/bodySerializer.gen.d.ts +25 -0
  78. package/dist/generated/cognition/core/params.gen.d.ts +43 -0
  79. package/dist/generated/cognition/core/pathSerializer.gen.d.ts +33 -0
  80. package/dist/generated/cognition/core/queryKeySerializer.gen.d.ts +18 -0
  81. package/dist/generated/cognition/core/serverSentEvents.gen.d.ts +71 -0
  82. package/dist/generated/cognition/core/types.gen.d.ts +83 -0
  83. package/dist/generated/cognition/core/utils.gen.d.ts +19 -0
  84. package/dist/generated/cognition/index.d.ts +2 -0
  85. package/dist/generated/cognition/index.js +6 -0
  86. package/dist/generated/cognition/sdk.gen.d.ts +348 -0
  87. package/dist/generated/cognition/types.gen.d.ts +4228 -0
  88. package/dist/generated/connection/client/client.gen.d.ts +2 -0
  89. package/dist/generated/connection/client/index.d.ts +10 -0
  90. package/dist/generated/connection/client/types.gen.d.ts +120 -0
  91. package/dist/generated/connection/client/utils.gen.d.ts +37 -0
  92. package/dist/generated/connection/client.gen.d.ts +12 -0
  93. package/dist/generated/connection/core/auth.gen.d.ts +25 -0
  94. package/dist/generated/connection/core/bodySerializer.gen.d.ts +25 -0
  95. package/dist/generated/connection/core/params.gen.d.ts +43 -0
  96. package/dist/generated/connection/core/pathSerializer.gen.d.ts +33 -0
  97. package/dist/generated/connection/core/queryKeySerializer.gen.d.ts +18 -0
  98. package/dist/generated/connection/core/serverSentEvents.gen.d.ts +71 -0
  99. package/dist/generated/connection/core/types.gen.d.ts +83 -0
  100. package/dist/generated/connection/core/utils.gen.d.ts +19 -0
  101. package/dist/generated/connection/index.d.ts +2 -0
  102. package/dist/generated/connection/index.js +854 -0
  103. package/dist/generated/connection/sdk.gen.d.ts +43 -0
  104. package/dist/generated/connection/types.gen.d.ts +252 -0
  105. package/dist/generated/contacts/client/client.gen.d.ts +2 -0
  106. package/dist/generated/contacts/client/index.d.ts +10 -0
  107. package/dist/generated/contacts/client/types.gen.d.ts +120 -0
  108. package/dist/generated/contacts/client/utils.gen.d.ts +37 -0
  109. package/dist/generated/contacts/client.gen.d.ts +12 -0
  110. package/dist/generated/contacts/core/auth.gen.d.ts +25 -0
  111. package/dist/generated/contacts/core/bodySerializer.gen.d.ts +25 -0
  112. package/dist/generated/contacts/core/params.gen.d.ts +43 -0
  113. package/dist/generated/contacts/core/pathSerializer.gen.d.ts +33 -0
  114. package/dist/generated/contacts/core/queryKeySerializer.gen.d.ts +18 -0
  115. package/dist/generated/contacts/core/serverSentEvents.gen.d.ts +71 -0
  116. package/dist/generated/contacts/core/types.gen.d.ts +83 -0
  117. package/dist/generated/contacts/core/utils.gen.d.ts +19 -0
  118. package/dist/generated/contacts/index.d.ts +2 -0
  119. package/dist/generated/contacts/index.js +6 -0
  120. package/dist/generated/contacts/sdk.gen.d.ts +47 -0
  121. package/dist/generated/contacts/types.gen.d.ts +108 -0
  122. package/dist/generated/email/client/client.gen.d.ts +2 -0
  123. package/dist/generated/email/client/index.d.ts +10 -0
  124. package/dist/generated/email/client/types.gen.d.ts +120 -0
  125. package/dist/generated/email/client/utils.gen.d.ts +37 -0
  126. package/dist/generated/email/client.gen.d.ts +12 -0
  127. package/dist/generated/email/core/auth.gen.d.ts +25 -0
  128. package/dist/generated/email/core/bodySerializer.gen.d.ts +25 -0
  129. package/dist/generated/email/core/params.gen.d.ts +43 -0
  130. package/dist/generated/email/core/pathSerializer.gen.d.ts +33 -0
  131. package/dist/generated/email/core/queryKeySerializer.gen.d.ts +18 -0
  132. package/dist/generated/email/core/serverSentEvents.gen.d.ts +71 -0
  133. package/dist/generated/email/core/types.gen.d.ts +83 -0
  134. package/dist/generated/email/core/utils.gen.d.ts +19 -0
  135. package/dist/generated/email/index.d.ts +2 -0
  136. package/dist/generated/email/index.js +6 -0
  137. package/dist/generated/email/sdk.gen.d.ts +301 -0
  138. package/dist/generated/email/types.gen.d.ts +3262 -0
  139. package/dist/generated/notification/client/client.gen.d.ts +2 -0
  140. package/dist/generated/notification/client/index.d.ts +10 -0
  141. package/dist/generated/notification/client/types.gen.d.ts +120 -0
  142. package/dist/generated/notification/client/utils.gen.d.ts +37 -0
  143. package/dist/generated/notification/client.gen.d.ts +12 -0
  144. package/dist/generated/notification/core/auth.gen.d.ts +25 -0
  145. package/dist/generated/notification/core/bodySerializer.gen.d.ts +25 -0
  146. package/dist/generated/notification/core/params.gen.d.ts +43 -0
  147. package/dist/generated/notification/core/pathSerializer.gen.d.ts +33 -0
  148. package/dist/generated/notification/core/queryKeySerializer.gen.d.ts +18 -0
  149. package/dist/generated/notification/core/serverSentEvents.gen.d.ts +71 -0
  150. package/dist/generated/notification/core/types.gen.d.ts +83 -0
  151. package/dist/generated/notification/core/utils.gen.d.ts +19 -0
  152. package/dist/generated/notification/index.d.ts +2 -0
  153. package/dist/generated/notification/index.js +6 -0
  154. package/dist/generated/notification/sdk.gen.d.ts +127 -0
  155. package/dist/generated/notification/types.gen.d.ts +2084 -0
  156. package/dist/generated/properties/client/client.gen.d.ts +2 -0
  157. package/dist/generated/properties/client/index.d.ts +10 -0
  158. package/dist/generated/properties/client/types.gen.d.ts +120 -0
  159. package/dist/generated/properties/client/utils.gen.d.ts +37 -0
  160. package/dist/generated/properties/client.gen.d.ts +12 -0
  161. package/dist/generated/properties/core/auth.gen.d.ts +25 -0
  162. package/dist/generated/properties/core/bodySerializer.gen.d.ts +25 -0
  163. package/dist/generated/properties/core/params.gen.d.ts +43 -0
  164. package/dist/generated/properties/core/pathSerializer.gen.d.ts +33 -0
  165. package/dist/generated/properties/core/queryKeySerializer.gen.d.ts +18 -0
  166. package/dist/generated/properties/core/serverSentEvents.gen.d.ts +71 -0
  167. package/dist/generated/properties/core/types.gen.d.ts +83 -0
  168. package/dist/generated/properties/core/utils.gen.d.ts +19 -0
  169. package/dist/generated/properties/index.d.ts +2 -0
  170. package/dist/generated/properties/index.js +6 -0
  171. package/dist/generated/properties/sdk.gen.d.ts +158 -0
  172. package/dist/generated/properties/types.gen.d.ts +1311 -0
  173. package/dist/generated/scheduled-action/client/client.gen.d.ts +2 -0
  174. package/dist/generated/scheduled-action/client/index.d.ts +10 -0
  175. package/dist/generated/scheduled-action/client/types.gen.d.ts +120 -0
  176. package/dist/generated/scheduled-action/client/utils.gen.d.ts +37 -0
  177. package/dist/generated/scheduled-action/client.gen.d.ts +12 -0
  178. package/dist/generated/scheduled-action/core/auth.gen.d.ts +25 -0
  179. package/dist/generated/scheduled-action/core/bodySerializer.gen.d.ts +25 -0
  180. package/dist/generated/scheduled-action/core/params.gen.d.ts +43 -0
  181. package/dist/generated/scheduled-action/core/pathSerializer.gen.d.ts +33 -0
  182. package/dist/generated/scheduled-action/core/queryKeySerializer.gen.d.ts +18 -0
  183. package/dist/generated/scheduled-action/core/serverSentEvents.gen.d.ts +71 -0
  184. package/dist/generated/scheduled-action/core/types.gen.d.ts +83 -0
  185. package/dist/generated/scheduled-action/core/utils.gen.d.ts +19 -0
  186. package/dist/generated/scheduled-action/index.d.ts +2 -0
  187. package/dist/generated/scheduled-action/index.js +6 -0
  188. package/dist/generated/scheduled-action/sdk.gen.d.ts +156 -0
  189. package/dist/generated/scheduled-action/types.gen.d.ts +3099 -0
  190. package/dist/generated/search/client/client.gen.d.ts +2 -0
  191. package/dist/generated/search/client/index.d.ts +10 -0
  192. package/dist/generated/search/client/types.gen.d.ts +120 -0
  193. package/dist/generated/search/client/utils.gen.d.ts +37 -0
  194. package/dist/generated/search/client.gen.d.ts +12 -0
  195. package/dist/generated/search/core/auth.gen.d.ts +25 -0
  196. package/dist/generated/search/core/bodySerializer.gen.d.ts +25 -0
  197. package/dist/generated/search/core/params.gen.d.ts +43 -0
  198. package/dist/generated/search/core/pathSerializer.gen.d.ts +33 -0
  199. package/dist/generated/search/core/queryKeySerializer.gen.d.ts +18 -0
  200. package/dist/generated/search/core/serverSentEvents.gen.d.ts +71 -0
  201. package/dist/generated/search/core/types.gen.d.ts +83 -0
  202. package/dist/generated/search/core/utils.gen.d.ts +19 -0
  203. package/dist/generated/search/index.d.ts +2 -0
  204. package/dist/generated/search/index.js +6 -0
  205. package/dist/generated/search/sdk.gen.d.ts +44 -0
  206. package/dist/generated/search/types.gen.d.ts +2532 -0
  207. package/dist/generated/static-files/client/client.gen.d.ts +2 -0
  208. package/dist/generated/static-files/client/index.d.ts +10 -0
  209. package/dist/generated/static-files/client/types.gen.d.ts +120 -0
  210. package/dist/generated/static-files/client/utils.gen.d.ts +37 -0
  211. package/dist/generated/static-files/client.gen.d.ts +12 -0
  212. package/dist/generated/static-files/core/auth.gen.d.ts +25 -0
  213. package/dist/generated/static-files/core/bodySerializer.gen.d.ts +25 -0
  214. package/dist/generated/static-files/core/params.gen.d.ts +43 -0
  215. package/dist/generated/static-files/core/pathSerializer.gen.d.ts +33 -0
  216. package/dist/generated/static-files/core/queryKeySerializer.gen.d.ts +18 -0
  217. package/dist/generated/static-files/core/serverSentEvents.gen.d.ts +71 -0
  218. package/dist/generated/static-files/core/types.gen.d.ts +83 -0
  219. package/dist/generated/static-files/core/utils.gen.d.ts +19 -0
  220. package/dist/generated/static-files/index.d.ts +2 -0
  221. package/dist/generated/static-files/index.js +842 -0
  222. package/dist/generated/static-files/sdk.gen.d.ts +43 -0
  223. package/dist/generated/static-files/types.gen.d.ts +220 -0
  224. package/dist/generated/storage/client/client.gen.d.ts +2 -0
  225. package/dist/generated/storage/client/index.d.ts +10 -0
  226. package/dist/generated/storage/client/types.gen.d.ts +120 -0
  227. package/dist/generated/storage/client/utils.gen.d.ts +37 -0
  228. package/dist/generated/storage/client.gen.d.ts +12 -0
  229. package/dist/generated/storage/core/auth.gen.d.ts +25 -0
  230. package/dist/generated/storage/core/bodySerializer.gen.d.ts +25 -0
  231. package/dist/generated/storage/core/params.gen.d.ts +43 -0
  232. package/dist/generated/storage/core/pathSerializer.gen.d.ts +33 -0
  233. package/dist/generated/storage/core/queryKeySerializer.gen.d.ts +18 -0
  234. package/dist/generated/storage/core/serverSentEvents.gen.d.ts +71 -0
  235. package/dist/generated/storage/core/types.gen.d.ts +83 -0
  236. package/dist/generated/storage/core/utils.gen.d.ts +19 -0
  237. package/dist/generated/storage/index.d.ts +2 -0
  238. package/dist/generated/storage/index.js +6 -0
  239. package/dist/generated/storage/sdk.gen.d.ts +2285 -0
  240. package/dist/generated/storage/types.gen.d.ts +34546 -0
  241. package/dist/generated/unfurl/client/client.gen.d.ts +2 -0
  242. package/dist/generated/unfurl/client/index.d.ts +10 -0
  243. package/dist/generated/unfurl/client/types.gen.d.ts +120 -0
  244. package/dist/generated/unfurl/client/utils.gen.d.ts +37 -0
  245. package/dist/generated/unfurl/client.gen.d.ts +12 -0
  246. package/dist/generated/unfurl/core/auth.gen.d.ts +25 -0
  247. package/dist/generated/unfurl/core/bodySerializer.gen.d.ts +25 -0
  248. package/dist/generated/unfurl/core/params.gen.d.ts +43 -0
  249. package/dist/generated/unfurl/core/pathSerializer.gen.d.ts +33 -0
  250. package/dist/generated/unfurl/core/queryKeySerializer.gen.d.ts +18 -0
  251. package/dist/generated/unfurl/core/serverSentEvents.gen.d.ts +71 -0
  252. package/dist/generated/unfurl/core/types.gen.d.ts +83 -0
  253. package/dist/generated/unfurl/core/utils.gen.d.ts +19 -0
  254. package/dist/generated/unfurl/index.d.ts +2 -0
  255. package/dist/generated/unfurl/index.js +6 -0
  256. package/dist/generated/unfurl/sdk.gen.d.ts +47 -0
  257. package/dist/generated/unfurl/types.gen.d.ts +145 -0
  258. package/dist/src/calls/browser.d.ts +14 -0
  259. package/dist/src/calls/browser.js +102 -0
  260. package/dist/src/calls/common.d.ts +18 -0
  261. package/dist/src/calls/node.d.ts +24 -0
  262. package/dist/src/calls/node.js +145 -0
  263. package/dist/src/calls/telemetry.d.ts +5 -0
  264. package/dist/src/config.d.ts +71 -0
  265. package/dist/src/entities/account-managers/grant.d.ts +62 -0
  266. package/dist/src/entities/account-managers/namespace.d.ts +29 -0
  267. package/dist/src/entities/activity/entity.d.ts +7 -0
  268. package/dist/src/entities/activity/namespace.d.ts +58 -0
  269. package/dist/src/entities/activity/namespace.test.d.ts +1 -0
  270. package/dist/src/entities/agent-sessions/activity.d.ts +48 -0
  271. package/dist/src/entities/agent-sessions/agent-session.d.ts +518 -0
  272. package/dist/src/entities/agent-sessions/code-execution.d.ts +60 -0
  273. package/dist/src/entities/agent-sessions/conversation.d.ts +91 -0
  274. package/dist/src/entities/agent-sessions/namespace.d.ts +142 -0
  275. package/dist/src/entities/agent-sessions/origin.d.ts +94 -0
  276. package/dist/src/entities/agent-sessions/queued-action.d.ts +60 -0
  277. package/dist/src/entities/agent-sessions/review.d.ts +114 -0
  278. package/dist/src/entities/agent-sessions/tool-approval.d.ts +25 -0
  279. package/dist/src/entities/agent-sessions/view.d.ts +11 -0
  280. package/dist/src/entities/agents/agent.d.ts +142 -0
  281. package/dist/src/entities/agents/namespace.d.ts +66 -0
  282. package/dist/src/entities/ai/namespace.d.ts +36 -0
  283. package/dist/src/entities/api-keys/api-key.d.ts +22 -0
  284. package/dist/src/entities/api-keys/namespace.d.ts +37 -0
  285. package/dist/src/entities/bots/bot.d.ts +143 -0
  286. package/dist/src/entities/bots/namespace.d.ts +50 -0
  287. package/dist/src/entities/bots/token.d.ts +39 -0
  288. package/dist/src/entities/calendar/booking-link.d.ts +55 -0
  289. package/dist/src/entities/calendar/booking-namespace.d.ts +143 -0
  290. package/dist/src/entities/calendar/booking-namespace.test.d.ts +1 -0
  291. package/dist/src/entities/calendar/booking.d.ts +97 -0
  292. package/dist/src/entities/calendar/calendar.d.ts +49 -0
  293. package/dist/src/entities/calendar/create-confirmed.test.d.ts +1 -0
  294. package/dist/src/entities/calendar/event.d.ts +283 -0
  295. package/dist/src/entities/calendar/event.test.d.ts +1 -0
  296. package/dist/src/entities/calendar/namespace.d.ts +334 -0
  297. package/dist/src/entities/calendar/namespace.test.d.ts +1 -0
  298. package/dist/src/entities/calendar/replacement.d.ts +31 -0
  299. package/dist/src/entities/calls/call-record.d.ts +231 -0
  300. package/dist/src/entities/calls/connection.d.ts +59 -0
  301. package/dist/src/entities/calls/errors.d.ts +15 -0
  302. package/dist/src/entities/calls/message.d.ts +55 -0
  303. package/dist/src/entities/calls/namespace.d.ts +41 -0
  304. package/dist/src/entities/calls/participant.d.ts +22 -0
  305. package/dist/src/entities/canvases/canvas.d.ts +329 -0
  306. package/dist/src/entities/channels/access-request.d.ts +42 -0
  307. package/dist/src/entities/channels/activity.d.ts +40 -0
  308. package/dist/src/entities/channels/channel.d.ts +302 -0
  309. package/dist/src/entities/channels/labels.d.ts +73 -0
  310. package/dist/src/entities/channels/message.d.ts +153 -0
  311. package/dist/src/entities/channels/message.test.d.ts +1 -0
  312. package/dist/src/entities/channels/namespace.d.ts +82 -0
  313. package/dist/src/entities/channels/namespace.test.d.ts +1 -0
  314. package/dist/src/entities/channels/picture.d.ts +11 -0
  315. package/dist/src/entities/channels/post.d.ts +37 -0
  316. package/dist/src/entities/channels/post.test.d.ts +1 -0
  317. package/dist/src/entities/channels/share.d.ts +9 -0
  318. package/dist/src/entities/channels/share.test.d.ts +1 -0
  319. package/dist/src/entities/channels/thread.d.ts +64 -0
  320. package/dist/src/entities/chats/chat.d.ts +121 -0
  321. package/dist/src/entities/chats/generation.d.ts +55 -0
  322. package/dist/src/entities/chats/namespace.d.ts +35 -0
  323. package/dist/src/entities/connected-apps/connected-app.d.ts +121 -0
  324. package/dist/src/entities/connected-apps/connector.d.ts +59 -0
  325. package/dist/src/entities/connected-apps/namespace.d.ts +92 -0
  326. package/dist/src/entities/crm/company.d.ts +154 -0
  327. package/dist/src/entities/crm/contact.d.ts +168 -0
  328. package/dist/src/entities/crm/namespace.d.ts +163 -0
  329. package/dist/src/entities/crm/pipeline-entry.d.ts +109 -0
  330. package/dist/src/entities/crm/pipeline.d.ts +426 -0
  331. package/dist/src/entities/crm/pipelines.d.ts +79 -0
  332. package/dist/src/entities/crm-email-privacy/email-privacy.d.ts +238 -0
  333. package/dist/src/entities/crm-email-privacy/email-rule-preview.d.ts +55 -0
  334. package/dist/src/entities/crm-email-privacy/email-rule-revision.d.ts +27 -0
  335. package/dist/src/entities/crm-email-privacy/email-rules.d.ts +32 -0
  336. package/dist/src/entities/databases/column.d.ts +122 -0
  337. package/dist/src/entities/databases/database.d.ts +431 -0
  338. package/dist/src/entities/databases/namespace.d.ts +109 -0
  339. package/dist/src/entities/databases/query.d.ts +86 -0
  340. package/dist/src/entities/databases/row.d.ts +29 -0
  341. package/dist/src/entities/databases/saved-query.d.ts +151 -0
  342. package/dist/src/entities/databases/table.d.ts +124 -0
  343. package/dist/src/entities/databases/view.d.ts +72 -0
  344. package/dist/src/entities/databases/webhook.d.ts +39 -0
  345. package/dist/src/entities/documents/ai-edit.d.ts +54 -0
  346. package/dist/src/entities/documents/anchor.d.ts +39 -0
  347. package/dist/src/entities/documents/comment.d.ts +68 -0
  348. package/dist/src/entities/documents/create.test.d.ts +1 -0
  349. package/dist/src/entities/documents/document.d.ts +675 -0
  350. package/dist/src/entities/documents/markdown.d.ts +25 -0
  351. package/dist/src/entities/documents/namespace.d.ts +291 -0
  352. package/dist/src/entities/documents/office-files.d.ts +47 -0
  353. package/dist/src/entities/documents/skills.test.d.ts +1 -0
  354. package/dist/src/entities/documents/system-skill.d.ts +36 -0
  355. package/dist/src/entities/documents/text-comment.d.ts +41 -0
  356. package/dist/src/entities/documents/text-comment.test.d.ts +1 -0
  357. package/dist/src/entities/documents/version.d.ts +26 -0
  358. package/dist/src/entities/email/attachment.d.ts +39 -0
  359. package/dist/src/entities/email/draft.d.ts +160 -0
  360. package/dist/src/entities/email/filter.d.ts +44 -0
  361. package/dist/src/entities/email/label.d.ts +37 -0
  362. package/dist/src/entities/email/link.d.ts +35 -0
  363. package/dist/src/entities/email/message.d.ts +223 -0
  364. package/dist/src/entities/email/namespace.d.ts +235 -0
  365. package/dist/src/entities/email/namespace.test.d.ts +1 -0
  366. package/dist/src/entities/email/thread.d.ts +268 -0
  367. package/dist/src/entities/entity-mentions/mention.d.ts +21 -0
  368. package/dist/src/entities/entity-mentions/namespace.d.ts +20 -0
  369. package/dist/src/entities/entity.d.ts +167 -0
  370. package/dist/src/entities/external-chat/chat.d.ts +173 -0
  371. package/dist/src/entities/external-chat/message.d.ts +54 -0
  372. package/dist/src/entities/external-chat/namespace.d.ts +22 -0
  373. package/dist/src/entities/external-chat/participant.d.ts +28 -0
  374. package/dist/src/entities/external-chat/send.d.ts +40 -0
  375. package/dist/src/entities/external-chat/upload.d.ts +25 -0
  376. package/dist/src/entities/favorites/namespace.d.ts +52 -0
  377. package/dist/src/entities/foreign/foreign-entity.d.ts +36 -0
  378. package/dist/src/entities/foreign/namespace.d.ts +54 -0
  379. package/dist/src/entities/forms/form.d.ts +319 -0
  380. package/dist/src/entities/forms/namespace.d.ts +30 -0
  381. package/dist/src/entities/forms/question.d.ts +65 -0
  382. package/dist/src/entities/forms/response.d.ts +52 -0
  383. package/dist/src/entities/forms/section.d.ts +31 -0
  384. package/dist/src/entities/github-pull-requests/namespace.d.ts +20 -0
  385. package/dist/src/entities/github-pull-requests/pull-request.d.ts +64 -0
  386. package/dist/src/entities/harnesses/harness.d.ts +76 -0
  387. package/dist/src/entities/harnesses/namespace.d.ts +83 -0
  388. package/dist/src/entities/harnesses/pairing.d.ts +50 -0
  389. package/dist/src/entities/images/image.d.ts +88 -0
  390. package/dist/src/entities/images/namespace.d.ts +55 -0
  391. package/dist/src/entities/images/namespace.test.d.ts +1 -0
  392. package/dist/src/entities/imports/entry.d.ts +65 -0
  393. package/dist/src/entities/imports/namespace.d.ts +103 -0
  394. package/dist/src/entities/imports/namespace.test.d.ts +1 -0
  395. package/dist/src/entities/initiatives/initiative.d.ts +185 -0
  396. package/dist/src/entities/initiatives/initiative.test.d.ts +1 -0
  397. package/dist/src/entities/initiatives/namespace.d.ts +90 -0
  398. package/dist/src/entities/me/namespace.d.ts +68 -0
  399. package/dist/src/entities/meetings/meeting.d.ts +81 -0
  400. package/dist/src/entities/meetings/namespace.d.ts +38 -0
  401. package/dist/src/entities/memory/namespace.d.ts +49 -0
  402. package/dist/src/entities/memory/namespace.test.d.ts +1 -0
  403. package/dist/src/entities/messages/discussion.d.ts +84 -0
  404. package/dist/src/entities/messages/thread.d.ts +115 -0
  405. package/dist/src/entities/notifications/namespace.d.ts +66 -0
  406. package/dist/src/entities/notifications/notification.d.ts +78 -0
  407. package/dist/src/entities/notifications/notification.test.d.ts +1 -0
  408. package/dist/src/entities/passwords/item.d.ts +118 -0
  409. package/dist/src/entities/passwords/namespace.d.ts +45 -0
  410. package/dist/src/entities/pins/namespace.d.ts +42 -0
  411. package/dist/src/entities/projects/namespace.d.ts +45 -0
  412. package/dist/src/entities/projects/project.d.ts +108 -0
  413. package/dist/src/entities/properties/namespace.d.ts +105 -0
  414. package/dist/src/entities/properties/namespace.test.d.ts +1 -0
  415. package/dist/src/entities/properties/property-definition.d.ts +70 -0
  416. package/dist/src/entities/properties/property-option.d.ts +44 -0
  417. package/dist/src/entities/reference.d.ts +82 -0
  418. package/dist/src/entities/referrals/namespace.d.ts +40 -0
  419. package/dist/src/entities/routines/namespace.d.ts +239 -0
  420. package/dist/src/entities/routines/routine.d.ts +341 -0
  421. package/dist/src/entities/routines/suggestion.d.ts +38 -0
  422. package/dist/src/entities/saved-views/namespace.d.ts +58 -0
  423. package/dist/src/entities/saved-views/saved-view.d.ts +78 -0
  424. package/dist/src/entities/search/exclusions.d.ts +6 -0
  425. package/dist/src/entities/search/namespace.d.ts +71 -0
  426. package/dist/src/entities/search/options.d.ts +30 -0
  427. package/dist/src/entities/search/types.d.ts +90 -0
  428. package/dist/src/entities/sharing/access.d.ts +120 -0
  429. package/dist/src/entities/sharing/permissions.d.ts +13 -0
  430. package/dist/src/entities/spreadsheets/spreadsheet.d.ts +201 -0
  431. package/dist/src/entities/suggestions/namespace.d.ts +118 -0
  432. package/dist/src/entities/suggestions/suggestion.d.ts +172 -0
  433. package/dist/src/entities/suggestions/suggestion.test.d.ts +1 -0
  434. package/dist/src/entities/tasks/namespace.d.ts +77 -0
  435. package/dist/src/entities/tasks/task.d.ts +99 -0
  436. package/dist/src/entities/teams/invite.d.ts +33 -0
  437. package/dist/src/entities/teams/namespace.d.ts +23 -0
  438. package/dist/src/entities/teams/team.d.ts +129 -0
  439. package/dist/src/entities/ui/app-link.d.ts +24 -0
  440. package/dist/src/entities/ui/namespace.d.ts +75 -0
  441. package/dist/src/entities/unfurls/namespace.d.ts +24 -0
  442. package/dist/src/entities/users/namespace.d.ts +41 -0
  443. package/dist/src/entities/users/profile-picture.d.ts +29 -0
  444. package/dist/src/entities/users/profile-picture.test.d.ts +1 -0
  445. package/dist/src/entities/users/user.d.ts +102 -0
  446. package/dist/src/entities/web/namespace.d.ts +67 -0
  447. package/dist/src/entities/web/namespace.test.d.ts +1 -0
  448. package/dist/src/entities/webhooks/namespace.d.ts +38 -0
  449. package/dist/src/entities/webhooks/webhook.d.ts +130 -0
  450. package/dist/src/entities/whatsapp/account.d.ts +24 -0
  451. package/dist/src/entities/whatsapp/chat.d.ts +62 -0
  452. package/dist/src/entities/whatsapp/namespace.d.ts +29 -0
  453. package/dist/src/entities/workspace/items.d.ts +14 -0
  454. package/dist/src/entities/workspace/namespace.d.ts +96 -0
  455. package/dist/src/entities/workspace/query.d.ts +39 -0
  456. package/dist/src/entities/workspace/query.test.d.ts +1 -0
  457. package/dist/src/entities/workspace/types.d.ts +99 -0
  458. package/dist/src/events/hydrate/agentSession.d.ts +192 -0
  459. package/dist/src/events/hydrate/call.d.ts +101 -0
  460. package/dist/src/events/hydrate/channel.d.ts +55 -0
  461. package/dist/src/events/hydrate/document.d.ts +59 -0
  462. package/dist/src/events/hydrate/message.d.ts +70 -0
  463. package/dist/src/events/hydrate/user.d.ts +14 -0
  464. package/dist/src/events/receiver.d.ts +91 -0
  465. package/dist/src/events/types.d.ts +44 -0
  466. package/dist/src/events/verify.d.ts +13 -0
  467. package/dist/src/local-portmap.d.ts +8 -0
  468. package/dist/src/mentions.d.ts +42 -0
  469. package/dist/src/raw.d.ts +12 -0
  470. package/dist/src/rox.d.ts +267 -0
  471. package/dist/src/rox.js +23217 -0
  472. package/dist/src/utils/activity.d.ts +34 -0
  473. package/dist/src/utils/activity.test.d.ts +1 -0
  474. package/dist/src/utils/client.d.ts +62 -0
  475. package/dist/src/utils/concurrency.d.ts +5 -0
  476. package/dist/src/utils/index.d.ts +5 -0
  477. package/dist/src/utils/lazy.d.ts +37 -0
  478. package/dist/src/utils/options.d.ts +7 -0
  479. package/dist/src/utils/pagination.d.ts +28 -0
  480. package/dist/src/utils/unwrap.d.ts +48 -0
  481. package/dist/src/utils/verbs.d.ts +3 -0
  482. package/package.json +82 -4
@@ -0,0 +1,1311 @@
1
+ export type ClientOptions = {
2
+ baseUrl: `${string}://${string}` | (string & {});
3
+ };
4
+ /**
5
+ * Type-safe request to add a number option to a SelectNumber property.
6
+ */
7
+ export type AddNumberOptionRequest = {
8
+ display_order: number;
9
+ value: number;
10
+ };
11
+ /**
12
+ * Enum for type-safe property option addition requests.
13
+ */
14
+ export type AddPropertyOptionRequest = {
15
+ option: AddStringOptionRequest;
16
+ type: 'select_string';
17
+ } | {
18
+ option: AddNumberOptionRequest;
19
+ type: 'select_number';
20
+ };
21
+ /**
22
+ * Type-safe request to add a string option to a SelectString property.
23
+ */
24
+ export type AddStringOptionRequest = {
25
+ color?: string | null;
26
+ display_order: number;
27
+ value: string;
28
+ };
29
+ /**
30
+ * One entity's result in a cross-entity bulk option update.
31
+ */
32
+ export type BulkEntityOptionUpdateResult = {
33
+ /**
34
+ * The entity's id this result is for.
35
+ */
36
+ entity_id: string;
37
+ /**
38
+ * The entity's type this result is for.
39
+ */
40
+ entity_type: PropertyTargetEntityType;
41
+ /**
42
+ * A human-readable reason, present only when `failed`.
43
+ */
44
+ error?: string | null;
45
+ /**
46
+ * The entity's reconciled final option ids, present only when `applied`.
47
+ */
48
+ option_ids?: Array<string> | null;
49
+ /**
50
+ * Whether the delta was applied, skipped, or failed for this entity.
51
+ */
52
+ status: BulkEntityOptionUpdateStatus;
53
+ };
54
+ /**
55
+ * Per-entity outcome of a cross-entity bulk option update.
56
+ */
57
+ export type BulkEntityOptionUpdateStatus = 'applied' | 'skipped_no_permission' | 'failed';
58
+ /**
59
+ * Request for getting properties for multiple entities in bulk
60
+ */
61
+ export type BulkEntityPropertiesRequest = {
62
+ /**
63
+ * Array of entity references (entity_id and entity_type pairs)
64
+ */
65
+ entities: Array<PropertyTargetReference>;
66
+ /**
67
+ * Optional: only return properties with these definition IDs. If empty, returns all.
68
+ */
69
+ property_ids?: Array<string>;
70
+ };
71
+ /**
72
+ * Request to apply one shared option delta across several entities in a single
73
+ * call. Mirrors the per-entity bulk endpoint's delta semantics, applied to
74
+ * every listed entity (e.g. tag N emails with one label in one request).
75
+ */
76
+ export type BulkUpdateEntitiesPropertyOptionsRequest = {
77
+ /**
78
+ * Options to add to each entity's current value (deduped).
79
+ */
80
+ add_option_ids?: Array<string>;
81
+ /**
82
+ * The entities to update. Entities the caller cannot edit are skipped.
83
+ */
84
+ entities: Array<PropertyTargetReference>;
85
+ /**
86
+ * The multi-select property definition changed on every entity.
87
+ */
88
+ property_id: string;
89
+ /**
90
+ * Options to remove from each entity's current value (a no-op if absent).
91
+ */
92
+ remove_option_ids?: Array<string>;
93
+ };
94
+ /**
95
+ * Response for a cross-entity bulk option update: one result per requested
96
+ * entity, in request order.
97
+ */
98
+ export type BulkUpdateEntitiesPropertyOptionsResponse = {
99
+ /**
100
+ * Per-entity results, aligned to the request's `entities` order.
101
+ */
102
+ results: Array<BulkEntityOptionUpdateResult>;
103
+ };
104
+ /**
105
+ * Request to apply option deltas across one or more of an entity's multi-select
106
+ * properties in a single transaction.
107
+ */
108
+ export type BulkUpdateEntityPropertyOptionsRequest = {
109
+ /**
110
+ * The per-property option changes to apply.
111
+ */
112
+ properties: Array<EntityPropertyOptionUpdateRequest>;
113
+ };
114
+ /**
115
+ * Response for a bulk option update: each property's reconciled final ids.
116
+ */
117
+ export type BulkUpdateEntityPropertyOptionsResponse = {
118
+ /**
119
+ * The final option ids per updated property.
120
+ */
121
+ properties: Array<EntityPropertyOptionSelectionResponse>;
122
+ };
123
+ /**
124
+ * Request to create a new property definition.
125
+ */
126
+ export type CreatePropertyDefinitionRequest = {
127
+ data_type: PropertyDataType;
128
+ display_name: string;
129
+ scope: CreatePropertyScope;
130
+ };
131
+ /**
132
+ * Ownership scope a client may request when creating a property definition.
133
+ * The owning user or team is derived server-side from the authenticated caller -
134
+ * clients never supply owner ids. System properties are not creatable via the API.
135
+ */
136
+ export type CreatePropertyScope = 'user' | 'team';
137
+ /**
138
+ * Data type for property values, determining storage and validation.
139
+ */
140
+ export type DataType = 'BOOLEAN' | 'DATE' | 'DATE_RANGE' | 'NUMBER' | 'STRING' | 'SELECT_NUMBER' | 'SELECT_STRING' | 'TAG' | 'ENTITY' | 'LINK';
141
+ /**
142
+ * A span of time from `start` to `end`, both included. The end is never
143
+ * before the start: a range that would end earlier does not deserialize.
144
+ */
145
+ export type DateRange = {
146
+ end: string;
147
+ start: string;
148
+ };
149
+ /**
150
+ * Request to provision (get-or-create) the caller's tag set for a scope.
151
+ */
152
+ export type EnsureTagSetRequest = {
153
+ scope: TagScope;
154
+ };
155
+ /**
156
+ * Response for document/entity properties endpoint.
157
+ */
158
+ export type EntityPropertiesResponse = {
159
+ entity_id: string;
160
+ properties: Array<EntityPropertyWithDefinition>;
161
+ };
162
+ /**
163
+ * Assignment of a property definition to a specific entity (service representation).
164
+ */
165
+ export type EntityProperty = {
166
+ created_at: string;
167
+ entity_id: string;
168
+ entity_type: EntityType;
169
+ id: string;
170
+ property_definition_id: string;
171
+ updated_at: string;
172
+ };
173
+ /**
174
+ * The reconciled final option ids stored for one property after a bulk update.
175
+ */
176
+ export type EntityPropertyOptionSelectionResponse = {
177
+ /**
178
+ * The final option ids the server persisted, in stored order.
179
+ */
180
+ option_ids: Array<string>;
181
+ /**
182
+ * The property definition the options belong to.
183
+ */
184
+ property_id: string;
185
+ };
186
+ /**
187
+ * One property's option changes in a bulk selection update. The change is a
188
+ * delta (options to add / remove) so it composes with concurrent edits rather
189
+ * than replacing the whole value.
190
+ */
191
+ export type EntityPropertyOptionUpdateRequest = {
192
+ /**
193
+ * Options to add (deduped against the current value).
194
+ */
195
+ add_option_ids?: Array<string>;
196
+ /**
197
+ * The multi-select property definition being changed.
198
+ */
199
+ property_id: string;
200
+ /**
201
+ * Options to remove (a no-op if not present).
202
+ */
203
+ remove_option_ids?: Array<string>;
204
+ };
205
+ /**
206
+ * Entity property response (API representation).
207
+ */
208
+ export type EntityPropertyResponse = {
209
+ createdAt?: string | null;
210
+ entityId: string;
211
+ entityType: EntityType;
212
+ id: string;
213
+ propertyDefinitionId: string;
214
+ updatedAt?: string | null;
215
+ };
216
+ /**
217
+ * Entity property with its definition, value, and options (service representation).
218
+ */
219
+ export type EntityPropertyWithDefinition = {
220
+ definition: PropertyDefinition;
221
+ options?: Array<PropertyOption> | null;
222
+ property: EntityProperty;
223
+ value?: null | PropertyValue;
224
+ };
225
+ /**
226
+ * Entity property with definition response (API representation).
227
+ */
228
+ export type EntityPropertyWithDefinitionResponse = {
229
+ definition: PropertyDefinitionDetailResponse;
230
+ options?: Array<PropertyOptionResponse> | null;
231
+ property: EntityPropertyResponse;
232
+ value?: null | PropertyValue;
233
+ };
234
+ /**
235
+ * Query parameters for entity properties endpoint.
236
+ */
237
+ export type EntityQueryParams = {
238
+ /**
239
+ * Whether to include system metadata properties (default: false)
240
+ */
241
+ include_metadata?: boolean;
242
+ };
243
+ /**
244
+ * Entity reference for entity-type property values.
245
+ */
246
+ export type EntityReference = {
247
+ entity_id: string;
248
+ entity_type: EntityType;
249
+ /**
250
+ * For CHANNEL, CHAT, THREAD entity types - optional specific message ID.
251
+ * This allows referencing a specific message within a thread/channel/chat.
252
+ */
253
+ specific_message_id?: string | null;
254
+ };
255
+ /**
256
+ * Type of entity that can be referenced by entity properties.
257
+ */
258
+ export type EntityType = 'CALENDAR_EVENT' | 'CALL_RECORD' | 'CHANNEL' | 'CHAT' | 'COMPANY' | 'DATABASE_ROW' | 'CONTACT' | 'DOCUMENT' | 'INITIATIVE' | 'PROJECT' | 'TASK' | 'THREAD' | 'USER';
259
+ /**
260
+ * Query parameters for listing properties
261
+ */
262
+ export type ListPropertiesQuery = {
263
+ for_entity_type?: null | EntityType;
264
+ /**
265
+ * Whether to include property options in the response
266
+ */
267
+ include_options?: boolean;
268
+ /**
269
+ * Scope filter for properties
270
+ */
271
+ scope: PropertyScope;
272
+ };
273
+ /**
274
+ * Request to replace a personal label with an existing team label.
275
+ */
276
+ export type MergeTagRequest = {
277
+ /**
278
+ * The personal label to retire.
279
+ */
280
+ option_id: string;
281
+ /**
282
+ * The team label every entity carrying `option_id` is retagged with.
283
+ */
284
+ target_option_id: string;
285
+ };
286
+ /**
287
+ * Request to share one of the caller's personal labels with their team.
288
+ */
289
+ export type PromoteTagRequest = {
290
+ /**
291
+ * The personal label to move into the team tag set.
292
+ */
293
+ option_id: string;
294
+ };
295
+ /**
296
+ * Data type with embedded options for requests - provides compile-time validation.
297
+ */
298
+ export type PropertyDataType = {
299
+ type: 'boolean';
300
+ } | {
301
+ type: 'date';
302
+ } | {
303
+ type: 'date_range';
304
+ } | {
305
+ type: 'number';
306
+ } | {
307
+ type: 'string';
308
+ } | {
309
+ multi: boolean;
310
+ options: Array<SelectNumberOption>;
311
+ type: 'select_number';
312
+ } | {
313
+ multi: boolean;
314
+ options: Array<SelectStringOption>;
315
+ type: 'select_string';
316
+ } | {
317
+ multi: boolean;
318
+ specific_type?: null | EntityType;
319
+ type: 'entity';
320
+ } | {
321
+ multi: boolean;
322
+ type: 'link';
323
+ };
324
+ /**
325
+ * Property definition model (service representation).
326
+ */
327
+ export type PropertyDefinition = {
328
+ created_at: string;
329
+ data_type: DataType;
330
+ display_name: string;
331
+ id: string;
332
+ /**
333
+ * Flag to indicate if this is a system-generated metadata property.
334
+ * Not stored in database - computed at service layer.
335
+ */
336
+ is_metadata: boolean;
337
+ is_multi_select: boolean;
338
+ /**
339
+ * Flag to indicate if this is a system property (stored in DB).
340
+ */
341
+ is_system: boolean;
342
+ owner: PropertyOwner;
343
+ specific_entity_type: null | EntityType;
344
+ updated_at: string;
345
+ };
346
+ /**
347
+ * Property definition response (API representation).
348
+ */
349
+ export type PropertyDefinitionDetailResponse = PropertyOwner & {
350
+ createdAt?: string | null;
351
+ dataType: DataType;
352
+ displayName: string;
353
+ id: string;
354
+ /**
355
+ * Flag to indicate if this is a system-generated metadata property
356
+ */
357
+ isMetadata: boolean;
358
+ isMultiSelect: boolean;
359
+ /**
360
+ * Flag to indicate if this is a system property (managed by the system)
361
+ */
362
+ isSystem: boolean;
363
+ specificEntityType?: null | EntityType;
364
+ updatedAt?: string | null;
365
+ };
366
+ /**
367
+ * Response for property definition with optional property options
368
+ */
369
+ export type PropertyDefinitionResponse = PropertyDefinition | PropertyDefinitionWithOptions;
370
+ /**
371
+ * Property definition with its associated options (service representation).
372
+ */
373
+ export type PropertyDefinitionWithOptions = {
374
+ definition: PropertyDefinition;
375
+ property_options: Array<PropertyOption>;
376
+ };
377
+ /**
378
+ * Property definition with options response.
379
+ */
380
+ export type PropertyDefinitionWithOptionsResponse = {
381
+ definition: PropertyDefinitionDetailResponse;
382
+ propertyOptions: Array<PropertyOptionResponse>;
383
+ };
384
+ /**
385
+ * A selectable option for select-type properties (service representation).
386
+ */
387
+ export type PropertyOption = {
388
+ color: string | null;
389
+ created_at: string;
390
+ display_order: number;
391
+ id: string;
392
+ property_definition_id: string;
393
+ updated_at: string;
394
+ value: PropertyOptionValue;
395
+ };
396
+ /**
397
+ * Property option response (API representation).
398
+ */
399
+ export type PropertyOptionResponse = {
400
+ color?: string | null;
401
+ displayOrder: number;
402
+ id: string;
403
+ propertyDefinitionId: string;
404
+ value: PropertyOptionValue;
405
+ };
406
+ /**
407
+ * The value of a property option - either a string or a number.
408
+ */
409
+ export type PropertyOptionValue = {
410
+ type: 'string';
411
+ /**
412
+ * String value for SelectString properties
413
+ */
414
+ value: string;
415
+ } | {
416
+ type: 'number';
417
+ /**
418
+ * Number value for SelectNumber properties
419
+ */
420
+ value: number;
421
+ };
422
+ /**
423
+ * Defines who owns a property - user-scoped, team-scoped, database-scoped, or system.
424
+ */
425
+ export type PropertyOwner = {
426
+ scope: 'user';
427
+ user_id: string;
428
+ } | {
429
+ scope: 'team';
430
+ team_id: string;
431
+ } | {
432
+ database_id: string;
433
+ scope: 'database';
434
+ } | {
435
+ scope: 'system';
436
+ };
437
+ /**
438
+ * Scope filter for property queries
439
+ */
440
+ export type PropertyScope = 'user' | 'team' | 'system' | 'all';
441
+ /**
442
+ * Canonical type of an entity receiving properties.
443
+ *
444
+ * Tasks are documents at API boundaries. `Task` intentionally does not exist
445
+ * here; task classification is resolved by the properties domain from the
446
+ * document subtype.
447
+ */
448
+ export type PropertyTargetEntityType = 'CALL_RECORD' | 'CHANNEL' | 'CHAT' | 'COMPANY' | 'DATABASE_ROW' | 'DOCUMENT' | 'INITIATIVE' | 'PROJECT' | 'THREAD' | 'USER';
449
+ /**
450
+ * Canonical reference to an entity receiving properties.
451
+ */
452
+ export type PropertyTargetReference = {
453
+ /**
454
+ * Entity identifier.
455
+ */
456
+ entity_id: string;
457
+ /**
458
+ * Canonical entity type.
459
+ */
460
+ entity_type: PropertyTargetEntityType;
461
+ };
462
+ /**
463
+ * Property value (service representation).
464
+ *
465
+ * Represents the actual value stored for an entity property.
466
+ * This is serialized to/from JSONB in the database.
467
+ */
468
+ export type PropertyValue = {
469
+ type: 'Boolean';
470
+ /**
471
+ * Boolean value
472
+ * Serializes as: {"type": "Boolean", "value": true}
473
+ */
474
+ value: boolean;
475
+ } | {
476
+ type: 'Number';
477
+ /**
478
+ * Numeric value
479
+ * Serializes as: {"type": "Number", "value": 42.5}
480
+ */
481
+ value: number;
482
+ } | {
483
+ type: 'String';
484
+ /**
485
+ * String value
486
+ * Serializes as: {"type": "String", "value": "text"}
487
+ */
488
+ value: string;
489
+ } | {
490
+ type: 'Date';
491
+ /**
492
+ * Date/timestamp value
493
+ * Serializes as: {"type": "Date", "value": "2025-01-01T00:00:00Z"}
494
+ */
495
+ value: string;
496
+ } | {
497
+ type: 'DateRange';
498
+ /**
499
+ * Date range value
500
+ * Serializes as: {"type": "DateRange", "value": {"start": "2025-01-01T00:00:00Z", "end": "2025-01-31T00:00:00Z"}}
501
+ */
502
+ value: DateRange;
503
+ } | {
504
+ type: 'SelectOption';
505
+ /**
506
+ * Select option(s) - always an array (check is_multi_select to determine if single or multi)
507
+ * Single-select: {"type": "SelectOption", "value": ["uuid"]} (length 0 or 1)
508
+ * Multi-select: {"type": "SelectOption", "value": ["uuid1", "uuid2", ...]} (length 0+)
509
+ */
510
+ value: Array<string>;
511
+ } | {
512
+ type: 'EntityReference';
513
+ /**
514
+ * Entity reference(s) - always an array (check is_multi_select to determine if single or multi)
515
+ * Single-select: {"type": "EntityReference", "value": [{...}]} (length 0 or 1)
516
+ * Multi-select: {"type": "EntityReference", "value": [{...}, {...}, ...]} (length 0+)
517
+ */
518
+ value: Array<EntityReference>;
519
+ } | {
520
+ type: 'Link';
521
+ /**
522
+ * Link value(s) - always an array (check is_multi_select to determine if single or multi)
523
+ * Single-select: {"type": "Link", "value": ["https://example.com"]} (length 0 or 1)
524
+ * Multi-select: {"type": "Link", "value": ["https://example.com", "https://other.com"]} (length 0+)
525
+ */
526
+ value: Array<string>;
527
+ };
528
+ /**
529
+ * Option for select number properties in requests.
530
+ */
531
+ export type SelectNumberOption = {
532
+ display_order: number;
533
+ value: number;
534
+ };
535
+ /**
536
+ * Option for select-type properties in requests.
537
+ */
538
+ export type SelectStringOption = {
539
+ display_order: number;
540
+ value: string;
541
+ };
542
+ /**
543
+ * Type-safe request for setting entity property values.
544
+ */
545
+ export type SetEntityPropertyRequest = {
546
+ value?: null | SetPropertyValue;
547
+ };
548
+ /**
549
+ * Type-safe enum for setting entity property values - provides compile-time validation.
550
+ */
551
+ export type SetPropertyValue = {
552
+ type: 'boolean';
553
+ value: boolean;
554
+ } | {
555
+ type: 'date';
556
+ value: string;
557
+ } | {
558
+ type: 'date_range';
559
+ value: DateRange;
560
+ } | {
561
+ type: 'number';
562
+ value: number;
563
+ } | {
564
+ type: 'string';
565
+ value: string;
566
+ } | {
567
+ option_id: string;
568
+ type: 'select_option';
569
+ } | {
570
+ option_ids: Array<string>;
571
+ type: 'multi_select_option';
572
+ } | {
573
+ reference: EntityReference;
574
+ type: 'entity_reference';
575
+ } | {
576
+ references: Array<EntityReference>;
577
+ type: 'multi_entity_reference';
578
+ } | {
579
+ type: 'link';
580
+ url: string;
581
+ } | {
582
+ type: 'multi_link';
583
+ urls: Array<string>;
584
+ };
585
+ /**
586
+ * Body returned when a promotion collides with a label the team already has.
587
+ * The caller confirms with the user, then calls the merge endpoint with
588
+ * `conflicting_option.id` as the target.
589
+ */
590
+ export type TagPromotionConflictResponse = {
591
+ /**
592
+ * The team label that already uses this name.
593
+ */
594
+ conflicting_option: PropertyOptionResponse;
595
+ /**
596
+ * Human-readable description of the collision.
597
+ */
598
+ message: string;
599
+ };
600
+ /**
601
+ * Which owner a tag set belongs to.
602
+ */
603
+ export type TagScope = 'user' | 'team';
604
+ /**
605
+ * A tag set the caller can use. `definition` is absent until the set is provisioned
606
+ * (on first label create), in which case `options` is empty.
607
+ */
608
+ export type TagSetResponse = {
609
+ definition?: null | PropertyDefinitionDetailResponse;
610
+ options: Array<PropertyOptionResponse>;
611
+ scope: TagScope;
612
+ };
613
+ /**
614
+ * Request to update a property option in place. Omitted fields keep their current value.
615
+ * The option id is preserved, so the change propagates to every entity referencing it.
616
+ */
617
+ export type UpdatePropertyOptionRequest = {
618
+ /**
619
+ * New color as a hex string like `#RRGGBB`.
620
+ */
621
+ color?: string | null;
622
+ /**
623
+ * New display order.
624
+ */
625
+ display_order?: number | null;
626
+ /**
627
+ * New string value (label text). Only valid for SelectString and Tag properties.
628
+ */
629
+ value?: string | null;
630
+ };
631
+ export type ListPropertiesData = {
632
+ body?: never;
633
+ path?: never;
634
+ query: {
635
+ /**
636
+ * Filter by scope: 'user', 'team', 'system', or 'all'
637
+ */
638
+ scope: PropertyScope;
639
+ /**
640
+ * Whether to include property options in the response
641
+ */
642
+ include_options?: boolean;
643
+ /**
644
+ * Filter properties applicable to a specific entity type
645
+ */
646
+ for_entity_type?: EntityType;
647
+ };
648
+ url: '/properties/definitions';
649
+ };
650
+ export type ListPropertiesErrors = {
651
+ /**
652
+ * Invalid request
653
+ */
654
+ 400: unknown;
655
+ /**
656
+ * Internal server error
657
+ */
658
+ 500: unknown;
659
+ };
660
+ export type ListPropertiesResponses = {
661
+ /**
662
+ * Properties retrieved successfully
663
+ */
664
+ 200: Array<PropertyDefinitionResponse>;
665
+ };
666
+ export type ListPropertiesResponse = ListPropertiesResponses[keyof ListPropertiesResponses];
667
+ export type CreatePropertyDefinitionData = {
668
+ body: CreatePropertyDefinitionRequest;
669
+ path?: never;
670
+ query?: never;
671
+ url: '/properties/definitions';
672
+ };
673
+ export type CreatePropertyDefinitionErrors = {
674
+ /**
675
+ * Invalid request
676
+ */
677
+ 400: unknown;
678
+ /**
679
+ * Team membership required for team scope
680
+ */
681
+ 403: unknown;
682
+ /**
683
+ * Internal server error
684
+ */
685
+ 500: unknown;
686
+ };
687
+ export type CreatePropertyDefinitionResponses = {
688
+ /**
689
+ * Property definition created successfully
690
+ */
691
+ 201: PropertyDefinition;
692
+ };
693
+ export type CreatePropertyDefinitionResponse = CreatePropertyDefinitionResponses[keyof CreatePropertyDefinitionResponses];
694
+ export type DeletePropertyDefinitionData = {
695
+ body?: never;
696
+ path: {
697
+ /**
698
+ * Property definition ID
699
+ */
700
+ definition_id: string;
701
+ };
702
+ query?: never;
703
+ url: '/properties/definitions/{definition_id}';
704
+ };
705
+ export type DeletePropertyDefinitionErrors = {
706
+ /**
707
+ * Invalid property ID
708
+ */
709
+ 400: unknown;
710
+ /**
711
+ * Cannot modify system properties
712
+ */
713
+ 403: unknown;
714
+ /**
715
+ * Property definition not found
716
+ */
717
+ 404: unknown;
718
+ /**
719
+ * Internal server error
720
+ */
721
+ 500: unknown;
722
+ };
723
+ export type DeletePropertyDefinitionResponses = {
724
+ /**
725
+ * Property definition deleted successfully
726
+ */
727
+ 204: void;
728
+ };
729
+ export type DeletePropertyDefinitionResponse = DeletePropertyDefinitionResponses[keyof DeletePropertyDefinitionResponses];
730
+ export type GetPropertyDefinitionData = {
731
+ body?: never;
732
+ path: {
733
+ /**
734
+ * Property definition ID
735
+ */
736
+ definition_id: string;
737
+ };
738
+ query?: never;
739
+ url: '/properties/definitions/{definition_id}';
740
+ };
741
+ export type GetPropertyDefinitionErrors = {
742
+ /**
743
+ * Invalid property ID
744
+ */
745
+ 400: unknown;
746
+ /**
747
+ * Property definition not found
748
+ */
749
+ 404: unknown;
750
+ /**
751
+ * Internal server error
752
+ */
753
+ 500: unknown;
754
+ };
755
+ export type GetPropertyDefinitionResponses = {
756
+ /**
757
+ * Property definition retrieved successfully
758
+ */
759
+ 200: PropertyDefinition;
760
+ };
761
+ export type GetPropertyDefinitionResponse = GetPropertyDefinitionResponses[keyof GetPropertyDefinitionResponses];
762
+ export type GetPropertyOptionsData = {
763
+ body?: never;
764
+ path: {
765
+ /**
766
+ * Property definition ID
767
+ */
768
+ definition_id: string;
769
+ };
770
+ query?: never;
771
+ url: '/properties/definitions/{definition_id}/options';
772
+ };
773
+ export type GetPropertyOptionsErrors = {
774
+ /**
775
+ * Property not found
776
+ */
777
+ 404: unknown;
778
+ /**
779
+ * Internal server error
780
+ */
781
+ 500: unknown;
782
+ };
783
+ export type GetPropertyOptionsResponses = {
784
+ /**
785
+ * Property options retrieved successfully
786
+ */
787
+ 200: Array<PropertyOption>;
788
+ };
789
+ export type GetPropertyOptionsResponse = GetPropertyOptionsResponses[keyof GetPropertyOptionsResponses];
790
+ export type AddPropertyOptionData = {
791
+ body: AddPropertyOptionRequest;
792
+ path: {
793
+ /**
794
+ * Property definition ID
795
+ */
796
+ definition_id: string;
797
+ };
798
+ query?: never;
799
+ url: '/properties/definitions/{definition_id}/options';
800
+ };
801
+ export type AddPropertyOptionErrors = {
802
+ /**
803
+ * Invalid request
804
+ */
805
+ 400: unknown;
806
+ /**
807
+ * Cannot modify system properties
808
+ */
809
+ 403: unknown;
810
+ /**
811
+ * Property not found
812
+ */
813
+ 404: unknown;
814
+ /**
815
+ * Internal server error
816
+ */
817
+ 500: unknown;
818
+ };
819
+ export type AddPropertyOptionResponses = {
820
+ /**
821
+ * Property option created successfully
822
+ */
823
+ 201: PropertyOption;
824
+ };
825
+ export type AddPropertyOptionResponse = AddPropertyOptionResponses[keyof AddPropertyOptionResponses];
826
+ export type DeletePropertyOptionData = {
827
+ body?: never;
828
+ path: {
829
+ /**
830
+ * Property definition ID
831
+ */
832
+ definition_id: string;
833
+ /**
834
+ * Property option ID
835
+ */
836
+ option_id: string;
837
+ };
838
+ query?: never;
839
+ url: '/properties/definitions/{definition_id}/options/{option_id}';
840
+ };
841
+ export type DeletePropertyOptionErrors = {
842
+ /**
843
+ * Invalid option ID
844
+ */
845
+ 400: unknown;
846
+ /**
847
+ * Cannot modify system properties
848
+ */
849
+ 403: unknown;
850
+ /**
851
+ * Property option not found
852
+ */
853
+ 404: unknown;
854
+ /**
855
+ * Internal server error
856
+ */
857
+ 500: unknown;
858
+ };
859
+ export type DeletePropertyOptionResponses = {
860
+ /**
861
+ * Property option deleted successfully
862
+ */
863
+ 204: void;
864
+ };
865
+ export type DeletePropertyOptionResponse = DeletePropertyOptionResponses[keyof DeletePropertyOptionResponses];
866
+ export type UpdatePropertyOptionData = {
867
+ body: UpdatePropertyOptionRequest;
868
+ path: {
869
+ /**
870
+ * Property definition ID
871
+ */
872
+ definition_id: string;
873
+ /**
874
+ * Property option ID
875
+ */
876
+ option_id: string;
877
+ };
878
+ query?: never;
879
+ url: '/properties/definitions/{definition_id}/options/{option_id}';
880
+ };
881
+ export type UpdatePropertyOptionErrors = {
882
+ /**
883
+ * Invalid request
884
+ */
885
+ 400: unknown;
886
+ /**
887
+ * Cannot modify system properties
888
+ */
889
+ 403: unknown;
890
+ /**
891
+ * Property or option not found
892
+ */
893
+ 404: unknown;
894
+ /**
895
+ * An option with that value already exists
896
+ */
897
+ 409: unknown;
898
+ /**
899
+ * Internal server error
900
+ */
901
+ 500: unknown;
902
+ };
903
+ export type UpdatePropertyOptionResponses = {
904
+ /**
905
+ * Property option updated
906
+ */
907
+ 200: PropertyOption;
908
+ };
909
+ export type UpdatePropertyOptionResponse = UpdatePropertyOptionResponses[keyof UpdatePropertyOptionResponses];
910
+ export type GetBulkEntityPropertiesData = {
911
+ body: BulkEntityPropertiesRequest;
912
+ path?: never;
913
+ query?: never;
914
+ url: '/properties/entities/bulk';
915
+ };
916
+ export type GetBulkEntityPropertiesErrors = {
917
+ /**
918
+ * Invalid request body
919
+ */
920
+ 400: unknown;
921
+ /**
922
+ * Forbidden - User does not have permission
923
+ */
924
+ 403: unknown;
925
+ /**
926
+ * Internal server error
927
+ */
928
+ 500: unknown;
929
+ };
930
+ export type GetBulkEntityPropertiesResponses = {
931
+ /**
932
+ * Bulk entity properties retrieved successfully
933
+ */
934
+ 200: {
935
+ [key: string]: EntityPropertiesResponse;
936
+ };
937
+ };
938
+ export type GetBulkEntityPropertiesResponse = GetBulkEntityPropertiesResponses[keyof GetBulkEntityPropertiesResponses];
939
+ export type GetEntityPropertiesData = {
940
+ body?: never;
941
+ path: {
942
+ /**
943
+ * Canonical entity type; tasks use DOCUMENT
944
+ */
945
+ entity_type: PropertyTargetEntityType;
946
+ /**
947
+ * Entity ID
948
+ */
949
+ entity_id: string;
950
+ };
951
+ query?: {
952
+ /**
953
+ * Whether to include property metadata (default: false)
954
+ */
955
+ include_metadata?: boolean;
956
+ };
957
+ url: '/properties/entities/{entity_type}/{entity_id}';
958
+ };
959
+ export type GetEntityPropertiesErrors = {
960
+ /**
961
+ * Invalid entity type
962
+ */
963
+ 400: unknown;
964
+ /**
965
+ * Forbidden - User does not have permission to view this entity
966
+ */
967
+ 403: unknown;
968
+ /**
969
+ * Entity not found
970
+ */
971
+ 404: unknown;
972
+ /**
973
+ * Internal server error
974
+ */
975
+ 500: unknown;
976
+ };
977
+ export type GetEntityPropertiesResponses = {
978
+ /**
979
+ * Entity properties retrieved successfully
980
+ */
981
+ 200: EntityPropertiesResponse;
982
+ };
983
+ export type GetEntityPropertiesResponse = GetEntityPropertiesResponses[keyof GetEntityPropertiesResponses];
984
+ export type BulkUpdateEntityPropertyOptionsData = {
985
+ body: BulkUpdateEntityPropertyOptionsRequest;
986
+ path: {
987
+ /**
988
+ * Canonical entity type; tasks use DOCUMENT
989
+ */
990
+ entity_type: PropertyTargetEntityType;
991
+ /**
992
+ * Entity ID
993
+ */
994
+ entity_id: string;
995
+ };
996
+ query?: never;
997
+ url: '/properties/entities/{entity_type}/{entity_id}/options/bulk';
998
+ };
999
+ export type BulkUpdateEntityPropertyOptionsErrors = {
1000
+ /**
1001
+ * Invalid request, a property is not multi-select, or an option does not belong to its property
1002
+ */
1003
+ 400: unknown;
1004
+ /**
1005
+ * No edit access to the entity
1006
+ */
1007
+ 403: unknown;
1008
+ /**
1009
+ * Internal server error
1010
+ */
1011
+ 500: unknown;
1012
+ };
1013
+ export type BulkUpdateEntityPropertyOptionsResponses = {
1014
+ /**
1015
+ * Options updated; returns final ids per property
1016
+ */
1017
+ 200: BulkUpdateEntityPropertyOptionsResponse;
1018
+ };
1019
+ export type BulkUpdateEntityPropertyOptionsResponse2 = BulkUpdateEntityPropertyOptionsResponses[keyof BulkUpdateEntityPropertyOptionsResponses];
1020
+ export type SetEntityPropertyData = {
1021
+ body: SetEntityPropertyRequest;
1022
+ path: {
1023
+ /**
1024
+ * Canonical entity type; tasks use DOCUMENT
1025
+ */
1026
+ entity_type: PropertyTargetEntityType;
1027
+ /**
1028
+ * Entity ID
1029
+ */
1030
+ entity_id: string;
1031
+ /**
1032
+ * Property ID
1033
+ */
1034
+ property_id: string;
1035
+ };
1036
+ query?: never;
1037
+ url: '/properties/entities/{entity_type}/{entity_id}/{property_id}';
1038
+ };
1039
+ export type SetEntityPropertyErrors = {
1040
+ /**
1041
+ * Invalid request or entity type
1042
+ */
1043
+ 400: unknown;
1044
+ /**
1045
+ * No edit access to the entity
1046
+ */
1047
+ 403: unknown;
1048
+ /**
1049
+ * Entity or property not found
1050
+ */
1051
+ 404: unknown;
1052
+ /**
1053
+ * Internal server error
1054
+ */
1055
+ 500: unknown;
1056
+ };
1057
+ export type SetEntityPropertyResponses = {
1058
+ /**
1059
+ * Entity property set successfully (with or without value)
1060
+ */
1061
+ 204: void;
1062
+ };
1063
+ export type SetEntityPropertyResponse = SetEntityPropertyResponses[keyof SetEntityPropertyResponses];
1064
+ export type RemoveEntityPropertyOptionData = {
1065
+ body?: never;
1066
+ path: {
1067
+ /**
1068
+ * Canonical entity type; tasks use DOCUMENT
1069
+ */
1070
+ entity_type: PropertyTargetEntityType;
1071
+ /**
1072
+ * Entity ID
1073
+ */
1074
+ entity_id: string;
1075
+ /**
1076
+ * Property ID
1077
+ */
1078
+ property_id: string;
1079
+ /**
1080
+ * Option ID to remove
1081
+ */
1082
+ option_id: string;
1083
+ };
1084
+ query?: never;
1085
+ url: '/properties/entities/{entity_type}/{entity_id}/{property_id}/options/{option_id}';
1086
+ };
1087
+ export type RemoveEntityPropertyOptionErrors = {
1088
+ /**
1089
+ * No edit access to the entity
1090
+ */
1091
+ 403: unknown;
1092
+ /**
1093
+ * Internal server error
1094
+ */
1095
+ 500: unknown;
1096
+ };
1097
+ export type RemoveEntityPropertyOptionResponses = {
1098
+ /**
1099
+ * Option removed successfully
1100
+ */
1101
+ 204: void;
1102
+ };
1103
+ export type RemoveEntityPropertyOptionResponse = RemoveEntityPropertyOptionResponses[keyof RemoveEntityPropertyOptionResponses];
1104
+ export type AddEntityPropertyOptionData = {
1105
+ body?: never;
1106
+ path: {
1107
+ /**
1108
+ * Canonical entity type; tasks use DOCUMENT
1109
+ */
1110
+ entity_type: PropertyTargetEntityType;
1111
+ /**
1112
+ * Entity ID
1113
+ */
1114
+ entity_id: string;
1115
+ /**
1116
+ * Property ID
1117
+ */
1118
+ property_id: string;
1119
+ /**
1120
+ * Option ID to add
1121
+ */
1122
+ option_id: string;
1123
+ };
1124
+ query?: never;
1125
+ url: '/properties/entities/{entity_type}/{entity_id}/{property_id}/options/{option_id}';
1126
+ };
1127
+ export type AddEntityPropertyOptionErrors = {
1128
+ /**
1129
+ * Invalid request, property is not multi-select, or option does not belong to the property
1130
+ */
1131
+ 400: unknown;
1132
+ /**
1133
+ * No edit access to the entity
1134
+ */
1135
+ 403: unknown;
1136
+ /**
1137
+ * Internal server error
1138
+ */
1139
+ 500: unknown;
1140
+ };
1141
+ export type AddEntityPropertyOptionResponses = {
1142
+ /**
1143
+ * Option added successfully
1144
+ */
1145
+ 204: void;
1146
+ };
1147
+ export type AddEntityPropertyOptionResponse = AddEntityPropertyOptionResponses[keyof AddEntityPropertyOptionResponses];
1148
+ export type DeleteEntityPropertyData = {
1149
+ body?: never;
1150
+ path: {
1151
+ /**
1152
+ * Entity Property ID
1153
+ */
1154
+ entity_property_id: string;
1155
+ };
1156
+ query?: never;
1157
+ url: '/properties/entity_properties/{entity_property_id}';
1158
+ };
1159
+ export type DeleteEntityPropertyErrors = {
1160
+ /**
1161
+ * Property is required and cannot be removed, or no edit access
1162
+ */
1163
+ 403: unknown;
1164
+ /**
1165
+ * Entity property not found
1166
+ */
1167
+ 404: unknown;
1168
+ /**
1169
+ * Internal server error
1170
+ */
1171
+ 500: unknown;
1172
+ };
1173
+ export type DeleteEntityPropertyResponses = {
1174
+ /**
1175
+ * Entity property removed successfully
1176
+ */
1177
+ 204: void;
1178
+ };
1179
+ export type DeleteEntityPropertyResponse = DeleteEntityPropertyResponses[keyof DeleteEntityPropertyResponses];
1180
+ export type BulkUpdateEntitiesPropertyOptionsData = {
1181
+ body: BulkUpdateEntitiesPropertyOptionsRequest;
1182
+ path?: never;
1183
+ query?: never;
1184
+ url: '/properties/options/bulk';
1185
+ };
1186
+ export type BulkUpdateEntitiesPropertyOptionsErrors = {
1187
+ /**
1188
+ * Invalid request, the property is not multi-select, or an option does not belong to the property
1189
+ */
1190
+ 400: unknown;
1191
+ /**
1192
+ * Unauthenticated
1193
+ */
1194
+ 401: unknown;
1195
+ /**
1196
+ * Internal server error
1197
+ */
1198
+ 500: unknown;
1199
+ };
1200
+ export type BulkUpdateEntitiesPropertyOptionsResponses = {
1201
+ /**
1202
+ * Per-entity results: each entity applied, skipped, or failed
1203
+ */
1204
+ 200: BulkUpdateEntitiesPropertyOptionsResponse;
1205
+ };
1206
+ export type BulkUpdateEntitiesPropertyOptionsResponse2 = BulkUpdateEntitiesPropertyOptionsResponses[keyof BulkUpdateEntitiesPropertyOptionsResponses];
1207
+ export type ListTagsData = {
1208
+ body?: never;
1209
+ path?: never;
1210
+ query?: never;
1211
+ url: '/properties/tags';
1212
+ };
1213
+ export type ListTagsErrors = {
1214
+ /**
1215
+ * Internal server error
1216
+ */
1217
+ 500: unknown;
1218
+ };
1219
+ export type ListTagsResponses = {
1220
+ /**
1221
+ * Tag sets retrieved
1222
+ */
1223
+ 200: Array<TagSetResponse>;
1224
+ };
1225
+ export type ListTagsResponse = ListTagsResponses[keyof ListTagsResponses];
1226
+ export type EnsureTagSetData = {
1227
+ body: EnsureTagSetRequest;
1228
+ path?: never;
1229
+ query?: never;
1230
+ url: '/properties/tags';
1231
+ };
1232
+ export type EnsureTagSetErrors = {
1233
+ /**
1234
+ * Team membership required for team scope
1235
+ */
1236
+ 403: unknown;
1237
+ /**
1238
+ * Internal server error
1239
+ */
1240
+ 500: unknown;
1241
+ };
1242
+ export type EnsureTagSetResponses = {
1243
+ /**
1244
+ * Tag set provisioned
1245
+ */
1246
+ 200: TagSetResponse;
1247
+ };
1248
+ export type EnsureTagSetResponse = EnsureTagSetResponses[keyof EnsureTagSetResponses];
1249
+ export type MergeTagData = {
1250
+ body: MergeTagRequest;
1251
+ path?: never;
1252
+ query?: never;
1253
+ url: '/properties/tags/merge';
1254
+ };
1255
+ export type MergeTagErrors = {
1256
+ /**
1257
+ * Invalid request
1258
+ */
1259
+ 400: unknown;
1260
+ /**
1261
+ * Team membership required
1262
+ */
1263
+ 403: unknown;
1264
+ /**
1265
+ * Either label was not found in the expected tag set
1266
+ */
1267
+ 404: unknown;
1268
+ /**
1269
+ * Internal server error
1270
+ */
1271
+ 500: unknown;
1272
+ };
1273
+ export type MergeTagResponses = {
1274
+ /**
1275
+ * Label merged into the team label
1276
+ */
1277
+ 200: PropertyOptionResponse;
1278
+ };
1279
+ export type MergeTagResponse = MergeTagResponses[keyof MergeTagResponses];
1280
+ export type PromoteTagData = {
1281
+ body: PromoteTagRequest;
1282
+ path?: never;
1283
+ query?: never;
1284
+ url: '/properties/tags/promote';
1285
+ };
1286
+ export type PromoteTagErrors = {
1287
+ /**
1288
+ * Team membership required
1289
+ */
1290
+ 403: unknown;
1291
+ /**
1292
+ * Label not found in the caller's tag set
1293
+ */
1294
+ 404: unknown;
1295
+ /**
1296
+ * The team already has a label with that name
1297
+ */
1298
+ 409: TagPromotionConflictResponse;
1299
+ /**
1300
+ * Internal server error
1301
+ */
1302
+ 500: unknown;
1303
+ };
1304
+ export type PromoteTagError = PromoteTagErrors[keyof PromoteTagErrors];
1305
+ export type PromoteTagResponses = {
1306
+ /**
1307
+ * Label moved to the team tag set
1308
+ */
1309
+ 200: PropertyOptionResponse;
1310
+ };
1311
+ export type PromoteTagResponse = PromoteTagResponses[keyof PromoteTagResponses];