@rippling/rippling-sdk 0.2.0-alpha.111 → 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 (52) hide show
  1. package/client.d.mts +2 -2
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +2 -2
  4. package/client.d.ts.map +1 -1
  5. package/client.js.map +1 -1
  6. package/client.mjs.map +1 -1
  7. package/package.json +1 -1
  8. package/resources/index.d.mts +1 -1
  9. package/resources/index.d.mts.map +1 -1
  10. package/resources/index.d.ts +1 -1
  11. package/resources/index.d.ts.map +1 -1
  12. package/resources/index.js.map +1 -1
  13. package/resources/index.mjs.map +1 -1
  14. package/resources/record-detail-reference-options.d.mts +18 -19
  15. package/resources/record-detail-reference-options.d.mts.map +1 -1
  16. package/resources/record-detail-reference-options.d.ts +18 -19
  17. package/resources/record-detail-reference-options.d.ts.map +1 -1
  18. package/resources/record-detail-reference-options.js +13 -13
  19. package/resources/record-detail-reference-options.mjs +13 -13
  20. package/resources/record-detail-related-records.d.mts +263 -204
  21. package/resources/record-detail-related-records.d.mts.map +1 -1
  22. package/resources/record-detail-related-records.d.ts +263 -204
  23. package/resources/record-detail-related-records.d.ts.map +1 -1
  24. package/resources/record-detail-related-records.js +3 -3
  25. package/resources/record-detail-related-records.mjs +3 -3
  26. package/resources/record-details.d.mts +1616 -222
  27. package/resources/record-details.d.mts.map +1 -1
  28. package/resources/record-details.d.ts +1616 -222
  29. package/resources/record-details.d.ts.map +1 -1
  30. package/resources/record-details.js +76 -6
  31. package/resources/record-details.js.map +1 -1
  32. package/resources/record-details.mjs +76 -6
  33. package/resources/record-details.mjs.map +1 -1
  34. package/resources/worker-changes.d.mts +65 -10
  35. package/resources/worker-changes.d.mts.map +1 -1
  36. package/resources/worker-changes.d.ts +65 -10
  37. package/resources/worker-changes.d.ts.map +1 -1
  38. package/resources/worker-changes.js +3 -0
  39. package/resources/worker-changes.js.map +1 -1
  40. package/resources/worker-changes.mjs +3 -0
  41. package/resources/worker-changes.mjs.map +1 -1
  42. package/src/client.ts +4 -0
  43. package/src/resources/index.ts +2 -0
  44. package/src/resources/record-detail-reference-options.ts +18 -19
  45. package/src/resources/record-detail-related-records.ts +268 -191
  46. package/src/resources/record-details.ts +1971 -209
  47. package/src/resources/worker-changes.ts +71 -10
  48. package/src/version.ts +1 -1
  49. package/version.d.mts +1 -1
  50. package/version.d.ts +1 -1
  51. package/version.js +1 -1
  52. package/version.mjs +1 -1
@@ -17,10 +17,11 @@ export class RecordDetails extends APIResource {
17
17
  * canonical record PATCH endpoint. Includes discoverable direct fields outside the
18
18
  * layout. Unreadable fields retain metadata with null, MASKED values; saved
19
19
  * visibility conditions and field permissions determine the returned placements.
20
- * Related-list contents load separately through each section's records_link.
21
- * Metadata-administration scopes are not required. Masked values contain no raw
22
- * data. Values use the formats documented by data_type. References contain a
23
- * scalar identifier and optional permitted display, not an expanded resource.
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.
24
25
  *
25
26
  * @example HTTP
26
27
  * Representative request and response shapes.
@@ -44,7 +45,6 @@ export class RecordDetails extends APIResource {
44
45
  * },
45
46
  * "layout": {
46
47
  * "api_name": "string",
47
- * "revision": "string",
48
48
  * "header": {
49
49
  * "title_field": "string",
50
50
  * "description_field": "string",
@@ -60,7 +60,18 @@ export class RecordDetails extends APIResource {
60
60
  * }
61
61
  * ]
62
62
  * },
63
- * "fields": {}
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
+ * ]
64
75
  * }
