@documenso/sdk-typescript 0.5.0 → 0.5.1

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 (216) hide show
  1. package/bin/mcp-server.js +1994 -1746
  2. package/bin/mcp-server.js.map +43 -43
  3. package/examples/package-lock.json +2 -10
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/lib/encodings.d.ts.map +1 -1
  8. package/lib/encodings.js +3 -1
  9. package/lib/encodings.js.map +1 -1
  10. package/mcp-server/mcp-server.js +1 -1
  11. package/mcp-server/server.js +1 -1
  12. package/models/operations/documentcreate.d.ts +96 -4
  13. package/models/operations/documentcreate.d.ts.map +1 -1
  14. package/models/operations/documentcreate.js +48 -44
  15. package/models/operations/documentcreate.js.map +1 -1
  16. package/models/operations/documentcreatedocumenttemporary.d.ts +180 -8
  17. package/models/operations/documentcreatedocumenttemporary.d.ts.map +1 -1
  18. package/models/operations/documentcreatedocumenttemporary.js +108 -84
  19. package/models/operations/documentcreatedocumenttemporary.js.map +1 -1
  20. package/models/operations/documentdistribute.d.ts +4 -0
  21. package/models/operations/documentdistribute.d.ts.map +1 -1
  22. package/models/operations/documentdistribute.js +4 -0
  23. package/models/operations/documentdistribute.js.map +1 -1
  24. package/models/operations/documentget.d.ts +84 -4
  25. package/models/operations/documentget.d.ts.map +1 -1
  26. package/models/operations/documentget.js +40 -40
  27. package/models/operations/documentget.js.map +1 -1
  28. package/models/operations/documentupdate.d.ts +4 -0
  29. package/models/operations/documentupdate.d.ts.map +1 -1
  30. package/models/operations/documentupdate.js +4 -0
  31. package/models/operations/documentupdate.js.map +1 -1
  32. package/models/operations/envelopecreate.d.ts +96 -4
  33. package/models/operations/envelopecreate.d.ts.map +1 -1
  34. package/models/operations/envelopecreate.js +48 -44
  35. package/models/operations/envelopecreate.js.map +1 -1
  36. package/models/operations/envelopedistribute.d.ts +45 -0
  37. package/models/operations/envelopedistribute.d.ts.map +1 -1
  38. package/models/operations/envelopedistribute.js +48 -1
  39. package/models/operations/envelopedistribute.js.map +1 -1
  40. package/models/operations/envelopefieldcreatemany.d.ts +176 -8
  41. package/models/operations/envelopefieldcreatemany.d.ts.map +1 -1
  42. package/models/operations/envelopefieldcreatemany.js +107 -84
  43. package/models/operations/envelopefieldcreatemany.js.map +1 -1
  44. package/models/operations/envelopefieldget.d.ts +84 -4
  45. package/models/operations/envelopefieldget.d.ts.map +1 -1
  46. package/models/operations/envelopefieldget.js +40 -40
  47. package/models/operations/envelopefieldget.js.map +1 -1
  48. package/models/operations/envelopefieldupdatemany.d.ts +176 -8
  49. package/models/operations/envelopefieldupdatemany.d.ts.map +1 -1
  50. package/models/operations/envelopefieldupdatemany.js +107 -84
  51. package/models/operations/envelopefieldupdatemany.js.map +1 -1
  52. package/models/operations/envelopeget.d.ts +84 -4
  53. package/models/operations/envelopeget.d.ts.map +1 -1
  54. package/models/operations/envelopeget.js +40 -40
  55. package/models/operations/envelopeget.js.map +1 -1
  56. package/models/operations/enveloperecipientget.d.ts +84 -4
  57. package/models/operations/enveloperecipientget.d.ts.map +1 -1
  58. package/models/operations/enveloperecipientget.js +40 -40
  59. package/models/operations/enveloperecipientget.js.map +1 -1
  60. package/models/operations/enveloperedistribute.d.ts +42 -0
  61. package/models/operations/enveloperedistribute.d.ts.map +1 -1
  62. package/models/operations/enveloperedistribute.js +44 -1
  63. package/models/operations/enveloperedistribute.js.map +1 -1
  64. package/models/operations/envelopeupdate.d.ts +4 -0
  65. package/models/operations/envelopeupdate.d.ts.map +1 -1
  66. package/models/operations/envelopeupdate.js +4 -0
  67. package/models/operations/envelopeupdate.js.map +1 -1
  68. package/models/operations/envelopeuse.d.ts +111 -20
  69. package/models/operations/envelopeuse.d.ts.map +1 -1
  70. package/models/operations/envelopeuse.js +93 -46
  71. package/models/operations/envelopeuse.js.map +1 -1
  72. package/models/operations/fieldcreatedocumentfield.d.ts +176 -8
  73. package/models/operations/fieldcreatedocumentfield.d.ts.map +1 -1
  74. package/models/operations/fieldcreatedocumentfield.js +108 -84
  75. package/models/operations/fieldcreatedocumentfield.js.map +1 -1
  76. package/models/operations/fieldcreatedocumentfields.d.ts +176 -8
  77. package/models/operations/fieldcreatedocumentfields.d.ts.map +1 -1
  78. package/models/operations/fieldcreatedocumentfields.js +104 -84
  79. package/models/operations/fieldcreatedocumentfields.js.map +1 -1
  80. package/models/operations/fieldcreatetemplatefield.d.ts +176 -8
  81. package/models/operations/fieldcreatetemplatefield.d.ts.map +1 -1
  82. package/models/operations/fieldcreatetemplatefield.js +108 -84
  83. package/models/operations/fieldcreatetemplatefield.js.map +1 -1
  84. package/models/operations/fieldcreatetemplatefields.d.ts +176 -8
  85. package/models/operations/fieldcreatetemplatefields.d.ts.map +1 -1
  86. package/models/operations/fieldcreatetemplatefields.js +104 -84
  87. package/models/operations/fieldcreatetemplatefields.js.map +1 -1
  88. package/models/operations/fieldgetdocumentfield.d.ts +84 -4
  89. package/models/operations/fieldgetdocumentfield.d.ts.map +1 -1
  90. package/models/operations/fieldgetdocumentfield.js +40 -40
  91. package/models/operations/fieldgetdocumentfield.js.map +1 -1
  92. package/models/operations/fieldgettemplatefield.d.ts +84 -4
  93. package/models/operations/fieldgettemplatefield.d.ts.map +1 -1
  94. package/models/operations/fieldgettemplatefield.js +40 -40
  95. package/models/operations/fieldgettemplatefield.js.map +1 -1
  96. package/models/operations/fieldupdatedocumentfield.d.ts +176 -8
  97. package/models/operations/fieldupdatedocumentfield.d.ts.map +1 -1
  98. package/models/operations/fieldupdatedocumentfield.js +108 -84
  99. package/models/operations/fieldupdatedocumentfield.js.map +1 -1
  100. package/models/operations/fieldupdatedocumentfields.d.ts +176 -8
  101. package/models/operations/fieldupdatedocumentfields.d.ts.map +1 -1
  102. package/models/operations/fieldupdatedocumentfields.js +104 -84
  103. package/models/operations/fieldupdatedocumentfields.js.map +1 -1
  104. package/models/operations/fieldupdatetemplatefield.d.ts +176 -8
  105. package/models/operations/fieldupdatetemplatefield.d.ts.map +1 -1
  106. package/models/operations/fieldupdatetemplatefield.js +108 -84
  107. package/models/operations/fieldupdatetemplatefield.js.map +1 -1
  108. package/models/operations/fieldupdatetemplatefields.d.ts +176 -8
  109. package/models/operations/fieldupdatetemplatefields.d.ts.map +1 -1
  110. package/models/operations/fieldupdatetemplatefields.js +104 -84
  111. package/models/operations/fieldupdatetemplatefields.js.map +1 -1
  112. package/models/operations/recipientgetdocumentrecipient.d.ts +84 -4
  113. package/models/operations/recipientgetdocumentrecipient.d.ts.map +1 -1
  114. package/models/operations/recipientgetdocumentrecipient.js +67 -40
  115. package/models/operations/recipientgetdocumentrecipient.js.map +1 -1
  116. package/models/operations/recipientgettemplaterecipient.d.ts +84 -4
  117. package/models/operations/recipientgettemplaterecipient.d.ts.map +1 -1
  118. package/models/operations/recipientgettemplaterecipient.js +67 -40
  119. package/models/operations/recipientgettemplaterecipient.js.map +1 -1
  120. package/models/operations/recipientupdatedocumentrecipient.d.ts +84 -4
  121. package/models/operations/recipientupdatedocumentrecipient.d.ts.map +1 -1
  122. package/models/operations/recipientupdatedocumentrecipient.js +60 -40
  123. package/models/operations/recipientupdatedocumentrecipient.js.map +1 -1
  124. package/models/operations/recipientupdatedocumentrecipients.d.ts +84 -4
  125. package/models/operations/recipientupdatedocumentrecipients.d.ts.map +1 -1
  126. package/models/operations/recipientupdatedocumentrecipients.js +54 -40
  127. package/models/operations/recipientupdatedocumentrecipients.js.map +1 -1
  128. package/models/operations/recipientupdatetemplaterecipient.d.ts +84 -4
  129. package/models/operations/recipientupdatetemplaterecipient.d.ts.map +1 -1
  130. package/models/operations/recipientupdatetemplaterecipient.js +60 -40
  131. package/models/operations/recipientupdatetemplaterecipient.js.map +1 -1
  132. package/models/operations/recipientupdatetemplaterecipients.d.ts +84 -4
  133. package/models/operations/recipientupdatetemplaterecipients.d.ts.map +1 -1
  134. package/models/operations/recipientupdatetemplaterecipients.js +54 -40
  135. package/models/operations/recipientupdatetemplaterecipients.js.map +1 -1
  136. package/models/operations/templatecreatedocumentfromtemplate.d.ts +295 -21
  137. package/models/operations/templatecreatedocumentfromtemplate.d.ts.map +1 -1
  138. package/models/operations/templatecreatedocumentfromtemplate.js +256 -83
  139. package/models/operations/templatecreatedocumentfromtemplate.js.map +1 -1
  140. package/models/operations/templatecreatetemplate.d.ts +4 -0
  141. package/models/operations/templatecreatetemplate.d.ts.map +1 -1
  142. package/models/operations/templatecreatetemplate.js +4 -0
  143. package/models/operations/templatecreatetemplate.js.map +1 -1
  144. package/models/operations/templatecreatetemplatetemporary.d.ts +88 -4
  145. package/models/operations/templatecreatetemplatetemporary.d.ts.map +1 -1
  146. package/models/operations/templatecreatetemplatetemporary.js +70 -40
  147. package/models/operations/templatecreatetemplatetemporary.js.map +1 -1
  148. package/models/operations/templatefindtemplates.d.ts +84 -4
  149. package/models/operations/templatefindtemplates.d.ts.map +1 -1
  150. package/models/operations/templatefindtemplates.js +40 -40
  151. package/models/operations/templatefindtemplates.js.map +1 -1
  152. package/models/operations/templategettemplatebyid.d.ts +84 -4
  153. package/models/operations/templategettemplatebyid.d.ts.map +1 -1
  154. package/models/operations/templategettemplatebyid.js +41 -40
  155. package/models/operations/templategettemplatebyid.js.map +1 -1
  156. package/models/operations/templateupdatetemplate.d.ts +4 -0
  157. package/models/operations/templateupdatetemplate.d.ts.map +1 -1
  158. package/models/operations/templateupdatetemplate.js +4 -0
  159. package/models/operations/templateupdatetemplate.js.map +1 -1
  160. package/package.json +3 -6
  161. package/src/lib/config.ts +3 -3
  162. package/src/lib/encodings.ts +4 -3
  163. package/src/mcp-server/mcp-server.ts +1 -1
  164. package/src/mcp-server/server.ts +1 -1
  165. package/src/models/operations/documentcreate.ts +180 -88
  166. package/src/models/operations/documentcreatedocumenttemporary.ts +329 -173
  167. package/src/models/operations/documentdistribute.ts +4 -0
  168. package/src/models/operations/documentget.ts +160 -80
  169. package/src/models/operations/documentupdate.ts +4 -0
  170. package/src/models/operations/envelopecreate.ts +180 -88
  171. package/src/models/operations/envelopedistribute.ts +99 -0
  172. package/src/models/operations/envelopefieldcreatemany.ts +324 -175
  173. package/src/models/operations/envelopefieldget.ts +160 -80
  174. package/src/models/operations/envelopefieldupdatemany.ts +324 -175
  175. package/src/models/operations/envelopeget.ts +160 -80
  176. package/src/models/operations/enveloperecipientget.ts +160 -80
  177. package/src/models/operations/enveloperedistribute.ts +102 -0
  178. package/src/models/operations/envelopeupdate.ts +4 -0
  179. package/src/models/operations/envelopeuse.ts +236 -83
  180. package/src/models/operations/fieldcreatedocumentfield.ts +325 -185
  181. package/src/models/operations/fieldcreatedocumentfields.ts +320 -180
  182. package/src/models/operations/fieldcreatetemplatefield.ts +325 -185
  183. package/src/models/operations/fieldcreatetemplatefields.ts +320 -180
  184. package/src/models/operations/fieldgetdocumentfield.ts +160 -80
  185. package/src/models/operations/fieldgettemplatefield.ts +160 -80
  186. package/src/models/operations/fieldupdatedocumentfield.ts +325 -185
  187. package/src/models/operations/fieldupdatedocumentfields.ts +320 -180
  188. package/src/models/operations/fieldupdatetemplatefield.ts +325 -185
  189. package/src/models/operations/fieldupdatetemplatefields.ts +320 -180
  190. package/src/models/operations/recipientgetdocumentrecipient.ts +140 -87
  191. package/src/models/operations/recipientgettemplaterecipient.ts +140 -87
  192. package/src/models/operations/recipientupdatedocumentrecipient.ts +136 -92
  193. package/src/models/operations/recipientupdatedocumentrecipients.ts +138 -92
  194. package/src/models/operations/recipientupdatetemplaterecipient.ts +136 -92
  195. package/src/models/operations/recipientupdatetemplaterecipients.ts +138 -92
  196. package/src/models/operations/templatecreatedocumentfromtemplate.ts +658 -185
  197. package/src/models/operations/templatecreatetemplate.ts +4 -0
  198. package/src/models/operations/templatecreatetemplatetemporary.ts +136 -92
  199. package/src/models/operations/templatefindtemplates.ts +160 -80
  200. package/src/models/operations/templategettemplatebyid.ts +161 -80
  201. package/src/models/operations/templateupdatetemplate.ts +4 -0
  202. package/src/types/enums.ts +1 -21
  203. package/src/types/index.ts +2 -1
  204. package/src/types/unrecognized.ts +27 -0
  205. package/types/enums.d.ts +1 -8
  206. package/types/enums.d.ts.map +1 -1
  207. package/types/enums.js +3 -21
  208. package/types/enums.js.map +1 -1
  209. package/types/index.d.ts +2 -1
  210. package/types/index.d.ts.map +1 -1
  211. package/types/index.js +15 -0
  212. package/types/index.js.map +1 -1
  213. package/types/unrecognized.d.ts +10 -0
  214. package/types/unrecognized.d.ts.map +1 -0
  215. package/types/unrecognized.js +26 -0
  216. package/types/unrecognized.js.map +1 -0
