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

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 (579) 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 +110 -0
  450. package/resources/record-detail-reference-options.d.mts.map +1 -0
  451. package/resources/record-detail-reference-options.d.ts +110 -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 +1129 -0
  458. package/resources/record-detail-related-records.d.mts.map +1 -0
  459. package/resources/record-detail-related-records.d.ts +1129 -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 +2621 -0
  466. package/resources/record-details.d.mts.map +1 -0
  467. package/resources/record-details.d.ts +2621 -0
  468. package/resources/record-details.d.ts.map +1 -0
  469. package/resources/record-details.js +141 -0
  470. package/resources/record-details.js.map +1 -0
  471. package/resources/record-details.mjs +137 -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/resources/worker-changes.d.mts +65 -10
  498. package/resources/worker-changes.d.mts.map +1 -1
  499. package/resources/worker-changes.d.ts +65 -10
  500. package/resources/worker-changes.d.ts.map +1 -1
  501. package/resources/worker-changes.js +3 -0
  502. package/resources/worker-changes.js.map +1 -1
  503. package/resources/worker-changes.mjs +3 -0
  504. package/resources/worker-changes.mjs.map +1 -1
  505. package/src/client.ts +160 -17
  506. package/src/core/platform/custom-objects/manager.ts +65 -42
  507. package/src/core/platform/custom-objects.ts +3 -0
  508. package/src/lib/manifest/acp-agent.ts +7 -1
  509. package/src/lib/manifest/definitions/_object-records.ts +17 -10
  510. package/src/lib/manifest/definitions/custom-object.ts +14 -9
  511. package/src/resources/activity-log.ts +1 -1
  512. package/src/resources/agents/sessions/messages.ts +10 -1
  513. package/src/resources/agents/sessions/sessions.ts +30 -3
  514. package/src/resources/bills.ts +1660 -0
  515. package/src/resources/card-transactions.ts +742 -49
  516. package/src/resources/custom-objects/custom-objects.ts +62 -2
  517. package/src/resources/custom-objects/fields.ts +44 -0
  518. package/src/resources/custom-objects/index.ts +13 -1
  519. package/src/resources/custom-objects/list-views/capabilities.ts +72 -0
  520. package/src/resources/custom-objects/list-views/default.ts +87 -0
  521. package/src/resources/custom-objects/list-views/index.ts +15 -0
  522. package/src/resources/custom-objects/list-views/list-views.ts +973 -0
  523. package/src/resources/custom-objects/list-views.ts +3 -0
  524. package/src/resources/custom-objects/records/capabilities.ts +73 -0
  525. package/src/resources/custom-objects/records/index.ts +21 -0
  526. package/src/resources/custom-objects/records/records.ts +955 -0
  527. package/src/resources/custom-objects/records.ts +1 -703
  528. package/src/resources/devices.ts +2 -0
  529. package/src/resources/draft-transitions.ts +276 -347
  530. package/src/resources/employee-documents.ts +2 -2
  531. package/src/resources/{spend-categories.ts → finance-categories.ts} +26 -23
  532. package/src/resources/finance-vendors.ts +191 -0
  533. package/src/resources/functions/executions.ts +4 -1
  534. package/src/resources/functions/functions.ts +216 -4
  535. package/src/resources/hire-requirements.ts +107 -9
  536. package/src/resources/hires.ts +1768 -539
  537. package/src/resources/index.ts +53 -7
  538. package/src/resources/leave-requests.ts +11 -2
  539. package/src/resources/object-categories.ts +2 -1
  540. package/src/resources/package-components/extract.ts +139 -0
  541. package/src/resources/package-components/index.ts +10 -0
  542. package/src/resources/package-components/package-components.ts +134 -0
  543. package/src/resources/package-components/types.ts +64 -0
  544. package/src/resources/package-components.ts +3 -0
  545. package/src/resources/package-installs.ts +120 -9
  546. package/src/resources/package-managed-installs.ts +146 -7
  547. package/src/resources/package-manifests/index.ts +5 -0
  548. package/src/resources/package-manifests/package-manifests.ts +21 -0
  549. package/src/resources/package-manifests/packages/index.ts +4 -0
  550. package/src/resources/package-manifests/packages/packages.ts +19 -0
  551. package/src/resources/package-manifests/packages/versions.ts +237 -0
  552. package/src/resources/package-manifests/packages.ts +3 -0
  553. package/src/resources/package-manifests/versions.ts +96 -0
  554. package/src/resources/package-manifests.ts +3 -0
  555. package/src/resources/package-versions/package-versions.ts +117 -14
  556. package/src/resources/package-versions/publish.ts +46 -4
  557. package/src/resources/packages/next-versions.ts +46 -4
  558. package/src/resources/packages/versions.ts +92 -9
  559. package/src/resources/payroll-runs/off-cycle.ts +17 -9
  560. package/src/resources/permissions/index.ts +4 -0
  561. package/src/resources/permissions/permission-profiles.ts +50 -0
  562. package/src/resources/permissions/permissions.ts +20 -0
  563. package/src/resources/permissions.ts +3 -0
  564. package/src/resources/record-detail-reference-options.ts +141 -0
  565. package/src/resources/record-detail-related-records.ts +1457 -0
  566. package/src/resources/record-details.ts +3316 -0
  567. package/src/resources/reimbursements.ts +2591 -126
  568. package/src/resources/report-runs.ts +2 -1
  569. package/src/resources/sandboxes.ts +48 -742
  570. package/src/resources/worker-changes.ts +71 -10
  571. package/src/version.ts +1 -1
  572. package/version.d.mts +1 -1
  573. package/version.d.ts +1 -1
  574. package/version.js +1 -1
  575. package/version.mjs +1 -1
  576. package/resources/spend-categories.d.mts.map +0 -1
  577. package/resources/spend-categories.d.ts.map +0 -1
  578. package/resources/spend-categories.js.map +0 -1
  579. package/resources/spend-categories.mjs.map +0 -1