65
76
  * ```
66
77
  */
@@ -71,6 +82,69 @@ export class RecordDetails extends APIResource {
71
82
  ): APIPromise<RecordDetailRetrieveResponse> {
72
83
  return this._client.get(path`/record-details/${recordID}/`, { query, ...options });
73
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
+ }
74
148
  }
75
149
 
76
150
  /**
@@ -84,6 +158,12 @@ export interface RecordDetailRetrieveResponse {
84
158
  */
85
159
  id: string;
86
160
 
161
+ /**
162
+ * Complete authorized DETAIL_VIEW actions. Function execution and execution reads
163
+ * remain separately authorized.
164
+ */
165
+ actions: Array<RecordDetailRetrieveResponse.Action>;
166
+
87
167
  /**
88
168
  * Permissions and lock state for this caller.
89
169
  */
@@ -91,8 +171,8 @@ export interface RecordDetailRetrieveResponse {
91
171
 
92
172
  /**
93
173
  * Discoverable direct fields plus read-only related fields used by the layout.
94
- * Unreadable fields retain metadata and layout placements with a null, MASKED
95
- * value.
174
+ * Each value is the saved value loaded for this record. Unreadable fields retain
175
+ * metadata and layout placements with a null, MASKED value.
96
176
  */
97
177
  fields: {
98
178
  [key: string]:
@@ -130,6 +210,39 @@ export interface RecordDetailRetrieveResponse {
130
210
  }
131
211
 
132
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
+
133
246
  /**
134
247
  * Permissions and lock state for this caller.
135
248
  */
@@ -154,7 +267,8 @@ export namespace RecordDetailRetrieveResponse {
154
267
  }
155
268
 
156
269
  /**
157
- * A discoverable record field and the caller's read and write capabilities.
270
+ * A discoverable field and its initial value and capabilities for the requested
271
+ * flow.
158
272
  */
159
273
  export interface DetailTextField {
160
274
  /**
@@ -171,9 +285,9 @@ export namespace RecordDetailRetrieveResponse {
171
285
  data_type: 'TEXT' | 'LONG_TEXT' | 'EMAIL' | 'URL' | 'PHONE_NUMBER';
172
286
 
173
287
  /**
174
- * Whether you can attempt to update this field through the API. This does not
175
- * grant permission to browse reference targets; submitted reference identifiers
176
- * are validated when written.
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.
177
291
  */
178
292
  editable: boolean;
179
293
 
@@ -198,7 +312,8 @@ export namespace RecordDetailRetrieveResponse {
198
312
  * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
199
313
  * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
200
314
  * value), DERIVED (calculated value), MASKED (restricted value),
201
- * REFERENCE_UNAVAILABLE (unavailable reference target).
315
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
316
+ * by this requested flow).
202
317
  */
203
318
  read_only_reason:
204
319
  | 'PERMISSION_DENIED'
@@ -208,6 +323,7 @@ export namespace RecordDetailRetrieveResponse {
208
323
  | 'DERIVED'
209
324
  | 'MASKED'
210
325
  | 'REFERENCE_UNAVAILABLE'
326
+ | 'UNSUPPORTED'
211
327
  | null;
212
328
 
213
329
  /**
@@ -222,29 +338,36 @@ export namespace RecordDetailRetrieveResponse {
222
338
  value: string | null;
223
339
 
224
340
  /**
225
- * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
226
- * an empty string, or an empty array; MASKED when access to the field or a
227
- * referenced value is restricted; or UNSUPPORTED when the endpoint does not
228
- * represent the value. UNSUPPORTED does not determine edit permission.
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.
229
346
  */
230
347
  value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
231
348
 
232
349
  /**
233
- * Whether you can read this record's field. A referenced record may have separate
234
- * access restrictions.
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.
235
353
  */
236
354
  viewable: boolean;
237
355
 
238
356
  /**
239
- * Object-graph/RQL target name for a supported reference, such as Employee,
240
- * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
241
- * fields and unsupported reference targets.
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.
242
364
  */
243
365
  reference_object?: string | null;
244
366
  }
245
367
 
246
368
  /**
247
- * A discoverable record field and the caller's read and write capabilities.
369
+ * A discoverable field and its initial value and capabilities for the requested
370
+ * flow.
248
371
  */
249
372
  export interface DetailNumberField {
250
373
  /**
@@ -260,9 +383,9 @@ export namespace RecordDetailRetrieveResponse {
260
383
  data_type: 'NUMBER';
261
384
 
262
385
  /**
263
- * Whether you can attempt to update this field through the API. This does not
264
- * grant permission to browse reference targets; submitted reference identifiers
265
- * are validated when written.
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.
266
389
  */
267
390
  editable: boolean;
268
391
 
@@ -287,7 +410,8 @@ export namespace RecordDetailRetrieveResponse {
287
410
  * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
288
411
  * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
289
412
  * value), DERIVED (calculated value), MASKED (restricted value),
290
- * REFERENCE_UNAVAILABLE (unavailable reference target).
413
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
414
+ * by this requested flow).
291
415
  */
292
416
  read_only_reason:
293
417
  | 'PERMISSION_DENIED'
@@ -297,6 +421,7 @@ export namespace RecordDetailRetrieveResponse {
297
421
  | 'DERIVED'
298
422
  | 'MASKED'
299
423
  | 'REFERENCE_UNAVAILABLE'
424
+ | 'UNSUPPORTED'
300
425
  | null;
301
426
 
302
427
  /**
@@ -311,29 +436,36 @@ export namespace RecordDetailRetrieveResponse {
311
436
  value: string | null;
312
437
 
313
438
  /**
314
- * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
315
- * an empty string, or an empty array; MASKED when access to the field or a
316
- * referenced value is restricted; or UNSUPPORTED when the endpoint does not
317
- * represent the value. UNSUPPORTED does not determine edit permission.
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.
318
444
  */
319
445
  value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
320
446
 
321
447
  /**
322
- * Whether you can read this record's field. A referenced record may have separate
323
- * access restrictions.
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.
324
451
  */
325
452
  viewable: boolean;
326
453
 
327
454
  /**
328
- * Object-graph/RQL target name for a supported reference, such as Employee,
329
- * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
330
- * fields and unsupported reference targets.
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.
331
462
  */
332
463
  reference_object?: string | null;
333
464
  }
334
465
 
335
466
  /**
336
- * A discoverable record field and the caller's read and write capabilities.
467
+ * A discoverable field and its initial value and capabilities for the requested
468
+ * flow.
337
469
  */
338
470
  export interface DetailBooleanField {
339
471
  /**
@@ -349,9 +481,9 @@ export namespace RecordDetailRetrieveResponse {
349
481
  data_type: 'BOOLEAN';
350
482
 
351
483
  /**
352
- * Whether you can attempt to update this field through the API. This does not
353
- * grant permission to browse reference targets; submitted reference identifiers
354
- * are validated when written.
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.
355
487
  */
356
488
  editable: boolean;
357
489
 
@@ -376,7 +508,8 @@ export namespace RecordDetailRetrieveResponse {
376
508
  * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
377
509
  * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
378
510
  * value), DERIVED (calculated value), MASKED (restricted value),
379
- * REFERENCE_UNAVAILABLE (unavailable reference target).
511
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
512
+ * by this requested flow).
380
513
  */
381
514
  read_only_reason:
382
515
  | 'PERMISSION_DENIED'
@@ -386,6 +519,7 @@ export namespace RecordDetailRetrieveResponse {
386
519
  | 'DERIVED'
387
520
  | 'MASKED'
388
521
  | 'REFERENCE_UNAVAILABLE'
522
+ | 'UNSUPPORTED'
389
523
  | null;
390
524
 
391
525
  /**
@@ -399,29 +533,31 @@ export namespace RecordDetailRetrieveResponse {
399
533
  value: boolean | null;
400
534
 
401
535
  /**
402
- * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
403
- * an empty string, or an empty array; MASKED when access to the field or a
404
- * referenced value is restricted; or UNSUPPORTED when the endpoint does not
405
- * represent the value. UNSUPPORTED does not determine edit permission.
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.
406
541
  */
407
542
  value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
408
543
 
409
544
  /**
410
- * Whether you can read this record's field. A referenced record may have separate
411
- * access restrictions.
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.
412
548
  */
413
549
  viewable: boolean;
414
550
 
415
551
  /**
416
- * Object-graph/RQL target name for a supported reference, such as Employee,
417
- * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
418
- * fields and unsupported reference targets.
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.
419
554
  */
420
555
  reference_object?: string | null;
421
556
  }
422
557
 
423
558
  /**
424
- * A discoverable record field and the caller's read and write capabilities.
559
+ * A discoverable field and its initial value and capabilities for the requested
560
+ * flow.
425
561
  */
426
562
  export interface DetailDateField {
427
563
  /**
@@ -437,9 +573,9 @@ export namespace RecordDetailRetrieveResponse {
437
573
  data_type: 'DATE';
438
574
 
439
575
  /**
440
- * Whether you can attempt to update this field through the API. This does not
441
- * grant permission to browse reference targets; submitted reference identifiers
442
- * are validated when written.
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.
443
579
  */
444
580
  editable: boolean;
445
581
 
@@ -464,7 +600,8 @@ export namespace RecordDetailRetrieveResponse {
464
600
  * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
465
601
  * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
466
602
  * value), DERIVED (calculated value), MASKED (restricted value),
467
- * REFERENCE_UNAVAILABLE (unavailable reference target).
603
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
604
+ * by this requested flow).
468
605
  */
469
606
  read_only_reason:
470
607
  | 'PERMISSION_DENIED'
@@ -474,6 +611,7 @@ export namespace RecordDetailRetrieveResponse {
474
611
  | 'DERIVED'
475
612
  | 'MASKED'
476
613
  | 'REFERENCE_UNAVAILABLE'
614
+ | 'UNSUPPORTED'
477
615
  | null;
478
616
 
479
617
  /**
@@ -488,29 +626,31 @@ export namespace RecordDetailRetrieveResponse {
488
626
  value: string | null;
489
627
 
490
628
  /**
491
- * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
492
- * an empty string, or an empty array; MASKED when access to the field or a
493
- * referenced value is restricted; or UNSUPPORTED when the endpoint does not
494
- * represent the value. UNSUPPORTED does not determine edit permission.
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.
495
634
  */
496
635
  value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
497
636
 
498
637
  /**
499
- * Whether you can read this record's field. A referenced record may have separate
500
- * access restrictions.
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.
501
641
  */
502
642
  viewable: boolean;
503
643
 
504
644
  /**
505
- * Object-graph/RQL target name for a supported reference, such as Employee,
506
- * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
507
- * fields and unsupported reference targets.
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.
508
647
  */
509
648
  reference_object?: string | null;
510
649
  }
511
650
 
512
651
  /**
513
- * A discoverable record field and the caller's read and write capabilities.
652
+ * A discoverable field and its initial value and capabilities for the requested
653
+ * flow.
514
654
  */
515
655
  export interface DetailDateTimeField {
516
656
  /**
@@ -526,9 +666,9 @@ export namespace RecordDetailRetrieveResponse {
526
666
  data_type: 'DATETIME';
527
667
 
528
668
  /**
529
- * Whether you can attempt to update this field through the API. This does not
530
- * grant permission to browse reference targets; submitted reference identifiers
531
- * are validated when written.
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.
532
672
  */
533
673
  editable: boolean;
534
674
 
@@ -553,7 +693,8 @@ export namespace RecordDetailRetrieveResponse {
553
693
  * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
554
694
  * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
555
695
  * value), DERIVED (calculated value), MASKED (restricted value),
556
- * REFERENCE_UNAVAILABLE (unavailable reference target).
696
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
697
+ * by this requested flow).
557
698
  */
558
699
  read_only_reason:
559
700
  | 'PERMISSION_DENIED'
@@ -563,6 +704,7 @@ export namespace RecordDetailRetrieveResponse {
563
704
  | 'DERIVED'
564
705
  | 'MASKED'
565
706
  | 'REFERENCE_UNAVAILABLE'
707
+ | 'UNSUPPORTED'
566
708
  | null;
567
709
 
568
710
  /**
@@ -578,29 +720,31 @@ export namespace RecordDetailRetrieveResponse {
578
720
  value: string | null;
579
721
 
580
722
  /**
581
- * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
582
- * an empty string, or an empty array; MASKED when access to the field or a
583
- * referenced value is restricted; or UNSUPPORTED when the endpoint does not
584
- * represent the value. UNSUPPORTED does not determine edit permission.
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.
585
728
  */
586
729
  value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
587
730
 
588
731
  /**
589
- * Whether you can read this record's field. A referenced record may have separate
590
- * access restrictions.
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.
591
735
  */
592
736
  viewable: boolean;
593
737
 
594
738
  /**
595
- * Object-graph/RQL target name for a supported reference, such as Employee,
596
- * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
597
- * fields and unsupported reference targets.
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.
598
741
  */
599
742
  reference_object?: string | null;
600
743
  }
601
744
 
602
745
  /**
603
- * A discoverable record field and the caller's read and write capabilities.
746
+ * A discoverable field and its initial value and capabilities for the requested
747
+ * flow.
604
748
  */
605
749
  export interface DetailCurrencyField {
606
750
  /**
@@ -616,9 +760,9 @@ export namespace RecordDetailRetrieveResponse {
616
760
  data_type: 'CURRENCY';
617
761
 
618
762
  /**
619
- * Whether you can attempt to update this field through the API. This does not
620
- * grant permission to browse reference targets; submitted reference identifiers
621
- * are validated when written.
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.
622
766
  */
623
767
  editable: boolean;
624
768
 
@@ -643,7 +787,8 @@ export namespace RecordDetailRetrieveResponse {
643
787
  * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
644
788
  * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
645
789
  * value), DERIVED (calculated value), MASKED (restricted value),
646
- * REFERENCE_UNAVAILABLE (unavailable reference target).
790
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
791
+ * by this requested flow).
647
792
  */
648
793
  read_only_reason:
649
794
  | 'PERMISSION_DENIED'
@@ -653,6 +798,7 @@ export namespace RecordDetailRetrieveResponse {
653
798
  | 'DERIVED'
654
799
  | 'MASKED'
655
800
  | 'REFERENCE_UNAVAILABLE'
801
+ | 'UNSUPPORTED'
656
802
  | null;
657
803
 
658
804
  /**
@@ -668,23 +814,34 @@ export namespace RecordDetailRetrieveResponse {
668
814
  value: DetailCurrencyField.RecordDetailCurrency | null;
669
815
 
670
816
  /**
671
- * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
672
- * an empty string, or an empty array; MASKED when access to the field or a
673
- * referenced value is restricted; or UNSUPPORTED when the endpoint does not
674
- * represent the value. UNSUPPORTED does not determine edit permission.
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.
675
822
  */
676
823
  value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
677
824
 
678
825
  /**
679
- * Whether you can read this record's field. A referenced record may have separate
680
- * access restrictions.
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.
681
829
  */
682
830
  viewable: boolean;
683
831
 
684
832
  /**
685
- * Object-graph/RQL target name for a supported reference, such as Employee,
686
- * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
687
- * fields and unsupported reference targets.
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.
688
845
  */
689
846
  reference_object?: string | null;
690
847
  }
@@ -707,7 +864,8 @@ export namespace RecordDetailRetrieveResponse {
707
864
  }
708
865
 
709
866
  /**
710
- * A discoverable record field and the caller's read and write capabilities.
867
+ * A discoverable field and its initial value and capabilities for the requested
868
+ * flow.
711
869
  */
712
870
  export interface DetailChoiceField {
713
871
  /**
@@ -723,9 +881,9 @@ export namespace RecordDetailRetrieveResponse {
723
881
  data_type: 'RADIO';
724
882
 
725
883
  /**
726
- * Whether you can attempt to update this field through the API. This does not
727
- * grant permission to browse reference targets; submitted reference identifiers
728
- * are validated when written.
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.
729
887
  */
730
888
  editable: boolean;
731
889
 
@@ -750,7 +908,8 @@ export namespace RecordDetailRetrieveResponse {
750
908
  * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
751
909
  * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
752
910
  * value), DERIVED (calculated value), MASKED (restricted value),
753
- * REFERENCE_UNAVAILABLE (unavailable reference target).
911
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
912
+ * by this requested flow).
754
913
  */
755
914
  read_only_reason:
756
915
  | 'PERMISSION_DENIED'
@@ -760,6 +919,7 @@ export namespace RecordDetailRetrieveResponse {
760
919
  | 'DERIVED'
761
920
  | 'MASKED'
762
921
  | 'REFERENCE_UNAVAILABLE'
922
+ | 'UNSUPPORTED'
763
923
  | null;
764
924
 
765
925
  /**
@@ -774,29 +934,31 @@ export namespace RecordDetailRetrieveResponse {
774
934
  value: string | null;
775
935
 
776
936
  /**
777
- * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
778
- * an empty string, or an empty array; MASKED when access to the field or a
779
- * referenced value is restricted; or UNSUPPORTED when the endpoint does not
780
- * represent the value. UNSUPPORTED does not determine edit permission.
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.
781
942
  */
782
943
  value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
783
944
 
784
945
  /**
785
- * Whether you can read this record's field. A referenced record may have separate
786
- * access restrictions.
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.
787
949
  */
788
950
  viewable: boolean;
789
951
 
790
952
  /**
791
- * Object-graph/RQL target name for a supported reference, such as Employee,
792
- * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
793
- * fields and unsupported reference targets.
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.
794
955
  */
795
956
  reference_object?: string | null;
796
957
  }
797
958
 
798
959
  /**
799
- * A discoverable record field and the caller's read and write capabilities.
960
+ * A discoverable field and its initial value and capabilities for the requested
961
+ * flow.
800
962
  */
801
963
  export interface DetailMultiChoiceField {
802
964
  /**
@@ -812,9 +974,9 @@ export namespace RecordDetailRetrieveResponse {
812
974
  data_type: 'SELECT';
813
975
 
814
976
  /**
815
- * Whether you can attempt to update this field through the API. This does not
816
- * grant permission to browse reference targets; submitted reference identifiers
817
- * are validated when written.
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.
818
980
  */
819
981
  editable: boolean;
820
982
 
@@ -839,7 +1001,8 @@ export namespace RecordDetailRetrieveResponse {
839
1001
  * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
840
1002
  * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
841
1003
  * value), DERIVED (calculated value), MASKED (restricted value),
842
- * REFERENCE_UNAVAILABLE (unavailable reference target).
1004
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
1005
+ * by this requested flow).
843
1006
  */
844
1007
  read_only_reason:
845
1008
  | 'PERMISSION_DENIED'
@@ -849,6 +1012,7 @@ export namespace RecordDetailRetrieveResponse {
849
1012
  | 'DERIVED'
850
1013
  | 'MASKED'
851
1014
  | 'REFERENCE_UNAVAILABLE'
1015
+ | 'UNSUPPORTED'
852
1016
  | null;
853
1017
 
854
1018
  /**
@@ -863,29 +1027,31 @@ export namespace RecordDetailRetrieveResponse {
863
1027
  value: Array<string> | null;
864
1028
 
865
1029
  /**
866
- * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
867
- * an empty string, or an empty array; MASKED when access to the field or a
868
- * referenced value is restricted; or UNSUPPORTED when the endpoint does not
869
- * represent the value. UNSUPPORTED does not determine edit permission.
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.
870
1035
  */
871
1036
  value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
872
1037
 
873
1038
  /**
874
- * Whether you can read this record's field. A referenced record may have separate
875
- * access restrictions.
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.
876
1042
  */
877
1043
  viewable: boolean;
878
1044
 
879
1045
  /**
880
- * Object-graph/RQL target name for a supported reference, such as Employee,
881
- * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
882
- * fields and unsupported reference targets.
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.
883
1048
  */
884
1049
  reference_object?: string | null;
885
1050
  }
886
1051
 
887
1052
  /**
888
- * A discoverable record field and the caller's read and write capabilities.
1053
+ * A discoverable field and its initial value and capabilities for the requested
1054
+ * flow.
889
1055
  */
890
1056
  export interface DetailReferenceField {
891
1057
  /**
@@ -902,9 +1068,9 @@ export namespace RecordDetailRetrieveResponse {
902
1068
  data_type: 'OG_REFERENCE_FIELD';
903
1069
 
904
1070
  /**
905
- * Whether you can attempt to update this field through the API. This does not
906
- * grant permission to browse reference targets; submitted reference identifiers
907
- * are validated when written.
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.
908
1074
  */
909
1075
  editable: boolean;
910
1076
 
@@ -929,7 +1095,8 @@ export namespace RecordDetailRetrieveResponse {
929
1095
  * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
930
1096
  * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
931
1097
  * value), DERIVED (calculated value), MASKED (restricted value),
932
- * REFERENCE_UNAVAILABLE (unavailable reference target).
1098
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
1099
+ * by this requested flow).
933
1100
  */
934
1101
  read_only_reason:
935
1102
  | 'PERMISSION_DENIED'
@@ -939,6 +1106,7 @@ export namespace RecordDetailRetrieveResponse {
939
1106
  | 'DERIVED'
940
1107
  | 'MASKED'
941
1108
  | 'REFERENCE_UNAVAILABLE'
1109
+ | 'UNSUPPORTED'
942
1110
  | null;
943
1111
 
944
1112
  /**
@@ -948,22 +1116,24 @@ export namespace RecordDetailRetrieveResponse {
948
1116
 
949
1117
  /**
950
1118
  * Selected record identifier in the reference_object target; null when empty or
951
- * masked. Use the Workers GET endpoint for Employee or RoleWithCompany targets, or
952
- * the Custom Object record GET endpoint for Custom Object targets.
1119
+ * masked. Use the Workers GET endpoint for Employee targets, or the Custom Object
1120
+ * record GET endpoint for Custom Object targets.
953
1121
  */
954
1122
  value: string | null;
955
1123
 
956
1124
  /**
957
- * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
958
- * an empty string, or an empty array; MASKED when access to the field or a
959
- * referenced value is restricted; or UNSUPPORTED when the endpoint does not
960
- * represent the value. UNSUPPORTED does not determine edit permission.
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.
961
1130
  */
962
1131
  value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
963
1132
 
964
1133
  /**
965
- * Whether you can read this record's field. A referenced record may have separate
966
- * access restrictions.
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.
967
1137
  */
968
1138
  viewable: boolean;
969
1139
 
@@ -974,9 +1144,8 @@ export namespace RecordDetailRetrieveResponse {
974
1144
  display?: DetailReferenceField.ReferenceDisplay | null;
975
1145
 
976
1146
  /**
977
- * Object-graph/RQL target name for a supported reference, such as Employee,
978
- * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
979
- * fields and unsupported reference targets.
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.
980
1149
  */
981
1150
  reference_object?: string | null;
982
1151
  }
@@ -1004,7 +1173,8 @@ export namespace RecordDetailRetrieveResponse {
1004
1173
  }
1005
1174
 
1006
1175
  /**
1007
- * A discoverable record field and the caller's read and write capabilities.
1176
+ * A discoverable field and its initial value and capabilities for the requested
1177
+ * flow.
1008
1178
  */
1009
1179
  export interface DetailNativeReferenceField {
1010
1180
  /**
@@ -1021,9 +1191,9 @@ export namespace RecordDetailRetrieveResponse {
1021
1191
  data_type: 'NATIVE_EDGE';
1022
1192
 
1023
1193
  /**
1024
- * Whether you can attempt to update this field through the API. This does not
1025
- * grant permission to browse reference targets; submitted reference identifiers
1026
- * are validated when written.
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.
1027
1197
  */
1028
1198
  editable: boolean;
1029
1199
 
@@ -1048,7 +1218,8 @@ export namespace RecordDetailRetrieveResponse {
1048
1218
  * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
1049
1219
  * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
1050
1220
  * value), DERIVED (calculated value), MASKED (restricted value),
1051
- * REFERENCE_UNAVAILABLE (unavailable reference target).
1221
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
1222
+ * by this requested flow).
1052
1223
  */
1053
1224
  read_only_reason:
1054
1225
  | 'PERMISSION_DENIED'
@@ -1058,6 +1229,7 @@ export namespace RecordDetailRetrieveResponse {
1058
1229
  | 'DERIVED'
1059
1230
  | 'MASKED'
1060
1231
  | 'REFERENCE_UNAVAILABLE'
1232
+ | 'UNSUPPORTED'
1061
1233
  | null;
1062
1234
 
1063
1235
  /**
@@ -1067,22 +1239,24 @@ export namespace RecordDetailRetrieveResponse {
1067
1239
 
1068
1240
  /**
1069
1241
  * Selected record identifier in the reference_object target; null when empty or
1070
- * masked. Use the Workers GET endpoint for Employee or RoleWithCompany targets, or
1071
- * the Custom Object record GET endpoint for Custom Object targets.
1242
+ * masked. Use the Workers GET endpoint for Employee targets, or the Custom Object
1243
+ * record GET endpoint for Custom Object targets.
1072
1244
  */
1073
1245
  value: string | null;
1074
1246
 
1075
1247
  /**
1076
- * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
1077
- * an empty string, or an empty array; MASKED when access to the field or a
1078
- * referenced value is restricted; or UNSUPPORTED when the endpoint does not
1079
- * represent the value. UNSUPPORTED does not determine edit permission.
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.
1080
1253
  */
1081
1254
  value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
1082
1255
 
1083
1256
  /**
1084
- * Whether you can read this record's field. A referenced record may have separate
1085
- * access restrictions.
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.
1086
1260
  */
1087
1261
  viewable: boolean;
1088
1262
 
@@ -1093,9 +1267,8 @@ export namespace RecordDetailRetrieveResponse {
1093
1267
  display?: DetailNativeReferenceField.ReferenceDisplay | null;
1094
1268
 
1095
1269
  /**
1096
- * Object-graph/RQL target name for a supported reference, such as Employee,
1097
- * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
1098
- * fields and unsupported reference targets.
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.
1099
1272
  */
1100
1273
  reference_object?: string | null;
1101
1274
  }
@@ -1123,7 +1296,8 @@ export namespace RecordDetailRetrieveResponse {
1123
1296
  }
1124
1297
 
1125
1298
  /**
1126
- * A discoverable record field and the caller's read and write capabilities.
1299
+ * A discoverable field and its initial value and capabilities for the requested
1300
+ * flow.
1127
1301
  */
1128
1302
  export interface DetailPercentageField {
1129
1303
  /**
@@ -1139,9 +1313,9 @@ export namespace RecordDetailRetrieveResponse {
1139
1313
  data_type: 'PERCENTAGE';
1140
1314
 
1141
1315
  /**
1142
- * Whether you can attempt to update this field through the API. This does not
1143
- * grant permission to browse reference targets; submitted reference identifiers
1144
- * are validated when written.
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.
1145
1319
  */
1146
1320
  editable: boolean;
1147
1321
 
@@ -1166,7 +1340,8 @@ export namespace RecordDetailRetrieveResponse {
1166
1340
  * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
1167
1341
  * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
1168
1342
  * value), DERIVED (calculated value), MASKED (restricted value),
1169
- * REFERENCE_UNAVAILABLE (unavailable reference target).
1343
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
1344
+ * by this requested flow).
1170
1345
  */
1171
1346
  read_only_reason:
1172
1347
  | 'PERMISSION_DENIED'
@@ -1176,6 +1351,7 @@ export namespace RecordDetailRetrieveResponse {
1176
1351
  | 'DERIVED'
1177
1352
  | 'MASKED'
1178
1353
  | 'REFERENCE_UNAVAILABLE'
1354
+ | 'UNSUPPORTED'
1179
1355
  | null;
1180
1356
 
1181
1357
  /**
@@ -1190,29 +1366,36 @@ export namespace RecordDetailRetrieveResponse {
1190
1366
  value: number | null;
1191
1367
 
1192
1368
  /**
1193
- * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
1194
- * an empty string, or an empty array; MASKED when access to the field or a
1195
- * referenced value is restricted; or UNSUPPORTED when the endpoint does not
1196
- * represent the value. UNSUPPORTED does not determine edit permission.
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.
1197
1374
  */
1198
1375
  value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
1199
1376
 
1200
1377
  /**
1201
- * Whether you can read this record's field. A referenced record may have separate
1202
- * access restrictions.
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.
1203
1381
  */
1204
1382
  viewable: boolean;
1205
1383
 
1206
1384
  /**
1207
- * Object-graph/RQL target name for a supported reference, such as Employee,
1208
- * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
1209
- * fields and unsupported reference targets.
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.
1210
1392
  */
1211
1393
  reference_object?: string | null;
1212
1394
  }
1213
1395
 
1214
1396
  /**
1215
- * A discoverable record field and the caller's read and write capabilities.
1397
+ * A discoverable field and its initial value and capabilities for the requested
1398
+ * flow.
1216
1399
  */
1217
1400
  export interface DetailTimeField {
1218
1401
  /**
@@ -1228,9 +1411,9 @@ export namespace RecordDetailRetrieveResponse {
1228
1411
  data_type: 'TIME';
1229
1412
 
1230
1413
  /**
1231
- * Whether you can attempt to update this field through the API. This does not
1232
- * grant permission to browse reference targets; submitted reference identifiers
1233
- * are validated when written.
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.
1234
1417
  */
1235
1418
  editable: boolean;
1236
1419
 
@@ -1255,7 +1438,8 @@ export namespace RecordDetailRetrieveResponse {
1255
1438
  * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
1256
1439
  * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
1257
1440
  * value), DERIVED (calculated value), MASKED (restricted value),
1258
- * REFERENCE_UNAVAILABLE (unavailable reference target).
1441
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
1442
+ * by this requested flow).
1259
1443
  */
1260
1444
  read_only_reason:
1261
1445
  | 'PERMISSION_DENIED'
@@ -1265,6 +1449,7 @@ export namespace RecordDetailRetrieveResponse {
1265
1449
  | 'DERIVED'
1266
1450
  | 'MASKED'
1267
1451
  | 'REFERENCE_UNAVAILABLE'
1452
+ | 'UNSUPPORTED'
1268
1453
  | null;
1269
1454
 
1270
1455
  /**
@@ -1278,29 +1463,31 @@ export namespace RecordDetailRetrieveResponse {
1278
1463
  value: string | null;
1279
1464
 
1280
1465
  /**
1281
- * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
1282
- * an empty string, or an empty array; MASKED when access to the field or a
1283
- * referenced value is restricted; or UNSUPPORTED when the endpoint does not
1284
- * represent the value. UNSUPPORTED does not determine edit permission.
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.
1285
1471
  */
1286
1472
  value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
1287
1473
 
1288
1474
  /**
1289
- * Whether you can read this record's field. A referenced record may have separate
1290
- * access restrictions.
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.
1291
1478
  */
1292
1479
  viewable: boolean;
1293
1480
 
1294
1481
  /**
1295
- * Object-graph/RQL target name for a supported reference, such as Employee,
1296
- * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
1297
- * fields and unsupported reference targets.
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.
1298
1484
  */
1299
1485
  reference_object?: string | null;
1300
1486
  }
1301
1487
 
1302
1488
  /**
1303
- * A discoverable record field and the caller's read and write capabilities.
1489
+ * A discoverable field and its initial value and capabilities for the requested
1490
+ * flow.
1304
1491
  */
1305
1492
  export interface DetailUnsupportedField {
1306
1493
  /**
@@ -1317,9 +1504,9 @@ export namespace RecordDetailRetrieveResponse {
1317
1504
  data_type: 'ADDRESS' | 'REFERENCE_ID' | 'COORDINATE' | 'TIMESTAMPED_CURRENCY' | 'JSONB' | 'FILE';
1318
1505
 
1319
1506
  /**
1320
- * Whether you can attempt to update this field through the API. This does not
1321
- * grant permission to browse reference targets; submitted reference identifiers
1322
- * are validated when written.
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.
1323
1510
  */
1324
1511
  editable: boolean;
1325
1512
 
@@ -1344,7 +1531,8 @@ export namespace RecordDetailRetrieveResponse {
1344
1531
  * (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
1345
1532
  * (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
1346
1533
  * value), DERIVED (calculated value), MASKED (restricted value),
1347
- * REFERENCE_UNAVAILABLE (unavailable reference target).
1534
+ * REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
1535
+ * by this requested flow).
1348
1536
  */
1349
1537
  read_only_reason:
1350
1538
  | 'PERMISSION_DENIED'
@@ -1354,6 +1542,7 @@ export namespace RecordDetailRetrieveResponse {
1354
1542
  | 'DERIVED'
1355
1543
  | 'MASKED'
1356
1544
  | 'REFERENCE_UNAVAILABLE'
1545
+ | 'UNSUPPORTED'
1357
1546
  | null;
1358
1547
 
1359
1548
  /**
@@ -1368,23 +1557,24 @@ export namespace RecordDetailRetrieveResponse {
1368
1557
  value: null;
1369
1558
 
1370
1559
  /**
1371
- * PRESENT for a readable nonempty value, including false and zero; EMPTY for null,
1372
- * an empty string, or an empty array; MASKED when access to the field or a
1373
- * referenced value is restricted; or UNSUPPORTED when the endpoint does not
1374
- * represent the value. UNSUPPORTED does not determine edit permission.
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.
1375
1565
  */
1376
1566
  value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
1377
1567
 
1378
1568
  /**
1379
- * Whether you can read this record's field. A referenced record may have separate
1380
- * access restrictions.
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.
1381
1572
  */
1382
1573
  viewable: boolean;
1383
1574
 
1384
1575
  /**
1385
- * Object-graph/RQL target name for a supported reference, such as Employee,
1386
- * RoleWithCompany, or a Custom Object API name ending in \_\_c. Null for other
1387
- * fields and unsupported reference targets.
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.
1388
1578
  */
1389
1579
  reference_object?: string | null;
1390
1580
  }
@@ -1403,12 +1593,6 @@ export namespace RecordDetailRetrieveResponse {
1403
1593
  */
1404
1594
  header: Layout.Header;
1405
1595
 
1406
- /**
1407
- * Opaque revision of the effective, permission-filtered layout. Compare to detect
1408
- * layout changes; this is not the record write version.
1409
- */
1410
- revision: string;
1411
-
1412
1596
  /**
1413
1597
  * Ordered, visible tabs.
1414
1598
  */
@@ -1463,8 +1647,7 @@ export namespace RecordDetailRetrieveResponse {
1463
1647
  */
1464
1648
  export interface Section {
1465
1649
  /**
1466
- * Section identifier scoped to the effective layout. Use a RELATED_LIST section's
1467
- * records_link to retrieve its records.
1650
+ * Section identifier scoped to the effective layout.
1468
1651
  */
1469
1652
  id: string;
1470
1653
 
@@ -1485,12 +1668,18 @@ export namespace RecordDetailRetrieveResponse {
1485
1668
  label: string;
1486
1669
 
1487
1670
  /**
1488
- * FIELDS contains ordered field placements; RELATED_LIST describes records loaded
1489
- * through records_link; UNSUPPORTED identifies visible content this API cannot
1490
- * render.
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.
1491
1674
  */
1492
1675
  type: 'FIELDS' | 'RELATED_LIST' | 'UNSUPPORTED';
1493
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
+
1494
1683
  /**
1495
1684
  * Related Custom Object API name; null for other sections.
1496
1685
  */
@@ -1505,10 +1694,10 @@ export namespace RecordDetailRetrieveResponse {
1505
1694
  reason?: 'CONTENT_NOT_SUPPORTED' | 'RELATED_OBJECT_NOT_SUPPORTED' | null;
1506
1695
 
1507
1696
  /**
1508
- * Authorized related-record collection URL, including the resolved layout; null
1509
- * for other sections.
1697
+ * Field on the related Custom Object that points to this record; null for other
1698
+ * sections.
1510
1699
  */
1511
- records_link?: string | null;
1700
+ relationship_field_api_name?: string | null;
1512
1701
  }
1513
1702
 
1514
1703
  export namespace Section {
@@ -1531,7 +1720,1578 @@ export namespace RecordDetailRetrieveResponse {
1531
1720
  }
1532
1721
  }
1533
1722
 
1534
- export interface RecordDetailRetrieveParams {
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 {
1535
3295
  /**
1536
3296
  * Custom Object API name, such as equipment\_\_c. Obtain it from the Custom Object
1537
3297
  * definition or the grid's configured object.
@@ -1549,6 +3309,8 @@ export interface RecordDetailRetrieveParams {
1549
3309
  export declare namespace RecordDetails {
1550
3310
  export {
1551
3311
  type RecordDetailRetrieveResponse as RecordDetailRetrieveResponse,
3312
+ type RecordDetailRetrieveCreateResponse as RecordDetailRetrieveCreateResponse,
1552
3313
  type RecordDetailRetrieveParams as RecordDetailRetrieveParams,
3314
+ type RecordDetailRetrieveCreateParams as RecordDetailRetrieveCreateParams,
1553
3315
  };
1554
3316
  }