@@ -431,16 +431,16 @@ export type RecipientUpdateTemplateRecipientFieldMetaSignature = {
431
431
  };
432
432
 
433
433
  export type RecipientUpdateTemplateRecipientFieldMetaUnion =
434
- | RecipientUpdateTemplateRecipientFieldMetaSignature
435
- | RecipientUpdateTemplateRecipientFieldMetaInitials
436
- | RecipientUpdateTemplateRecipientFieldMetaName
437
- | RecipientUpdateTemplateRecipientFieldMetaEmail
438
- | RecipientUpdateTemplateRecipientFieldMetaDate
439
- | RecipientUpdateTemplateRecipientFieldMetaText
440
- | RecipientUpdateTemplateRecipientFieldMetaNumber
441
- | RecipientUpdateTemplateRecipientFieldMetaRadio
442
- | RecipientUpdateTemplateRecipientFieldMetaCheckbox
443
- | RecipientUpdateTemplateRecipientFieldMetaDropdown;
434
+ | (RecipientUpdateTemplateRecipientFieldMetaSignature & { type: "signature" })
435
+ | (RecipientUpdateTemplateRecipientFieldMetaInitials & { type: "initials" })
436
+ | (RecipientUpdateTemplateRecipientFieldMetaName & { type: "name" })
437
+ | (RecipientUpdateTemplateRecipientFieldMetaEmail & { type: "email" })
438
+ | (RecipientUpdateTemplateRecipientFieldMetaDate & { type: "date" })
439
+ | (RecipientUpdateTemplateRecipientFieldMetaText & { type: "text" })
440
+ | (RecipientUpdateTemplateRecipientFieldMetaNumber & { type: "number" })
441
+ | (RecipientUpdateTemplateRecipientFieldMetaRadio & { type: "radio" })
442
+ | (RecipientUpdateTemplateRecipientFieldMetaCheckbox & { type: "checkbox" })
443
+ | (RecipientUpdateTemplateRecipientFieldMetaDropdown & { type: "dropdown" });
444
444
 
