@rippling/rippling-sdk 0.2.0-alpha.110 → 0.2.0-alpha.111

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 (570) hide show
  1. package/client.d.mts +58 -7
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +58 -7
  4. package/client.d.ts.map +1 -1
  5. package/client.js +54 -3
  6. package/client.js.map +1 -1
  7. package/client.mjs +54 -3
  8. package/client.mjs.map +1 -1
  9. package/core/platform/custom-objects/manager.d.mts +43 -23
  10. package/core/platform/custom-objects/manager.d.mts.map +1 -1
  11. package/core/platform/custom-objects/manager.d.ts +43 -23
  12. package/core/platform/custom-objects/manager.d.ts.map +1 -1
  13. package/core/platform/custom-objects/manager.js +21 -17
  14. package/core/platform/custom-objects/manager.js.map +1 -1
  15. package/core/platform/custom-objects/manager.mjs +21 -17
  16. package/core/platform/custom-objects/manager.mjs.map +1 -1
  17. package/core/platform/custom-objects.d.mts +1 -1
  18. package/core/platform/custom-objects.d.mts.map +1 -1
  19. package/core/platform/custom-objects.d.ts +1 -1
  20. package/core/platform/custom-objects.d.ts.map +1 -1
  21. package/core/platform/custom-objects.js.map +1 -1
  22. package/core/platform/custom-objects.mjs.map +1 -1
  23. package/examples/manifest/acp-agent/acp-agent.ts +27 -23
  24. package/lib/manifest/acp-agent.d.mts +1 -1
  25. package/lib/manifest/acp-agent.d.mts.map +1 -1
  26. package/lib/manifest/acp-agent.d.ts +1 -1
  27. package/lib/manifest/acp-agent.d.ts.map +1 -1
  28. package/lib/manifest/acp-agent.js +6 -0
  29. package/lib/manifest/acp-agent.js.map +1 -1
  30. package/lib/manifest/acp-agent.mjs +6 -0
  31. package/lib/manifest/acp-agent.mjs.map +1 -1
  32. package/lib/manifest/definitions/_object-records.d.mts.map +1 -1
  33. package/lib/manifest/definitions/_object-records.d.ts.map +1 -1
  34. package/lib/manifest/definitions/_object-records.js +10 -8
  35. package/lib/manifest/definitions/_object-records.js.map +1 -1
  36. package/lib/manifest/definitions/_object-records.mjs +10 -8
  37. package/lib/manifest/definitions/_object-records.mjs.map +1 -1
  38. package/lib/manifest/definitions/custom-object.d.mts +10 -10
  39. package/lib/manifest/definitions/custom-object.d.mts.map +1 -1
  40. package/lib/manifest/definitions/custom-object.d.ts +10 -10
  41. package/lib/manifest/definitions/custom-object.d.ts.map +1 -1
  42. package/lib/manifest/definitions/custom-object.js.map +1 -1
  43. package/lib/manifest/definitions/custom-object.mjs.map +1 -1
  44. package/package.json +1 -1
  45. package/resources/activity-log.d.mts +1 -1
  46. package/resources/activity-log.d.ts +1 -1
  47. package/resources/activity-log.js +1 -1
  48. package/resources/activity-log.mjs +1 -1
  49. package/resources/agents/sessions/messages.d.mts +10 -1
  50. package/resources/agents/sessions/messages.d.mts.map +1 -1
  51. package/resources/agents/sessions/messages.d.ts +10 -1
  52. package/resources/agents/sessions/messages.d.ts.map +1 -1
  53. package/resources/agents/sessions/sessions.d.mts +30 -3
  54. package/resources/agents/sessions/sessions.d.mts.map +1 -1
  55. package/resources/agents/sessions/sessions.d.ts +30 -3
  56. package/resources/agents/sessions/sessions.d.ts.map +1 -1
  57. package/resources/agents/sessions/sessions.js.map +1 -1
  58. package/resources/agents/sessions/sessions.mjs.map +1 -1
  59. package/resources/bills.d.mts +1343 -0
  60. package/resources/bills.d.mts.map +1 -0
  61. package/resources/bills.d.ts +1343 -0
  62. package/resources/bills.d.ts.map +1 -0
  63. package/resources/bills.js +214 -0
  64. package/resources/bills.js.map +1 -0
  65. package/resources/bills.mjs +210 -0
  66. package/resources/bills.mjs.map +1 -0
  67. package/resources/card-transactions.d.mts +607 -49
  68. package/resources/card-transactions.d.mts.map +1 -1
  69. package/resources/card-transactions.d.ts +607 -49
  70. package/resources/card-transactions.d.ts.map +1 -1
  71. package/resources/card-transactions.js +73 -12
  72. package/resources/card-transactions.js.map +1 -1
  73. package/resources/card-transactions.mjs +73 -12
  74. package/resources/card-transactions.mjs.map +1 -1
  75. package/resources/custom-objects/custom-objects.d.mts +39 -3
  76. package/resources/custom-objects/custom-objects.d.mts.map +1 -1
  77. package/resources/custom-objects/custom-objects.d.ts +39 -3
  78. package/resources/custom-objects/custom-objects.d.ts.map +1 -1
  79. package/resources/custom-objects/custom-objects.js +38 -2
  80. package/resources/custom-objects/custom-objects.js.map +1 -1
  81. package/resources/custom-objects/custom-objects.mjs +38 -2
  82. package/resources/custom-objects/custom-objects.mjs.map +1 -1
  83. package/resources/custom-objects/fields.d.mts +44 -0
  84. package/resources/custom-objects/fields.d.mts.map +1 -1
  85. package/resources/custom-objects/fields.d.ts +44 -0
  86. package/resources/custom-objects/fields.d.ts.map +1 -1
  87. package/resources/custom-objects/fields.js +44 -0
  88. package/resources/custom-objects/fields.js.map +1 -1
  89. package/resources/custom-objects/fields.mjs +44 -0
  90. package/resources/custom-objects/fields.mjs.map +1 -1
  91. package/resources/custom-objects/index.d.mts +2 -1
  92. package/resources/custom-objects/index.d.mts.map +1 -1
  93. package/resources/custom-objects/index.d.ts +2 -1
  94. package/resources/custom-objects/index.d.ts.map +1 -1
  95. package/resources/custom-objects/index.js +5 -3
  96. package/resources/custom-objects/index.js.map +1 -1
  97. package/resources/custom-objects/index.mjs +2 -1
  98. package/resources/custom-objects/index.mjs.map +1 -1
  99. package/resources/custom-objects/list-views/capabilities.d.mts +63 -0
  100. package/resources/custom-objects/list-views/capabilities.d.mts.map +1 -0
  101. package/resources/custom-objects/list-views/capabilities.d.ts +63 -0
  102. package/resources/custom-objects/list-views/capabilities.d.ts.map +1 -0
  103. package/resources/custom-objects/list-views/capabilities.js +48 -0
  104. package/resources/custom-objects/list-views/capabilities.js.map +1 -0
  105. package/resources/custom-objects/list-views/capabilities.mjs +44 -0
  106. package/resources/custom-objects/list-views/capabilities.mjs.map +1 -0
  107. package/resources/custom-objects/list-views/default.d.mts +69 -0
  108. package/resources/custom-objects/list-views/default.d.mts.map +1 -0
  109. package/resources/custom-objects/list-views/default.d.ts +69 -0
  110. package/resources/custom-objects/list-views/default.d.ts.map +1 -0
  111. package/resources/custom-objects/list-views/default.js +59 -0
  112. package/resources/custom-objects/list-views/default.js.map +1 -0
  113. package/resources/custom-objects/list-views/default.mjs +55 -0
  114. package/resources/custom-objects/list-views/default.mjs.map +1 -0
  115. package/resources/custom-objects/list-views/index.d.mts +4 -0
  116. package/resources/custom-objects/list-views/index.d.mts.map +1 -0
  117. package/resources/custom-objects/list-views/index.d.ts +4 -0
  118. package/resources/custom-objects/list-views/index.d.ts.map +1 -0
  119. package/resources/custom-objects/list-views/index.js +11 -0
  120. package/resources/custom-objects/list-views/index.js.map +1 -0
  121. package/resources/custom-objects/list-views/index.mjs +5 -0
  122. package/resources/custom-objects/list-views/index.mjs.map +1 -0
  123. package/resources/custom-objects/list-views/list-views.d.mts +806 -0
  124. package/resources/custom-objects/list-views/list-views.d.mts.map +1 -0
  125. package/resources/custom-objects/list-views/list-views.d.ts +806 -0
  126. package/resources/custom-objects/list-views/list-views.d.ts.map +1 -0
  127. package/resources/custom-objects/list-views/list-views.js +314 -0
  128. package/resources/custom-objects/list-views/list-views.js.map +1 -0
  129. package/resources/custom-objects/list-views/list-views.mjs +309 -0
  130. package/resources/custom-objects/list-views/list-views.mjs.map +1 -0
  131. package/resources/custom-objects/list-views.d.mts +2 -0
  132. package/resources/custom-objects/list-views.d.mts.map +1 -0
  133. package/resources/custom-objects/list-views.d.ts +2 -0
  134. package/resources/custom-objects/list-views.d.ts.map +1 -0
  135. package/resources/custom-objects/list-views.js +6 -0
  136. package/resources/custom-objects/list-views.js.map +1 -0
  137. package/resources/custom-objects/list-views.mjs +3 -0
  138. package/resources/custom-objects/list-views.mjs.map +1 -0
  139. package/resources/custom-objects/records/capabilities.d.mts +61 -0
  140. package/resources/custom-objects/records/capabilities.d.mts.map +1 -0
  141. package/resources/custom-objects/records/capabilities.d.ts +61 -0
  142. package/resources/custom-objects/records/capabilities.d.ts.map +1 -0
  143. package/resources/custom-objects/records/capabilities.js +47 -0
  144. package/resources/custom-objects/records/capabilities.js.map +1 -0
  145. package/resources/custom-objects/records/capabilities.mjs +43 -0
  146. package/resources/custom-objects/records/capabilities.mjs.map +1 -0
  147. package/resources/custom-objects/records/index.d.mts +3 -0
  148. package/resources/custom-objects/records/index.d.mts.map +1 -0
  149. package/resources/custom-objects/records/index.d.ts +3 -0
  150. package/resources/custom-objects/records/index.d.ts.map +1 -0
  151. package/resources/custom-objects/records/index.js +9 -0
  152. package/resources/custom-objects/records/index.js.map +1 -0
  153. package/resources/custom-objects/records/index.mjs +4 -0
  154. package/resources/custom-objects/records/index.mjs.map +1 -0
  155. package/resources/custom-objects/records/records.d.mts +787 -0
  156. package/resources/custom-objects/records/records.d.mts.map +1 -0
  157. package/resources/custom-objects/records/records.d.ts +787 -0
  158. package/resources/custom-objects/records/records.d.ts.map +1 -0
  159. package/resources/custom-objects/records/records.js +543 -0
  160. package/resources/custom-objects/records/records.js.map +1 -0
  161. package/resources/custom-objects/records/records.mjs +538 -0
  162. package/resources/custom-objects/records/records.mjs.map +1 -0
  163. package/resources/custom-objects/records.d.mts +1 -561
  164. package/resources/custom-objects/records.d.mts.map +1 -1
  165. package/resources/custom-objects/records.d.ts +1 -561
  166. package/resources/custom-objects/records.d.ts.map +1 -1
  167. package/resources/custom-objects/records.js +2 -444
  168. package/resources/custom-objects/records.js.map +1 -1
  169. package/resources/custom-objects/records.mjs +1 -442
  170. package/resources/custom-objects/records.mjs.map +1 -1
  171. package/resources/devices.d.mts +2 -2
  172. package/resources/devices.d.mts.map +1 -1
  173. package/resources/devices.d.ts +2 -2
  174. package/resources/devices.d.ts.map +1 -1
  175. package/resources/draft-transitions.d.mts +241 -307
  176. package/resources/draft-transitions.d.mts.map +1 -1
  177. package/resources/draft-transitions.d.ts +241 -307
  178. package/resources/draft-transitions.d.ts.map +1 -1
  179. package/resources/draft-transitions.js +49 -23
  180. package/resources/draft-transitions.js.map +1 -1
  181. package/resources/draft-transitions.mjs +49 -23
  182. package/resources/draft-transitions.mjs.map +1 -1
  183. package/resources/employee-documents.d.mts +2 -2
  184. package/resources/employee-documents.d.ts +2 -2
  185. package/resources/{spend-categories.d.mts → finance-categories.d.mts} +21 -18
  186. package/resources/finance-categories.d.mts.map +1 -0
  187. package/resources/{spend-categories.d.ts → finance-categories.d.ts} +21 -18
  188. package/resources/finance-categories.d.ts.map +1 -0
  189. package/resources/{spend-categories.js → finance-categories.js} +14 -11
  190. package/resources/finance-categories.js.map +1 -0
  191. package/resources/{spend-categories.mjs → finance-categories.mjs} +12 -9
  192. package/resources/finance-categories.mjs.map +1 -0
  193. package/resources/finance-vendors.d.mts +154 -0
  194. package/resources/finance-vendors.d.mts.map +1 -0
  195. package/resources/finance-vendors.d.ts +154 -0
  196. package/resources/finance-vendors.d.ts.map +1 -0
  197. package/resources/finance-vendors.js +87 -0
  198. package/resources/finance-vendors.js.map +1 -0
  199. package/resources/finance-vendors.mjs +83 -0
  200. package/resources/finance-vendors.mjs.map +1 -0
  201. package/resources/functions/executions.d.mts +4 -1
  202. package/resources/functions/executions.d.mts.map +1 -1
  203. package/resources/functions/executions.d.ts +4 -1
  204. package/resources/functions/executions.d.ts.map +1 -1
  205. package/resources/functions/executions.js +4 -1
  206. package/resources/functions/executions.js.map +1 -1
  207. package/resources/functions/executions.mjs +4 -1
  208. package/resources/functions/executions.mjs.map +1 -1
  209. package/resources/functions/functions.d.mts +192 -4
  210. package/resources/functions/functions.d.mts.map +1 -1
  211. package/resources/functions/functions.d.ts +192 -4
  212. package/resources/functions/functions.d.ts.map +1 -1
  213. package/resources/functions/functions.js +72 -4
  214. package/resources/functions/functions.js.map +1 -1
  215. package/resources/functions/functions.mjs +72 -4
  216. package/resources/functions/functions.mjs.map +1 -1
  217. package/resources/hire-requirements.d.mts +98 -9
  218. package/resources/hire-requirements.d.mts.map +1 -1
  219. package/resources/hire-requirements.d.ts +98 -9
  220. package/resources/hire-requirements.d.ts.map +1 -1
  221. package/resources/hire-requirements.js +23 -4
  222. package/resources/hire-requirements.js.map +1 -1
  223. package/resources/hire-requirements.mjs +23 -4
  224. package/resources/hire-requirements.mjs.map +1 -1
  225. package/resources/hires.d.mts +1636 -510
  226. package/resources/hires.d.mts.map +1 -1
  227. package/resources/hires.d.ts +1636 -510
  228. package/resources/hires.d.ts.map +1 -1
  229. package/resources/hires.js +10 -4
  230. package/resources/hires.js.map +1 -1
  231. package/resources/hires.mjs +10 -4
  232. package/resources/hires.mjs.map +1 -1
  233. package/resources/index.d.mts +11 -3
  234. package/resources/index.d.mts.map +1 -1
  235. package/resources/index.d.ts +11 -3
  236. package/resources/index.d.ts.map +1 -1
  237. package/resources/index.js +21 -5
  238. package/resources/index.js.map +1 -1
  239. package/resources/index.mjs +9 -1
  240. package/resources/index.mjs.map +1 -1
  241. package/resources/leave-requests.d.mts +11 -2
  242. package/resources/leave-requests.d.mts.map +1 -1
  243. package/resources/leave-requests.d.ts +11 -2
  244. package/resources/leave-requests.d.ts.map +1 -1
  245. package/resources/leave-requests.js +11 -2
  246. package/resources/leave-requests.js.map +1 -1
  247. package/resources/leave-requests.mjs +11 -2
  248. package/resources/leave-requests.mjs.map +1 -1
  249. package/resources/object-categories.d.mts +2 -1
  250. package/resources/object-categories.d.mts.map +1 -1
  251. package/resources/object-categories.d.ts +2 -1
  252. package/resources/object-categories.d.ts.map +1 -1
  253. package/resources/object-categories.js +2 -1
  254. package/resources/object-categories.js.map +1 -1
  255. package/resources/object-categories.mjs +2 -1
  256. package/resources/object-categories.mjs.map +1 -1
  257. package/resources/package-components/extract.d.mts +121 -0
  258. package/resources/package-components/extract.d.mts.map +1 -0
  259. package/resources/package-components/extract.d.ts +121 -0
  260. package/resources/package-components/extract.d.ts.map +1 -0
  261. package/resources/package-components/extract.js +69 -0
  262. package/resources/package-components/extract.js.map +1 -0
  263. package/resources/package-components/extract.mjs +65 -0
  264. package/resources/package-components/extract.mjs.map +1 -0
  265. package/resources/package-components/index.d.mts +4 -0
  266. package/resources/package-components/index.d.mts.map +1 -0
  267. package/resources/package-components/index.d.ts +4 -0
  268. package/resources/package-components/index.d.ts.map +1 -0
  269. package/resources/package-components/index.js +11 -0
  270. package/resources/package-components/index.js.map +1 -0
  271. package/resources/package-components/index.mjs +5 -0
  272. package/resources/package-components/index.mjs.map +1 -0
  273. package/resources/package-components/package-components.d.mts +99 -0
  274. package/resources/package-components/package-components.d.mts.map +1 -0
  275. package/resources/package-components/package-components.d.ts +99 -0
  276. package/resources/package-components/package-components.d.ts.map +1 -0
  277. package/resources/package-components/package-components.js +63 -0
  278. package/resources/package-components/package-components.js.map +1 -0
  279. package/resources/package-components/package-components.mjs +58 -0
  280. package/resources/package-components/package-components.mjs.map +1 -0
  281. package/resources/package-components/types.d.mts +56 -0
  282. package/resources/package-components/types.d.mts.map +1 -0
  283. package/resources/package-components/types.d.ts +56 -0
  284. package/resources/package-components/types.d.ts.map +1 -0
  285. package/resources/package-components/types.js +40 -0
  286. package/resources/package-components/types.js.map +1 -0
  287. package/resources/package-components/types.mjs +36 -0
  288. package/resources/package-components/types.mjs.map +1 -0
  289. package/resources/package-components.d.mts +2 -0
  290. package/resources/package-components.d.mts.map +1 -0
  291. package/resources/package-components.d.ts +2 -0
  292. package/resources/package-components.d.ts.map +1 -0
  293. package/resources/package-components.js +6 -0
  294. package/resources/package-components.js.map +1 -0
  295. package/resources/package-components.mjs +3 -0
  296. package/resources/package-components.mjs.map +1 -0
  297. package/resources/package-installs.d.mts +96 -9
  298. package/resources/package-installs.d.mts.map +1 -1
  299. package/resources/package-installs.d.ts +96 -9
  300. package/resources/package-installs.d.ts.map +1 -1
  301. package/resources/package-installs.js +20 -3
  302. package/resources/package-installs.js.map +1 -1
  303. package/resources/package-installs.mjs +20 -3
  304. package/resources/package-installs.mjs.map +1 -1
  305. package/resources/package-managed-installs.d.mts +104 -7
  306. package/resources/package-managed-installs.d.mts.map +1 -1
  307. package/resources/package-managed-installs.d.ts +104 -7
  308. package/resources/package-managed-installs.d.ts.map +1 -1
  309. package/resources/package-managed-installs.js +22 -3
  310. package/resources/package-managed-installs.js.map +1 -1
  311. package/resources/package-managed-installs.mjs +22 -3
  312. package/resources/package-managed-installs.mjs.map +1 -1
  313. package/resources/package-manifests/index.d.mts +4 -0
  314. package/resources/package-manifests/index.d.mts.map +1 -0
  315. package/resources/package-manifests/index.d.ts +4 -0
  316. package/resources/package-manifests/index.d.ts.map +1 -0
  317. package/resources/package-manifests/index.js +11 -0
  318. package/resources/package-manifests/index.js.map +1 -0
  319. package/resources/package-manifests/index.mjs +5 -0
  320. package/resources/package-manifests/index.mjs.map +1 -0
  321. package/resources/package-manifests/package-manifests.d.mts +14 -0
  322. package/resources/package-manifests/package-manifests.d.mts.map +1 -0
  323. package/resources/package-manifests/package-manifests.d.ts +14 -0
  324. package/resources/package-manifests/package-manifests.d.ts.map +1 -0
  325. package/resources/package-manifests/package-manifests.js +21 -0
  326. package/resources/package-manifests/package-manifests.js.map +1 -0
  327. package/resources/package-manifests/package-manifests.mjs +16 -0
  328. package/resources/package-manifests/package-manifests.mjs.map +1 -0
  329. package/resources/package-manifests/packages/index.d.mts +3 -0
  330. package/resources/package-manifests/packages/index.d.mts.map +1 -0
  331. package/resources/package-manifests/packages/index.d.ts +3 -0
  332. package/resources/package-manifests/packages/index.d.ts.map +1 -0
  333. package/resources/package-manifests/packages/index.js +9 -0
  334. package/resources/package-manifests/packages/index.js.map +1 -0
  335. package/resources/package-manifests/packages/index.mjs +4 -0
  336. package/resources/package-manifests/packages/index.mjs.map +1 -0
  337. package/resources/package-manifests/packages/packages.d.mts +10 -0
  338. package/resources/package-manifests/packages/packages.d.mts.map +1 -0
  339. package/resources/package-manifests/packages/packages.d.ts +10 -0
  340. package/resources/package-manifests/packages/packages.d.ts.map +1 -0
  341. package/resources/package-manifests/packages/packages.js +17 -0
  342. package/resources/package-manifests/packages/packages.js.map +1 -0
  343. package/resources/package-manifests/packages/packages.mjs +12 -0
  344. package/resources/package-manifests/packages/packages.mjs.map +1 -0
  345. package/resources/package-manifests/packages/versions.d.mts +199 -0
  346. package/resources/package-manifests/packages/versions.d.mts.map +1 -0
  347. package/resources/package-manifests/packages/versions.d.ts +199 -0
  348. package/resources/package-manifests/packages/versions.d.ts.map +1 -0
  349. package/resources/package-manifests/packages/versions.js +68 -0
  350. package/resources/package-manifests/packages/versions.js.map +1 -0
  351. package/resources/package-manifests/packages/versions.mjs +64 -0
  352. package/resources/package-manifests/packages/versions.mjs.map +1 -0
  353. package/resources/package-manifests/packages.d.mts +2 -0
  354. package/resources/package-manifests/packages.d.mts.map +1 -0
  355. package/resources/package-manifests/packages.d.ts +2 -0
  356. package/resources/package-manifests/packages.d.ts.map +1 -0
  357. package/resources/package-manifests/packages.js +6 -0
  358. package/resources/package-manifests/packages.js.map +1 -0
  359. package/resources/package-manifests/packages.mjs +3 -0
  360. package/resources/package-manifests/packages.mjs.map +1 -0
  361. package/resources/package-manifests/versions.d.mts +84 -0
  362. package/resources/package-manifests/versions.d.mts.map +1 -0
  363. package/resources/package-manifests/versions.d.ts +84 -0
  364. package/resources/package-manifests/versions.d.ts.map +1 -0
  365. package/resources/package-manifests/versions.js +44 -0
  366. package/resources/package-manifests/versions.js.map +1 -0
  367. package/resources/package-manifests/versions.mjs +40 -0
  368. package/resources/package-manifests/versions.mjs.map +1 -0
  369. package/resources/package-manifests.d.mts +2 -0
  370. package/resources/package-manifests.d.mts.map +1 -0
  371. package/resources/package-manifests.d.ts +2 -0
  372. package/resources/package-manifests.d.ts.map +1 -0
  373. package/resources/package-manifests.js +6 -0
  374. package/resources/package-manifests.js.map +1 -0
  375. package/resources/package-manifests.mjs +3 -0
  376. package/resources/package-manifests.mjs.map +1 -0
  377. package/resources/package-versions/package-versions.d.mts +104 -14
  378. package/resources/package-versions/package-versions.d.mts.map +1 -1
  379. package/resources/package-versions/package-versions.d.ts +104 -14
  380. package/resources/package-versions/package-versions.d.ts.map +1 -1
  381. package/resources/package-versions/package-versions.js +30 -9
  382. package/resources/package-versions/package-versions.js.map +1 -1
  383. package/resources/package-versions/package-versions.mjs +30 -9
  384. package/resources/package-versions/package-versions.mjs.map +1 -1
  385. package/resources/package-versions/publish.d.mts +40 -4
  386. package/resources/package-versions/publish.d.mts.map +1 -1
  387. package/resources/package-versions/publish.d.ts +40 -4
  388. package/resources/package-versions/publish.d.ts.map +1 -1
  389. package/resources/package-versions/publish.js +8 -2
  390. package/resources/package-versions/publish.js.map +1 -1
  391. package/resources/package-versions/publish.mjs +8 -2
  392. package/resources/package-versions/publish.mjs.map +1 -1
  393. package/resources/packages/next-versions.d.mts +40 -4
  394. package/resources/packages/next-versions.d.mts.map +1 -1
  395. package/resources/packages/next-versions.d.ts +40 -4
  396. package/resources/packages/next-versions.d.ts.map +1 -1
  397. package/resources/packages/next-versions.js +8 -2
  398. package/resources/packages/next-versions.js.map +1 -1
  399. package/resources/packages/next-versions.mjs +8 -2
  400. package/resources/packages/next-versions.mjs.map +1 -1
  401. package/resources/packages/versions.d.mts +80 -9
  402. package/resources/packages/versions.d.mts.map +1 -1
  403. package/resources/packages/versions.d.ts +80 -9
  404. package/resources/packages/versions.d.ts.map +1 -1
  405. package/resources/packages/versions.js +16 -5
  406. package/resources/packages/versions.js.map +1 -1
  407. package/resources/packages/versions.mjs +16 -5
  408. package/resources/packages/versions.mjs.map +1 -1
  409. package/resources/payroll-runs/off-cycle.d.mts +17 -9
  410. package/resources/payroll-runs/off-cycle.d.mts.map +1 -1
  411. package/resources/payroll-runs/off-cycle.d.ts +17 -9
  412. package/resources/payroll-runs/off-cycle.d.ts.map +1 -1
  413. package/resources/payroll-runs/off-cycle.js +9 -5
  414. package/resources/payroll-runs/off-cycle.js.map +1 -1
  415. package/resources/payroll-runs/off-cycle.mjs +9 -5
  416. package/resources/payroll-runs/off-cycle.mjs.map +1 -1
  417. package/resources/permissions/index.d.mts +3 -0
  418. package/resources/permissions/index.d.mts.map +1 -0
  419. package/resources/permissions/index.d.ts +3 -0
  420. package/resources/permissions/index.d.ts.map +1 -0
  421. package/resources/permissions/index.js +9 -0
  422. package/resources/permissions/index.js.map +1 -0
  423. package/resources/permissions/index.mjs +4 -0
  424. package/resources/permissions/index.mjs.map +1 -0
  425. package/resources/permissions/permission-profiles.d.mts +43 -0
  426. package/resources/permissions/permission-profiles.d.mts.map +1 -0
  427. package/resources/permissions/permission-profiles.d.ts +43 -0
  428. package/resources/permissions/permission-profiles.d.ts.map +1 -0
  429. package/resources/permissions/permission-profiles.js +36 -0
  430. package/resources/permissions/permission-profiles.js.map +1 -0
  431. package/resources/permissions/permission-profiles.mjs +32 -0
  432. package/resources/permissions/permission-profiles.mjs.map +1 -0
  433. package/resources/permissions/permissions.d.mts +10 -0
  434. package/resources/permissions/permissions.d.mts.map +1 -0
  435. package/resources/permissions/permissions.d.ts +10 -0
  436. package/resources/permissions/permissions.d.ts.map +1 -0
  437. package/resources/permissions/permissions.js +17 -0
  438. package/resources/permissions/permissions.js.map +1 -0
  439. package/resources/permissions/permissions.mjs +12 -0
  440. package/resources/permissions/permissions.mjs.map +1 -0
  441. package/resources/permissions.d.mts +2 -0
  442. package/resources/permissions.d.mts.map +1 -0
  443. package/resources/permissions.d.ts +2 -0
  444. package/resources/permissions.d.ts.map +1 -0
  445. package/resources/permissions.js +6 -0
  446. package/resources/permissions.js.map +1 -0
  447. package/resources/permissions.mjs +3 -0
  448. package/resources/permissions.mjs.map +1 -0
  449. package/resources/record-detail-reference-options.d.mts +111 -0
  450. package/resources/record-detail-reference-options.d.mts.map +1 -0
  451. package/resources/record-detail-reference-options.d.ts +111 -0
  452. package/resources/record-detail-reference-options.d.ts.map +1 -0
  453. package/resources/record-detail-reference-options.js +54 -0
  454. package/resources/record-detail-reference-options.js.map +1 -0
  455. package/resources/record-detail-reference-options.mjs +50 -0
  456. package/resources/record-detail-reference-options.mjs.map +1 -0
  457. package/resources/record-detail-related-records.d.mts +1070 -0
  458. package/resources/record-detail-related-records.d.mts.map +1 -0
  459. package/resources/record-detail-related-records.d.ts +1070 -0
  460. package/resources/record-detail-related-records.d.ts.map +1 -0
  461. package/resources/record-detail-related-records.js +49 -0
  462. package/resources/record-detail-related-records.js.map +1 -0
  463. package/resources/record-detail-related-records.mjs +45 -0
  464. package/resources/record-detail-related-records.mjs.map +1 -0
  465. package/resources/record-details.d.mts +1227 -0
  466. package/resources/record-details.d.mts.map +1 -0
  467. package/resources/record-details.d.ts +1227 -0
  468. package/resources/record-details.d.ts.map +1 -0
  469. package/resources/record-details.js +71 -0
  470. package/resources/record-details.js.map +1 -0
  471. package/resources/record-details.mjs +67 -0
  472. package/resources/record-details.mjs.map +1 -0
  473. package/resources/reimbursements.d.mts +2158 -90
  474. package/resources/reimbursements.d.mts.map +1 -1
  475. package/resources/reimbursements.d.ts +2158 -90
  476. package/resources/reimbursements.d.ts.map +1 -1
  477. package/resources/reimbursements.js +306 -16
  478. package/resources/reimbursements.js.map +1 -1
  479. package/resources/reimbursements.mjs +306 -16
  480. package/resources/reimbursements.mjs.map +1 -1
  481. package/resources/report-runs.d.mts +2 -1
  482. package/resources/report-runs.d.mts.map +1 -1
  483. package/resources/report-runs.d.ts +2 -1
  484. package/resources/report-runs.d.ts.map +1 -1
  485. package/resources/report-runs.js +2 -1
  486. package/resources/report-runs.js.map +1 -1
  487. package/resources/report-runs.mjs +2 -1
  488. package/resources/report-runs.mjs.map +1 -1
  489. package/resources/sandboxes.d.mts +20 -624
  490. package/resources/sandboxes.d.mts.map +1 -1
  491. package/resources/sandboxes.d.ts +20 -624
  492. package/resources/sandboxes.d.ts.map +1 -1
  493. package/resources/sandboxes.js +5 -60
  494. package/resources/sandboxes.js.map +1 -1
  495. package/resources/sandboxes.mjs +5 -60
  496. package/resources/sandboxes.mjs.map +1 -1
  497. package/src/client.ts +156 -17
  498. package/src/core/platform/custom-objects/manager.ts +65 -42
  499. package/src/core/platform/custom-objects.ts +3 -0
  500. package/src/lib/manifest/acp-agent.ts +7 -1
  501. package/src/lib/manifest/definitions/_object-records.ts +17 -10
  502. package/src/lib/manifest/definitions/custom-object.ts +14 -9
  503. package/src/resources/activity-log.ts +1 -1
  504. package/src/resources/agents/sessions/messages.ts +10 -1
  505. package/src/resources/agents/sessions/sessions.ts +30 -3
  506. package/src/resources/bills.ts +1660 -0
  507. package/src/resources/card-transactions.ts +742 -49
  508. package/src/resources/custom-objects/custom-objects.ts +62 -2
  509. package/src/resources/custom-objects/fields.ts +44 -0
  510. package/src/resources/custom-objects/index.ts +13 -1
  511. package/src/resources/custom-objects/list-views/capabilities.ts +72 -0
  512. package/src/resources/custom-objects/list-views/default.ts +87 -0
  513. package/src/resources/custom-objects/list-views/index.ts +15 -0
  514. package/src/resources/custom-objects/list-views/list-views.ts +973 -0
  515. package/src/resources/custom-objects/list-views.ts +3 -0
  516. package/src/resources/custom-objects/records/capabilities.ts +73 -0
  517. package/src/resources/custom-objects/records/index.ts +21 -0
  518. package/src/resources/custom-objects/records/records.ts +955 -0
  519. package/src/resources/custom-objects/records.ts +1 -703
  520. package/src/resources/devices.ts +2 -0
  521. package/src/resources/draft-transitions.ts +276 -347
  522. package/src/resources/employee-documents.ts +2 -2
  523. package/src/resources/{spend-categories.ts → finance-categories.ts} +26 -23
  524. package/src/resources/finance-vendors.ts +191 -0
  525. package/src/resources/functions/executions.ts +4 -1
  526. package/src/resources/functions/functions.ts +216 -4
  527. package/src/resources/hire-requirements.ts +107 -9
  528. package/src/resources/hires.ts +1768 -539
  529. package/src/resources/index.ts +51 -7
  530. package/src/resources/leave-requests.ts +11 -2
  531. package/src/resources/object-categories.ts +2 -1
  532. package/src/resources/package-components/extract.ts +139 -0
  533. package/src/resources/package-components/index.ts +10 -0
  534. package/src/resources/package-components/package-components.ts +134 -0
  535. package/src/resources/package-components/types.ts +64 -0
  536. package/src/resources/package-components.ts +3 -0
  537. package/src/resources/package-installs.ts +120 -9
  538. package/src/resources/package-managed-installs.ts +146 -7
  539. package/src/resources/package-manifests/index.ts +5 -0
  540. package/src/resources/package-manifests/package-manifests.ts +21 -0
  541. package/src/resources/package-manifests/packages/index.ts +4 -0
  542. package/src/resources/package-manifests/packages/packages.ts +19 -0
  543. package/src/resources/package-manifests/packages/versions.ts +237 -0
  544. package/src/resources/package-manifests/packages.ts +3 -0
  545. package/src/resources/package-manifests/versions.ts +96 -0
  546. package/src/resources/package-manifests.ts +3 -0
  547. package/src/resources/package-versions/package-versions.ts +117 -14
  548. package/src/resources/package-versions/publish.ts +46 -4
  549. package/src/resources/packages/next-versions.ts +46 -4
  550. package/src/resources/packages/versions.ts +92 -9
  551. package/src/resources/payroll-runs/off-cycle.ts +17 -9
  552. package/src/resources/permissions/index.ts +4 -0
  553. package/src/resources/permissions/permission-profiles.ts +50 -0
  554. package/src/resources/permissions/permissions.ts +20 -0
  555. package/src/resources/permissions.ts +3 -0
  556. package/src/resources/record-detail-reference-options.ts +142 -0
  557. package/src/resources/record-detail-related-records.ts +1380 -0
  558. package/src/resources/record-details.ts +1554 -0
  559. package/src/resources/reimbursements.ts +2591 -126
  560. package/src/resources/report-runs.ts +2 -1
  561. package/src/resources/sandboxes.ts +48 -742
  562. package/src/version.ts +1 -1
  563. package/version.d.mts +1 -1
  564. package/version.d.ts +1 -1
  565. package/version.js +1 -1
  566. package/version.mjs +1 -1
  567. package/resources/spend-categories.d.mts.map +0 -1
  568. package/resources/spend-categories.d.ts.map +0 -1
  569. package/resources/spend-categories.js.map +0 -1
  570. package/resources/spend-categories.mjs.map +0 -1