@@ -0,0 +1,3316 @@
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 sections describe the target object, relationship field, and
21
+ * configured columns without embedding row contents. Metadata-administration
22
+ * scopes are not required. Masked values contain no raw data. Values use the
23
+ * formats documented by data_type. References contain a scalar identifier and
24
+ * optional permitted display, not an expanded resource.
25
+ *
26
+ * @example HTTP
27
+ * Representative request and response shapes.
28
+ * ```
29
+ * GET /record-details/{record_id}/?object_api_name=object_api_name&layout_api_name=default HTTP/1.1
30
+ * Host: rest.ripplingapis.com
31
+ * Accept: application/json
32
+ * Rippling-Api-Version: 2024-08-01
33
+ *
34
+ * HTTP/1.1 200 OK
35
+ * Content-Type: application/json
36
+ *
37
+ * {
38
+ * "id": "string",
39
+ * "object_api_name": "string",
40
+ * "updated_at": "2025-01-01T00:00:00Z",
41
+ * "capabilities": {
42
+ * "editable": false,
43
+ * "deletable": false,
44
+ * "locked": false
45
+ * },
46
+ * "layout": {
47
+ * "api_name": "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
+ * "actions": [
65
+ * {
66
+ * "id": "string",
67
+ * "api_name": "string",
68
+ * "name": "string",
69
+ * "function_api_name": "string",
70
+ * "visibility_preferences": [
71
+ * "LIST_VIEW"
72
+ * ]
73
+ * }
74
+ * ]
75
+ * }
76
+ * ```
77
+ */
78
+ retrieve(
79
+ recordID: string,
80
+ query: RecordDetailRetrieveParams,
81
+ options?: RequestOptions,
82
+ ): APIPromise<RecordDetailRetrieveResponse> {
83
+ return this._client.get(path`/record-details/${recordID}/`, { query, ...options });
84
+ }
85
+
86
+ /**
87
+ * Retrieves one permissioned, singular, nonpaginated Create context without
88
+ * persisting a record.
89
+ *
90
+ * @example HTTP
91
+ * Representative request and response shapes.
92
+ * ```
93
+ * GET /record-details/?object_api_name=object_api_name&layout_api_name=default HTTP/1.1
94
+ * Host: rest.ripplingapis.com
95
+ * Accept: application/json
96
+ * Rippling-Api-Version: 2024-08-01
97
+ *
98
+ * HTTP/1.1 200 OK
99
+ * Content-Type: application/json
100
+ *
101
+ * {
102
+ * "object_api_name": "string",
103
+ * "layout": {
104
+ * "api_name": "string",
105
+ * "header": {
106
+ * "title_field": "string",
107
+ * "description_field": "string",
108
+ * "fields": [
109
+ * "string"
110
+ * ]
111
+ * },
112
+ * "tabs": [
113
+ * {
114
+ * "id": "string",
115
+ * "label": "string",
116
+ * "sections": []
117
+ * }
118
+ * ]
119
+ * },
120
+ * "fields": {},
121
+ * "blockers": [
122
+ * {
123
+ * "code": "REQUIRED_INPUT_UNAVAILABLE",
124
+ * "field_api_name": "string",
125
+ * "message": "string"
126
+ * }
127
+ * ],
128
+ * "actions": [
129
+ * {
130
+ * "id": "string",
131
+ * "api_name": "string",
132
+ * "name": "string",
133
+ * "function_api_name": "string",
134
+ * "visibility_preferences": [
135
+ * "LIST_VIEW"
136
+ * ]
137
+ * }
138
+ * ]
139
+ * }
140
+ * ```
141
+ */
142
+ retrieveCreate(
143
+ query: RecordDetailRetrieveCreateParams,
144
+ options?: RequestOptions,
145
+ ): APIPromise<RecordDetailRetrieveCreateResponse> {
146
+ return this._client.get('/record-details/', { query, ...options });
147
+ }
148
+ }
149
+
150
+ /**
151
+ * Record values, edit capabilities, and the effective page layout for one readable
152
+ * Custom Object record.
153
+ */
154
+ export interface RecordDetailRetrieveResponse {
155
+ /**
156
+ * Stable record identifier returned by the canonical Custom Object record list or
157
+ * query endpoint. Use it with object_api_name for canonical record GET and PATCH.
158
+ */
159
+ id: string;
160
+
161
+ /**
162
+ * Complete authorized DETAIL_VIEW actions. Function execution and execution reads
163
+ * remain separately authorized.
164
+ */
165
+ actions: Array<RecordDetailRetrieveResponse.Action>;
166
+
167
+ /**
168
+ * Permissions and lock state for this caller.
169
+ */
170
+ capabilities: RecordDetailRetrieveResponse.Capabilities;
171
+
172
+ /**
173
+ * Discoverable direct fields plus read-only related fields used by the layout.
174
+ * Each value is the saved value loaded for this record. Unreadable fields retain
175
+ * metadata and layout placements with a null, MASKED value.
176
+ */
177
+ fields: {
178
+ [key: string]:
179
+ | RecordDetailRetrieveResponse.DetailTextField
180
+ | RecordDetailRetrieveResponse.DetailNumberField
181
+ | RecordDetailRetrieveResponse.DetailBooleanField
182
+ | RecordDetailRetrieveResponse.DetailDateField
183
+ | RecordDetailRetrieveResponse.DetailDateTimeField
184
+ | RecordDetailRetrieveResponse.DetailCurrencyField
185
+ | RecordDetailRetrieveResponse.DetailChoiceField
186
+ | RecordDetailRetrieveResponse.DetailMultiChoiceField
187
+ | RecordDetailRetrieveResponse.DetailReferenceField
188
+ | RecordDetailRetrieveResponse.DetailNativeReferenceField
189
+ | RecordDetailRetrieveResponse.DetailPercentageField
190
+ | RecordDetailRetrieveResponse.DetailTimeField
191
+ | RecordDetailRetrieveResponse.DetailUnsupportedField;
192
+ };
193
+
194
+ /**
195
+ * Effective saved page layout.
196
+ */
197
+ layout: RecordDetailRetrieveResponse.Layout;
198
+
199
+ /**
200
+ * Custom Object API name, such as equipment\_\_c, used to address this record's
201
+ * collection. Obtain it from the Custom Object definition or grid configuration.
202
+ */
203
+ object_api_name: string;
204
+
205
+ /**
206
+ * ISO 8601 UTC timestamp of the loaded record version. Pass this exact value as
207
+ * lock_update_time in the canonical record PATCH to detect stale writes.
208
+ */
209
+ updated_at: string;
210
+ }
211
+
212
+ export namespace RecordDetailRetrieveResponse {
213
+ /**
214
+ * A configured action the caller can attempt through the existing Function
215
+ * execution API.
216
+ */
217
+ export interface Action {
218
+ /**
219
+ * Stable native ObjectAction identifier.
220
+ */
221
+ id: string;
222
+
223
+ /**
224
+ * Action API name; null for legacy actions.
225
+ */
226
+ api_name: string | null;
227
+
228
+ /**
229
+ * Associated Function API name for the unchanged Function execution endpoints.
230
+ * Discovery does not grant execution or execution-read permission.
231
+ */
232
+ function_api_name: string;
233
+
234
+ /**
235
+ * Action display label.
236
+ */
237
+ name: string;
238
+
239
+ /**
240
+ * Configured action placements: LIST_VIEW appears in an object grid; DETAIL_VIEW
241
+ * appears on a record page.
242
+ */
243
+ visibility_preferences: Array<'LIST_VIEW' | 'DETAIL_VIEW'>;
244
+ }
245
+
246
+ /**
247
+ * Permissions and lock state for this caller.
248
+ */
249
+ export interface Capabilities {
250
+ /**
251
+ * Whether you can attempt to delete this record through the API. Validation,
252
+ * business rules, or approvals may still prevent or defer deletion.
253
+ */
254
+ deletable: boolean;
255
+
256
+ /**
257
+ * Whether at least one field represented in this response can be updated through
258
+ * the API.
259
+ */
260
+ editable: boolean;
261
+
262
+ /**
263
+ * Whether an approval or business process has locked this record for writes. A
264
+ * pending approval does not necessarily lock a record.
265
+ */
266
+ locked: boolean;
267
+ }
268
+
269
+ /**
270
+ * A discoverable field and its initial value and capabilities for the requested
271
+ * flow.
272
+ */
273
+ export interface DetailTextField {
274
+ /**
275
+ * Field key used by layout placements and canonical record PATCH changes. Direct
276
+ * keys come from the Custom Object field definition; dotted related keys are
277
+ * read-only.
278
+ */
279
+ api_name: string;
280
+
281
+ /**
282
+ * TEXT and LONG_TEXT contain text; EMAIL, URL, and PHONE_NUMBER contain their
283
+ * respective textual values.
284
+ */
285
+ data_type: 'TEXT' | 'LONG_TEXT' | 'EMAIL' | 'URL' | 'PHONE_NUMBER';
286
+
287
+ /**
288
+ * Whether you can attempt to supply or change this field through the canonical
289
+ * write API for the requested flow. This does not grant permission to browse
290
+ * reference targets; submitted reference identifiers are validated when written.
291
+ */
292
+ editable: boolean;
293
+
294
+ /**
295
+ * Field display name.
296
+ */
297
+ label: string;
298
+
299
+ /**
300
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
301
+ * and scalar references.
302
+ */
303
+ multiple: boolean;
304
+
305
+ /**
306
+ * Configured choice values; empty for non-choice fields.
307
+ */
308
+ options: Array<string>;
309
+
310
+ /**
311
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
312
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
313
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
314
+ * value), DERIVED (calculated value), MASKED (restricted value),
315
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
316
+ * by this requested flow).
317
+ */
318
+ read_only_reason:
319
+ | 'PERMISSION_DENIED'
320
+ | 'RECORD_LOCKED'
321
+ | 'IMMUTABLE'
322
+ | 'MANAGED_WRITE_RESTRICTED'
323
+ | 'DERIVED'
324
+ | 'MASKED'
325
+ | 'REFERENCE_UNAVAILABLE'
326
+ | 'UNSUPPORTED'
327
+ | null;
328
+
329
+ /**
330
+ * Whether a nonempty value is required by the field schema.
331
+ */
332
+ required: boolean;
333
+
334
+ /**
335
+ * Readable text, including an empty string with value_state EMPTY; null when unset
336
+ * or masked.
337
+ */
338
+ value: string | null;
339
+
340
+ /**
341
+ * State of the value supplied for this requested flow: PRESENT for a readable
342
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
343
+ * empty array; MASKED when access to the field or a referenced value is
344
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
345
+ * UNSUPPORTED does not determine edit permission.
346
+ */
347
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
348
+
349
+ /**
350
+ * Whether the field value supplied for this requested flow is readable. Create
351
+ * responses describe only an authorized initial value and do not grant access to
352
+ * any existing record. A referenced record may have separate access restrictions.
353
+ */
354
+ viewable: boolean;
355
+
356
+ /**
357
+ * Maximum accepted characters, or null when unbounded.
358
+ */
359
+ max_length?: number | null;
360
+
361
+ /**
362
+ * Target name for a supported reference: Employee or a Custom Object API name
363
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
364
+ */
365
+ reference_object?: string | null;
366
+ }
367
+
368
+ /**
369
+ * A discoverable field and its initial value and capabilities for the requested
370
+ * flow.
371
+ */
372
+ export interface DetailNumberField {
373
+ /**
374
+ * Field key used by layout placements and canonical record PATCH changes. Direct
375
+ * keys come from the Custom Object field definition; dotted related keys are
376
+ * read-only.
377
+ */
378
+ api_name: string;
379
+
380
+ /**
381
+ * NUMBER contains a decimal quantity.
382
+ */
383
+ data_type: 'NUMBER';
384
+
385
+ /**
386
+ * Whether you can attempt to supply or change this field through the canonical
387
+ * write API for the requested flow. This does not grant permission to browse
388
+ * reference targets; submitted reference identifiers are validated when written.
389
+ */
390
+ editable: boolean;
391
+
392
+ /**
393
+ * Field display name.
394
+ */
395
+ label: string;
396
+
397
+ /**
398
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
399
+ * and scalar references.
400
+ */
401
+ multiple: boolean;
402
+
403
+ /**
404
+ * Configured choice values; empty for non-choice fields.
405
+ */
406
+ options: Array<string>;
407
+
408
+ /**
409
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
410
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
411
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
412
+ * value), DERIVED (calculated value), MASKED (restricted value),
413
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
414
+ * by this requested flow).
415
+ */
416
+ read_only_reason:
417
+ | 'PERMISSION_DENIED'
418
+ | 'RECORD_LOCKED'
419
+ | 'IMMUTABLE'
420
+ | 'MANAGED_WRITE_RESTRICTED'
421
+ | 'DERIVED'
422
+ | 'MASKED'
423
+ | 'REFERENCE_UNAVAILABLE'
424
+ | 'UNSUPPORTED'
425
+ | null;
426
+
427
+ /**
428
+ * Whether a nonempty value is required by the field schema.
429
+ */
430
+ required: boolean;
431
+
432
+ /**
433
+ * Decimal quantity encoded as a string to preserve precision, for example 12.50.
434
+ * Units follow the configured field's meaning. Null unless value_state is PRESENT.
435
+ */
436
+ value: string | null;
437
+
438
+ /**
439
+ * State of the value supplied for this requested flow: PRESENT for a readable
440
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
441
+ * empty array; MASKED when access to the field or a referenced value is
442
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
443
+ * UNSUPPORTED does not determine edit permission.
444
+ */
445
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
446
+
447
+ /**
448
+ * Whether the field value supplied for this requested flow is readable. Create
449
+ * responses describe only an authorized initial value and do not grant access to
450
+ * any existing record. A referenced record may have separate access restrictions.
451
+ */
452
+ viewable: boolean;
453
+
454
+ /**
455
+ * Configured decimal places, or null.
456
+ */
457
+ num_of_decimal_places?: number | null;
458
+
459
+ /**
460
+ * Target name for a supported reference: Employee or a Custom Object API name
461
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
462
+ */
463
+ reference_object?: string | null;
464
+ }
465
+
466
+ /**
467
+ * A discoverable field and its initial value and capabilities for the requested
468
+ * flow.
469
+ */
470
+ export interface DetailBooleanField {
471
+ /**
472
+ * Field key used by layout placements and canonical record PATCH changes. Direct
473
+ * keys come from the Custom Object field definition; dotted related keys are
474
+ * read-only.
475
+ */
476
+ api_name: string;
477
+
478
+ /**
479
+ * BOOLEAN contains true or false.
480
+ */
481
+ data_type: 'BOOLEAN';
482
+
483
+ /**
484
+ * Whether you can attempt to supply or change this field through the canonical
485
+ * write API for the requested flow. This does not grant permission to browse
486
+ * reference targets; submitted reference identifiers are validated when written.
487
+ */
488
+ editable: boolean;
489
+
490
+ /**
491
+ * Field display name.
492
+ */
493
+ label: string;
494
+
495
+ /**
496
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
497
+ * and scalar references.
498
+ */
499
+ multiple: boolean;
500
+
501
+ /**
502
+ * Configured choice values; empty for non-choice fields.
503
+ */
504
+ options: Array<string>;
505
+
506
+ /**
507
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
508
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
509
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
510
+ * value), DERIVED (calculated value), MASKED (restricted value),
511
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
512
+ * by this requested flow).
513
+ */
514
+ read_only_reason:
515
+ | 'PERMISSION_DENIED'
516
+ | 'RECORD_LOCKED'
517
+ | 'IMMUTABLE'
518
+ | 'MANAGED_WRITE_RESTRICTED'
519
+ | 'DERIVED'
520
+ | 'MASKED'
521
+ | 'REFERENCE_UNAVAILABLE'
522
+ | 'UNSUPPORTED'
523
+ | null;
524
+
525
+ /**
526
+ * Whether a nonempty value is required by the field schema.
527
+ */
528
+ required: boolean;
529
+
530
+ /**
531
+ * Whether the configured condition is true; null unless value_state is PRESENT.
532
+ */
533
+ value: boolean | null;
534
+
535
+ /**
536
+ * State of the value supplied for this requested flow: PRESENT for a readable
537
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
538
+ * empty array; MASKED when access to the field or a referenced value is
539
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
540
+ * UNSUPPORTED does not determine edit permission.
541
+ */
542
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
543
+
544
+ /**
545
+ * Whether the field value supplied for this requested flow is readable. Create
546
+ * responses describe only an authorized initial value and do not grant access to
547
+ * any existing record. A referenced record may have separate access restrictions.
548
+ */
549
+ viewable: boolean;
550
+
551
+ /**
552
+ * Target name for a supported reference: Employee or a Custom Object API name
553
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
554
+ */
555
+ reference_object?: string | null;
556
+ }
557
+
558
+ /**
559
+ * A discoverable field and its initial value and capabilities for the requested
560
+ * flow.
561
+ */
562
+ export interface DetailDateField {
563
+ /**
564
+ * Field key used by layout placements and canonical record PATCH changes. Direct
565
+ * keys come from the Custom Object field definition; dotted related keys are
566
+ * read-only.
567
+ */
568
+ api_name: string;
569
+
570
+ /**
571
+ * DATE contains a calendar date without a time or timezone.
572
+ */
573
+ data_type: 'DATE';
574
+
575
+ /**
576
+ * Whether you can attempt to supply or change this field through the canonical
577
+ * write API for the requested flow. This does not grant permission to browse
578
+ * reference targets; submitted reference identifiers are validated when written.
579
+ */
580
+ editable: boolean;
581
+
582
+ /**
583
+ * Field display name.
584
+ */
585
+ label: string;
586
+
587
+ /**
588
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
589
+ * and scalar references.
590
+ */
591
+ multiple: boolean;
592
+
593
+ /**
594
+ * Configured choice values; empty for non-choice fields.
595
+ */
596
+ options: Array<string>;
597
+
598
+ /**
599
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
600
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
601
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
602
+ * value), DERIVED (calculated value), MASKED (restricted value),
603
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
604
+ * by this requested flow).
605
+ */
606
+ read_only_reason:
607
+ | 'PERMISSION_DENIED'
608
+ | 'RECORD_LOCKED'
609
+ | 'IMMUTABLE'
610
+ | 'MANAGED_WRITE_RESTRICTED'
611
+ | 'DERIVED'
612
+ | 'MASKED'
613
+ | 'REFERENCE_UNAVAILABLE'
614
+ | 'UNSUPPORTED'
615
+ | null;
616
+
617
+ /**
618
+ * Whether a nonempty value is required by the field schema.
619
+ */
620
+ required: boolean;
621
+
622
+ /**
623
+ * Calendar date in YYYY-MM-DD format, for example 2026-10-24; null unless
624
+ * value_state is PRESENT.
625
+ */
626
+ value: string | null;
627
+
628
+ /**
629
+ * State of the value supplied for this requested flow: PRESENT for a readable
630
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
631
+ * empty array; MASKED when access to the field or a referenced value is
632
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
633
+ * UNSUPPORTED does not determine edit permission.
634
+ */
635
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
636
+
637
+ /**
638
+ * Whether the field value supplied for this requested flow is readable. Create
639
+ * responses describe only an authorized initial value and do not grant access to
640
+ * any existing record. A referenced record may have separate access restrictions.
641
+ */
642
+ viewable: boolean;
643
+
644
+ /**
645
+ * Target name for a supported reference: Employee or a Custom Object API name
646
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
647
+ */
648
+ reference_object?: string | null;
649
+ }
650
+
651
+ /**
652
+ * A discoverable field and its initial value and capabilities for the requested
653
+ * flow.
654
+ */
655
+ export interface DetailDateTimeField {
656
+ /**
657
+ * Field key used by layout placements and canonical record PATCH changes. Direct
658
+ * keys come from the Custom Object field definition; dotted related keys are
659
+ * read-only.
660
+ */
661
+ api_name: string;
662
+
663
+ /**
664
+ * DATETIME contains an instant with a timezone.
665
+ */
666
+ data_type: 'DATETIME';
667
+
668
+ /**
669
+ * Whether you can attempt to supply or change this field through the canonical
670
+ * write API for the requested flow. This does not grant permission to browse
671
+ * reference targets; submitted reference identifiers are validated when written.
672
+ */
673
+ editable: boolean;
674
+
675
+ /**
676
+ * Field display name.
677
+ */
678
+ label: string;
679
+
680
+ /**
681
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
682
+ * and scalar references.
683
+ */
684
+ multiple: boolean;
685
+
686
+ /**
687
+ * Configured choice values; empty for non-choice fields.
688
+ */
689
+ options: Array<string>;
690
+
691
+ /**
692
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
693
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
694
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
695
+ * value), DERIVED (calculated value), MASKED (restricted value),
696
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
697
+ * by this requested flow).
698
+ */
699
+ read_only_reason:
700
+ | 'PERMISSION_DENIED'
701
+ | 'RECORD_LOCKED'
702
+ | 'IMMUTABLE'
703
+ | 'MANAGED_WRITE_RESTRICTED'
704
+ | 'DERIVED'
705
+ | 'MASKED'
706
+ | 'REFERENCE_UNAVAILABLE'
707
+ | 'UNSUPPORTED'
708
+ | null;
709
+
710
+ /**
711
+ * Whether a nonempty value is required by the field schema.
712
+ */
713
+ required: boolean;
714
+
715
+ /**
716
+ * ISO 8601 timestamp with timezone and up to millisecond precision, matching
717
+ * native record JSON responses; null unless value_state is PRESENT. System audit
718
+ * timestamps are immutable.
719
+ */
720
+ value: string | null;
721
+
722
+ /**
723
+ * State of the value supplied for this requested flow: PRESENT for a readable
724
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
725
+ * empty array; MASKED when access to the field or a referenced value is
726
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
727
+ * UNSUPPORTED does not determine edit permission.
728
+ */
729
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
730
+
731
+ /**
732
+ * Whether the field value supplied for this requested flow is readable. Create
733
+ * responses describe only an authorized initial value and do not grant access to
734
+ * any existing record. A referenced record may have separate access restrictions.
735
+ */
736
+ viewable: boolean;
737
+
738
+ /**
739
+ * Target name for a supported reference: Employee or a Custom Object API name
740
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
741
+ */
742
+ reference_object?: string | null;
743
+ }
744
+
745
+ /**
746
+ * A discoverable field and its initial value and capabilities for the requested
747
+ * flow.
748
+ */
749
+ export interface DetailCurrencyField {
750
+ /**
751
+ * Field key used by layout placements and canonical record PATCH changes. Direct
752
+ * keys come from the Custom Object field definition; dotted related keys are
753
+ * read-only.
754
+ */
755
+ api_name: string;
756
+
757
+ /**
758
+ * CURRENCY contains a monetary amount and its currency.
759
+ */
760
+ data_type: 'CURRENCY';
761
+
762
+ /**
763
+ * Whether you can attempt to supply or change this field through the canonical
764
+ * write API for the requested flow. This does not grant permission to browse
765
+ * reference targets; submitted reference identifiers are validated when written.
766
+ */
767
+ editable: boolean;
768
+
769
+ /**
770
+ * Field display name.
771
+ */
772
+ label: string;
773
+
774
+ /**
775
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
776
+ * and scalar references.
777
+ */
778
+ multiple: boolean;
779
+
780
+ /**
781
+ * Configured choice values; empty for non-choice fields.
782
+ */
783
+ options: Array<string>;
784
+
785
+ /**
786
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
787
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
788
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
789
+ * value), DERIVED (calculated value), MASKED (restricted value),
790
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
791
+ * by this requested flow).
792
+ */
793
+ read_only_reason:
794
+ | 'PERMISSION_DENIED'
795
+ | 'RECORD_LOCKED'
796
+ | 'IMMUTABLE'
797
+ | 'MANAGED_WRITE_RESTRICTED'
798
+ | 'DERIVED'
799
+ | 'MASKED'
800
+ | 'REFERENCE_UNAVAILABLE'
801
+ | 'UNSUPPORTED'
802
+ | null;
803
+
804
+ /**
805
+ * Whether a nonempty value is required by the field schema.
806
+ */
807
+ required: boolean;
808
+
809
+ /**
810
+ * Currency object with an ISO 4217 currency_type and decimal-string value, for
811
+ * example {"currency_type": "USD", "value": "25.00"}. The amount is in currency
812
+ * units, not cents. Null unless value_state is PRESENT.
813
+ */
814
+ value: DetailCurrencyField.RecordDetailCurrency | null;
815
+
816
+ /**
817
+ * State of the value supplied for this requested flow: PRESENT for a readable
818
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
819
+ * empty array; MASKED when access to the field or a referenced value is
820
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
821
+ * UNSUPPORTED does not determine edit permission.
822
+ */
823
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
824
+
825
+ /**
826
+ * Whether the field value supplied for this requested flow is readable. Create
827
+ * responses describe only an authorized initial value and do not grant access to
828
+ * any existing record. A referenced record may have separate access restrictions.
829
+ */
830
+ viewable: boolean;
831
+
832
+ /**
833
+ * Configured ISO 4217 currency code, or null when dynamic.
834
+ */
835
+ currency?: string | null;
836
+
837
+ /**
838
+ * Configured decimal places, or null.
839
+ */
840
+ num_of_decimal_places?: number | null;
841
+
842
+ /**
843
+ * Target name for a supported reference: Employee or a Custom Object API name
844
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
845
+ */
846
+ reference_object?: string | null;
847
+ }
848
+
849
+ export namespace DetailCurrencyField {
850
+ /**
851
+ * Platform Currency serialized with a decimal string amount to preserve precision.
852
+ */
853
+ export interface RecordDetailCurrency {
854
+ /**
855
+ * ISO 4217 currency code, for example USD or EUR.
856
+ */
857
+ currency_type: string;
858
+
859
+ /**
860
+ * Decimal monetary amount in currency units, for example 25.00; not integer cents.
861
+ */
862
+ value: string;
863
+ }
864
+ }
865
+
866
+ /**
867
+ * A discoverable field and its initial value and capabilities for the requested
868
+ * flow.
869
+ */
870
+ export interface DetailChoiceField {
871
+ /**
872
+ * Field key used by layout placements and canonical record PATCH changes. Direct
873
+ * keys come from the Custom Object field definition; dotted related keys are
874
+ * read-only.
875
+ */
876
+ api_name: string;
877
+
878
+ /**
879
+ * RADIO contains one configured choice.
880
+ */
881
+ data_type: 'RADIO';
882
+
883
+ /**
884
+ * Whether you can attempt to supply or change this field through the canonical
885
+ * write API for the requested flow. This does not grant permission to browse
886
+ * reference targets; submitted reference identifiers are validated when written.
887
+ */
888
+ editable: boolean;
889
+
890
+ /**
891
+ * Field display name.
892
+ */
893
+ label: string;
894
+
895
+ /**
896
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
897
+ * and scalar references.
898
+ */
899
+ multiple: boolean;
900
+
901
+ /**
902
+ * Configured choice values; empty for non-choice fields.
903
+ */
904
+ options: Array<string>;
905
+
906
+ /**
907
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
908
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
909
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
910
+ * value), DERIVED (calculated value), MASKED (restricted value),
911
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
912
+ * by this requested flow).
913
+ */
914
+ read_only_reason:
915
+ | 'PERMISSION_DENIED'
916
+ | 'RECORD_LOCKED'
917
+ | 'IMMUTABLE'
918
+ | 'MANAGED_WRITE_RESTRICTED'
919
+ | 'DERIVED'
920
+ | 'MASKED'
921
+ | 'REFERENCE_UNAVAILABLE'
922
+ | 'UNSUPPORTED'
923
+ | null;
924
+
925
+ /**
926
+ * Whether a nonempty value is required by the field schema.
927
+ */
928
+ required: boolean;
929
+
930
+ /**
931
+ * One value from options, or an empty string with value_state EMPTY; null when
932
+ * unset or masked.
933
+ */
934
+ value: string | null;
935
+
936
+ /**
937
+ * State of the value supplied for this requested flow: PRESENT for a readable
938
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
939
+ * empty array; MASKED when access to the field or a referenced value is
940
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
941
+ * UNSUPPORTED does not determine edit permission.
942
+ */
943
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
944
+
945
+ /**
946
+ * Whether the field value supplied for this requested flow is readable. Create
947
+ * responses describe only an authorized initial value and do not grant access to
948
+ * any existing record. A referenced record may have separate access restrictions.
949
+ */
950
+ viewable: boolean;
951
+
952
+ /**
953
+ * Target name for a supported reference: Employee or a Custom Object API name
954
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
955
+ */
956
+ reference_object?: string | null;
957
+ }
958
+
959
+ /**
960
+ * A discoverable field and its initial value and capabilities for the requested
961
+ * flow.
962
+ */
963
+ export interface DetailMultiChoiceField {
964
+ /**
965
+ * Field key used by layout placements and canonical record PATCH changes. Direct
966
+ * keys come from the Custom Object field definition; dotted related keys are
967
+ * read-only.
968
+ */
969
+ api_name: string;
970
+
971
+ /**
972
+ * SELECT contains zero or more configured choices.
973
+ */
974
+ data_type: 'SELECT';
975
+
976
+ /**
977
+ * Whether you can attempt to supply or change this field through the canonical
978
+ * write API for the requested flow. This does not grant permission to browse
979
+ * reference targets; submitted reference identifiers are validated when written.
980
+ */
981
+ editable: boolean;
982
+
983
+ /**
984
+ * Field display name.
985
+ */
986
+ label: string;
987
+
988
+ /**
989
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
990
+ * and scalar references.
991
+ */
992
+ multiple: boolean;
993
+
994
+ /**
995
+ * Configured choice values; empty for non-choice fields.
996
+ */
997
+ options: Array<string>;
998
+
999
+ /**
1000
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
1001
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
1002
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
1003
+ * value), DERIVED (calculated value), MASKED (restricted value),
1004
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
1005
+ * by this requested flow).
1006
+ */
1007
+ read_only_reason:
1008
+ | 'PERMISSION_DENIED'
1009
+ | 'RECORD_LOCKED'
1010
+ | 'IMMUTABLE'
1011
+ | 'MANAGED_WRITE_RESTRICTED'
1012
+ | 'DERIVED'
1013
+ | 'MASKED'
1014
+ | 'REFERENCE_UNAVAILABLE'
1015
+ | 'UNSUPPORTED'
1016
+ | null;
1017
+
1018
+ /**
1019
+ * Whether a nonempty value is required by the field schema.
1020
+ */
1021
+ required: boolean;
1022
+
1023
+ /**
1024
+ * Selected values from options. An empty selection is [] with value_state EMPTY;
1025
+ * null when unset or masked.
1026
+ */
1027
+ value: Array<string> | null;
1028
+
1029
+ /**
1030
+ * State of the value supplied for this requested flow: PRESENT for a readable
1031
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
1032
+ * empty array; MASKED when access to the field or a referenced value is
1033
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
1034
+ * UNSUPPORTED does not determine edit permission.
1035
+ */
1036
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
1037
+
1038
+ /**
1039
+ * Whether the field value supplied for this requested flow is readable. Create
1040
+ * responses describe only an authorized initial value and do not grant access to
1041
+ * any existing record. A referenced record may have separate access restrictions.
1042
+ */
1043
+ viewable: boolean;
1044
+
1045
+ /**
1046
+ * Target name for a supported reference: Employee or a Custom Object API name
1047
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
1048
+ */
1049
+ reference_object?: string | null;
1050
+ }
1051
+
1052
+ /**
1053
+ * A discoverable field and its initial value and capabilities for the requested
1054
+ * flow.
1055
+ */
1056
+ export interface DetailReferenceField {
1057
+ /**
1058
+ * Field key used by layout placements and canonical record PATCH changes. Direct
1059
+ * keys come from the Custom Object field definition; dotted related keys are
1060
+ * read-only.
1061
+ */
1062
+ api_name: string;
1063
+
1064
+ /**
1065
+ * OG_REFERENCE_FIELD identifies a reference to the object named by
1066
+ * reference_object, including owner_role, created_by, and last_modified_by fields.
1067
+ */
1068
+ data_type: 'OG_REFERENCE_FIELD';
1069
+
1070
+ /**
1071
+ * Whether you can attempt to supply or change this field through the canonical
1072
+ * write API for the requested flow. This does not grant permission to browse
1073
+ * reference targets; submitted reference identifiers are validated when written.
1074
+ */
1075
+ editable: boolean;
1076
+
1077
+ /**
1078
+ * Field display name.
1079
+ */
1080
+ label: string;
1081
+
1082
+ /**
1083
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
1084
+ * and scalar references.
1085
+ */
1086
+ multiple: boolean;
1087
+
1088
+ /**
1089
+ * Configured choice values; empty for non-choice fields.
1090
+ */
1091
+ options: Array<string>;
1092
+
1093
+ /**
1094
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
1095
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
1096
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
1097
+ * value), DERIVED (calculated value), MASKED (restricted value),
1098
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
1099
+ * by this requested flow).
1100
+ */
1101
+ read_only_reason:
1102
+ | 'PERMISSION_DENIED'
1103
+ | 'RECORD_LOCKED'
1104
+ | 'IMMUTABLE'
1105
+ | 'MANAGED_WRITE_RESTRICTED'
1106
+ | 'DERIVED'
1107
+ | 'MASKED'
1108
+ | 'REFERENCE_UNAVAILABLE'
1109
+ | 'UNSUPPORTED'
1110
+ | null;
1111
+
1112
+ /**
1113
+ * Whether a nonempty value is required by the field schema.
1114
+ */
1115
+ required: boolean;
1116
+
1117
+ /**
1118
+ * Selected record identifier in the reference_object target; null when empty or
1119
+ * masked. Use the Workers GET endpoint for Employee targets, or the Custom Object
1120
+ * record GET endpoint for Custom Object targets.
1121
+ */
1122
+ value: string | null;
1123
+
1124
+ /**
1125
+ * State of the value supplied for this requested flow: PRESENT for a readable
1126
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
1127
+ * empty array; MASKED when access to the field or a referenced value is
1128
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
1129
+ * UNSUPPORTED does not determine edit permission.
1130
+ */
1131
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
1132
+
1133
+ /**
1134
+ * Whether the field value supplied for this requested flow is readable. Create
1135
+ * responses describe only an authorized initial value and do not grant access to
1136
+ * any existing record. A referenced record may have separate access restrictions.
1137
+ */
1138
+ viewable: boolean;
1139
+
1140
+ /**
1141
+ * Permitted presentation of the selection, or null when unavailable. Empty and
1142
+ * masked references have no presentation.
1143
+ */
1144
+ display?: DetailReferenceField.ReferenceDisplay | null;
1145
+
1146
+ /**
1147
+ * Target name for a supported reference: Employee or a Custom Object API name
1148
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
1149
+ */
1150
+ reference_object?: string | null;
1151
+ }
1152
+
1153
+ export namespace DetailReferenceField {
1154
+ /**
1155
+ * Optional presentation of a readable reference, independent of its identifier.
1156
+ */
1157
+ export interface ReferenceDisplay {
1158
+ /**
1159
+ * Permitted display label; never synthesized from the identifier.
1160
+ */
1161
+ label: string;
1162
+
1163
+ /**
1164
+ * Permitted image URL, or null when unavailable.
1165
+ */
1166
+ image_url?: string | null;
1167
+
1168
+ /**
1169
+ * Permitted secondary text, or null when unavailable.
1170
+ */
1171
+ secondary_label?: string | null;
1172
+ }
1173
+ }
1174
+
1175
+ /**
1176
+ * A discoverable field and its initial value and capabilities for the requested
1177
+ * flow.
1178
+ */
1179
+ export interface DetailNativeReferenceField {
1180
+ /**
1181
+ * Field key used by layout placements and canonical record PATCH changes. Direct
1182
+ * keys come from the Custom Object field definition; dotted related keys are
1183
+ * read-only.
1184
+ */
1185
+ api_name: string;
1186
+
1187
+ /**
1188
+ * NATIVE_EDGE identifies a relationship using the same selected identifier and
1189
+ * optional presentation contract.
1190
+ */
1191
+ data_type: 'NATIVE_EDGE';
1192
+
1193
+ /**
1194
+ * Whether you can attempt to supply or change this field through the canonical
1195
+ * write API for the requested flow. This does not grant permission to browse
1196
+ * reference targets; submitted reference identifiers are validated when written.
1197
+ */
1198
+ editable: boolean;
1199
+
1200
+ /**
1201
+ * Field display name.
1202
+ */
1203
+ label: string;
1204
+
1205
+ /**
1206
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
1207
+ * and scalar references.
1208
+ */
1209
+ multiple: boolean;
1210
+
1211
+ /**
1212
+ * Configured choice values; empty for non-choice fields.
1213
+ */
1214
+ options: Array<string>;
1215
+
1216
+ /**
1217
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
1218
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
1219
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
1220
+ * value), DERIVED (calculated value), MASKED (restricted value),
1221
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
1222
+ * by this requested flow).
1223
+ */
1224
+ read_only_reason:
1225
+ | 'PERMISSION_DENIED'
1226
+ | 'RECORD_LOCKED'
1227
+ | 'IMMUTABLE'
1228
+ | 'MANAGED_WRITE_RESTRICTED'
1229
+ | 'DERIVED'
1230
+ | 'MASKED'
1231
+ | 'REFERENCE_UNAVAILABLE'
1232
+ | 'UNSUPPORTED'
1233
+ | null;
1234
+
1235
+ /**
1236
+ * Whether a nonempty value is required by the field schema.
1237
+ */
1238
+ required: boolean;
1239
+
1240
+ /**
1241
+ * Selected record identifier in the reference_object target; null when empty or
1242
+ * masked. Use the Workers GET endpoint for Employee targets, or the Custom Object
1243
+ * record GET endpoint for Custom Object targets.
1244
+ */
1245
+ value: string | null;
1246
+
1247
+ /**
1248
+ * State of the value supplied for this requested flow: PRESENT for a readable
1249
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
1250
+ * empty array; MASKED when access to the field or a referenced value is
1251
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
1252
+ * UNSUPPORTED does not determine edit permission.
1253
+ */
1254
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
1255
+
1256
+ /**
1257
+ * Whether the field value supplied for this requested flow is readable. Create
1258
+ * responses describe only an authorized initial value and do not grant access to
1259
+ * any existing record. A referenced record may have separate access restrictions.
1260
+ */
1261
+ viewable: boolean;
1262
+
1263
+ /**
1264
+ * Permitted presentation of the selection, or null when unavailable. Empty and
1265
+ * masked references have no presentation.
1266
+ */
1267
+ display?: DetailNativeReferenceField.ReferenceDisplay | null;
1268
+
1269
+ /**
1270
+ * Target name for a supported reference: Employee or a Custom Object API name
1271
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
1272
+ */
1273
+ reference_object?: string | null;
1274
+ }
1275
+
1276
+ export namespace DetailNativeReferenceField {
1277
+ /**
1278
+ * Optional presentation of a readable reference, independent of its identifier.
1279
+ */
1280
+ export interface ReferenceDisplay {
1281
+ /**
1282
+ * Permitted display label; never synthesized from the identifier.
1283
+ */
1284
+ label: string;
1285
+
1286
+ /**
1287
+ * Permitted image URL, or null when unavailable.
1288
+ */
1289
+ image_url?: string | null;
1290
+
1291
+ /**
1292
+ * Permitted secondary text, or null when unavailable.
1293
+ */
1294
+ secondary_label?: string | null;
1295
+ }
1296
+ }
1297
+
1298
+ /**
1299
+ * A discoverable field and its initial value and capabilities for the requested
1300
+ * flow.
1301
+ */
1302
+ export interface DetailPercentageField {
1303
+ /**
1304
+ * Field key used by layout placements and canonical record PATCH changes. Direct
1305
+ * keys come from the Custom Object field definition; dotted related keys are
1306
+ * read-only.
1307
+ */
1308
+ api_name: string;
1309
+
1310
+ /**
1311
+ * PERCENTAGE contains a decimal ratio, where 1 means 100%.
1312
+ */
1313
+ data_type: 'PERCENTAGE';
1314
+
1315
+ /**
1316
+ * Whether you can attempt to supply or change this field through the canonical
1317
+ * write API for the requested flow. This does not grant permission to browse
1318
+ * reference targets; submitted reference identifiers are validated when written.
1319
+ */
1320
+ editable: boolean;
1321
+
1322
+ /**
1323
+ * Field display name.
1324
+ */
1325
+ label: string;
1326
+
1327
+ /**
1328
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
1329
+ * and scalar references.
1330
+ */
1331
+ multiple: boolean;
1332
+
1333
+ /**
1334
+ * Configured choice values; empty for non-choice fields.
1335
+ */
1336
+ options: Array<string>;
1337
+
1338
+ /**
1339
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
1340
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
1341
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
1342
+ * value), DERIVED (calculated value), MASKED (restricted value),
1343
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
1344
+ * by this requested flow).
1345
+ */
1346
+ read_only_reason:
1347
+ | 'PERMISSION_DENIED'
1348
+ | 'RECORD_LOCKED'
1349
+ | 'IMMUTABLE'
1350
+ | 'MANAGED_WRITE_RESTRICTED'
1351
+ | 'DERIVED'
1352
+ | 'MASKED'
1353
+ | 'REFERENCE_UNAVAILABLE'
1354
+ | 'UNSUPPORTED'
1355
+ | null;
1356
+
1357
+ /**
1358
+ * Whether a nonempty value is required by the field schema.
1359
+ */
1360
+ required: boolean;
1361
+
1362
+ /**
1363
+ * JSON number containing a decimal ratio without a percent sign: 0, 0.3, 1 and 1.5
1364
+ * mean 0%, 30%, 100% and 150%. Null unless PRESENT.
1365
+ */
1366
+ value: number | null;
1367
+
1368
+ /**
1369
+ * State of the value supplied for this requested flow: PRESENT for a readable
1370
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
1371
+ * empty array; MASKED when access to the field or a referenced value is
1372
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
1373
+ * UNSUPPORTED does not determine edit permission.
1374
+ */
1375
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
1376
+
1377
+ /**
1378
+ * Whether the field value supplied for this requested flow is readable. Create
1379
+ * responses describe only an authorized initial value and do not grant access to
1380
+ * any existing record. A referenced record may have separate access restrictions.
1381
+ */
1382
+ viewable: boolean;
1383
+
1384
+ /**
1385
+ * Configured decimal places, or null.
1386
+ */
1387
+ num_of_decimal_places?: number | null;
1388
+
1389
+ /**
1390
+ * Target name for a supported reference: Employee or a Custom Object API name
1391
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
1392
+ */
1393
+ reference_object?: string | null;
1394
+ }
1395
+
1396
+ /**
1397
+ * A discoverable field and its initial value and capabilities for the requested
1398
+ * flow.
1399
+ */
1400
+ export interface DetailTimeField {
1401
+ /**
1402
+ * Field key used by layout placements and canonical record PATCH changes. Direct
1403
+ * keys come from the Custom Object field definition; dotted related keys are
1404
+ * read-only.
1405
+ */
1406
+ api_name: string;
1407
+
1408
+ /**
1409
+ * TIME contains a time of day.
1410
+ */
1411
+ data_type: 'TIME';
1412
+
1413
+ /**
1414
+ * Whether you can attempt to supply or change this field through the canonical
1415
+ * write API for the requested flow. This does not grant permission to browse
1416
+ * reference targets; submitted reference identifiers are validated when written.
1417
+ */
1418
+ editable: boolean;
1419
+
1420
+ /**
1421
+ * Field display name.
1422
+ */
1423
+ label: string;
1424
+
1425
+ /**
1426
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
1427
+ * and scalar references.
1428
+ */
1429
+ multiple: boolean;
1430
+
1431
+ /**
1432
+ * Configured choice values; empty for non-choice fields.
1433
+ */
1434
+ options: Array<string>;
1435
+
1436
+ /**
1437
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
1438
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
1439
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
1440
+ * value), DERIVED (calculated value), MASKED (restricted value),
1441
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
1442
+ * by this requested flow).
1443
+ */
1444
+ read_only_reason:
1445
+ | 'PERMISSION_DENIED'
1446
+ | 'RECORD_LOCKED'
1447
+ | 'IMMUTABLE'
1448
+ | 'MANAGED_WRITE_RESTRICTED'
1449
+ | 'DERIVED'
1450
+ | 'MASKED'
1451
+ | 'REFERENCE_UNAVAILABLE'
1452
+ | 'UNSUPPORTED'
1453
+ | null;
1454
+
1455
+ /**
1456
+ * Whether a nonempty value is required by the field schema.
1457
+ */
1458
+ required: boolean;
1459
+
1460
+ /**
1461
+ * Time of day in HH:MM:SS format; null unless PRESENT.
1462
+ */
1463
+ value: string | null;
1464
+
1465
+ /**
1466
+ * State of the value supplied for this requested flow: PRESENT for a readable
1467
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
1468
+ * empty array; MASKED when access to the field or a referenced value is
1469
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
1470
+ * UNSUPPORTED does not determine edit permission.
1471
+ */
1472
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
1473
+
1474
+ /**
1475
+ * Whether the field value supplied for this requested flow is readable. Create
1476
+ * responses describe only an authorized initial value and do not grant access to
1477
+ * any existing record. A referenced record may have separate access restrictions.
1478
+ */
1479
+ viewable: boolean;
1480
+
1481
+ /**
1482
+ * Target name for a supported reference: Employee or a Custom Object API name
1483
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
1484
+ */
1485
+ reference_object?: string | null;
1486
+ }
1487
+
1488
+ /**
1489
+ * A discoverable field and its initial value and capabilities for the requested
1490
+ * flow.
1491
+ */
1492
+ export interface DetailUnsupportedField {
1493
+ /**
1494
+ * Field key used by layout placements and canonical record PATCH changes. Direct
1495
+ * keys come from the Custom Object field definition; dotted related keys are
1496
+ * read-only.
1497
+ */
1498
+ api_name: string;
1499
+
1500
+ /**
1501
+ * Field types whose values this endpoint does not currently represent. Edit
1502
+ * permission is evaluated independently of value representation.
1503
+ */
1504
+ data_type: 'ADDRESS' | 'REFERENCE_ID' | 'COORDINATE' | 'TIMESTAMPED_CURRENCY' | 'JSONB' | 'FILE';
1505
+
1506
+ /**
1507
+ * Whether you can attempt to supply or change this field through the canonical
1508
+ * write API for the requested flow. This does not grant permission to browse
1509
+ * reference targets; submitted reference identifiers are validated when written.
1510
+ */
1511
+ editable: boolean;
1512
+
1513
+ /**
1514
+ * Field display name.
1515
+ */
1516
+ label: string;
1517
+
1518
+ /**
1519
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
1520
+ * and scalar references.
1521
+ */
1522
+ multiple: boolean;
1523
+
1524
+ /**
1525
+ * Configured choice values; empty for non-choice fields.
1526
+ */
1527
+ options: Array<string>;
1528
+
1529
+ /**
1530
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
1531
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
1532
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
1533
+ * value), DERIVED (calculated value), MASKED (restricted value),
1534
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
1535
+ * by this requested flow).
1536
+ */
1537
+ read_only_reason:
1538
+ | 'PERMISSION_DENIED'
1539
+ | 'RECORD_LOCKED'
1540
+ | 'IMMUTABLE'
1541
+ | 'MANAGED_WRITE_RESTRICTED'
1542
+ | 'DERIVED'
1543
+ | 'MASKED'
1544
+ | 'REFERENCE_UNAVAILABLE'
1545
+ | 'UNSUPPORTED'
1546
+ | null;
1547
+
1548
+ /**
1549
+ * Whether a nonempty value is required by the field schema.
1550
+ */
1551
+ required: boolean;
1552
+
1553
+ /**
1554
+ * Always null. UNSUPPORTED withholds the value representation; MASKED takes
1555
+ * precedence for a restricted value. Neither state grants write permission.
1556
+ */
1557
+ value: null;
1558
+
1559
+ /**
1560
+ * State of the value supplied for this requested flow: PRESENT for a readable
1561
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
1562
+ * empty array; MASKED when access to the field or a referenced value is
1563
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
1564
+ * UNSUPPORTED does not determine edit permission.
1565
+ */
1566
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
1567
+
1568
+ /**
1569
+ * Whether the field value supplied for this requested flow is readable. Create
1570
+ * responses describe only an authorized initial value and do not grant access to
1571
+ * any existing record. A referenced record may have separate access restrictions.
1572
+ */
1573
+ viewable: boolean;
1574
+
1575
+ /**
1576
+ * Target name for a supported reference: Employee or a Custom Object API name
1577
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
1578
+ */
1579
+ reference_object?: string | null;
1580
+ }
1581
+
1582
+ /**
1583
+ * Effective saved page layout.
1584
+ */
1585
+ export interface Layout {
1586
+ /**
1587
+ * Resolved saved layout API name.
1588
+ */
1589
+ api_name: string;
1590
+
1591
+ /**
1592
+ * Semantic record header.
1593
+ */
1594
+ header: Layout.Header;
1595
+
1596
+ /**
1597
+ * Ordered, visible tabs.
1598
+ */
1599
+ tabs: Array<Layout.Tab>;
1600
+ }
1601
+
1602
+ export namespace Layout {
1603
+ /**
1604
+ * Semantic record header.
1605
+ */
1606
+ export interface Header {
1607
+ /**
1608
+ * Ordered summary field API names.
1609
+ */
1610
+ fields: Array<string>;
1611
+
1612
+ /**
1613
+ * Description field API name, or null when unavailable.
1614
+ */
1615
+ description_field?: string | null;
1616
+
1617
+ /**
1618
+ * Title field API name, or null when unavailable.
1619
+ */
1620
+ title_field?: string | null;
1621
+ }
1622
+
1623
+ /**
1624
+ * Ordered, visible tab of sections in the effective record page layout.
1625
+ */
1626
+ export interface Tab {
1627
+ /**
1628
+ * Stable tab identifier.
1629
+ */
1630
+ id: string;
1631
+
1632
+ /**
1633
+ * Tab display name.
1634
+ */
1635
+ label: string;
1636
+
1637
+ /**
1638
+ * Ordered, visible sections.
1639
+ */
1640
+ sections: Array<Tab.Section>;
1641
+ }
1642
+
1643
+ export namespace Tab {
1644
+ /**
1645
+ * Visible group of field placements, a deferred related list, or explicitly
1646
+ * unsupported content.
1647
+ */
1648
+ export interface Section {
1649
+ /**
1650
+ * Section identifier scoped to the effective layout.
1651
+ */
1652
+ id: string;
1653
+
1654
+ /**
1655
+ * Suggested field columns; clients may adapt to available space.
1656
+ */
1657
+ columns: number;
1658
+
1659
+ /**
1660
+ * Ordered placements for a FIELDS section. Empty for RELATED_LIST and UNSUPPORTED
1661
+ * sections.
1662
+ */
1663
+ fields: Array<Section.Field>;
1664
+
1665
+ /**
1666
+ * Section display name.
1667
+ */
1668
+ label: string;
1669
+
1670
+ /**
1671
+ * FIELDS contains ordered field placements; RELATED_LIST describes a deferred
1672
+ * related-record grid without embedding its rows; UNSUPPORTED identifies visible
1673
+ * content this API cannot render.
1674
+ */
1675
+ type: 'FIELDS' | 'RELATED_LIST' | 'UNSUPPORTED';
1676
+
1677
+ /**
1678
+ * Ordered readable columns configured for a RELATED_LIST; empty for other
1679
+ * sections.
1680
+ */
1681
+ column_field_api_names?: Array<string>;
1682
+
1683
+ /**
1684
+ * Related Custom Object API name; null for other sections.
1685
+ */
1686
+ object_api_name?: string | null;
1687
+
1688
+ /**
1689
+ * CONTENT_NOT_SUPPORTED means this section requires a renderer outside this API;
1690
+ * RELATED_OBJECT_NOT_SUPPORTED means the related list targets a native object,
1691
+ * which this release cannot render. Null for supported field and Custom Object
1692
+ * related-list sections.
1693
+ */
1694
+ reason?: 'CONTENT_NOT_SUPPORTED' | 'RELATED_OBJECT_NOT_SUPPORTED' | null;
1695
+
1696
+ /**
1697
+ * Field on the related Custom Object that points to this record; null for other
1698
+ * sections.
1699
+ */
1700
+ relationship_field_api_name?: string | null;
1701
+ }
1702
+
1703
+ export namespace Section {
1704
+ /**
1705
+ * Placement of a discoverable field in a saved layout; contains no field value.
1706
+ */
1707
+ export interface Field {
1708
+ /**
1709
+ * Field API name in the response fields map.
1710
+ */
1711
+ field: string;
1712
+
1713
+ /**
1714
+ * Whether this placement is read-only.
1715
+ */
1716
+ read_only: boolean;
1717
+ }
1718
+ }
1719
+ }
1720
+ }
1721
+ }
1722
+
1723
+ /**
1724
+ * Permissioned create form context; no record has been persisted.
1725
+ */
1726
+ export interface RecordDetailRetrieveCreateResponse {
1727
+ /**
1728
+ * Empty: no record exists in create context.
1729
+ */
1730
+ actions: Array<RecordDetailRetrieveCreateResponse.Action>;
1731
+
1732
+ /**
1733
+ * Caller-safe reasons the form cannot be submitted. Hidden or unavailable field
1734
+ * names are not disclosed.
1735
+ */
1736
+ blockers: Array<RecordDetailRetrieveCreateResponse.Blocker>;
1737
+
1738
+ /**
1739
+ * Supported create inputs. Each value is the authorized configured default or
1740
+ * owner fallback for this create flow, or an EMPTY value when no eligible default
1741
+ * exists. Reference identifiers and display are presentation values; convert them
1742
+ * to the canonical record POST input shape when writing.
1743
+ */
1744
+ fields: {
1745
+ [key: string]:
1746
+ | RecordDetailRetrieveCreateResponse.DetailTextField
1747
+ | RecordDetailRetrieveCreateResponse.DetailNumberField
1748
+ | RecordDetailRetrieveCreateResponse.DetailBooleanField
1749
+ | RecordDetailRetrieveCreateResponse.DetailDateField
1750
+ | RecordDetailRetrieveCreateResponse.DetailDateTimeField
1751
+ | RecordDetailRetrieveCreateResponse.DetailCurrencyField
1752
+ | RecordDetailRetrieveCreateResponse.DetailChoiceField
1753
+ | RecordDetailRetrieveCreateResponse.DetailMultiChoiceField
1754
+ | RecordDetailRetrieveCreateResponse.DetailReferenceField
1755
+ | RecordDetailRetrieveCreateResponse.DetailNativeReferenceField
1756
+ | RecordDetailRetrieveCreateResponse.DetailPercentageField
1757
+ | RecordDetailRetrieveCreateResponse.DetailTimeField
1758
+ | RecordDetailRetrieveCreateResponse.DetailUnsupportedField;
1759
+ };
1760
+
1761
+ /**
1762
+ * Effective create layout after visibility and permission filtering.
1763
+ */
1764
+ layout: RecordDetailRetrieveCreateResponse.Layout;
1765
+
1766
+ /**
1767
+ * Custom Object API name for this create context.
1768
+ */
1769
+ object_api_name: string;
1770
+ }
1771
+
1772
+ export namespace RecordDetailRetrieveCreateResponse {
1773
+ /**
1774
+ * A configured action the caller can attempt through the existing Function
1775
+ * execution API.
1776
+ */
1777
+ export interface Action {
1778
+ /**
1779
+ * Stable native ObjectAction identifier.
1780
+ */
1781
+ id: string;
1782
+
1783
+ /**
1784
+ * Action API name; null for legacy actions.
1785
+ */
1786
+ api_name: string | null;
1787
+
1788
+ /**
1789
+ * Associated Function API name for the unchanged Function execution endpoints.
1790
+ * Discovery does not grant execution or execution-read permission.
1791
+ */
1792
+ function_api_name: string;
1793
+
1794
+ /**
1795
+ * Action display label.
1796
+ */
1797
+ name: string;
1798
+
1799
+ /**
1800
+ * Configured action placements: LIST_VIEW appears in an object grid; DETAIL_VIEW
1801
+ * appears on a record page.
1802
+ */
1803
+ visibility_preferences: Array<'LIST_VIEW' | 'DETAIL_VIEW'>;
1804
+ }
1805
+
1806
+ export interface Blocker {
1807
+ /**
1808
+ * REQUIRED_INPUT_UNAVAILABLE means a required input cannot be supplied through the
1809
+ * form; NO_SUPPORTED_INPUTS means the form has no supported inputs.
1810
+ */
1811
+ code: 'REQUIRED_INPUT_UNAVAILABLE' | 'NO_SUPPORTED_INPUTS';
1812
+
1813
+ /**
1814
+ * Caller-safe explanation of the blocker.
1815
+ */
1816
+ message: string;
1817
+
1818
+ /**
1819
+ * Field API name when safe to disclose; null when omitted to avoid exposing an
1820
+ * unavailable or hidden field.
1821
+ */
1822
+ field_api_name?: string | null;
1823
+ }
1824
+
1825
+ /**
1826
+ * A discoverable field and its initial value and capabilities for the requested
1827
+ * flow.
1828
+ */
1829
+ export interface DetailTextField {
1830
+ /**
1831
+ * Field key used by layout placements and canonical record PATCH changes. Direct
1832
+ * keys come from the Custom Object field definition; dotted related keys are
1833
+ * read-only.
1834
+ */
1835
+ api_name: string;
1836
+
1837
+ /**
1838
+ * TEXT and LONG_TEXT contain text; EMAIL, URL, and PHONE_NUMBER contain their
1839
+ * respective textual values.
1840
+ */
1841
+ data_type: 'TEXT' | 'LONG_TEXT' | 'EMAIL' | 'URL' | 'PHONE_NUMBER';
1842
+
1843
+ /**
1844
+ * Whether you can attempt to supply or change this field through the canonical
1845
+ * write API for the requested flow. This does not grant permission to browse
1846
+ * reference targets; submitted reference identifiers are validated when written.
1847
+ */
1848
+ editable: boolean;
1849
+
1850
+ /**
1851
+ * Field display name.
1852
+ */
1853
+ label: string;
1854
+
1855
+ /**
1856
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
1857
+ * and scalar references.
1858
+ */
1859
+ multiple: boolean;
1860
+
1861
+ /**
1862
+ * Configured choice values; empty for non-choice fields.
1863
+ */
1864
+ options: Array<string>;
1865
+
1866
+ /**
1867
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
1868
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
1869
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
1870
+ * value), DERIVED (calculated value), MASKED (restricted value),
1871
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
1872
+ * by this requested flow).
1873
+ */
1874
+ read_only_reason:
1875
+ | 'PERMISSION_DENIED'
1876
+ | 'RECORD_LOCKED'
1877
+ | 'IMMUTABLE'
1878
+ | 'MANAGED_WRITE_RESTRICTED'
1879
+ | 'DERIVED'
1880
+ | 'MASKED'
1881
+ | 'REFERENCE_UNAVAILABLE'
1882
+ | 'UNSUPPORTED'
1883
+ | null;
1884
+
1885
+ /**
1886
+ * Whether a nonempty value is required by the field schema.
1887
+ */
1888
+ required: boolean;
1889
+
1890
+ /**
1891
+ * Readable text, including an empty string with value_state EMPTY; null when unset
1892
+ * or masked.
1893
+ */
1894
+ value: string | null;
1895
+
1896
+ /**
1897
+ * State of the value supplied for this requested flow: PRESENT for a readable
1898
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
1899
+ * empty array; MASKED when access to the field or a referenced value is
1900
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
1901
+ * UNSUPPORTED does not determine edit permission.
1902
+ */
1903
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
1904
+
1905
+ /**
1906
+ * Whether the field value supplied for this requested flow is readable. Create
1907
+ * responses describe only an authorized initial value and do not grant access to
1908
+ * any existing record. A referenced record may have separate access restrictions.
1909
+ */
1910
+ viewable: boolean;
1911
+
1912
+ /**
1913
+ * Maximum accepted characters, or null when unbounded.
1914
+ */
1915
+ max_length?: number | null;
1916
+
1917
+ /**
1918
+ * Target name for a supported reference: Employee or a Custom Object API name
1919
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
1920
+ */
1921
+ reference_object?: string | null;
1922
+ }
1923
+
1924
+ /**
1925
+ * A discoverable field and its initial value and capabilities for the requested
1926
+ * flow.
1927
+ */
1928
+ export interface DetailNumberField {
1929
+ /**
1930
+ * Field key used by layout placements and canonical record PATCH changes. Direct
1931
+ * keys come from the Custom Object field definition; dotted related keys are
1932
+ * read-only.
1933
+ */
1934
+ api_name: string;
1935
+
1936
+ /**
1937
+ * NUMBER contains a decimal quantity.
1938
+ */
1939
+ data_type: 'NUMBER';
1940
+
1941
+ /**
1942
+ * Whether you can attempt to supply or change this field through the canonical
1943
+ * write API for the requested flow. This does not grant permission to browse
1944
+ * reference targets; submitted reference identifiers are validated when written.
1945
+ */
1946
+ editable: boolean;
1947
+
1948
+ /**
1949
+ * Field display name.
1950
+ */
1951
+ label: string;
1952
+
1953
+ /**
1954
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
1955
+ * and scalar references.
1956
+ */
1957
+ multiple: boolean;
1958
+
1959
+ /**
1960
+ * Configured choice values; empty for non-choice fields.
1961
+ */
1962
+ options: Array<string>;
1963
+
1964
+ /**
1965
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
1966
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
1967
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
1968
+ * value), DERIVED (calculated value), MASKED (restricted value),
1969
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
1970
+ * by this requested flow).
1971
+ */
1972
+ read_only_reason:
1973
+ | 'PERMISSION_DENIED'
1974
+ | 'RECORD_LOCKED'
1975
+ | 'IMMUTABLE'
1976
+ | 'MANAGED_WRITE_RESTRICTED'
1977
+ | 'DERIVED'
1978
+ | 'MASKED'
1979
+ | 'REFERENCE_UNAVAILABLE'
1980
+ | 'UNSUPPORTED'
1981
+ | null;
1982
+
1983
+ /**
1984
+ * Whether a nonempty value is required by the field schema.
1985
+ */
1986
+ required: boolean;
1987
+
1988
+ /**
1989
+ * Decimal quantity encoded as a string to preserve precision, for example 12.50.
1990
+ * Units follow the configured field's meaning. Null unless value_state is PRESENT.
1991
+ */
1992
+ value: string | null;
1993
+
1994
+ /**
1995
+ * State of the value supplied for this requested flow: PRESENT for a readable
1996
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
1997
+ * empty array; MASKED when access to the field or a referenced value is
1998
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
1999
+ * UNSUPPORTED does not determine edit permission.
2000
+ */
2001
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
2002
+
2003
+ /**
2004
+ * Whether the field value supplied for this requested flow is readable. Create
2005
+ * responses describe only an authorized initial value and do not grant access to
2006
+ * any existing record. A referenced record may have separate access restrictions.
2007
+ */
2008
+ viewable: boolean;
2009
+
2010
+ /**
2011
+ * Configured decimal places, or null.
2012
+ */
2013
+ num_of_decimal_places?: number | null;
2014
+
2015
+ /**
2016
+ * Target name for a supported reference: Employee or a Custom Object API name
2017
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
2018
+ */
2019
+ reference_object?: string | null;
2020
+ }
2021
+
2022
+ /**
2023
+ * A discoverable field and its initial value and capabilities for the requested
2024
+ * flow.
2025
+ */
2026
+ export interface DetailBooleanField {
2027
+ /**
2028
+ * Field key used by layout placements and canonical record PATCH changes. Direct
2029
+ * keys come from the Custom Object field definition; dotted related keys are
2030
+ * read-only.
2031
+ */
2032
+ api_name: string;
2033
+
2034
+ /**
2035
+ * BOOLEAN contains true or false.
2036
+ */
2037
+ data_type: 'BOOLEAN';
2038
+
2039
+ /**
2040
+ * Whether you can attempt to supply or change this field through the canonical
2041
+ * write API for the requested flow. This does not grant permission to browse
2042
+ * reference targets; submitted reference identifiers are validated when written.
2043
+ */
2044
+ editable: boolean;
2045
+
2046
+ /**
2047
+ * Field display name.
2048
+ */
2049
+ label: string;
2050
+
2051
+ /**
2052
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
2053
+ * and scalar references.
2054
+ */
2055
+ multiple: boolean;
2056
+
2057
+ /**
2058
+ * Configured choice values; empty for non-choice fields.
2059
+ */
2060
+ options: Array<string>;
2061
+
2062
+ /**
2063
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
2064
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
2065
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
2066
+ * value), DERIVED (calculated value), MASKED (restricted value),
2067
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
2068
+ * by this requested flow).
2069
+ */
2070
+ read_only_reason:
2071
+ | 'PERMISSION_DENIED'
2072
+ | 'RECORD_LOCKED'
2073
+ | 'IMMUTABLE'
2074
+ | 'MANAGED_WRITE_RESTRICTED'
2075
+ | 'DERIVED'
2076
+ | 'MASKED'
2077
+ | 'REFERENCE_UNAVAILABLE'
2078
+ | 'UNSUPPORTED'
2079
+ | null;
2080
+
2081
+ /**
2082
+ * Whether a nonempty value is required by the field schema.
2083
+ */
2084
+ required: boolean;
2085
+
2086
+ /**
2087
+ * Whether the configured condition is true; null unless value_state is PRESENT.
2088
+ */
2089
+ value: boolean | null;
2090
+
2091
+ /**
2092
+ * State of the value supplied for this requested flow: PRESENT for a readable
2093
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
2094
+ * empty array; MASKED when access to the field or a referenced value is
2095
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
2096
+ * UNSUPPORTED does not determine edit permission.
2097
+ */
2098
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
2099
+
2100
+ /**
2101
+ * Whether the field value supplied for this requested flow is readable. Create
2102
+ * responses describe only an authorized initial value and do not grant access to
2103
+ * any existing record. A referenced record may have separate access restrictions.
2104
+ */
2105
+ viewable: boolean;
2106
+
2107
+ /**
2108
+ * Target name for a supported reference: Employee or a Custom Object API name
2109
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
2110
+ */
2111
+ reference_object?: string | null;
2112
+ }
2113
+
2114
+ /**
2115
+ * A discoverable field and its initial value and capabilities for the requested
2116
+ * flow.
2117
+ */
2118
+ export interface DetailDateField {
2119
+ /**
2120
+ * Field key used by layout placements and canonical record PATCH changes. Direct
2121
+ * keys come from the Custom Object field definition; dotted related keys are
2122
+ * read-only.
2123
+ */
2124
+ api_name: string;
2125
+
2126
+ /**
2127
+ * DATE contains a calendar date without a time or timezone.
2128
+ */
2129
+ data_type: 'DATE';
2130
+
2131
+ /**
2132
+ * Whether you can attempt to supply or change this field through the canonical
2133
+ * write API for the requested flow. This does not grant permission to browse
2134
+ * reference targets; submitted reference identifiers are validated when written.
2135
+ */
2136
+ editable: boolean;
2137
+
2138
+ /**
2139
+ * Field display name.
2140
+ */
2141
+ label: string;
2142
+
2143
+ /**
2144
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
2145
+ * and scalar references.
2146
+ */
2147
+ multiple: boolean;
2148
+
2149
+ /**
2150
+ * Configured choice values; empty for non-choice fields.
2151
+ */
2152
+ options: Array<string>;
2153
+
2154
+ /**
2155
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
2156
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
2157
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
2158
+ * value), DERIVED (calculated value), MASKED (restricted value),
2159
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
2160
+ * by this requested flow).
2161
+ */
2162
+ read_only_reason:
2163
+ | 'PERMISSION_DENIED'
2164
+ | 'RECORD_LOCKED'
2165
+ | 'IMMUTABLE'
2166
+ | 'MANAGED_WRITE_RESTRICTED'
2167
+ | 'DERIVED'
2168
+ | 'MASKED'
2169
+ | 'REFERENCE_UNAVAILABLE'
2170
+ | 'UNSUPPORTED'
2171
+ | null;
2172
+
2173
+ /**
2174
+ * Whether a nonempty value is required by the field schema.
2175
+ */
2176
+ required: boolean;
2177
+
2178
+ /**
2179
+ * Calendar date in YYYY-MM-DD format, for example 2026-10-24; null unless
2180
+ * value_state is PRESENT.
2181
+ */
2182
+ value: string | null;
2183
+
2184
+ /**
2185
+ * State of the value supplied for this requested flow: PRESENT for a readable
2186
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
2187
+ * empty array; MASKED when access to the field or a referenced value is
2188
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
2189
+ * UNSUPPORTED does not determine edit permission.
2190
+ */
2191
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
2192
+
2193
+ /**
2194
+ * Whether the field value supplied for this requested flow is readable. Create
2195
+ * responses describe only an authorized initial value and do not grant access to
2196
+ * any existing record. A referenced record may have separate access restrictions.
2197
+ */
2198
+ viewable: boolean;
2199
+
2200
+ /**
2201
+ * Target name for a supported reference: Employee or a Custom Object API name
2202
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
2203
+ */
2204
+ reference_object?: string | null;
2205
+ }
2206
+
2207
+ /**
2208
+ * A discoverable field and its initial value and capabilities for the requested
2209
+ * flow.
2210
+ */
2211
+ export interface DetailDateTimeField {
2212
+ /**
2213
+ * Field key used by layout placements and canonical record PATCH changes. Direct
2214
+ * keys come from the Custom Object field definition; dotted related keys are
2215
+ * read-only.
2216
+ */
2217
+ api_name: string;
2218
+
2219
+ /**
2220
+ * DATETIME contains an instant with a timezone.
2221
+ */
2222
+ data_type: 'DATETIME';
2223
+
2224
+ /**
2225
+ * Whether you can attempt to supply or change this field through the canonical
2226
+ * write API for the requested flow. This does not grant permission to browse
2227
+ * reference targets; submitted reference identifiers are validated when written.
2228
+ */
2229
+ editable: boolean;
2230
+
2231
+ /**
2232
+ * Field display name.
2233
+ */
2234
+ label: string;
2235
+
2236
+ /**
2237
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
2238
+ * and scalar references.
2239
+ */
2240
+ multiple: boolean;
2241
+
2242
+ /**
2243
+ * Configured choice values; empty for non-choice fields.
2244
+ */
2245
+ options: Array<string>;
2246
+
2247
+ /**
2248
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
2249
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
2250
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
2251
+ * value), DERIVED (calculated value), MASKED (restricted value),
2252
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
2253
+ * by this requested flow).
2254
+ */
2255
+ read_only_reason:
2256
+ | 'PERMISSION_DENIED'
2257
+ | 'RECORD_LOCKED'
2258
+ | 'IMMUTABLE'
2259
+ | 'MANAGED_WRITE_RESTRICTED'
2260
+ | 'DERIVED'
2261
+ | 'MASKED'
2262
+ | 'REFERENCE_UNAVAILABLE'
2263
+ | 'UNSUPPORTED'
2264
+ | null;
2265
+
2266
+ /**
2267
+ * Whether a nonempty value is required by the field schema.
2268
+ */
2269
+ required: boolean;
2270
+
2271
+ /**
2272
+ * ISO 8601 timestamp with timezone and up to millisecond precision, matching
2273
+ * native record JSON responses; null unless value_state is PRESENT. System audit
2274
+ * timestamps are immutable.
2275
+ */
2276
+ value: string | null;
2277
+
2278
+ /**
2279
+ * State of the value supplied for this requested flow: PRESENT for a readable
2280
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
2281
+ * empty array; MASKED when access to the field or a referenced value is
2282
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
2283
+ * UNSUPPORTED does not determine edit permission.
2284
+ */
2285
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
2286
+
2287
+ /**
2288
+ * Whether the field value supplied for this requested flow is readable. Create
2289
+ * responses describe only an authorized initial value and do not grant access to
2290
+ * any existing record. A referenced record may have separate access restrictions.
2291
+ */
2292
+ viewable: boolean;
2293
+
2294
+ /**
2295
+ * Target name for a supported reference: Employee or a Custom Object API name
2296
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
2297
+ */
2298
+ reference_object?: string | null;
2299
+ }
2300
+
2301
+ /**
2302
+ * A discoverable field and its initial value and capabilities for the requested
2303
+ * flow.
2304
+ */
2305
+ export interface DetailCurrencyField {
2306
+ /**
2307
+ * Field key used by layout placements and canonical record PATCH changes. Direct
2308
+ * keys come from the Custom Object field definition; dotted related keys are
2309
+ * read-only.
2310
+ */
2311
+ api_name: string;
2312
+
2313
+ /**
2314
+ * CURRENCY contains a monetary amount and its currency.
2315
+ */
2316
+ data_type: 'CURRENCY';
2317
+
2318
+ /**
2319
+ * Whether you can attempt to supply or change this field through the canonical
2320
+ * write API for the requested flow. This does not grant permission to browse
2321
+ * reference targets; submitted reference identifiers are validated when written.
2322
+ */
2323
+ editable: boolean;
2324
+
2325
+ /**
2326
+ * Field display name.
2327
+ */
2328
+ label: string;
2329
+
2330
+ /**
2331
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
2332
+ * and scalar references.
2333
+ */
2334
+ multiple: boolean;
2335
+
2336
+ /**
2337
+ * Configured choice values; empty for non-choice fields.
2338
+ */
2339
+ options: Array<string>;
2340
+
2341
+ /**
2342
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
2343
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
2344
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
2345
+ * value), DERIVED (calculated value), MASKED (restricted value),
2346
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
2347
+ * by this requested flow).
2348
+ */
2349
+ read_only_reason:
2350
+ | 'PERMISSION_DENIED'
2351
+ | 'RECORD_LOCKED'
2352
+ | 'IMMUTABLE'
2353
+ | 'MANAGED_WRITE_RESTRICTED'
2354
+ | 'DERIVED'
2355
+ | 'MASKED'
2356
+ | 'REFERENCE_UNAVAILABLE'
2357
+ | 'UNSUPPORTED'
2358
+ | null;
2359
+
2360
+ /**
2361
+ * Whether a nonempty value is required by the field schema.
2362
+ */
2363
+ required: boolean;
2364
+
2365
+ /**
2366
+ * Currency object with an ISO 4217 currency_type and decimal-string value, for
2367
+ * example {"currency_type": "USD", "value": "25.00"}. The amount is in currency
2368
+ * units, not cents. Null unless value_state is PRESENT.
2369
+ */
2370
+ value: DetailCurrencyField.RecordDetailCurrency | null;
2371
+
2372
+ /**
2373
+ * State of the value supplied for this requested flow: PRESENT for a readable
2374
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
2375
+ * empty array; MASKED when access to the field or a referenced value is
2376
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
2377
+ * UNSUPPORTED does not determine edit permission.
2378
+ */
2379
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
2380
+
2381
+ /**
2382
+ * Whether the field value supplied for this requested flow is readable. Create
2383
+ * responses describe only an authorized initial value and do not grant access to
2384
+ * any existing record. A referenced record may have separate access restrictions.
2385
+ */
2386
+ viewable: boolean;
2387
+
2388
+ /**
2389
+ * Configured ISO 4217 currency code, or null when dynamic.
2390
+ */
2391
+ currency?: string | null;
2392
+
2393
+ /**
2394
+ * Configured decimal places, or null.
2395
+ */
2396
+ num_of_decimal_places?: number | null;
2397
+
2398
+ /**
2399
+ * Target name for a supported reference: Employee or a Custom Object API name
2400
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
2401
+ */
2402
+ reference_object?: string | null;
2403
+ }
2404
+
2405
+ export namespace DetailCurrencyField {
2406
+ /**
2407
+ * Platform Currency serialized with a decimal string amount to preserve precision.
2408
+ */
2409
+ export interface RecordDetailCurrency {
2410
+ /**
2411
+ * ISO 4217 currency code, for example USD or EUR.
2412
+ */
2413
+ currency_type: string;
2414
+
2415
+ /**
2416
+ * Decimal monetary amount in currency units, for example 25.00; not integer cents.
2417
+ */
2418
+ value: string;
2419
+ }
2420
+ }
2421
+
2422
+ /**
2423
+ * A discoverable field and its initial value and capabilities for the requested
2424
+ * flow.
2425
+ */
2426
+ export interface DetailChoiceField {
2427
+ /**
2428
+ * Field key used by layout placements and canonical record PATCH changes. Direct
2429
+ * keys come from the Custom Object field definition; dotted related keys are
2430
+ * read-only.
2431
+ */
2432
+ api_name: string;
2433
+
2434
+ /**
2435
+ * RADIO contains one configured choice.
2436
+ */
2437
+ data_type: 'RADIO';
2438
+
2439
+ /**
2440
+ * Whether you can attempt to supply or change this field through the canonical
2441
+ * write API for the requested flow. This does not grant permission to browse
2442
+ * reference targets; submitted reference identifiers are validated when written.
2443
+ */
2444
+ editable: boolean;
2445
+
2446
+ /**
2447
+ * Field display name.
2448
+ */
2449
+ label: string;
2450
+
2451
+ /**
2452
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
2453
+ * and scalar references.
2454
+ */
2455
+ multiple: boolean;
2456
+
2457
+ /**
2458
+ * Configured choice values; empty for non-choice fields.
2459
+ */
2460
+ options: Array<string>;
2461
+
2462
+ /**
2463
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
2464
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
2465
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
2466
+ * value), DERIVED (calculated value), MASKED (restricted value),
2467
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
2468
+ * by this requested flow).
2469
+ */
2470
+ read_only_reason:
2471
+ | 'PERMISSION_DENIED'
2472
+ | 'RECORD_LOCKED'
2473
+ | 'IMMUTABLE'
2474
+ | 'MANAGED_WRITE_RESTRICTED'
2475
+ | 'DERIVED'
2476
+ | 'MASKED'
2477
+ | 'REFERENCE_UNAVAILABLE'
2478
+ | 'UNSUPPORTED'
2479
+ | null;
2480
+
2481
+ /**
2482
+ * Whether a nonempty value is required by the field schema.
2483
+ */
2484
+ required: boolean;
2485
+
2486
+ /**
2487
+ * One value from options, or an empty string with value_state EMPTY; null when
2488
+ * unset or masked.
2489
+ */
2490
+ value: string | null;
2491
+
2492
+ /**
2493
+ * State of the value supplied for this requested flow: PRESENT for a readable
2494
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
2495
+ * empty array; MASKED when access to the field or a referenced value is
2496
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
2497
+ * UNSUPPORTED does not determine edit permission.
2498
+ */
2499
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
2500
+
2501
+ /**
2502
+ * Whether the field value supplied for this requested flow is readable. Create
2503
+ * responses describe only an authorized initial value and do not grant access to
2504
+ * any existing record. A referenced record may have separate access restrictions.
2505
+ */
2506
+ viewable: boolean;
2507
+
2508
+ /**
2509
+ * Target name for a supported reference: Employee or a Custom Object API name
2510
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
2511
+ */
2512
+ reference_object?: string | null;
2513
+ }
2514
+
2515
+ /**
2516
+ * A discoverable field and its initial value and capabilities for the requested
2517
+ * flow.
2518
+ */
2519
+ export interface DetailMultiChoiceField {
2520
+ /**
2521
+ * Field key used by layout placements and canonical record PATCH changes. Direct
2522
+ * keys come from the Custom Object field definition; dotted related keys are
2523
+ * read-only.
2524
+ */
2525
+ api_name: string;
2526
+
2527
+ /**
2528
+ * SELECT contains zero or more configured choices.
2529
+ */
2530
+ data_type: 'SELECT';
2531
+
2532
+ /**
2533
+ * Whether you can attempt to supply or change this field through the canonical
2534
+ * write API for the requested flow. This does not grant permission to browse
2535
+ * reference targets; submitted reference identifiers are validated when written.
2536
+ */
2537
+ editable: boolean;
2538
+
2539
+ /**
2540
+ * Field display name.
2541
+ */
2542
+ label: string;
2543
+
2544
+ /**
2545
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
2546
+ * and scalar references.
2547
+ */
2548
+ multiple: boolean;
2549
+
2550
+ /**
2551
+ * Configured choice values; empty for non-choice fields.
2552
+ */
2553
+ options: Array<string>;
2554
+
2555
+ /**
2556
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
2557
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
2558
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
2559
+ * value), DERIVED (calculated value), MASKED (restricted value),
2560
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
2561
+ * by this requested flow).
2562
+ */
2563
+ read_only_reason:
2564
+ | 'PERMISSION_DENIED'
2565
+ | 'RECORD_LOCKED'
2566
+ | 'IMMUTABLE'
2567
+ | 'MANAGED_WRITE_RESTRICTED'
2568
+ | 'DERIVED'
2569
+ | 'MASKED'
2570
+ | 'REFERENCE_UNAVAILABLE'
2571
+ | 'UNSUPPORTED'
2572
+ | null;
2573
+
2574
+ /**
2575
+ * Whether a nonempty value is required by the field schema.
2576
+ */
2577
+ required: boolean;
2578
+
2579
+ /**
2580
+ * Selected values from options. An empty selection is [] with value_state EMPTY;
2581
+ * null when unset or masked.
2582
+ */
2583
+ value: Array<string> | null;
2584
+
2585
+ /**
2586
+ * State of the value supplied for this requested flow: PRESENT for a readable
2587
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
2588
+ * empty array; MASKED when access to the field or a referenced value is
2589
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
2590
+ * UNSUPPORTED does not determine edit permission.
2591
+ */
2592
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
2593
+
2594
+ /**
2595
+ * Whether the field value supplied for this requested flow is readable. Create
2596
+ * responses describe only an authorized initial value and do not grant access to
2597
+ * any existing record. A referenced record may have separate access restrictions.
2598
+ */
2599
+ viewable: boolean;
2600
+
2601
+ /**
2602
+ * Target name for a supported reference: Employee or a Custom Object API name
2603
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
2604
+ */
2605
+ reference_object?: string | null;
2606
+ }
2607
+
2608
+ /**
2609
+ * A discoverable field and its initial value and capabilities for the requested
2610
+ * flow.
2611
+ */
2612
+ export interface DetailReferenceField {
2613
+ /**
2614
+ * Field key used by layout placements and canonical record PATCH changes. Direct
2615
+ * keys come from the Custom Object field definition; dotted related keys are
2616
+ * read-only.
2617
+ */
2618
+ api_name: string;
2619
+
2620
+ /**
2621
+ * OG_REFERENCE_FIELD identifies a reference to the object named by
2622
+ * reference_object, including owner_role, created_by, and last_modified_by fields.
2623
+ */
2624
+ data_type: 'OG_REFERENCE_FIELD';
2625
+
2626
+ /**
2627
+ * Whether you can attempt to supply or change this field through the canonical
2628
+ * write API for the requested flow. This does not grant permission to browse
2629
+ * reference targets; submitted reference identifiers are validated when written.
2630
+ */
2631
+ editable: boolean;
2632
+
2633
+ /**
2634
+ * Field display name.
2635
+ */
2636
+ label: string;
2637
+
2638
+ /**
2639
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
2640
+ * and scalar references.
2641
+ */
2642
+ multiple: boolean;
2643
+
2644
+ /**
2645
+ * Configured choice values; empty for non-choice fields.
2646
+ */
2647
+ options: Array<string>;
2648
+
2649
+ /**
2650
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
2651
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
2652
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
2653
+ * value), DERIVED (calculated value), MASKED (restricted value),
2654
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
2655
+ * by this requested flow).
2656
+ */
2657
+ read_only_reason:
2658
+ | 'PERMISSION_DENIED'
2659
+ | 'RECORD_LOCKED'
2660
+ | 'IMMUTABLE'
2661
+ | 'MANAGED_WRITE_RESTRICTED'
2662
+ | 'DERIVED'
2663
+ | 'MASKED'
2664
+ | 'REFERENCE_UNAVAILABLE'
2665
+ | 'UNSUPPORTED'
2666
+ | null;
2667
+
2668
+ /**
2669
+ * Whether a nonempty value is required by the field schema.
2670
+ */
2671
+ required: boolean;
2672
+
2673
+ /**
2674
+ * Selected record identifier in the reference_object target; null when empty or
2675
+ * masked. Use the Workers GET endpoint for Employee targets, or the Custom Object
2676
+ * record GET endpoint for Custom Object targets.
2677
+ */
2678
+ value: string | null;
2679
+
2680
+ /**
2681
+ * State of the value supplied for this requested flow: PRESENT for a readable
2682
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
2683
+ * empty array; MASKED when access to the field or a referenced value is
2684
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
2685
+ * UNSUPPORTED does not determine edit permission.
2686
+ */
2687
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
2688
+
2689
+ /**
2690
+ * Whether the field value supplied for this requested flow is readable. Create
2691
+ * responses describe only an authorized initial value and do not grant access to
2692
+ * any existing record. A referenced record may have separate access restrictions.
2693
+ */
2694
+ viewable: boolean;
2695
+
2696
+ /**
2697
+ * Permitted presentation of the selection, or null when unavailable. Empty and
2698
+ * masked references have no presentation.
2699
+ */
2700
+ display?: DetailReferenceField.ReferenceDisplay | null;
2701
+
2702
+ /**
2703
+ * Target name for a supported reference: Employee or a Custom Object API name
2704
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
2705
+ */
2706
+ reference_object?: string | null;
2707
+ }
2708
+
2709
+ export namespace DetailReferenceField {
2710
+ /**
2711
+ * Optional presentation of a readable reference, independent of its identifier.
2712
+ */
2713
+ export interface ReferenceDisplay {
2714
+ /**
2715
+ * Permitted display label; never synthesized from the identifier.
2716
+ */
2717
+ label: string;
2718
+
2719
+ /**
2720
+ * Permitted image URL, or null when unavailable.
2721
+ */
2722
+ image_url?: string | null;
2723
+
2724
+ /**
2725
+ * Permitted secondary text, or null when unavailable.
2726
+ */
2727
+ secondary_label?: string | null;
2728
+ }
2729
+ }
2730
+
2731
+ /**
2732
+ * A discoverable field and its initial value and capabilities for the requested
2733
+ * flow.
2734
+ */
2735
+ export interface DetailNativeReferenceField {
2736
+ /**
2737
+ * Field key used by layout placements and canonical record PATCH changes. Direct
2738
+ * keys come from the Custom Object field definition; dotted related keys are
2739
+ * read-only.
2740
+ */
2741
+ api_name: string;
2742
+
2743
+ /**
2744
+ * NATIVE_EDGE identifies a relationship using the same selected identifier and
2745
+ * optional presentation contract.
2746
+ */
2747
+ data_type: 'NATIVE_EDGE';
2748
+
2749
+ /**
2750
+ * Whether you can attempt to supply or change this field through the canonical
2751
+ * write API for the requested flow. This does not grant permission to browse
2752
+ * reference targets; submitted reference identifiers are validated when written.
2753
+ */
2754
+ editable: boolean;
2755
+
2756
+ /**
2757
+ * Field display name.
2758
+ */
2759
+ label: string;
2760
+
2761
+ /**
2762
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
2763
+ * and scalar references.
2764
+ */
2765
+ multiple: boolean;
2766
+
2767
+ /**
2768
+ * Configured choice values; empty for non-choice fields.
2769
+ */
2770
+ options: Array<string>;
2771
+
2772
+ /**
2773
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
2774
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
2775
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
2776
+ * value), DERIVED (calculated value), MASKED (restricted value),
2777
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
2778
+ * by this requested flow).
2779
+ */
2780
+ read_only_reason:
2781
+ | 'PERMISSION_DENIED'
2782
+ | 'RECORD_LOCKED'
2783
+ | 'IMMUTABLE'
2784
+ | 'MANAGED_WRITE_RESTRICTED'
2785
+ | 'DERIVED'
2786
+ | 'MASKED'
2787
+ | 'REFERENCE_UNAVAILABLE'
2788
+ | 'UNSUPPORTED'
2789
+ | null;
2790
+
2791
+ /**
2792
+ * Whether a nonempty value is required by the field schema.
2793
+ */
2794
+ required: boolean;
2795
+
2796
+ /**
2797
+ * Selected record identifier in the reference_object target; null when empty or
2798
+ * masked. Use the Workers GET endpoint for Employee targets, or the Custom Object
2799
+ * record GET endpoint for Custom Object targets.
2800
+ */
2801
+ value: string | null;
2802
+
2803
+ /**
2804
+ * State of the value supplied for this requested flow: PRESENT for a readable
2805
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
2806
+ * empty array; MASKED when access to the field or a referenced value is
2807
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
2808
+ * UNSUPPORTED does not determine edit permission.
2809
+ */
2810
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
2811
+
2812
+ /**
2813
+ * Whether the field value supplied for this requested flow is readable. Create
2814
+ * responses describe only an authorized initial value and do not grant access to
2815
+ * any existing record. A referenced record may have separate access restrictions.
2816
+ */
2817
+ viewable: boolean;
2818
+
2819
+ /**
2820
+ * Permitted presentation of the selection, or null when unavailable. Empty and
2821
+ * masked references have no presentation.
2822
+ */
2823
+ display?: DetailNativeReferenceField.ReferenceDisplay | null;
2824
+
2825
+ /**
2826
+ * Target name for a supported reference: Employee or a Custom Object API name
2827
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
2828
+ */
2829
+ reference_object?: string | null;
2830
+ }
2831
+
2832
+ export namespace DetailNativeReferenceField {
2833
+ /**
2834
+ * Optional presentation of a readable reference, independent of its identifier.
2835
+ */
2836
+ export interface ReferenceDisplay {
2837
+ /**
2838
+ * Permitted display label; never synthesized from the identifier.
2839
+ */
2840
+ label: string;
2841
+
2842
+ /**
2843
+ * Permitted image URL, or null when unavailable.
2844
+ */
2845
+ image_url?: string | null;
2846
+
2847
+ /**
2848
+ * Permitted secondary text, or null when unavailable.
2849
+ */
2850
+ secondary_label?: string | null;
2851
+ }
2852
+ }
2853
+
2854
+ /**
2855
+ * A discoverable field and its initial value and capabilities for the requested
2856
+ * flow.
2857
+ */
2858
+ export interface DetailPercentageField {
2859
+ /**
2860
+ * Field key used by layout placements and canonical record PATCH changes. Direct
2861
+ * keys come from the Custom Object field definition; dotted related keys are
2862
+ * read-only.
2863
+ */
2864
+ api_name: string;
2865
+
2866
+ /**
2867
+ * PERCENTAGE contains a decimal ratio, where 1 means 100%.
2868
+ */
2869
+ data_type: 'PERCENTAGE';
2870
+
2871
+ /**
2872
+ * Whether you can attempt to supply or change this field through the canonical
2873
+ * write API for the requested flow. This does not grant permission to browse
2874
+ * reference targets; submitted reference identifiers are validated when written.
2875
+ */
2876
+ editable: boolean;
2877
+
2878
+ /**
2879
+ * Field display name.
2880
+ */
2881
+ label: string;
2882
+
2883
+ /**
2884
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
2885
+ * and scalar references.
2886
+ */
2887
+ multiple: boolean;
2888
+
2889
+ /**
2890
+ * Configured choice values; empty for non-choice fields.
2891
+ */
2892
+ options: Array<string>;
2893
+
2894
+ /**
2895
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
2896
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
2897
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
2898
+ * value), DERIVED (calculated value), MASKED (restricted value),
2899
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
2900
+ * by this requested flow).
2901
+ */
2902
+ read_only_reason:
2903
+ | 'PERMISSION_DENIED'
2904
+ | 'RECORD_LOCKED'
2905
+ | 'IMMUTABLE'
2906
+ | 'MANAGED_WRITE_RESTRICTED'
2907
+ | 'DERIVED'
2908
+ | 'MASKED'
2909
+ | 'REFERENCE_UNAVAILABLE'
2910
+ | 'UNSUPPORTED'
2911
+ | null;
2912
+
2913
+ /**
2914
+ * Whether a nonempty value is required by the field schema.
2915
+ */
2916
+ required: boolean;
2917
+
2918
+ /**
2919
+ * JSON number containing a decimal ratio without a percent sign: 0, 0.3, 1 and 1.5
2920
+ * mean 0%, 30%, 100% and 150%. Null unless PRESENT.
2921
+ */
2922
+ value: number | null;
2923
+
2924
+ /**
2925
+ * State of the value supplied for this requested flow: PRESENT for a readable
2926
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
2927
+ * empty array; MASKED when access to the field or a referenced value is
2928
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
2929
+ * UNSUPPORTED does not determine edit permission.
2930
+ */
2931
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
2932
+
2933
+ /**
2934
+ * Whether the field value supplied for this requested flow is readable. Create
2935
+ * responses describe only an authorized initial value and do not grant access to
2936
+ * any existing record. A referenced record may have separate access restrictions.
2937
+ */
2938
+ viewable: boolean;
2939
+
2940
+ /**
2941
+ * Configured decimal places, or null.
2942
+ */
2943
+ num_of_decimal_places?: number | null;
2944
+
2945
+ /**
2946
+ * Target name for a supported reference: Employee or a Custom Object API name
2947
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
2948
+ */
2949
+ reference_object?: string | null;
2950
+ }
2951
+
2952
+ /**
2953
+ * A discoverable field and its initial value and capabilities for the requested
2954
+ * flow.
2955
+ */
2956
+ export interface DetailTimeField {
2957
+ /**
2958
+ * Field key used by layout placements and canonical record PATCH changes. Direct
2959
+ * keys come from the Custom Object field definition; dotted related keys are
2960
+ * read-only.
2961
+ */
2962
+ api_name: string;
2963
+
2964
+ /**
2965
+ * TIME contains a time of day.
2966
+ */
2967
+ data_type: 'TIME';
2968
+
2969
+ /**
2970
+ * Whether you can attempt to supply or change this field through the canonical
2971
+ * write API for the requested flow. This does not grant permission to browse
2972
+ * reference targets; submitted reference identifiers are validated when written.
2973
+ */
2974
+ editable: boolean;
2975
+
2976
+ /**
2977
+ * Field display name.
2978
+ */
2979
+ label: string;
2980
+
2981
+ /**
2982
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
2983
+ * and scalar references.
2984
+ */
2985
+ multiple: boolean;
2986
+
2987
+ /**
2988
+ * Configured choice values; empty for non-choice fields.
2989
+ */
2990
+ options: Array<string>;
2991
+
2992
+ /**
2993
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
2994
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
2995
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
2996
+ * value), DERIVED (calculated value), MASKED (restricted value),
2997
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
2998
+ * by this requested flow).
2999
+ */
3000
+ read_only_reason:
3001
+ | 'PERMISSION_DENIED'
3002
+ | 'RECORD_LOCKED'
3003
+ | 'IMMUTABLE'
3004
+ | 'MANAGED_WRITE_RESTRICTED'
3005
+ | 'DERIVED'
3006
+ | 'MASKED'
3007
+ | 'REFERENCE_UNAVAILABLE'
3008
+ | 'UNSUPPORTED'
3009
+ | null;
3010
+
3011
+ /**
3012
+ * Whether a nonempty value is required by the field schema.
3013
+ */
3014
+ required: boolean;
3015
+
3016
+ /**
3017
+ * Time of day in HH:MM:SS format; null unless PRESENT.
3018
+ */
3019
+ value: string | null;
3020
+
3021
+ /**
3022
+ * State of the value supplied for this requested flow: PRESENT for a readable
3023
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
3024
+ * empty array; MASKED when access to the field or a referenced value is
3025
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
3026
+ * UNSUPPORTED does not determine edit permission.
3027
+ */
3028
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
3029
+
3030
+ /**
3031
+ * Whether the field value supplied for this requested flow is readable. Create
3032
+ * responses describe only an authorized initial value and do not grant access to
3033
+ * any existing record. A referenced record may have separate access restrictions.
3034
+ */
3035
+ viewable: boolean;
3036
+
3037
+ /**
3038
+ * Target name for a supported reference: Employee or a Custom Object API name
3039
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
3040
+ */
3041
+ reference_object?: string | null;
3042
+ }
3043
+
3044
+ /**
3045
+ * A discoverable field and its initial value and capabilities for the requested
3046
+ * flow.
3047
+ */
3048
+ export interface DetailUnsupportedField {
3049
+ /**
3050
+ * Field key used by layout placements and canonical record PATCH changes. Direct
3051
+ * keys come from the Custom Object field definition; dotted related keys are
3052
+ * read-only.
3053
+ */
3054
+ api_name: string;
3055
+
3056
+ /**
3057
+ * Field types whose values this endpoint does not currently represent. Edit
3058
+ * permission is evaluated independently of value representation.
3059
+ */
3060
+ data_type: 'ADDRESS' | 'REFERENCE_ID' | 'COORDINATE' | 'TIMESTAMPED_CURRENCY' | 'JSONB' | 'FILE';
3061
+
3062
+ /**
3063
+ * Whether you can attempt to supply or change this field through the canonical
3064
+ * write API for the requested flow. This does not grant permission to browse
3065
+ * reference targets; submitted reference identifiers are validated when written.
3066
+ */
3067
+ editable: boolean;
3068
+
3069
+ /**
3070
+ * Field display name.
3071
+ */
3072
+ label: string;
3073
+
3074
+ /**
3075
+ * Whether this field accepts multiple selections. True for SELECT; false for RADIO
3076
+ * and scalar references.
3077
+ */
3078
+ multiple: boolean;
3079
+
3080
+ /**
3081
+ * Configured choice values; empty for non-choice fields.
3082
+ */
3083
+ options: Array<string>;
3084
+
3085
+ /**
3086
+ * Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
3087
+ * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
3088
+ * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
3089
+ * value), DERIVED (calculated value), MASKED (restricted value),
3090
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
3091
+ * by this requested flow).
3092
+ */
3093
+ read_only_reason:
3094
+ | 'PERMISSION_DENIED'
3095
+ | 'RECORD_LOCKED'
3096
+ | 'IMMUTABLE'
3097
+ | 'MANAGED_WRITE_RESTRICTED'
3098
+ | 'DERIVED'
3099
+ | 'MASKED'
3100
+ | 'REFERENCE_UNAVAILABLE'
3101
+ | 'UNSUPPORTED'
3102
+ | null;
3103
+
3104
+ /**
3105
+ * Whether a nonempty value is required by the field schema.
3106
+ */
3107
+ required: boolean;
3108
+
3109
+ /**
3110
+ * Always null. UNSUPPORTED withholds the value representation; MASKED takes
3111
+ * precedence for a restricted value. Neither state grants write permission.
3112
+ */
3113
+ value: null;
3114
+
3115
+ /**
3116
+ * State of the value supplied for this requested flow: PRESENT for a readable
3117
+ * nonempty value, including false and zero; EMPTY for null, an empty string, or an
3118
+ * empty array; MASKED when access to the field or a referenced value is
3119
+ * restricted; or UNSUPPORTED when the endpoint does not represent the value.
3120
+ * UNSUPPORTED does not determine edit permission.
3121
+ */
3122
+ value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
3123
+
3124
+ /**
3125
+ * Whether the field value supplied for this requested flow is readable. Create
3126
+ * responses describe only an authorized initial value and do not grant access to
3127
+ * any existing record. A referenced record may have separate access restrictions.
3128
+ */
3129
+ viewable: boolean;
3130
+
3131
+ /**
3132
+ * Target name for a supported reference: Employee or a Custom Object API name
3133
+ * ending in \_\_c. Null for other fields and unsupported reference targets.
3134
+ */
3135
+ reference_object?: string | null;
3136
+ }
3137
+
3138
+ /**
3139
+ * Effective create layout after visibility and permission filtering.
3140
+ */
3141
+ export interface Layout {
3142
+ /**
3143
+ * Resolved saved layout API name.
3144
+ */
3145
+ api_name: string;
3146
+
3147
+ /**
3148
+ * Semantic record header.
3149
+ */
3150
+ header: Layout.Header;
3151
+
3152
+ /**
3153
+ * Ordered, visible tabs.
3154
+ */
3155
+ tabs: Array<Layout.Tab>;
3156
+ }
3157
+
3158
+ export namespace Layout {
3159
+ /**
3160
+ * Semantic record header.
3161
+ */
3162
+ export interface Header {
3163
+ /**
3164
+ * Ordered summary field API names.
3165
+ */
3166
+ fields: Array<string>;
3167
+
3168
+ /**
3169
+ * Description field API name, or null when unavailable.
3170
+ */
3171
+ description_field?: string | null;
3172
+
3173
+ /**
3174
+ * Title field API name, or null when unavailable.
3175
+ */
3176
+ title_field?: string | null;
3177
+ }
3178
+
3179
+ /**
3180
+ * Ordered, visible tab of sections in the effective record page layout.
3181
+ */
3182
+ export interface Tab {
3183
+ /**
3184
+ * Stable tab identifier.
3185
+ */
3186
+ id: string;
3187
+
3188
+ /**
3189
+ * Tab display name.
3190
+ */
3191
+ label: string;
3192
+
3193
+ /**
3194
+ * Ordered, visible sections.
3195
+ */
3196
+ sections: Array<Tab.Section>;
3197
+ }
3198
+
3199
+ export namespace Tab {
3200
+ /**
3201
+ * Visible group of field placements, a deferred related list, or explicitly
3202
+ * unsupported content.
3203
+ */
3204
+ export interface Section {
3205
+ /**
3206
+ * Section identifier scoped to the effective layout.
3207
+ */
3208
+ id: string;
3209
+
3210
+ /**
3211
+ * Suggested field columns; clients may adapt to available space.
3212
+ */
3213
+ columns: number;
3214
+
3215
+ /**
3216
+ * Ordered placements for a FIELDS section. Empty for RELATED_LIST and UNSUPPORTED
3217
+ * sections.
3218
+ */
3219
+ fields: Array<Section.Field>;
3220
+
3221
+ /**
3222
+ * Section display name.
3223
+ */
3224
+ label: string;
3225
+
3226
+ /**
3227
+ * FIELDS contains ordered field placements; RELATED_LIST describes a deferred
3228
+ * related-record grid without embedding its rows; UNSUPPORTED identifies visible
3229
+ * content this API cannot render.
3230
+ */
3231
+ type: 'FIELDS' | 'RELATED_LIST' | 'UNSUPPORTED';
3232
+
3233
+ /**
3234
+ * Ordered readable columns configured for a RELATED_LIST; empty for other
3235
+ * sections.
3236
+ */
3237
+ column_field_api_names?: Array<string>;
3238
+
3239
+ /**
3240
+ * Related Custom Object API name; null for other sections.
3241
+ */
3242
+ object_api_name?: string | null;
3243
+
3244
+ /**
3245
+ * CONTENT_NOT_SUPPORTED means this section requires a renderer outside this API;
3246
+ * RELATED_OBJECT_NOT_SUPPORTED means the related list targets a native object,
3247
+ * which this release cannot render. Null for supported field and Custom Object
3248
+ * related-list sections.
3249
+ */
3250
+ reason?: 'CONTENT_NOT_SUPPORTED' | 'RELATED_OBJECT_NOT_SUPPORTED' | null;
3251
+
3252
+ /**
3253
+ * Field on the related Custom Object that points to this record; null for other
3254
+ * sections.
3255
+ */
3256
+ relationship_field_api_name?: string | null;
3257
+ }
3258
+
3259
+ export namespace Section {
3260
+ /**
3261
+ * Placement of a discoverable field in a saved layout; contains no field value.
3262
+ */
3263
+ export interface Field {
3264
+ /**
3265
+ * Field API name in the response fields map.
3266
+ */
3267
+ field: string;
3268
+
3269
+ /**
3270
+ * Whether this placement is read-only.
3271
+ */
3272
+ read_only: boolean;
3273
+ }
3274
+ }
3275
+ }
3276
+ }
3277
+ }
3278
+
3279
+ export interface RecordDetailRetrieveParams {
3280
+ /**
3281
+ * Custom Object API name, such as equipment\_\_c. Obtain it from the Custom Object
3282
+ * definition or the grid's configured object.
3283
+ */
3284
+ object_api_name: string;
3285
+
3286
+ /**
3287
+ * Select the saved Custom Object page layout by API name. Omit to use default.
3288
+ * Keep the resolved layout.api_name from the detail response when loading related
3289
+ * sections.
3290
+ */
3291
+ layout_api_name?: string;
3292
+ }
3293
+
3294
+ export interface RecordDetailRetrieveCreateParams {
3295
+ /**
3296
+ * Custom Object API name, such as equipment\_\_c. Obtain it from the Custom Object
3297
+ * definition or the grid's configured object.
3298
+ */
3299
+ object_api_name: string;
3300
+
3301
+ /**
3302
+ * Select the saved Custom Object page layout by API name. Omit to use default.
3303
+ * Keep the resolved layout.api_name from the detail response when loading related
3304
+ * sections.
3305
+ */
3306
+ layout_api_name?: string;
3307
+ }
3308
+
3309
+ export declare namespace RecordDetails {
3310
+ export {
3311
+ type RecordDetailRetrieveResponse as RecordDetailRetrieveResponse,
3312
+ type RecordDetailRetrieveCreateResponse as RecordDetailRetrieveCreateResponse,
3313
+ type RecordDetailRetrieveParams as RecordDetailRetrieveParams,
3314
+ type RecordDetailRetrieveCreateParams as RecordDetailRetrieveCreateParams,
3315
+ };
3316
+ }