445
445
  export type RecipientUpdateTemplateRecipientField = {
446
446
  envelopeId: string;
@@ -457,16 +457,18 @@ export type RecipientUpdateTemplateRecipientField = {
457
457
  customText: string;
458
458
  inserted: boolean;
459
459
  fieldMeta:
460
- | RecipientUpdateTemplateRecipientFieldMetaSignature
461
- | RecipientUpdateTemplateRecipientFieldMetaInitials
462
- | RecipientUpdateTemplateRecipientFieldMetaName
463
- | RecipientUpdateTemplateRecipientFieldMetaEmail
464
- | RecipientUpdateTemplateRecipientFieldMetaDate
465
- | RecipientUpdateTemplateRecipientFieldMetaText
466
- | RecipientUpdateTemplateRecipientFieldMetaNumber
467
- | RecipientUpdateTemplateRecipientFieldMetaRadio
468
- | RecipientUpdateTemplateRecipientFieldMetaCheckbox
469
- | RecipientUpdateTemplateRecipientFieldMetaDropdown
460
+ | (RecipientUpdateTemplateRecipientFieldMetaSignature & {
461
+ type: "signature";
462
+ })
463
+ | (RecipientUpdateTemplateRecipientFieldMetaInitials & { type: "initials" })
464
+ | (RecipientUpdateTemplateRecipientFieldMetaName & { type: "name" })
465
+ | (RecipientUpdateTemplateRecipientFieldMetaEmail & { type: "email" })
466
+ | (RecipientUpdateTemplateRecipientFieldMetaDate & { type: "date" })
467
+ | (RecipientUpdateTemplateRecipientFieldMetaText & { type: "text" })
468
+ | (RecipientUpdateTemplateRecipientFieldMetaNumber & { type: "number" })
469
+ | (RecipientUpdateTemplateRecipientFieldMetaRadio & { type: "radio" })
470
+ | (RecipientUpdateTemplateRecipientFieldMetaCheckbox & { type: "checkbox" })
471
+ | (RecipientUpdateTemplateRecipientFieldMetaDropdown & { type: "dropdown" })
470
472
  | null;
471
473
  documentId?: number | null | undefined;
472
474
  templateId?: number | null | undefined;
@@ -1874,35 +1876,55 @@ export const RecipientUpdateTemplateRecipientFieldMetaUnion$inboundSchema:
1874
1876
  > = z.union([
1875
1877
  z.lazy(() =>
1876
1878
  RecipientUpdateTemplateRecipientFieldMetaSignature$inboundSchema
1877
- ),
1879
+ ).and(z.object({ type: z.literal("signature") })),
1878
1880
  z.lazy(() =>
1879
1881
  RecipientUpdateTemplateRecipientFieldMetaInitials$inboundSchema
1880
- ),
1881
- z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaName$inboundSchema),
1882
- z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaEmail$inboundSchema),
1883
- z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaDate$inboundSchema),
1884
- z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaText$inboundSchema),
1885
- z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaNumber$inboundSchema),
1886
- z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaRadio$inboundSchema),
1882
+ ).and(z.object({ type: z.literal("initials") })),
1883
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaName$inboundSchema)
1884
+ .and(z.object({ type: z.literal("name") })),
1885
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaEmail$inboundSchema)
1886
+ .and(z.object({ type: z.literal("email") })),
1887
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaDate$inboundSchema)
1888
+ .and(z.object({ type: z.literal("date") })),
1889
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaText$inboundSchema)
1890
+ .and(z.object({ type: z.literal("text") })),
1891
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaNumber$inboundSchema)
1892
+ .and(z.object({ type: z.literal("number") })),
1893
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaRadio$inboundSchema)
1894
+ .and(z.object({ type: z.literal("radio") })),
1887
1895
  z.lazy(() =>
1888
1896
  RecipientUpdateTemplateRecipientFieldMetaCheckbox$inboundSchema
1889
- ),
1897
+ ).and(z.object({ type: z.literal("checkbox") })),
1890
1898
  z.lazy(() =>
1891
1899
  RecipientUpdateTemplateRecipientFieldMetaDropdown$inboundSchema
1892
- ),
1900
+ ).and(z.object({ type: z.literal("dropdown") })),
1893
1901
  ]);