@@ -0,0 +1,1554 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+ import { path } from '../internal/utils/path';
7
+
8
+ /**
9
+ * Custom object datarows defined by the company
10
+ */
11
+ export class RecordDetails extends APIResource {
12
+ /**
13
+ * Retrieves a Custom Object record's readable values, edit capabilities, and
14
+ * effective saved page layout.
15
+ *
16
+ * Use this response to render a record page or prepare an edit through the
17
+ * canonical record PATCH endpoint. Includes discoverable direct fields outside the
18
+ * layout. Unreadable fields retain metadata with null, MASKED values; saved
19
+ * visibility conditions and field permissions determine the returned placements.
20
+ * Related-list contents load separately through each section's records_link.
21
+ * Metadata-administration scopes are not required. Masked values contain no raw
22
+ * data. Values use the formats documented by data_type. References contain a
23
+ * scalar identifier and optional permitted display, not an expanded resource.
24
+ *
25
+ * @example HTTP
26
+ * Representative request and response shapes.
27
+ * ```
28
+ * GET /record-details/{record_id}/?object_api_name=object_api_name&layout_api_name=default HTTP/1.1
29
+ * Host: rest.ripplingapis.com
30
+ * Accept: application/json
31
+ * Rippling-Api-Version: 2024-08-01
32
+ *
33
+ * HTTP/1.1 200 OK
34
+ * Content-Type: application/json
35
+ *
36
+ * {
37
+ * "id": "string",
38
+ * "object_api_name": "string",
39
+ * "updated_at": "2025-01-01T00:00:00Z",
40
+ * "capabilities": {
41
+ * "editable": false,
42
+ * "deletable": false,
43
+ * "locked": false
44
+ * },
45
+ * "layout": {
46
+ * "api_name": "string",
47
+ * "revision": "string",
48
+ * "header": {
49
+ * "title_field": "string",
50
+ * "description_field": "string",
51
+ * "fields": [
52
+ * "string"
53
+ * ]
54
+ * },
55
+ * "tabs": [
56
+ * {
57
+ * "id": "string",
58
+ * "label": "string",
59
+ * "sections": []
60
+ * }
61
+ * ]
62
+ * },
63
+ * "fields": {}
64
+ * }
65
+ * ```
66
+ */
67
+ retrieve(
68
+ recordID: string,
69
+ query: RecordDetailRetrieveParams,
70
+ options?: RequestOptions,
71
+ ): APIPromise<RecordDetailRetrieveResponse> {
72
+ return this._client.get(path`/record-details/${recordID}/`, { query, ...options });
73
+ }
74
+ }
75
+
76
+ /**
77
+ * Record values, edit capabilities, and the effective page layout for one readable
78
+ * Custom Object record.
79
+ */
80
+ export interface RecordDetailRetrieveResponse {
81
+ /**
82
+ * Stable record identifier returned by the canonical Custom Object record list or
83
+ * query endpoint. Use it with object_api_name for canonical record GET and PATCH.
84
+ */
85
+ id: string;
86
+
87
+ /**
88
+ * Permissions and lock state for this caller.
89
+ */
90
+ capabilities: RecordDetailRetrieveResponse.Capabilities;
91
+
92
+ /**
93
+ * Discoverable direct fields plus read-only related fields used by the layout.
94
+ * Unreadable fields retain metadata and layout placements with a null, MASKED
95
+ * value.
96
+ */
97
+ fields: {
98
+ [key: string]:
99
+ | RecordDetailRetrieveResponse.DetailTextField
100
+ | RecordDetailRetrieveResponse.DetailNumberField
101
+ | RecordDetailRetrieveResponse.DetailBooleanField
102
+ | RecordDetailRetrieveResponse.DetailDateField
103
+ | RecordDetailRetrieveResponse.DetailDateTimeField
104
+ | RecordDetailRetrieveResponse.DetailCurrencyField
105
+ | RecordDetailRetrieveResponse.DetailChoiceField
106
+ | RecordDetailRetrieveResponse.DetailMultiChoiceField
107
+ | RecordDetailRetrieveResponse.DetailReferenceField
108
+ | RecordDetailRetrieveResponse.DetailNativeReferenceField
109
+ | RecordDetailRetrieveResponse.DetailPercentageField
110
+ | RecordDetailRetrieveResponse.DetailTimeField
111
+ | RecordDetailRetrieveResponse.DetailUnsupportedField;
112
+ };
113
+
114
+ /**
115
+ * Effective saved page layout.
116
+ */
117
+ layout: RecordDetailRetrieveResponse.Layout;
118
+
119
+ /**
120
+ * Custom Object API name, such as equipment\_\_c, used to address this record's
121
+ * collection. Obtain it from the Custom Object definition or grid configuration.
122
+ */
123
+ object_api_name: string;
124
+
125
+ /**
126
+ * ISO 8601 UTC timestamp of the loaded record version. Pass this exact value as
127
+ * lock_update_time in the canonical record PATCH to detect stale writes.
128
+ */
129
+ updated_at: string;
130
+ }
131
+
132
+ export namespace RecordDetailRetrieveResponse {
133
+ /**
134
+ * Permissions and lock state for this caller.
135
+ */
136
+ export interface Capabilities {
137
+ /**
138
+ * Whether you can attempt to delete this record through the API. Validation,
139
+ * business rules, or approvals may still prevent or defer deletion.
140
+ */
141
+ deletable: boolean;
142
+
143
+ /**
144
+ * Whether at least one field represented in this response can be updated through
145
+ * the API.
146
+ */
147
+ editable: boolean;
148
+
149
+ /**
150
+ * Whether an approval or business process has locked this record for writes. A
151
+ * pending approval does not necessarily lock a record.
152
+ */
153
+ locked: boolean;
154
+ }
155
+
156
+ /**
157
+ * A discoverable record field and the caller's read and write capabilities.
158
+ */
159
+ export interface DetailTextField {
160
+ /**
161
+ * Field key used by layout placements and canonical record PATCH changes. Direct
162
+ * keys come from the Custom Object field definition; dotted related keys are
163
+ * read-only.
164
+ */
165
+ api_name: string;
166
+
167
+ /**
168
+ * TEXT and LONG_TEXT contain text; EMAIL, URL, and PHONE_NUMBER contain their
169
+ * respective textual values.
170
+ */
171
+ data_type: 'TEXT' | 'LONG_TEXT' | 'EMAIL' | 'URL' | 'PHONE_NUMBER';
172
+
173
+ /**
174
+ * Whether you can attempt to update this field through the API. This does not
175
+ * grant permission to browse reference targets; submitted reference identifiers
176
+ * are validated when written.
177
+ */
178
+ editable: boolean;
179
+
180
+ /**
181
+ * Field display name.
182
+ */
183
+ label: string;
184
+
185
+ /**
186
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
187
+ * and scalar references.
188
+ */
189
+ multiple: boolean;
190
+
191
+ /**
192
+ * Configured choice values; empty for non-choice fields.
193
+ */
194
+ options: Array<string>;
195
+
196
+ /**
197
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
198
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
199
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
200
+ * value), DERIVED (calculated value), MASKED (restricted value),
201
+ * REFERENCE_UNAVAILABLE (unavailable reference target).
202
+ */
203
+ read_only_reason:
204
+ | 'PERMISSION_DENIED'
205
+ | 'RECORD_LOCKED'
206
+ | 'IMMUTABLE'
207
+ | 'MANAGED_WRITE_RESTRICTED'
208
+ | 'DERIVED'
209
+ | 'MASKED'
210
+ | 'REFERENCE_UNAVAILABLE'
211
+ | null;
212
+
213
+ /**
214
+ * Whether a nonempty value is required by the field schema.
215
+ */
216
+ required: boolean;
217
+
218
+ /**
219
+ * Readable text, including an empty string with value_state EMPTY; null when unset
220
+ * or masked.
221
+ */
222
+ value: string | null;
223
+
224
+ /**
225
+ * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
226
+ * an empty string, or an empty array; MASKED when access to the field or a
227
+ * referenced value is restricted; or UNSUPPORTED when the endpoint does not
228
+ * represent the value. UNSUPPORTED does not determine edit permission.
229
+ */
230
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
231
+
232
+ /**
233
+ * Whether you can read this record's field. A referenced record may have separate
234
+ * access restrictions.
235
+ */
236
+ viewable: boolean;
237
+
238
+ /**
239
+ * Object-graph/RQL target name for a supported reference, such as Employee,
240
+ * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
241
+ * fields and unsupported reference targets.
242
+ */
243
+ reference_object?: string | null;
244
+ }
245
+
246
+ /**
247
+ * A discoverable record field and the caller's read and write capabilities.
248
+ */
249
+ export interface DetailNumberField {
250
+ /**
251
+ * Field key used by layout placements and canonical record PATCH changes. Direct
252
+ * keys come from the Custom Object field definition; dotted related keys are
253
+ * read-only.
254
+ */
255
+ api_name: string;
256
+
257
+ /**
258
+ * NUMBER contains a decimal quantity.
259
+ */
260
+ data_type: 'NUMBER';
261
+
262
+ /**
263
+ * Whether you can attempt to update this field through the API. This does not
264
+ * grant permission to browse reference targets; submitted reference identifiers
265
+ * are validated when written.
266
+ */
267
+ editable: boolean;
268
+
269
+ /**
270
+ * Field display name.
271
+ */
272
+ label: string;
273
+
274
+ /**
275
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
276
+ * and scalar references.
277
+ */
278
+ multiple: boolean;
279
+
280
+ /**
281
+ * Configured choice values; empty for non-choice fields.
282
+ */
283
+ options: Array<string>;
284
+
285
+ /**
286
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
287
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
288
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
289
+ * value), DERIVED (calculated value), MASKED (restricted value),
290
+ * REFERENCE_UNAVAILABLE (unavailable reference target).
291
+ */
292
+ read_only_reason:
293
+ | 'PERMISSION_DENIED'
294
+ | 'RECORD_LOCKED'
295
+ | 'IMMUTABLE'
296
+ | 'MANAGED_WRITE_RESTRICTED'
297
+ | 'DERIVED'
298
+ | 'MASKED'
299
+ | 'REFERENCE_UNAVAILABLE'
300
+ | null;
301
+
302
+ /**
303
+ * Whether a nonempty value is required by the field schema.
304
+ */
305
+ required: boolean;
306
+
307
+ /**
308
+ * Decimal quantity encoded as a string to preserve precision, for example 12.50.
309
+ * Units follow the configured field's meaning. Null unless value_state is PRESENT.
310
+ */
311
+ value: string | null;
312
+
313
+ /**
314
+ * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
315
+ * an empty string, or an empty array; MASKED when access to the field or a
316
+ * referenced value is restricted; or UNSUPPORTED when the endpoint does not
317
+ * represent the value. UNSUPPORTED does not determine edit permission.
318
+ */
319
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
320
+
321
+ /**
322
+ * Whether you can read this record's field. A referenced record may have separate
323
+ * access restrictions.
324
+ */
325
+ viewable: boolean;
326
+
327
+ /**
328
+ * Object-graph/RQL target name for a supported reference, such as Employee,
329
+ * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
330
+ * fields and unsupported reference targets.
331
+ */
332
+ reference_object?: string | null;
333
+ }
334
+
335
+ /**
336
+ * A discoverable record field and the caller's read and write capabilities.
337
+ */
338
+ export interface DetailBooleanField {
339
+ /**
340
+ * Field key used by layout placements and canonical record PATCH changes. Direct
341
+ * keys come from the Custom Object field definition; dotted related keys are
342
+ * read-only.
343
+ */
344
+ api_name: string;
345
+
346
+ /**
347
+ * BOOLEAN contains true or false.
348
+ */
349
+ data_type: 'BOOLEAN';
350
+
351
+ /**
352
+ * Whether you can attempt to update this field through the API. This does not
353
+ * grant permission to browse reference targets; submitted reference identifiers
354
+ * are validated when written.
355
+ */
356
+ editable: boolean;
357
+
358
+ /**
359
+ * Field display name.
360
+ */
361
+ label: string;
362
+
363
+ /**
364
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
365
+ * and scalar references.
366
+ */
367
+ multiple: boolean;
368
+
369
+ /**
370
+ * Configured choice values; empty for non-choice fields.
371
+ */
372
+ options: Array<string>;
373
+
374
+ /**
375
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
376
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
377
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
378
+ * value), DERIVED (calculated value), MASKED (restricted value),
379
+ * REFERENCE_UNAVAILABLE (unavailable reference target).
380
+ */
381
+ read_only_reason:
382
+ | 'PERMISSION_DENIED'
383
+ | 'RECORD_LOCKED'
384
+ | 'IMMUTABLE'
385
+ | 'MANAGED_WRITE_RESTRICTED'
386
+ | 'DERIVED'
387
+ | 'MASKED'
388
+ | 'REFERENCE_UNAVAILABLE'
389
+ | null;
390
+
391
+ /**
392
+ * Whether a nonempty value is required by the field schema.
393
+ */
394
+ required: boolean;
395
+
396
+ /**
397
+ * Whether the configured condition is true; null unless value_state is PRESENT.
398
+ */
399
+ value: boolean | null;
400
+
401
+ /**
402
+ * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
403
+ * an empty string, or an empty array; MASKED when access to the field or a
404
+ * referenced value is restricted; or UNSUPPORTED when the endpoint does not
405
+ * represent the value. UNSUPPORTED does not determine edit permission.
406
+ */
407
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
408
+
409
+ /**
410
+ * Whether you can read this record's field. A referenced record may have separate
411
+ * access restrictions.
412
+ */
413
+ viewable: boolean;
414
+
415
+ /**
416
+ * Object-graph/RQL target name for a supported reference, such as Employee,
417
+ * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
418
+ * fields and unsupported reference targets.
419
+ */
420
+ reference_object?: string | null;
421
+ }
422
+
423
+ /**
424
+ * A discoverable record field and the caller's read and write capabilities.
425
+ */
426
+ export interface DetailDateField {
427
+ /**
428
+ * Field key used by layout placements and canonical record PATCH changes. Direct
429
+ * keys come from the Custom Object field definition; dotted related keys are
430
+ * read-only.
431
+ */
432
+ api_name: string;
433
+
434
+ /**
435
+ * DATE contains a calendar date without a time or timezone.
436
+ */
437
+ data_type: 'DATE';
438
+
439
+ /**
440
+ * Whether you can attempt to update this field through the API. This does not
441
+ * grant permission to browse reference targets; submitted reference identifiers
442
+ * are validated when written.
443
+ */
444
+ editable: boolean;
445
+
446
+ /**
447
+ * Field display name.
448
+ */
449
+ label: string;
450
+
451
+ /**
452
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
453
+ * and scalar references.
454
+ */
455
+ multiple: boolean;
456
+
457
+ /**
458
+ * Configured choice values; empty for non-choice fields.
459
+ */
460
+ options: Array<string>;
461
+
462
+ /**
463
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
464
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
465
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
466
+ * value), DERIVED (calculated value), MASKED (restricted value),
467
+ * REFERENCE_UNAVAILABLE (unavailable reference target).
468
+ */
469
+ read_only_reason:
470
+ | 'PERMISSION_DENIED'
471
+ | 'RECORD_LOCKED'
472
+ | 'IMMUTABLE'
473
+ | 'MANAGED_WRITE_RESTRICTED'
474
+ | 'DERIVED'
475
+ | 'MASKED'
476
+ | 'REFERENCE_UNAVAILABLE'
477
+ | null;
478
+
479
+ /**
480
+ * Whether a nonempty value is required by the field schema.
481
+ */
482
+ required: boolean;
483
+
484
+ /**
485
+ * Calendar date in YYYY-MM-DD format, for example 2026-10-24; null unless
486
+ * value_state is PRESENT.
487
+ */
488
+ value: string | null;
489
+
490
+ /**
491
+ * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
492
+ * an empty string, or an empty array; MASKED when access to the field or a
493
+ * referenced value is restricted; or UNSUPPORTED when the endpoint does not
494
+ * represent the value. UNSUPPORTED does not determine edit permission.
495
+ */
496
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
497
+
498
+ /**
499
+ * Whether you can read this record's field. A referenced record may have separate
500
+ * access restrictions.
501
+ */
502
+ viewable: boolean;
503
+
504
+ /**
505
+ * Object-graph/RQL target name for a supported reference, such as Employee,
506
+ * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
507
+ * fields and unsupported reference targets.
508
+ */
509
+ reference_object?: string | null;
510
+ }
511
+
512
+ /**
513
+ * A discoverable record field and the caller's read and write capabilities.
514
+ */
515
+ export interface DetailDateTimeField {
516
+ /**
517
+ * Field key used by layout placements and canonical record PATCH changes. Direct
518
+ * keys come from the Custom Object field definition; dotted related keys are
519
+ * read-only.
520
+ */
521
+ api_name: string;
522
+
523
+ /**
524
+ * DATETIME contains an instant with a timezone.
525
+ */
526
+ data_type: 'DATETIME';
527
+
528
+ /**
529
+ * Whether you can attempt to update this field through the API. This does not
530
+ * grant permission to browse reference targets; submitted reference identifiers
531
+ * are validated when written.
532
+ */
533
+ editable: boolean;
534
+
535
+ /**
536
+ * Field display name.
537
+ */
538
+ label: string;
539
+
540
+ /**
541
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
542
+ * and scalar references.
543
+ */
544
+ multiple: boolean;
545
+
546
+ /**
547
+ * Configured choice values; empty for non-choice fields.
548
+ */
549
+ options: Array<string>;
550
+
551
+ /**
552
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
553
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
554
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
555
+ * value), DERIVED (calculated value), MASKED (restricted value),
556
+ * REFERENCE_UNAVAILABLE (unavailable reference target).
557
+ */
558
+ read_only_reason:
559
+ | 'PERMISSION_DENIED'
560
+ | 'RECORD_LOCKED'
561
+ | 'IMMUTABLE'
562
+ | 'MANAGED_WRITE_RESTRICTED'
563
+ | 'DERIVED'
564
+ | 'MASKED'
565
+ | 'REFERENCE_UNAVAILABLE'
566
+ | null;
567
+
568
+ /**
569
+ * Whether a nonempty value is required by the field schema.
570
+ */
571
+ required: boolean;
572
+
573
+ /**
574
+ * ISO 8601 timestamp with timezone and up to millisecond precision, matching
575
+ * native record JSON responses; null unless value_state is PRESENT. System audit
576
+ * timestamps are immutable.
577
+ */
578
+ value: string | null;
579
+
580
+ /**
581
+ * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
582
+ * an empty string, or an empty array; MASKED when access to the field or a
583
+ * referenced value is restricted; or UNSUPPORTED when the endpoint does not
584
+ * represent the value. UNSUPPORTED does not determine edit permission.
585
+ */
586
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
587
+
588
+ /**
589
+ * Whether you can read this record's field. A referenced record may have separate
590
+ * access restrictions.
591
+ */
592
+ viewable: boolean;
593
+
594
+ /**
595
+ * Object-graph/RQL target name for a supported reference, such as Employee,
596
+ * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
597
+ * fields and unsupported reference targets.
598
+ */
599
+ reference_object?: string | null;
600
+ }
601
+
602
+ /**
603
+ * A discoverable record field and the caller's read and write capabilities.
604
+ */
605
+ export interface DetailCurrencyField {
606
+ /**
607
+ * Field key used by layout placements and canonical record PATCH changes. Direct
608
+ * keys come from the Custom Object field definition; dotted related keys are
609
+ * read-only.
610
+ */
611
+ api_name: string;
612
+
613
+ /**
614
+ * CURRENCY contains a monetary amount and its currency.
615
+ */
616
+ data_type: 'CURRENCY';
617
+
618
+ /**
619
+ * Whether you can attempt to update this field through the API. This does not
620
+ * grant permission to browse reference targets; submitted reference identifiers
621
+ * are validated when written.
622
+ */
623
+ editable: boolean;
624
+
625
+ /**
626
+ * Field display name.
627
+ */
628
+ label: string;
629
+
630
+ /**
631
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
632
+ * and scalar references.
633
+ */
634
+ multiple: boolean;
635
+
636
+ /**
637
+ * Configured choice values; empty for non-choice fields.
638
+ */
639
+ options: Array<string>;
640
+
641
+ /**
642
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
643
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
644
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
645
+ * value), DERIVED (calculated value), MASKED (restricted value),
646
+ * REFERENCE_UNAVAILABLE (unavailable reference target).
647
+ */
648
+ read_only_reason:
649
+ | 'PERMISSION_DENIED'
650
+ | 'RECORD_LOCKED'
651
+ | 'IMMUTABLE'
652
+ | 'MANAGED_WRITE_RESTRICTED'
653
+ | 'DERIVED'
654
+ | 'MASKED'
655
+ | 'REFERENCE_UNAVAILABLE'
656
+ | null;
657
+
658
+ /**
659
+ * Whether a nonempty value is required by the field schema.
660
+ */
661
+ required: boolean;
662
+
663
+ /**
664
+ * Currency object with an ISO 4217 currency_type and decimal-string value, for
665
+ * example {"currency_type": "USD", "value": "25.00"}. The amount is in currency
666
+ * units, not cents. Null unless value_state is PRESENT.
667
+ */
668
+ value: DetailCurrencyField.RecordDetailCurrency | null;
669
+
670
+ /**
671
+ * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
672
+ * an empty string, or an empty array; MASKED when access to the field or a
673
+ * referenced value is restricted; or UNSUPPORTED when the endpoint does not
674
+ * represent the value. UNSUPPORTED does not determine edit permission.
675
+ */
676
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
677
+
678
+ /**
679
+ * Whether you can read this record's field. A referenced record may have separate
680
+ * access restrictions.
681
+ */
682
+ viewable: boolean;
683
+
684
+ /**
685
+ * Object-graph/RQL target name for a supported reference, such as Employee,
686
+ * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
687
+ * fields and unsupported reference targets.
688
+ */
689
+ reference_object?: string | null;
690
+ }
691
+
692
+ export namespace DetailCurrencyField {
693
+ /**
694
+ * Platform Currency serialized with a decimal string amount to preserve precision.
695
+ */
696
+ export interface RecordDetailCurrency {
697
+ /**
698
+ * ISO 4217 currency code, for example USD or EUR.
699
+ */
700
+ currency_type: string;
701
+
702
+ /**
703
+ * Decimal monetary amount in currency units, for example 25.00; not integer cents.
704
+ */
705
+ value: string;
706
+ }
707
+ }
708
+
709
+ /**
710
+ * A discoverable record field and the caller's read and write capabilities.
711
+ */
712
+ export interface DetailChoiceField {
713
+ /**
714
+ * Field key used by layout placements and canonical record PATCH changes. Direct
715
+ * keys come from the Custom Object field definition; dotted related keys are
716
+ * read-only.
717
+ */
718
+ api_name: string;
719
+
720
+ /**
721
+ * RADIO contains one configured choice.
722
+ */
723
+ data_type: 'RADIO';
724
+
725
+ /**
726
+ * Whether you can attempt to update this field through the API. This does not
727
+ * grant permission to browse reference targets; submitted reference identifiers
728
+ * are validated when written.
729
+ */
730
+ editable: boolean;
731
+
732
+ /**
733
+ * Field display name.
734
+ */
735
+ label: string;
736
+
737
+ /**
738
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
739
+ * and scalar references.
740
+ */
741
+ multiple: boolean;
742
+
743
+ /**
744
+ * Configured choice values; empty for non-choice fields.
745
+ */
746
+ options: Array<string>;
747
+
748
+ /**
749
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
750
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
751
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
752
+ * value), DERIVED (calculated value), MASKED (restricted value),
753
+ * REFERENCE_UNAVAILABLE (unavailable reference target).
754
+ */
755
+ read_only_reason:
756
+ | 'PERMISSION_DENIED'
757
+ | 'RECORD_LOCKED'
758
+ | 'IMMUTABLE'
759
+ | 'MANAGED_WRITE_RESTRICTED'
760
+ | 'DERIVED'
761
+ | 'MASKED'
762
+ | 'REFERENCE_UNAVAILABLE'
763
+ | null;
764
+
765
+ /**
766
+ * Whether a nonempty value is required by the field schema.
767
+ */
768
+ required: boolean;
769
+
770
+ /**
771
+ * One value from options, or an empty string with value_state EMPTY; null when
772
+ * unset or masked.
773
+ */
774
+ value: string | null;
775
+
776
+ /**
777
+ * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
778
+ * an empty string, or an empty array; MASKED when access to the field or a
779
+ * referenced value is restricted; or UNSUPPORTED when the endpoint does not
780
+ * represent the value. UNSUPPORTED does not determine edit permission.
781
+ */
782
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
783
+
784
+ /**
785
+ * Whether you can read this record's field. A referenced record may have separate
786
+ * access restrictions.
787
+ */
788
+ viewable: boolean;
789
+
790
+ /**
791
+ * Object-graph/RQL target name for a supported reference, such as Employee,
792
+ * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
793
+ * fields and unsupported reference targets.
794
+ */
795
+ reference_object?: string | null;
796
+ }
797
+
798
+ /**
799
+ * A discoverable record field and the caller's read and write capabilities.
800
+ */
801
+ export interface DetailMultiChoiceField {
802
+ /**
803
+ * Field key used by layout placements and canonical record PATCH changes. Direct
804
+ * keys come from the Custom Object field definition; dotted related keys are
805
+ * read-only.
806
+ */
807
+ api_name: string;
808
+
809
+ /**
810
+ * SELECT contains zero or more configured choices.
811
+ */
812
+ data_type: 'SELECT';
813
+
814
+ /**
815
+ * Whether you can attempt to update this field through the API. This does not
816
+ * grant permission to browse reference targets; submitted reference identifiers
817
+ * are validated when written.
818
+ */
819
+ editable: boolean;
820
+
821
+ /**
822
+ * Field display name.
823
+ */
824
+ label: string;
825
+
826
+ /**
827
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
828
+ * and scalar references.
829
+ */
830
+ multiple: boolean;
831
+
832
+ /**
833
+ * Configured choice values; empty for non-choice fields.
834
+ */
835
+ options: Array<string>;
836
+
837
+ /**
838
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
839
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
840
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
841
+ * value), DERIVED (calculated value), MASKED (restricted value),
842
+ * REFERENCE_UNAVAILABLE (unavailable reference target).
843
+ */
844
+ read_only_reason:
845
+ | 'PERMISSION_DENIED'
846
+ | 'RECORD_LOCKED'
847
+ | 'IMMUTABLE'
848
+ | 'MANAGED_WRITE_RESTRICTED'
849
+ | 'DERIVED'
850
+ | 'MASKED'
851
+ | 'REFERENCE_UNAVAILABLE'
852
+ | null;
853
+
854
+ /**
855
+ * Whether a nonempty value is required by the field schema.
856
+ */
857
+ required: boolean;
858
+
859
+ /**
860
+ * Selected values from options. An empty selection is [] with value_state EMPTY;
861
+ * null when unset or masked.
862
+ */
863
+ value: Array<string> | null;
864
+
865
+ /**
866
+ * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
867
+ * an empty string, or an empty array; MASKED when access to the field or a
868
+ * referenced value is restricted; or UNSUPPORTED when the endpoint does not
869
+ * represent the value. UNSUPPORTED does not determine edit permission.
870
+ */
871
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
872
+
873
+ /**
874
+ * Whether you can read this record's field. A referenced record may have separate
875
+ * access restrictions.
876
+ */
877
+ viewable: boolean;
878
+
879
+ /**
880
+ * Object-graph/RQL target name for a supported reference, such as Employee,
881
+ * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
882
+ * fields and unsupported reference targets.
883
+ */
884
+ reference_object?: string | null;
885
+ }
886
+
887
+ /**
888
+ * A discoverable record field and the caller's read and write capabilities.
889
+ */
890
+ export interface DetailReferenceField {
891
+ /**
892
+ * Field key used by layout placements and canonical record PATCH changes. Direct
893
+ * keys come from the Custom Object field definition; dotted related keys are
894
+ * read-only.
895
+ */
896
+ api_name: string;
897
+
898
+ /**
899
+ * OG_REFERENCE_FIELD identifies a reference to the object named by
900
+ * reference_object, including owner_role, created_by, and last_modified_by fields.
901
+ */
902
+ data_type: 'OG_REFERENCE_FIELD';
903
+
904
+ /**
905
+ * Whether you can attempt to update this field through the API. This does not
906
+ * grant permission to browse reference targets; submitted reference identifiers
907
+ * are validated when written.
908
+ */
909
+ editable: boolean;
910
+
911
+ /**
912
+ * Field display name.
913
+ */
914
+ label: string;
915
+
916
+ /**
917
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
918
+ * and scalar references.
919
+ */
920
+ multiple: boolean;
921
+
922
+ /**
923
+ * Configured choice values; empty for non-choice fields.
924
+ */
925
+ options: Array<string>;
926
+
927
+ /**
928
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
929
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
930
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
931
+ * value), DERIVED (calculated value), MASKED (restricted value),
932
+ * REFERENCE_UNAVAILABLE (unavailable reference target).
933
+ */
934
+ read_only_reason:
935
+ | 'PERMISSION_DENIED'
936
+ | 'RECORD_LOCKED'
937
+ | 'IMMUTABLE'
938
+ | 'MANAGED_WRITE_RESTRICTED'
939
+ | 'DERIVED'
940
+ | 'MASKED'
941
+ | 'REFERENCE_UNAVAILABLE'
942
+ | null;
943
+
944
+ /**
945
+ * Whether a nonempty value is required by the field schema.
946
+ */
947
+ required: boolean;
948
+
949
+ /**
950
+ * Selected record identifier in the reference_object target; null when empty or
951
+ * masked. Use the Workers GET endpoint for Employee or RoleWithCompany targets, or
952
+ * the Custom Object record GET endpoint for Custom Object targets.
953
+ */
954
+ value: string | null;
955
+
956
+ /**
957
+ * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
958
+ * an empty string, or an empty array; MASKED when access to the field or a
959
+ * referenced value is restricted; or UNSUPPORTED when the endpoint does not
960
+ * represent the value. UNSUPPORTED does not determine edit permission.
961
+ */
962
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
963
+
964
+ /**
965
+ * Whether you can read this record's field. A referenced record may have separate
966
+ * access restrictions.
967
+ */
968
+ viewable: boolean;
969
+
970
+ /**
971
+ * Permitted presentation of the selection, or null when unavailable. Empty and
972
+ * masked references have no presentation.
973
+ */
974
+ display?: DetailReferenceField.ReferenceDisplay | null;
975
+
976
+ /**
977
+ * Object-graph/RQL target name for a supported reference, such as Employee,
978
+ * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
979
+ * fields and unsupported reference targets.
980
+ */
981
+ reference_object?: string | null;
982
+ }
983
+
984
+ export namespace DetailReferenceField {
985
+ /**
986
+ * Optional presentation of a readable reference, independent of its identifier.
987
+ */
988
+ export interface ReferenceDisplay {
989
+ /**
990
+ * Permitted display label; never synthesized from the identifier.
991
+ */
992
+ label: string;
993
+
994
+ /**
995
+ * Permitted image URL, or null when unavailable.
996
+ */
997
+ image_url?: string | null;
998
+
999
+ /**
1000
+ * Permitted secondary text, or null when unavailable.
1001
+ */
1002
+ secondary_label?: string | null;
1003
+ }
1004
+ }
1005
+
1006
+ /**
1007
+ * A discoverable record field and the caller's read and write capabilities.
1008
+ */
1009
+ export interface DetailNativeReferenceField {
1010
+ /**
1011
+ * Field key used by layout placements and canonical record PATCH changes. Direct
1012
+ * keys come from the Custom Object field definition; dotted related keys are
1013
+ * read-only.
1014
+ */
1015
+ api_name: string;
1016
+
1017
+ /**
1018
+ * NATIVE_EDGE identifies a relationship using the same selected identifier and
1019
+ * optional presentation contract.
1020
+ */
1021
+ data_type: 'NATIVE_EDGE';
1022
+
1023
+ /**
1024
+ * Whether you can attempt to update this field through the API. This does not
1025
+ * grant permission to browse reference targets; submitted reference identifiers
1026
+ * are validated when written.
1027
+ */
1028
+ editable: boolean;
1029
+
1030
+ /**
1031
+ * Field display name.
1032
+ */
1033
+ label: string;
1034
+
1035
+ /**
1036
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
1037
+ * and scalar references.
1038
+ */
1039
+ multiple: boolean;
1040
+
1041
+ /**
1042
+ * Configured choice values; empty for non-choice fields.
1043
+ */
1044
+ options: Array<string>;
1045
+
1046
+ /**
1047
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
1048
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
1049
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
1050
+ * value), DERIVED (calculated value), MASKED (restricted value),
1051
+ * REFERENCE_UNAVAILABLE (unavailable reference target).
1052
+ */
1053
+ read_only_reason:
1054
+ | 'PERMISSION_DENIED'
1055
+ | 'RECORD_LOCKED'
1056
+ | 'IMMUTABLE'
1057
+ | 'MANAGED_WRITE_RESTRICTED'
1058
+ | 'DERIVED'
1059
+ | 'MASKED'
1060
+ | 'REFERENCE_UNAVAILABLE'
1061
+ | null;
1062
+
1063
+ /**
1064
+ * Whether a nonempty value is required by the field schema.
1065
+ */
1066
+ required: boolean;
1067
+
1068
+ /**
1069
+ * Selected record identifier in the reference_object target; null when empty or
1070
+ * masked. Use the Workers GET endpoint for Employee or RoleWithCompany targets, or
1071
+ * the Custom Object record GET endpoint for Custom Object targets.
1072
+ */
1073
+ value: string | null;
1074
+
1075
+ /**
1076
+ * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
1077
+ * an empty string, or an empty array; MASKED when access to the field or a
1078
+ * referenced value is restricted; or UNSUPPORTED when the endpoint does not
1079
+ * represent the value. UNSUPPORTED does not determine edit permission.
1080
+ */
1081
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
1082
+
1083
+ /**
1084
+ * Whether you can read this record's field. A referenced record may have separate
1085
+ * access restrictions.
1086
+ */
1087
+ viewable: boolean;
1088
+
1089
+ /**
1090
+ * Permitted presentation of the selection, or null when unavailable. Empty and
1091
+ * masked references have no presentation.
1092
+ */
1093
+ display?: DetailNativeReferenceField.ReferenceDisplay | null;
1094
+
1095
+ /**
1096
+ * Object-graph/RQL target name for a supported reference, such as Employee,
1097
+ * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
1098
+ * fields and unsupported reference targets.
1099
+ */
1100
+ reference_object?: string | null;
1101
+ }
1102
+
1103
+ export namespace DetailNativeReferenceField {
1104
+ /**
1105
+ * Optional presentation of a readable reference, independent of its identifier.
1106
+ */
1107
+ export interface ReferenceDisplay {
1108
+ /**
1109
+ * Permitted display label; never synthesized from the identifier.
1110
+ */
1111
+ label: string;
1112
+
1113
+ /**
1114
+ * Permitted image URL, or null when unavailable.
1115
+ */
1116
+ image_url?: string | null;
1117
+
1118
+ /**
1119
+ * Permitted secondary text, or null when unavailable.
1120
+ */
1121
+ secondary_label?: string | null;
1122
+ }
1123
+ }
1124
+
1125
+ /**
1126
+ * A discoverable record field and the caller's read and write capabilities.
1127
+ */
1128
+ export interface DetailPercentageField {
1129
+ /**
1130
+ * Field key used by layout placements and canonical record PATCH changes. Direct
1131
+ * keys come from the Custom Object field definition; dotted related keys are
1132
+ * read-only.
1133
+ */
1134
+ api_name: string;
1135
+
1136
+ /**
1137
+ * PERCENTAGE contains a decimal ratio, where 1 means 100%.
1138
+ */
1139
+ data_type: 'PERCENTAGE';
1140
+
1141
+ /**
1142
+ * Whether you can attempt to update this field through the API. This does not
1143
+ * grant permission to browse reference targets; submitted reference identifiers
1144
+ * are validated when written.
1145
+ */
1146
+ editable: boolean;
1147
+
1148
+ /**
1149
+ * Field display name.
1150
+ */
1151
+ label: string;
1152
+
1153
+ /**
1154
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
1155
+ * and scalar references.
1156
+ */
1157
+ multiple: boolean;
1158
+
1159
+ /**
1160
+ * Configured choice values; empty for non-choice fields.
1161
+ */
1162
+ options: Array<string>;
1163
+
1164
+ /**
1165
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
1166
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
1167
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
1168
+ * value), DERIVED (calculated value), MASKED (restricted value),
1169
+ * REFERENCE_UNAVAILABLE (unavailable reference target).
1170
+ */
1171
+ read_only_reason:
1172
+ | 'PERMISSION_DENIED'
1173
+ | 'RECORD_LOCKED'
1174
+ | 'IMMUTABLE'
1175
+ | 'MANAGED_WRITE_RESTRICTED'
1176
+ | 'DERIVED'
1177
+ | 'MASKED'
1178
+ | 'REFERENCE_UNAVAILABLE'
1179
+ | null;
1180
+
1181
+ /**
1182
+ * Whether a nonempty value is required by the field schema.
1183
+ */
1184
+ required: boolean;
1185
+
1186
+ /**
1187
+ * JSON number containing a decimal ratio without a percent sign: 0, 0.3, 1 and 1.5
1188
+ * mean 0%, 30%, 100% and 150%. Null unless PRESENT.
1189
+ */
1190
+ value: number | null;
1191
+
1192
+ /**
1193
+ * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
1194
+ * an empty string, or an empty array; MASKED when access to the field or a
1195
+ * referenced value is restricted; or UNSUPPORTED when the endpoint does not
1196
+ * represent the value. UNSUPPORTED does not determine edit permission.
1197
+ */
1198
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
1199
+
1200
+ /**
1201
+ * Whether you can read this record's field. A referenced record may have separate
1202
+ * access restrictions.
1203
+ */
1204
+ viewable: boolean;
1205
+
1206
+ /**
1207
+ * Object-graph/RQL target name for a supported reference, such as Employee,
1208
+ * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
1209
+ * fields and unsupported reference targets.
1210
+ */
1211
+ reference_object?: string | null;
1212
+ }
1213
+
1214
+ /**
1215
+ * A discoverable record field and the caller's read and write capabilities.
1216
+ */
1217
+ export interface DetailTimeField {
1218
+ /**
1219
+ * Field key used by layout placements and canonical record PATCH changes. Direct
1220
+ * keys come from the Custom Object field definition; dotted related keys are
1221
+ * read-only.
1222
+ */
1223
+ api_name: string;
1224
+
1225
+ /**
1226
+ * TIME contains a time of day.
1227
+ */
1228
+ data_type: 'TIME';
1229
+
1230
+ /**
1231
+ * Whether you can attempt to update this field through the API. This does not
1232
+ * grant permission to browse reference targets; submitted reference identifiers
1233
+ * are validated when written.
1234
+ */
1235
+ editable: boolean;
1236
+
1237
+ /**
1238
+ * Field display name.
1239
+ */
1240
+ label: string;
1241
+
1242
+ /**
1243
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
1244
+ * and scalar references.
1245
+ */
1246
+ multiple: boolean;
1247
+
1248
+ /**
1249
+ * Configured choice values; empty for non-choice fields.
1250
+ */
1251
+ options: Array<string>;
1252
+
1253
+ /**
1254
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
1255
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
1256
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
1257
+ * value), DERIVED (calculated value), MASKED (restricted value),
1258
+ * REFERENCE_UNAVAILABLE (unavailable reference target).
1259
+ */
1260
+ read_only_reason:
1261
+ | 'PERMISSION_DENIED'
1262
+ | 'RECORD_LOCKED'
1263
+ | 'IMMUTABLE'
1264
+ | 'MANAGED_WRITE_RESTRICTED'
1265
+ | 'DERIVED'
1266
+ | 'MASKED'
1267
+ | 'REFERENCE_UNAVAILABLE'
1268
+ | null;
1269
+
1270
+ /**
1271
+ * Whether a nonempty value is required by the field schema.
1272
+ */
1273
+ required: boolean;
1274
+
1275
+ /**
1276
+ * Time of day in HH:MM:SS format; null unless PRESENT.
1277
+ */
1278
+ value: string | null;
1279
+
1280
+ /**
1281
+ * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
1282
+ * an empty string, or an empty array; MASKED when access to the field or a
1283
+ * referenced value is restricted; or UNSUPPORTED when the endpoint does not
1284
+ * represent the value. UNSUPPORTED does not determine edit permission.
1285
+ */
1286
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
1287
+
1288
+ /**
1289
+ * Whether you can read this record's field. A referenced record may have separate
1290
+ * access restrictions.
1291
+ */
1292
+ viewable: boolean;
1293
+
1294
+ /**
1295
+ * Object-graph/RQL target name for a supported reference, such as Employee,
1296
+ * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
1297
+ * fields and unsupported reference targets.
1298
+ */
1299
+ reference_object?: string | null;
1300
+ }
1301
+
1302
+ /**
1303
+ * A discoverable record field and the caller's read and write capabilities.
1304
+ */
1305
+ export interface DetailUnsupportedField {
1306
+ /**
1307
+ * Field key used by layout placements and canonical record PATCH changes. Direct
1308
+ * keys come from the Custom Object field definition; dotted related keys are
1309
+ * read-only.
1310
+ */
1311
+ api_name: string;
1312
+
1313
+ /**
1314
+ * Field types whose values this endpoint does not currently represent. Edit
1315
+ * permission is evaluated independently of value representation.
1316
+ */
1317
+ data_type: 'ADDRESS' | 'REFERENCE_ID' | 'COORDINATE' | 'TIMESTAMPED_CURRENCY' | 'JSONB' | 'FILE';
1318
+
1319
+ /**
1320
+ * Whether you can attempt to update this field through the API. This does not
1321
+ * grant permission to browse reference targets; submitted reference identifiers
1322
+ * are validated when written.
1323
+ */
1324
+ editable: boolean;
1325
+
1326
+ /**
1327
+ * Field display name.
1328
+ */
1329
+ label: string;
1330
+
1331
+ /**
1332
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
1333
+ * and scalar references.
1334
+ */
1335
+ multiple: boolean;
1336
+
1337
+ /**
1338
+ * Configured choice values; empty for non-choice fields.
1339
+ */
1340
+ options: Array<string>;
1341
+
1342
+ /**
1343
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
1344
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
1345
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
1346
+ * value), DERIVED (calculated value), MASKED (restricted value),
1347
+ * REFERENCE_UNAVAILABLE (unavailable reference target).
1348
+ */
1349
+ read_only_reason:
1350
+ | 'PERMISSION_DENIED'
1351
+ | 'RECORD_LOCKED'
1352
+ | 'IMMUTABLE'
1353
+ | 'MANAGED_WRITE_RESTRICTED'
1354
+ | 'DERIVED'
1355
+ | 'MASKED'
1356
+ | 'REFERENCE_UNAVAILABLE'
1357
+ | null;
1358
+
1359
+ /**
1360
+ * Whether a nonempty value is required by the field schema.
1361
+ */
1362
+ required: boolean;
1363
+
1364
+ /**
1365
+ * Always null. UNSUPPORTED withholds the value representation; MASKED takes
1366
+ * precedence for a restricted value. Neither state grants write permission.
1367
+ */
1368
+ value: null;
1369
+
1370
+ /**
1371
+ * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
1372
+ * an empty string, or an empty array; MASKED when access to the field or a
1373
+ * referenced value is restricted; or UNSUPPORTED when the endpoint does not
1374
+ * represent the value. UNSUPPORTED does not determine edit permission.
1375
+ */
1376
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
1377
+
1378
+ /**
1379
+ * Whether you can read this record's field. A referenced record may have separate
1380
+ * access restrictions.
1381
+ */
1382
+ viewable: boolean;
1383
+
1384
+ /**
1385
+ * Object-graph/RQL target name for a supported reference, such as Employee,
1386
+ * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
1387
+ * fields and unsupported reference targets.
1388
+ */
1389
+ reference_object?: string | null;
1390
+ }
1391
+
1392
+ /**
1393
+ * Effective saved page layout.
1394
+ */
1395
+ export interface Layout {
1396
+ /**
1397
+ * Resolved saved layout API name.
1398
+ */
1399
+ api_name: string;
1400
+
1401
+ /**
1402
+ * Semantic record header.
1403
+ */
1404
+ header: Layout.Header;
1405
+
1406
+ /**
1407
+ * Opaque revision of the effective, permission-filtered layout. Compare to detect
1408
+ * layout changes; this is not the record write version.
1409
+ */
1410
+ revision: string;
1411
+
1412
+ /**
1413
+ * Ordered, visible tabs.
1414
+ */
1415
+ tabs: Array<Layout.Tab>;
1416
+ }
1417
+
1418
+ export namespace Layout {
1419
+ /**
1420
+ * Semantic record header.
1421
+ */
1422
+ export interface Header {
1423
+ /**
1424
+ * Ordered summary field API names.
1425
+ */
1426
+ fields: Array<string>;
1427
+
1428
+ /**
1429
+ * Description field API name, or null when unavailable.
1430
+ */
1431
+ description_field?: string | null;
1432
+
1433
+ /**
1434
+ * Title field API name, or null when unavailable.
1435
+ */
1436
+ title_field?: string | null;
1437
+ }
1438
+
1439
+ /**
1440
+ * Ordered, visible tab of sections in the effective record page layout.
1441
+ */
1442
+ export interface Tab {
1443
+ /**
1444
+ * Stable tab identifier.
1445
+ */
1446
+ id: string;
1447
+
1448
+ /**
1449
+ * Tab display name.
1450
+ */
1451
+ label: string;
1452
+
1453
+ /**
1454
+ * Ordered, visible sections.
1455
+ */
1456
+ sections: Array<Tab.Section>;
1457
+ }
1458
+
1459
+ export namespace Tab {
1460
+ /**
1461
+ * Visible group of field placements, a deferred related list, or explicitly
1462
+ * unsupported content.
1463
+ */
1464
+ export interface Section {
1465
+ /**
1466
+ * Section identifier scoped to the effective layout. Use a RELATED_LIST section's
1467
+ * records_link to retrieve its records.
1468
+ */
1469
+ id: string;
1470
+
1471
+ /**
1472
+ * Suggested field columns; clients may adapt to available space.
1473
+ */
1474
+ columns: number;
1475
+
1476
+ /**
1477
+ * Ordered placements for a FIELDS section. Empty for RELATED_LIST and UNSUPPORTED
1478
+ * sections.
1479
+ */
1480
+ fields: Array<Section.Field>;
1481
+
1482
+ /**
1483
+ * Section display name.
1484
+ */
1485
+ label: string;
1486
+
1487
+ /**
1488
+ * FIELDS contains ordered field placements; RELATED_LIST describes records loaded
1489
+ * through records_link; UNSUPPORTED identifies visible content this API cannot
1490
+ * render.
1491
+ */
1492
+ type: 'FIELDS' | 'RELATED_LIST' | 'UNSUPPORTED';
1493
+
1494
+ /**
1495
+ * Related Custom Object API name; null for other sections.
1496
+ */
1497
+ object_api_name?: string | null;
1498
+
1499
+ /**
1500
+ * CONTENT_NOT_SUPPORTED means this section requires a renderer outside this API;
1501
+ * RELATED_OBJECT_NOT_SUPPORTED means the related list targets a native object,
1502
+ * which this release cannot render. Null for supported field and Custom Object
1503
+ * related-list sections.
1504
+ */
1505
+ reason?: 'CONTENT_NOT_SUPPORTED' | 'RELATED_OBJECT_NOT_SUPPORTED' | null;
1506
+
1507
+ /**
1508
+ * Authorized related-record collection URL, including the resolved layout; null
1509
+ * for other sections.
1510
+ */
1511
+ records_link?: string | null;
1512
+ }
1513
+
1514
+ export namespace Section {
1515
+ /**
1516
+ * Placement of a discoverable field in a saved layout; contains no field value.
1517
+ */
1518
+ export interface Field {
1519
+ /**
1520
+ * Field API name in the response fields map.
1521
+ */
1522
+ field: string;
1523
+
1524
+ /**
1525
+ * Whether this placement is read-only.
1526
+ */
1527
+ read_only: boolean;
1528
+ }
1529
+ }
1530
+ }
1531
+ }
1532
+ }
1533
+
1534
+ export interface RecordDetailRetrieveParams {
1535
+ /**
1536
+ * Custom Object API name, such as equipment\_\_c. Obtain it from the Custom Object
1537
+ * definition or the grid's configured object.
1538
+ */
1539
+ object_api_name: string;
1540
+
1541
+ /**
1542
+ * Select the saved Custom Object page layout by API name. Omit to use default.
1543
+ * Keep the resolved layout.api_name from the detail response when loading related
1544
+ * sections.
1545
+ */
1546
+ layout_api_name?: string;
1547
+ }
1548
+
1549
+ export declare namespace RecordDetails {
1550
+ export {
1551
+ type RecordDetailRetrieveResponse as RecordDetailRetrieveResponse,
1552
+ type RecordDetailRetrieveParams as RecordDetailRetrieveParams,
1553
+ };
1554
+ }