1894
1902
  /** @internal */
1895
1903
  export type RecipientUpdateTemplateRecipientFieldMetaUnion$Outbound =
1896
- | RecipientUpdateTemplateRecipientFieldMetaSignature$Outbound
1897
- | RecipientUpdateTemplateRecipientFieldMetaInitials$Outbound
1898
- | RecipientUpdateTemplateRecipientFieldMetaName$Outbound
1899
- | RecipientUpdateTemplateRecipientFieldMetaEmail$Outbound
1900
- | RecipientUpdateTemplateRecipientFieldMetaDate$Outbound
1901
- | RecipientUpdateTemplateRecipientFieldMetaText$Outbound
1902
- | RecipientUpdateTemplateRecipientFieldMetaNumber$Outbound
1903
- | RecipientUpdateTemplateRecipientFieldMetaRadio$Outbound
1904
- | RecipientUpdateTemplateRecipientFieldMetaCheckbox$Outbound
1905
- | RecipientUpdateTemplateRecipientFieldMetaDropdown$Outbound;
1904
+ | (RecipientUpdateTemplateRecipientFieldMetaSignature$Outbound & {
1905
+ type: "signature";
1906
+ })
1907
+ | (RecipientUpdateTemplateRecipientFieldMetaInitials$Outbound & {
1908
+ type: "initials";
1909
+ })
1910
+ | (RecipientUpdateTemplateRecipientFieldMetaName$Outbound & { type: "name" })
1911
+ | (RecipientUpdateTemplateRecipientFieldMetaEmail$Outbound & {
1912
+ type: "email";
1913
+ })
1914
+ | (RecipientUpdateTemplateRecipientFieldMetaDate$Outbound & { type: "date" })
1915
+ | (RecipientUpdateTemplateRecipientFieldMetaText$Outbound & { type: "text" })
1916
+ | (RecipientUpdateTemplateRecipientFieldMetaNumber$Outbound & {
1917
+ type: "number";
1918
+ })
1919
+ | (RecipientUpdateTemplateRecipientFieldMetaRadio$Outbound & {
1920
+ type: "radio";
1921
+ })
1922
+ | (RecipientUpdateTemplateRecipientFieldMetaCheckbox$Outbound & {
1923
+ type: "checkbox";
1924
+ })
1925
+ | (RecipientUpdateTemplateRecipientFieldMetaDropdown$Outbound & {
1926
+ type: "dropdown";
1927
+ });
1906
1928
 
1907
1929
  /** @internal */
1908
1930
  export const RecipientUpdateTemplateRecipientFieldMetaUnion$outboundSchema:
@@ -1913,24 +1935,28 @@ export const RecipientUpdateTemplateRecipientFieldMetaUnion$outboundSchema:
1913
1935
  > = z.union([
1914
1936
  z.lazy(() =>
1915
1937
  RecipientUpdateTemplateRecipientFieldMetaSignature$outboundSchema
1916
- ),
1938
+ ).and(z.object({ type: z.literal("signature") })),
1917
1939
  z.lazy(() =>
1918
1940
  RecipientUpdateTemplateRecipientFieldMetaInitials$outboundSchema
1919
- ),
1920
- z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaName$outboundSchema),
1921
- z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaEmail$outboundSchema),
1922
- z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaDate$outboundSchema),
1923
- z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaText$outboundSchema),
1924
- z.lazy(() =>
1925
- RecipientUpdateTemplateRecipientFieldMetaNumber$outboundSchema
1926
- ),
1927
- z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaRadio$outboundSchema),
1941
+ ).and(z.object({ type: z.literal("initials") })),
1942
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaName$outboundSchema)
1943
+ .and(z.object({ type: z.literal("name") })),
1944
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaEmail$outboundSchema)
1945
+ .and(z.object({ type: z.literal("email") })),
1946
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaDate$outboundSchema)
1947
+ .and(z.object({ type: z.literal("date") })),
1948
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaText$outboundSchema)
1949
+ .and(z.object({ type: z.literal("text") })),
1950
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaNumber$outboundSchema)
1951
+ .and(z.object({ type: z.literal("number") })),
1952
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaRadio$outboundSchema)
1953
+ .and(z.object({ type: z.literal("radio") })),
1928
1954
  z.lazy(() =>
1929
1955
  RecipientUpdateTemplateRecipientFieldMetaCheckbox$outboundSchema
1930
- ),
1956
+ ).and(z.object({ type: z.literal("checkbox") })),
1931
1957
  z.lazy(() =>
1932
1958
  RecipientUpdateTemplateRecipientFieldMetaDropdown$outboundSchema
1933
- ),
1959
+ ).and(z.object({ type: z.literal("dropdown") })),
1934
1960
  ]);
1935
1961
 
1936
1962
  export function recipientUpdateTemplateRecipientFieldMetaUnionToJSON(
@@ -1982,28 +2008,29 @@ export const RecipientUpdateTemplateRecipientField$inboundSchema: z.ZodType<
1982
2008
  z.union([
1983
2009
  z.lazy(() =>
1984
2010
  RecipientUpdateTemplateRecipientFieldMetaSignature$inboundSchema
1985
- ),
2011
+ ).and(z.object({ type: z.literal("signature") })),
1986
2012
  z.lazy(() =>
1987
2013
  RecipientUpdateTemplateRecipientFieldMetaInitials$inboundSchema
1988
- ),
1989
- z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaName$inboundSchema),
1990
- z.lazy(() =>
1991
- RecipientUpdateTemplateRecipientFieldMetaEmail$inboundSchema
1992
- ),
1993
- z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaDate$inboundSchema),
1994
- z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaText$inboundSchema),
2014
+ ).and(z.object({ type: z.literal("initials") })),
2015
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaName$inboundSchema)
2016
+ .and(z.object({ type: z.literal("name") })),
2017
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaEmail$inboundSchema)
2018
+ .and(z.object({ type: z.literal("email") })),
2019
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaDate$inboundSchema)
2020
+ .and(z.object({ type: z.literal("date") })),
2021
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaText$inboundSchema)
2022
+ .and(z.object({ type: z.literal("text") })),
1995
2023
  z.lazy(() =>
1996
2024
  RecipientUpdateTemplateRecipientFieldMetaNumber$inboundSchema
1997
- ),
1998
- z.lazy(() =>
1999
- RecipientUpdateTemplateRecipientFieldMetaRadio$inboundSchema
2000
- ),
2025
+ ).and(z.object({ type: z.literal("number") })),
2026
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaRadio$inboundSchema)
2027
+ .and(z.object({ type: z.literal("radio") })),
2001
2028
  z.lazy(() =>
2002
2029
  RecipientUpdateTemplateRecipientFieldMetaCheckbox$inboundSchema
2003
- ),
2030
+ ).and(z.object({ type: z.literal("checkbox") })),
2004
2031
  z.lazy(() =>
2005
2032
  RecipientUpdateTemplateRecipientFieldMetaDropdown$inboundSchema
2006
- ),
2033
+ ).and(z.object({ type: z.literal("dropdown") })),
2007
2034
  ]),
2008
2035
  ),
2009
2036
  documentId: z.nullable(z.number()).optional(),
@@ -2025,16 +2052,36 @@ export type RecipientUpdateTemplateRecipientField$Outbound = {
2025
2052
  customText: string;
2026
2053
  inserted: boolean;
2027
2054
  fieldMeta:
2028
- | RecipientUpdateTemplateRecipientFieldMetaSignature$Outbound
2029
- | RecipientUpdateTemplateRecipientFieldMetaInitials$Outbound
2030
- | RecipientUpdateTemplateRecipientFieldMetaName$Outbound
2031
- | RecipientUpdateTemplateRecipientFieldMetaEmail$Outbound
2032
- | RecipientUpdateTemplateRecipientFieldMetaDate$Outbound
2033
- | RecipientUpdateTemplateRecipientFieldMetaText$Outbound
2034
- | RecipientUpdateTemplateRecipientFieldMetaNumber$Outbound
2035
- | RecipientUpdateTemplateRecipientFieldMetaRadio$Outbound
2036
- | RecipientUpdateTemplateRecipientFieldMetaCheckbox$Outbound
2037
- | RecipientUpdateTemplateRecipientFieldMetaDropdown$Outbound
2055
+ | (RecipientUpdateTemplateRecipientFieldMetaSignature$Outbound & {
2056
+ type: "signature";
2057
+ })
2058
+ | (RecipientUpdateTemplateRecipientFieldMetaInitials$Outbound & {
2059
+ type: "initials";
2060
+ })
2061
+ | (RecipientUpdateTemplateRecipientFieldMetaName$Outbound & {
2062
+ type: "name";
2063
+ })
2064
+ | (RecipientUpdateTemplateRecipientFieldMetaEmail$Outbound & {
2065
+ type: "email";
2066
+ })
2067
+ | (RecipientUpdateTemplateRecipientFieldMetaDate$Outbound & {
2068
+ type: "date";
2069
+ })
2070
+ | (RecipientUpdateTemplateRecipientFieldMetaText$Outbound & {
2071
+ type: "text";
2072
+ })
2073
+ | (RecipientUpdateTemplateRecipientFieldMetaNumber$Outbound & {
2074
+ type: "number";
2075
+ })
2076
+ | (RecipientUpdateTemplateRecipientFieldMetaRadio$Outbound & {
2077
+ type: "radio";
2078
+ })
2079
+ | (RecipientUpdateTemplateRecipientFieldMetaCheckbox$Outbound & {
2080
+ type: "checkbox";
2081
+ })
2082
+ | (RecipientUpdateTemplateRecipientFieldMetaDropdown$Outbound & {
2083
+ type: "dropdown";
2084
+ })
2038
2085
  | null;
2039
2086
  documentId?: number | null | undefined;
2040
2087
  templateId?: number | null | undefined;
@@ -2063,34 +2110,31 @@ export const RecipientUpdateTemplateRecipientField$outboundSchema: z.ZodType<
2063
2110
  z.union([
2064
2111
  z.lazy(() =>
2065
2112
  RecipientUpdateTemplateRecipientFieldMetaSignature$outboundSchema
2066
- ),
2113
+ ).and(z.object({ type: z.literal("signature") })),
2067
2114
  z.lazy(() =>
2068
2115
  RecipientUpdateTemplateRecipientFieldMetaInitials$outboundSchema
2069
- ),
2070
- z.lazy(() =>
2071
- RecipientUpdateTemplateRecipientFieldMetaName$outboundSchema
2072
- ),
2116
+ ).and(z.object({ type: z.literal("initials") })),
2117
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaName$outboundSchema)
2118
+ .and(z.object({ type: z.literal("name") })),
2073
2119
  z.lazy(() =>
2074
2120
  RecipientUpdateTemplateRecipientFieldMetaEmail$outboundSchema
2075
- ),
2076
- z.lazy(() =>
2077
- RecipientUpdateTemplateRecipientFieldMetaDate$outboundSchema
2078
- ),
2079
- z.lazy(() =>
2080
- RecipientUpdateTemplateRecipientFieldMetaText$outboundSchema
2081
- ),
2121
+ ).and(z.object({ type: z.literal("email") })),
2122
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaDate$outboundSchema)
2123
+ .and(z.object({ type: z.literal("date") })),
2124
+ z.lazy(() => RecipientUpdateTemplateRecipientFieldMetaText$outboundSchema)
2125
+ .and(z.object({ type: z.literal("text") })),
2082
2126
  z.lazy(() =>
2083
2127
  RecipientUpdateTemplateRecipientFieldMetaNumber$outboundSchema
2084
- ),
2128
+ ).and(z.object({ type: z.literal("number") })),
2085
2129
  z.lazy(() =>
2086
2130
  RecipientUpdateTemplateRecipientFieldMetaRadio$outboundSchema
2087
- ),
2131
+ ).and(z.object({ type: z.literal("radio") })),
2088
2132
  z.lazy(() =>
2089
2133
  RecipientUpdateTemplateRecipientFieldMetaCheckbox$outboundSchema
2090
- ),
2134
+ ).and(z.object({ type: z.literal("checkbox") })),
2091
2135
  z.lazy(() =>
2092
2136
  RecipientUpdateTemplateRecipientFieldMetaDropdown$outboundSchema
2093
- ),
2137
+ ).and(z.object({ type: z.literal("dropdown") })),
2094
2138
  ]),
2095
2139
  ),
2096
2140
  documentId: z.nullable(z.number()).optional(),
@@ -431,16 +431,18 @@ export type RecipientUpdateTemplateRecipientsFieldMetaSignature = {
431
431
  };
432
432
 
433
433
  export type RecipientUpdateTemplateRecipientsFieldMetaUnion =
434
- | RecipientUpdateTemplateRecipientsFieldMetaSignature
435
- | RecipientUpdateTemplateRecipientsFieldMetaInitials
436
- | RecipientUpdateTemplateRecipientsFieldMetaName
437
- | RecipientUpdateTemplateRecipientsFieldMetaEmail
438
- | RecipientUpdateTemplateRecipientsFieldMetaDate
439
- | RecipientUpdateTemplateRecipientsFieldMetaText
440
- | RecipientUpdateTemplateRecipientsFieldMetaNumber
441
- | RecipientUpdateTemplateRecipientsFieldMetaRadio
442
- | RecipientUpdateTemplateRecipientsFieldMetaCheckbox
443
- | RecipientUpdateTemplateRecipientsFieldMetaDropdown;
434
+ | (RecipientUpdateTemplateRecipientsFieldMetaSignature & {
435
+ type: "signature";
436
+ })
437
+ | (RecipientUpdateTemplateRecipientsFieldMetaInitials & { type: "initials" })
438
+ | (RecipientUpdateTemplateRecipientsFieldMetaName & { type: "name" })
439
+ | (RecipientUpdateTemplateRecipientsFieldMetaEmail & { type: "email" })
440
+ | (RecipientUpdateTemplateRecipientsFieldMetaDate & { type: "date" })
441
+ | (RecipientUpdateTemplateRecipientsFieldMetaText & { type: "text" })
442
+ | (RecipientUpdateTemplateRecipientsFieldMetaNumber & { type: "number" })
443
+ | (RecipientUpdateTemplateRecipientsFieldMetaRadio & { type: "radio" })
444
+ | (RecipientUpdateTemplateRecipientsFieldMetaCheckbox & { type: "checkbox" })
445
+ | (RecipientUpdateTemplateRecipientsFieldMetaDropdown & { type: "dropdown" });
444
446
 
445
447
  export type RecipientUpdateTemplateRecipientsField = {
446
448
  envelopeId: string;
@@ -457,16 +459,24 @@ export type RecipientUpdateTemplateRecipientsField = {
457
459
  customText: string;
458
460
  inserted: boolean;
459
461
  fieldMeta:
460
- | RecipientUpdateTemplateRecipientsFieldMetaSignature
461
- | RecipientUpdateTemplateRecipientsFieldMetaInitials
462
- | RecipientUpdateTemplateRecipientsFieldMetaName
463
- | RecipientUpdateTemplateRecipientsFieldMetaEmail
464
- | RecipientUpdateTemplateRecipientsFieldMetaDate
465
- | RecipientUpdateTemplateRecipientsFieldMetaText
466
- | RecipientUpdateTemplateRecipientsFieldMetaNumber
467
- | RecipientUpdateTemplateRecipientsFieldMetaRadio
468
- | RecipientUpdateTemplateRecipientsFieldMetaCheckbox
469
- | RecipientUpdateTemplateRecipientsFieldMetaDropdown
462
+ | (RecipientUpdateTemplateRecipientsFieldMetaSignature & {
463
+ type: "signature";
464
+ })
465
+ | (RecipientUpdateTemplateRecipientsFieldMetaInitials & {
466
+ type: "initials";
467
+ })
468
+ | (RecipientUpdateTemplateRecipientsFieldMetaName & { type: "name" })
469
+ | (RecipientUpdateTemplateRecipientsFieldMetaEmail & { type: "email" })
470
+ | (RecipientUpdateTemplateRecipientsFieldMetaDate & { type: "date" })
471
+ | (RecipientUpdateTemplateRecipientsFieldMetaText & { type: "text" })
472
+ | (RecipientUpdateTemplateRecipientsFieldMetaNumber & { type: "number" })
473
+ | (RecipientUpdateTemplateRecipientsFieldMetaRadio & { type: "radio" })
474
+ | (RecipientUpdateTemplateRecipientsFieldMetaCheckbox & {
475
+ type: "checkbox";
476
+ })
477
+ | (RecipientUpdateTemplateRecipientsFieldMetaDropdown & {
478
+ type: "dropdown";
479
+ })
470
480
  | null;
471
481
  documentId?: number | null | undefined;
472
482
  templateId?: number | null | undefined;
@@ -1897,37 +1907,55 @@ export const RecipientUpdateTemplateRecipientsFieldMetaUnion$inboundSchema:
1897
1907
  > = z.union([
1898
1908
  z.lazy(() =>
1899
1909
  RecipientUpdateTemplateRecipientsFieldMetaSignature$inboundSchema
1900
- ),
1910
+ ).and(z.object({ type: z.literal("signature") })),
1901
1911
  z.lazy(() =>
1902
1912
  RecipientUpdateTemplateRecipientsFieldMetaInitials$inboundSchema
1903
- ),
1904
- z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaName$inboundSchema),
1905
- z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaEmail$inboundSchema),
1906
- z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaDate$inboundSchema),
1907
- z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaText$inboundSchema),
1908
- z.lazy(() =>
1909
- RecipientUpdateTemplateRecipientsFieldMetaNumber$inboundSchema
1910
- ),
1911
- z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaRadio$inboundSchema),
1913
+ ).and(z.object({ type: z.literal("initials") })),
1914
+ z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaName$inboundSchema)
1915
+ .and(z.object({ type: z.literal("name") })),
1916
+ z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaEmail$inboundSchema)
1917
+ .and(z.object({ type: z.literal("email") })),
1918
+ z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaDate$inboundSchema)
1919
+ .and(z.object({ type: z.literal("date") })),
1920
+ z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaText$inboundSchema)
1921
+ .and(z.object({ type: z.literal("text") })),
1922
+ z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaNumber$inboundSchema)
1923
+ .and(z.object({ type: z.literal("number") })),
1924
+ z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaRadio$inboundSchema)
1925
+ .and(z.object({ type: z.literal("radio") })),
1912
1926
  z.lazy(() =>
1913
1927
  RecipientUpdateTemplateRecipientsFieldMetaCheckbox$inboundSchema
1914
- ),
1928
+ ).and(z.object({ type: z.literal("checkbox") })),
1915
1929
  z.lazy(() =>
1916
1930
  RecipientUpdateTemplateRecipientsFieldMetaDropdown$inboundSchema
1917
- ),
1931
+ ).and(z.object({ type: z.literal("dropdown") })),
1918
1932
  ]);
1919
1933
  /** @internal */
1920
1934
  export type RecipientUpdateTemplateRecipientsFieldMetaUnion$Outbound =
1921
- | RecipientUpdateTemplateRecipientsFieldMetaSignature$Outbound
1922
- | RecipientUpdateTemplateRecipientsFieldMetaInitials$Outbound
1923
- | RecipientUpdateTemplateRecipientsFieldMetaName$Outbound
1924
- | RecipientUpdateTemplateRecipientsFieldMetaEmail$Outbound
1925
- | RecipientUpdateTemplateRecipientsFieldMetaDate$Outbound
1926
- | RecipientUpdateTemplateRecipientsFieldMetaText$Outbound
1927
- | RecipientUpdateTemplateRecipientsFieldMetaNumber$Outbound
1928
- | RecipientUpdateTemplateRecipientsFieldMetaRadio$Outbound
1929
- | RecipientUpdateTemplateRecipientsFieldMetaCheckbox$Outbound
1930
- | RecipientUpdateTemplateRecipientsFieldMetaDropdown$Outbound;
1935
+ | (RecipientUpdateTemplateRecipientsFieldMetaSignature$Outbound & {
1936
+ type: "signature";
1937
+ })
1938
+ | (RecipientUpdateTemplateRecipientsFieldMetaInitials$Outbound & {
1939
+ type: "initials";
1940
+ })
1941
+ | (RecipientUpdateTemplateRecipientsFieldMetaName$Outbound & { type: "name" })
1942
+ | (RecipientUpdateTemplateRecipientsFieldMetaEmail$Outbound & {
1943
+ type: "email";
1944
+ })
1945
+ | (RecipientUpdateTemplateRecipientsFieldMetaDate$Outbound & { type: "date" })
1946
+ | (RecipientUpdateTemplateRecipientsFieldMetaText$Outbound & { type: "text" })
1947
+ | (RecipientUpdateTemplateRecipientsFieldMetaNumber$Outbound & {
1948
+ type: "number";
1949
+ })
1950
+ | (RecipientUpdateTemplateRecipientsFieldMetaRadio$Outbound & {
1951
+ type: "radio";
1952
+ })
1953
+ | (RecipientUpdateTemplateRecipientsFieldMetaCheckbox$Outbound & {
1954
+ type: "checkbox";
1955
+ })
1956
+ | (RecipientUpdateTemplateRecipientsFieldMetaDropdown$Outbound & {
1957
+ type: "dropdown";
1958
+ });
1931
1959
 
1932
1960
  /** @internal */
1933
1961
  export const RecipientUpdateTemplateRecipientsFieldMetaUnion$outboundSchema:
@@ -1938,28 +1966,29 @@ export const RecipientUpdateTemplateRecipientsFieldMetaUnion$outboundSchema:
1938
1966
  > = z.union([
1939
1967
  z.lazy(() =>
1940
1968
  RecipientUpdateTemplateRecipientsFieldMetaSignature$outboundSchema
1941
- ),
1969
+ ).and(z.object({ type: z.literal("signature") })),
1942
1970
  z.lazy(() =>
1943
1971
  RecipientUpdateTemplateRecipientsFieldMetaInitials$outboundSchema
1944
- ),
1945
- z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaName$outboundSchema),
1946
- z.lazy(() =>
1947
- RecipientUpdateTemplateRecipientsFieldMetaEmail$outboundSchema
1948
- ),
1949
- z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaDate$outboundSchema),
1950
- z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaText$outboundSchema),
1972
+ ).and(z.object({ type: z.literal("initials") })),
1973
+ z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaName$outboundSchema)
1974
+ .and(z.object({ type: z.literal("name") })),
1975
+ z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaEmail$outboundSchema)
1976
+ .and(z.object({ type: z.literal("email") })),
1977
+ z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaDate$outboundSchema)
1978
+ .and(z.object({ type: z.literal("date") })),
1979
+ z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaText$outboundSchema)
1980
+ .and(z.object({ type: z.literal("text") })),
1951
1981
  z.lazy(() =>
1952
1982
  RecipientUpdateTemplateRecipientsFieldMetaNumber$outboundSchema
1953
- ),
1954
- z.lazy(() =>
1955
- RecipientUpdateTemplateRecipientsFieldMetaRadio$outboundSchema
1956
- ),
1983
+ ).and(z.object({ type: z.literal("number") })),
1984
+ z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaRadio$outboundSchema)
1985
+ .and(z.object({ type: z.literal("radio") })),
1957
1986
  z.lazy(() =>
1958
1987
  RecipientUpdateTemplateRecipientsFieldMetaCheckbox$outboundSchema
1959
- ),
1988
+ ).and(z.object({ type: z.literal("checkbox") })),
1960
1989
  z.lazy(() =>
1961
1990
  RecipientUpdateTemplateRecipientsFieldMetaDropdown$outboundSchema
1962
- ),
1991
+ ).and(z.object({ type: z.literal("dropdown") })),
1963
1992
  ]);
1964
1993
 
1965
1994
  export function recipientUpdateTemplateRecipientsFieldMetaUnionToJSON(
@@ -2011,34 +2040,31 @@ export const RecipientUpdateTemplateRecipientsField$inboundSchema: z.ZodType<
2011
2040
  z.union([
2012
2041
  z.lazy(() =>
2013
2042
  RecipientUpdateTemplateRecipientsFieldMetaSignature$inboundSchema
2014
- ),
2043
+ ).and(z.object({ type: z.literal("signature") })),
2015
2044
  z.lazy(() =>
2016
2045
  RecipientUpdateTemplateRecipientsFieldMetaInitials$inboundSchema
2017
- ),
2018
- z.lazy(() =>
2019
- RecipientUpdateTemplateRecipientsFieldMetaName$inboundSchema
2020
- ),
2046
+ ).and(z.object({ type: z.literal("initials") })),
2047
+ z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaName$inboundSchema)
2048
+ .and(z.object({ type: z.literal("name") })),
2021
2049
  z.lazy(() =>
2022
2050
  RecipientUpdateTemplateRecipientsFieldMetaEmail$inboundSchema
2023
- ),
2024
- z.lazy(() =>
2025
- RecipientUpdateTemplateRecipientsFieldMetaDate$inboundSchema
2026
- ),
2027
- z.lazy(() =>
2028
- RecipientUpdateTemplateRecipientsFieldMetaText$inboundSchema
2029
- ),
2051
+ ).and(z.object({ type: z.literal("email") })),
2052
+ z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaDate$inboundSchema)
2053
+ .and(z.object({ type: z.literal("date") })),
2054
+ z.lazy(() => RecipientUpdateTemplateRecipientsFieldMetaText$inboundSchema)
2055
+ .and(z.object({ type: z.literal("text") })),
2030
2056
  z.lazy(() =>
2031
2057
  RecipientUpdateTemplateRecipientsFieldMetaNumber$inboundSchema
2032
- ),
2058
+ ).and(z.object({ type: z.literal("number") })),
2033
2059
  z.lazy(() =>
2034
2060
  RecipientUpdateTemplateRecipientsFieldMetaRadio$inboundSchema
2035
- ),
2061
+ ).and(z.object({ type: z.literal("radio") })),
2036
2062
  z.lazy(() =>
2037
2063
  RecipientUpdateTemplateRecipientsFieldMetaCheckbox$inboundSchema
2038
- ),
2064
+ ).and(z.object({ type: z.literal("checkbox") })),
2039
2065
  z.lazy(() =>
2040
2066
  RecipientUpdateTemplateRecipientsFieldMetaDropdown$inboundSchema
2041
- ),
2067
+ ).and(z.object({ type: z.literal("dropdown") })),
2042
2068
  ]),
2043
2069
  ),
2044
2070
  documentId: z.nullable(z.number()).optional(),
@@ -2060,16 +2086,36 @@ export type RecipientUpdateTemplateRecipientsField$Outbound = {
2060
2086
  customText: string;
2061
2087
  inserted: boolean;
2062
2088
  fieldMeta:
2063
- | RecipientUpdateTemplateRecipientsFieldMetaSignature$Outbound
2064
- | RecipientUpdateTemplateRecipientsFieldMetaInitials$Outbound
2065
- | RecipientUpdateTemplateRecipientsFieldMetaName$Outbound
2066
- | RecipientUpdateTemplateRecipientsFieldMetaEmail$Outbound
2067
- | RecipientUpdateTemplateRecipientsFieldMetaDate$Outbound
2068
- | RecipientUpdateTemplateRecipientsFieldMetaText$Outbound
2069
- | RecipientUpdateTemplateRecipientsFieldMetaNumber$Outbound
2070
- | RecipientUpdateTemplateRecipientsFieldMetaRadio$Outbound
2071
- | RecipientUpdateTemplateRecipientsFieldMetaCheckbox$Outbound
2072
- | RecipientUpdateTemplateRecipientsFieldMetaDropdown$Outbound
2089
+ | (RecipientUpdateTemplateRecipientsFieldMetaSignature$Outbound & {
2090
+ type: "signature";
2091
+ })
2092
+ | (RecipientUpdateTemplateRecipientsFieldMetaInitials$Outbound & {
2093
+ type: "initials";
2094
+ })
2095
+ | (RecipientUpdateTemplateRecipientsFieldMetaName$Outbound & {
2096
+ type: "name";
2097
+ })
2098
+ | (RecipientUpdateTemplateRecipientsFieldMetaEmail$Outbound & {
2099
+ type: "email";
2100
+ })
2101
+ | (RecipientUpdateTemplateRecipientsFieldMetaDate$Outbound & {
2102
+ type: "date";
2103
+ })
2104
+ | (RecipientUpdateTemplateRecipientsFieldMetaText$Outbound & {
2105
+ type: "text";
2106
+ })
2107
+ | (RecipientUpdateTemplateRecipientsFieldMetaNumber$Outbound & {
2108
+ type: "number";
2109
+ })
2110
+ | (RecipientUpdateTemplateRecipientsFieldMetaRadio$Outbound & {
2111
+ type: "radio";
2112
+ })
2113
+ | (RecipientUpdateTemplateRecipientsFieldMetaCheckbox$Outbound & {
2114
+ type: "checkbox";
2115
+ })
2116
+ | (RecipientUpdateTemplateRecipientsFieldMetaDropdown$Outbound & {
2117
+ type: "dropdown";
2118
+ })
2073
2119
  | null;
2074
2120
  documentId?: number | null | undefined;
2075
2121
  templateId?: number | null | undefined;
@@ -2098,34 +2144,34 @@ export const RecipientUpdateTemplateRecipientsField$outboundSchema: z.ZodType<
2098
2144
  z.union([
2099
2145
  z.lazy(() =>
2100
2146
  RecipientUpdateTemplateRecipientsFieldMetaSignature$outboundSchema
2101
- ),
2147
+ ).and(z.object({ type: z.literal("signature") })),
2102
2148
  z.lazy(() =>
2103
2149
  RecipientUpdateTemplateRecipientsFieldMetaInitials$outboundSchema
2104
- ),
2150
+ ).and(z.object({ type: z.literal("initials") })),
2105
2151
  z.lazy(() =>
2106
2152
  RecipientUpdateTemplateRecipientsFieldMetaName$outboundSchema
2107
- ),
2153
+ ).and(z.object({ type: z.literal("name") })),
2108
2154
  z.lazy(() =>
2109
2155
  RecipientUpdateTemplateRecipientsFieldMetaEmail$outboundSchema
2110
- ),
2156
+ ).and(z.object({ type: z.literal("email") })),
2111
2157
  z.lazy(() =>
2112
2158
  RecipientUpdateTemplateRecipientsFieldMetaDate$outboundSchema
2113
- ),
2159
+ ).and(z.object({ type: z.literal("date") })),
2114
2160
  z.lazy(() =>
2115
2161
  RecipientUpdateTemplateRecipientsFieldMetaText$outboundSchema
2116
- ),
2162
+ ).and(z.object({ type: z.literal("text") })),
2117
2163
  z.lazy(() =>
2118
2164
  RecipientUpdateTemplateRecipientsFieldMetaNumber$outboundSchema
2119
- ),
2165
+ ).and(z.object({ type: z.literal("number") })),
2120
2166
  z.lazy(() =>
2121
2167
  RecipientUpdateTemplateRecipientsFieldMetaRadio$outboundSchema
2122
- ),
2168
+ ).and(z.object({ type: z.literal("radio") })),
2123
2169
  z.lazy(() =>
2124
2170
  RecipientUpdateTemplateRecipientsFieldMetaCheckbox$outboundSchema
2125
- ),
2171
+ ).and(z.object({ type: z.literal("checkbox") })),
2126
2172
  z.lazy(() =>
2127
2173
  RecipientUpdateTemplateRecipientsFieldMetaDropdown$outboundSchema
2128
- ),
2174
+ ).and(z.object({ type: z.literal("dropdown") })),
2129
2175
  ]),
2130
2176
  ),
2131
2177
  documentId: z.nullable(z.number()).optional(),