@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
@@ -519,16 +519,16 @@ export type TemplateGetTemplateByIdFieldMetaSignature = {
519
519
  };
520
520
 
521
521
  export type TemplateGetTemplateByIdFieldMetaUnion =
522
- | TemplateGetTemplateByIdFieldMetaSignature
523
- | TemplateGetTemplateByIdFieldMetaInitials
524
- | TemplateGetTemplateByIdFieldMetaName
525
- | TemplateGetTemplateByIdFieldMetaEmail
526
- | TemplateGetTemplateByIdFieldMetaDate
527
- | TemplateGetTemplateByIdFieldMetaText
528
- | TemplateGetTemplateByIdFieldMetaNumber
529
- | TemplateGetTemplateByIdFieldMetaRadio
530
- | TemplateGetTemplateByIdFieldMetaCheckbox
531
- | TemplateGetTemplateByIdFieldMetaDropdown;
522
+ | (TemplateGetTemplateByIdFieldMetaSignature & { type: "signature" })
523
+ | (TemplateGetTemplateByIdFieldMetaInitials & { type: "initials" })
524
+ | (TemplateGetTemplateByIdFieldMetaName & { type: "name" })
525
+ | (TemplateGetTemplateByIdFieldMetaEmail & { type: "email" })
526
+ | (TemplateGetTemplateByIdFieldMetaDate & { type: "date" })
527
+ | (TemplateGetTemplateByIdFieldMetaText & { type: "text" })
528
+ | (TemplateGetTemplateByIdFieldMetaNumber & { type: "number" })
529
+ | (TemplateGetTemplateByIdFieldMetaRadio & { type: "radio" })
530
+ | (TemplateGetTemplateByIdFieldMetaCheckbox & { type: "checkbox" })
531
+ | (TemplateGetTemplateByIdFieldMetaDropdown & { type: "dropdown" });
532
532
 
533
533
  export type TemplateGetTemplateByIdField = {
534
534
  envelopeId: string;
@@ -545,16 +545,16 @@ export type TemplateGetTemplateByIdField = {
545
545
  customText: string;
546
546
  inserted: boolean;
547
547
  fieldMeta:
548
- | TemplateGetTemplateByIdFieldMetaSignature
549
- | TemplateGetTemplateByIdFieldMetaInitials
550
- | TemplateGetTemplateByIdFieldMetaName
551
- | TemplateGetTemplateByIdFieldMetaEmail
552
- | TemplateGetTemplateByIdFieldMetaDate
553
- | TemplateGetTemplateByIdFieldMetaText
554
- | TemplateGetTemplateByIdFieldMetaNumber
555
- | TemplateGetTemplateByIdFieldMetaRadio
556
- | TemplateGetTemplateByIdFieldMetaCheckbox
557
- | TemplateGetTemplateByIdFieldMetaDropdown
548
+ | (TemplateGetTemplateByIdFieldMetaSignature & { type: "signature" })
549
+ | (TemplateGetTemplateByIdFieldMetaInitials & { type: "initials" })
550
+ | (TemplateGetTemplateByIdFieldMetaName & { type: "name" })
551
+ | (TemplateGetTemplateByIdFieldMetaEmail & { type: "email" })
552
+ | (TemplateGetTemplateByIdFieldMetaDate & { type: "date" })
553
+ | (TemplateGetTemplateByIdFieldMetaText & { type: "text" })
554
+ | (TemplateGetTemplateByIdFieldMetaNumber & { type: "number" })
555
+ | (TemplateGetTemplateByIdFieldMetaRadio & { type: "radio" })
556
+ | (TemplateGetTemplateByIdFieldMetaCheckbox & { type: "checkbox" })
557
+ | (TemplateGetTemplateByIdFieldMetaDropdown & { type: "dropdown" })
558
558
  | null;
559
559
  documentId?: number | null | undefined;
560
560
  templateId?: number | null | undefined;
@@ -2331,29 +2331,49 @@ export const TemplateGetTemplateByIdFieldMetaUnion$inboundSchema: z.ZodType<
2331
2331
  z.ZodTypeDef,
2332
2332
  unknown
2333
2333
  > = z.union([
2334
- z.lazy(() => TemplateGetTemplateByIdFieldMetaSignature$inboundSchema),
2335
- z.lazy(() => TemplateGetTemplateByIdFieldMetaInitials$inboundSchema),
2336
- z.lazy(() => TemplateGetTemplateByIdFieldMetaName$inboundSchema),
2337
- z.lazy(() => TemplateGetTemplateByIdFieldMetaEmail$inboundSchema),
2338
- z.lazy(() => TemplateGetTemplateByIdFieldMetaDate$inboundSchema),
2339
- z.lazy(() => TemplateGetTemplateByIdFieldMetaText$inboundSchema),
2340
- z.lazy(() => TemplateGetTemplateByIdFieldMetaNumber$inboundSchema),
2341
- z.lazy(() => TemplateGetTemplateByIdFieldMetaRadio$inboundSchema),
2342
- z.lazy(() => TemplateGetTemplateByIdFieldMetaCheckbox$inboundSchema),
2343
- z.lazy(() => TemplateGetTemplateByIdFieldMetaDropdown$inboundSchema),
2334
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaSignature$inboundSchema).and(
2335
+ z.object({ type: z.literal("signature") }),
2336
+ ),
2337
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaInitials$inboundSchema).and(
2338
+ z.object({ type: z.literal("initials") }),
2339
+ ),
2340
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaName$inboundSchema).and(
2341
+ z.object({ type: z.literal("name") }),
2342
+ ),
2343
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaEmail$inboundSchema).and(
2344
+ z.object({ type: z.literal("email") }),
2345
+ ),
2346
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaDate$inboundSchema).and(
2347
+ z.object({ type: z.literal("date") }),
2348
+ ),
2349
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaText$inboundSchema).and(
2350
+ z.object({ type: z.literal("text") }),
2351
+ ),
2352
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaNumber$inboundSchema).and(
2353
+ z.object({ type: z.literal("number") }),
2354
+ ),
2355
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaRadio$inboundSchema).and(
2356
+ z.object({ type: z.literal("radio") }),
2357
+ ),
2358
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaCheckbox$inboundSchema).and(
2359
+ z.object({ type: z.literal("checkbox") }),
2360
+ ),
2361
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaDropdown$inboundSchema).and(
2362
+ z.object({ type: z.literal("dropdown") }),
2363
+ ),
2344
2364
  ]);
2345
2365
  /** @internal */
2346
2366
  export type TemplateGetTemplateByIdFieldMetaUnion$Outbound =
2347
- | TemplateGetTemplateByIdFieldMetaSignature$Outbound
2348
- | TemplateGetTemplateByIdFieldMetaInitials$Outbound
2349
- | TemplateGetTemplateByIdFieldMetaName$Outbound
2350
- | TemplateGetTemplateByIdFieldMetaEmail$Outbound
2351
- | TemplateGetTemplateByIdFieldMetaDate$Outbound
2352
- | TemplateGetTemplateByIdFieldMetaText$Outbound
2353
- | TemplateGetTemplateByIdFieldMetaNumber$Outbound
2354
- | TemplateGetTemplateByIdFieldMetaRadio$Outbound
2355
- | TemplateGetTemplateByIdFieldMetaCheckbox$Outbound
2356
- | TemplateGetTemplateByIdFieldMetaDropdown$Outbound;
2367
+ | (TemplateGetTemplateByIdFieldMetaSignature$Outbound & { type: "signature" })
2368
+ | (TemplateGetTemplateByIdFieldMetaInitials$Outbound & { type: "initials" })
2369
+ | (TemplateGetTemplateByIdFieldMetaName$Outbound & { type: "name" })
2370
+ | (TemplateGetTemplateByIdFieldMetaEmail$Outbound & { type: "email" })
2371
+ | (TemplateGetTemplateByIdFieldMetaDate$Outbound & { type: "date" })
2372
+ | (TemplateGetTemplateByIdFieldMetaText$Outbound & { type: "text" })
2373
+ | (TemplateGetTemplateByIdFieldMetaNumber$Outbound & { type: "number" })
2374
+ | (TemplateGetTemplateByIdFieldMetaRadio$Outbound & { type: "radio" })
2375
+ | (TemplateGetTemplateByIdFieldMetaCheckbox$Outbound & { type: "checkbox" })
2376
+ | (TemplateGetTemplateByIdFieldMetaDropdown$Outbound & { type: "dropdown" });
2357
2377
 
2358
2378
  /** @internal */
2359
2379
  export const TemplateGetTemplateByIdFieldMetaUnion$outboundSchema: z.ZodType<
@@ -2361,16 +2381,36 @@ export const TemplateGetTemplateByIdFieldMetaUnion$outboundSchema: z.ZodType<
2361
2381
  z.ZodTypeDef,
2362
2382
  TemplateGetTemplateByIdFieldMetaUnion
2363
2383
  > = z.union([
2364
- z.lazy(() => TemplateGetTemplateByIdFieldMetaSignature$outboundSchema),
2365
- z.lazy(() => TemplateGetTemplateByIdFieldMetaInitials$outboundSchema),
2366
- z.lazy(() => TemplateGetTemplateByIdFieldMetaName$outboundSchema),
2367
- z.lazy(() => TemplateGetTemplateByIdFieldMetaEmail$outboundSchema),
2368
- z.lazy(() => TemplateGetTemplateByIdFieldMetaDate$outboundSchema),
2369
- z.lazy(() => TemplateGetTemplateByIdFieldMetaText$outboundSchema),
2370
- z.lazy(() => TemplateGetTemplateByIdFieldMetaNumber$outboundSchema),
2371
- z.lazy(() => TemplateGetTemplateByIdFieldMetaRadio$outboundSchema),
2372
- z.lazy(() => TemplateGetTemplateByIdFieldMetaCheckbox$outboundSchema),
2373
- z.lazy(() => TemplateGetTemplateByIdFieldMetaDropdown$outboundSchema),
2384
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaSignature$outboundSchema).and(
2385
+ z.object({ type: z.literal("signature") }),
2386
+ ),
2387
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaInitials$outboundSchema).and(
2388
+ z.object({ type: z.literal("initials") }),
2389
+ ),
2390
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaName$outboundSchema).and(
2391
+ z.object({ type: z.literal("name") }),
2392
+ ),
2393
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaEmail$outboundSchema).and(
2394
+ z.object({ type: z.literal("email") }),
2395
+ ),
2396
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaDate$outboundSchema).and(
2397
+ z.object({ type: z.literal("date") }),
2398
+ ),
2399
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaText$outboundSchema).and(
2400
+ z.object({ type: z.literal("text") }),
2401
+ ),
2402
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaNumber$outboundSchema).and(
2403
+ z.object({ type: z.literal("number") }),
2404
+ ),
2405
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaRadio$outboundSchema).and(
2406
+ z.object({ type: z.literal("radio") }),
2407
+ ),
2408
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaCheckbox$outboundSchema).and(
2409
+ z.object({ type: z.literal("checkbox") }),
2410
+ ),
2411
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaDropdown$outboundSchema).and(
2412
+ z.object({ type: z.literal("dropdown") }),
2413
+ ),
2374
2414
  ]);
2375
2415
 
2376
2416
  export function templateGetTemplateByIdFieldMetaUnionToJSON(
@@ -2414,16 +2454,36 @@ export const TemplateGetTemplateByIdField$inboundSchema: z.ZodType<
2414
2454
  inserted: z.boolean(),
2415
2455
  fieldMeta: z.nullable(
2416
2456
  z.union([
2417
- z.lazy(() => TemplateGetTemplateByIdFieldMetaSignature$inboundSchema),
2418
- z.lazy(() => TemplateGetTemplateByIdFieldMetaInitials$inboundSchema),
2419
- z.lazy(() => TemplateGetTemplateByIdFieldMetaName$inboundSchema),
2420
- z.lazy(() => TemplateGetTemplateByIdFieldMetaEmail$inboundSchema),
2421
- z.lazy(() => TemplateGetTemplateByIdFieldMetaDate$inboundSchema),
2422
- z.lazy(() => TemplateGetTemplateByIdFieldMetaText$inboundSchema),
2423
- z.lazy(() => TemplateGetTemplateByIdFieldMetaNumber$inboundSchema),
2424
- z.lazy(() => TemplateGetTemplateByIdFieldMetaRadio$inboundSchema),
2425
- z.lazy(() => TemplateGetTemplateByIdFieldMetaCheckbox$inboundSchema),
2426
- z.lazy(() => TemplateGetTemplateByIdFieldMetaDropdown$inboundSchema),
2457
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaSignature$inboundSchema).and(
2458
+ z.object({ type: z.literal("signature") }),
2459
+ ),
2460
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaInitials$inboundSchema).and(
2461
+ z.object({ type: z.literal("initials") }),
2462
+ ),
2463
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaName$inboundSchema).and(
2464
+ z.object({ type: z.literal("name") }),
2465
+ ),
2466
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaEmail$inboundSchema).and(
2467
+ z.object({ type: z.literal("email") }),
2468
+ ),
2469
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaDate$inboundSchema).and(
2470
+ z.object({ type: z.literal("date") }),
2471
+ ),
2472
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaText$inboundSchema).and(
2473
+ z.object({ type: z.literal("text") }),
2474
+ ),
2475
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaNumber$inboundSchema).and(
2476
+ z.object({ type: z.literal("number") }),
2477
+ ),
2478
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaRadio$inboundSchema).and(
2479
+ z.object({ type: z.literal("radio") }),
2480
+ ),
2481
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaCheckbox$inboundSchema).and(
2482
+ z.object({ type: z.literal("checkbox") }),
2483
+ ),
2484
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaDropdown$inboundSchema).and(
2485
+ z.object({ type: z.literal("dropdown") }),
2486
+ ),
2427
2487
  ]),
2428
2488
  ),
2429
2489
  documentId: z.nullable(z.number()).optional(),
@@ -2445,16 +2505,18 @@ export type TemplateGetTemplateByIdField$Outbound = {
2445
2505
  customText: string;
2446
2506
  inserted: boolean;
2447
2507
  fieldMeta:
2448
- | TemplateGetTemplateByIdFieldMetaSignature$Outbound
2449
- | TemplateGetTemplateByIdFieldMetaInitials$Outbound
2450
- | TemplateGetTemplateByIdFieldMetaName$Outbound
2451
- | TemplateGetTemplateByIdFieldMetaEmail$Outbound
2452
- | TemplateGetTemplateByIdFieldMetaDate$Outbound
2453
- | TemplateGetTemplateByIdFieldMetaText$Outbound
2454
- | TemplateGetTemplateByIdFieldMetaNumber$Outbound
2455
- | TemplateGetTemplateByIdFieldMetaRadio$Outbound
2456
- | TemplateGetTemplateByIdFieldMetaCheckbox$Outbound
2457
- | TemplateGetTemplateByIdFieldMetaDropdown$Outbound
2508
+ | (TemplateGetTemplateByIdFieldMetaSignature$Outbound & {
2509
+ type: "signature";
2510
+ })
2511
+ | (TemplateGetTemplateByIdFieldMetaInitials$Outbound & { type: "initials" })
2512
+ | (TemplateGetTemplateByIdFieldMetaName$Outbound & { type: "name" })
2513
+ | (TemplateGetTemplateByIdFieldMetaEmail$Outbound & { type: "email" })
2514
+ | (TemplateGetTemplateByIdFieldMetaDate$Outbound & { type: "date" })
2515
+ | (TemplateGetTemplateByIdFieldMetaText$Outbound & { type: "text" })
2516
+ | (TemplateGetTemplateByIdFieldMetaNumber$Outbound & { type: "number" })
2517
+ | (TemplateGetTemplateByIdFieldMetaRadio$Outbound & { type: "radio" })
2518
+ | (TemplateGetTemplateByIdFieldMetaCheckbox$Outbound & { type: "checkbox" })
2519
+ | (TemplateGetTemplateByIdFieldMetaDropdown$Outbound & { type: "dropdown" })
2458
2520
  | null;
2459
2521
  documentId?: number | null | undefined;
2460
2522
  templateId?: number | null | undefined;
@@ -2481,16 +2543,35 @@ export const TemplateGetTemplateByIdField$outboundSchema: z.ZodType<
2481
2543
  inserted: z.boolean(),
2482
2544
  fieldMeta: z.nullable(
2483
2545
  z.union([
2484
- z.lazy(() => TemplateGetTemplateByIdFieldMetaSignature$outboundSchema),
2485
- z.lazy(() => TemplateGetTemplateByIdFieldMetaInitials$outboundSchema),
2486
- z.lazy(() => TemplateGetTemplateByIdFieldMetaName$outboundSchema),
2487
- z.lazy(() => TemplateGetTemplateByIdFieldMetaEmail$outboundSchema),
2488
- z.lazy(() => TemplateGetTemplateByIdFieldMetaDate$outboundSchema),
2489
- z.lazy(() => TemplateGetTemplateByIdFieldMetaText$outboundSchema),
2490
- z.lazy(() => TemplateGetTemplateByIdFieldMetaNumber$outboundSchema),
2491
- z.lazy(() => TemplateGetTemplateByIdFieldMetaRadio$outboundSchema),
2492
- z.lazy(() => TemplateGetTemplateByIdFieldMetaCheckbox$outboundSchema),
2493
- z.lazy(() => TemplateGetTemplateByIdFieldMetaDropdown$outboundSchema),
2546
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaSignature$outboundSchema)
2547
+ .and(z.object({ type: z.literal("signature") })),
2548
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaInitials$outboundSchema).and(
2549
+ z.object({ type: z.literal("initials") }),
2550
+ ),
2551
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaName$outboundSchema).and(
2552
+ z.object({ type: z.literal("name") }),
2553
+ ),
2554
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaEmail$outboundSchema).and(
2555
+ z.object({ type: z.literal("email") }),
2556
+ ),
2557
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaDate$outboundSchema).and(
2558
+ z.object({ type: z.literal("date") }),
2559
+ ),
2560
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaText$outboundSchema).and(
2561
+ z.object({ type: z.literal("text") }),
2562
+ ),
2563
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaNumber$outboundSchema).and(
2564
+ z.object({ type: z.literal("number") }),
2565
+ ),
2566
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaRadio$outboundSchema).and(
2567
+ z.object({ type: z.literal("radio") }),
2568
+ ),
2569
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaCheckbox$outboundSchema).and(
2570
+ z.object({ type: z.literal("checkbox") }),
2571
+ ),
2572
+ z.lazy(() => TemplateGetTemplateByIdFieldMetaDropdown$outboundSchema).and(
2573
+ z.object({ type: z.literal("dropdown") }),
2574
+ ),
2494
2575
  ]),
2495
2576
  ),
2496
2577
  documentId: z.nullable(z.number()).optional(),
@@ -113,6 +113,10 @@ export const TemplateUpdateTemplateLanguage = {
113
113
  Es: "es",
114
114
  It: "it",
115
115
  Pl: "pl",
116
+ PtBR: "pt-BR",
117
+ Ja: "ja",
118
+ Ko: "ko",
119
+ Zh: "zh",
116
120
  } as const;
117
121
  export type TemplateUpdateTemplateLanguage = ClosedEnum<
118
122
  typeof TemplateUpdateTemplateLanguage
@@ -3,34 +3,14 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
6
+ import { Unrecognized, unrecognized } from "./unrecognized.js";
6
7
 
7
- declare const __brand: unique symbol;
8
- export type Unrecognized<T> = T & { [__brand]: "unrecognized" };
9
8
  export type ClosedEnum<T extends Readonly<Record<string, string | number>>> =
10
9
  T[keyof T];
11
10
  export type OpenEnum<T extends Readonly<Record<string, string | number>>> =
12
11
  | T[keyof T]
13
12
  | Unrecognized<T[keyof T] extends number ? number : string>;
14
13
 
15
- function unrecognized<T>(value: T): Unrecognized<T> {
16
- unrecognizedCount++;
17
- return value as Unrecognized<T>;
18
- }
19
-
20
- let unrecognizedCount = 0;
21
- let refCount = 0;
22
- export function unrecognizedCounter() {
23
- refCount++;
24
- const start = unrecognizedCount;
25
- return {
26
- count: () => {
27
- const count = unrecognizedCount - start;
28
- if (--refCount === 0) unrecognizedCount = 0;
29
- return count;
30
- },
31
- };
32
- }
33
-
34
14
  export function inboundSchema<T extends Record<string, string>>(
35
15
  enumObj: T,
36
16
  ): z.ZodType<OpenEnum<T>, z.ZodTypeDef, unknown> {
@@ -3,8 +3,9 @@
3
3
  */
4
4
 
5
5
  export { blobLikeSchema, isBlobLike } from "./blobs.js";
6
- export type { ClosedEnum, OpenEnum, Unrecognized } from "./enums.js";
6
+ export type { ClosedEnum, OpenEnum } from "./enums.js";
7
7
  export type { Result } from "./fp.js";
8
8
  export type { PageIterator, Paginator } from "./operations.js";
9
9
  export { createPageIterator } from "./operations.js";
10
10
  export { RFCDate } from "./rfcdate.js";
11
+ export * from "./unrecognized.js";
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ declare const __brand: unique symbol;
6
+ export type Unrecognized<T> = T & { [__brand]: "unrecognized" };
7
+
8
+ function unrecognized<T>(value: T): Unrecognized<T> {
9
+ globalCount++;
10
+ return value as Unrecognized<T>;
11
+ }
12
+
13
+ let globalCount = 0;
14
+ let refCount = 0;
15
+ export function startCountingUnrecognized() {
16
+ refCount++;
17
+ const start = globalCount;
18
+ return {
19
+ end: () => {
20
+ const count = globalCount - start;
21
+ if (--refCount === 0) globalCount = 0;
22
+ return count;
23
+ },
24
+ };
25
+ }
26
+
27
+ export { unrecognized };
package/types/enums.d.ts CHANGED
@@ -1,16 +1,9 @@
1
1
  import * as z from "zod/v3";
2
- declare const __brand: unique symbol;
3
- export type Unrecognized<T> = T & {
4
- [__brand]: "unrecognized";
5
- };
2
+ import { Unrecognized } from "./unrecognized.js";
6
3
  export type ClosedEnum<T extends Readonly<Record<string, string | number>>> = T[keyof T];
7
4
  export type OpenEnum<T extends Readonly<Record<string, string | number>>> = T[keyof T] | Unrecognized<T[keyof T] extends number ? number : string>;
8
- export declare function unrecognizedCounter(): {
9
- count: () => number;
10
- };
11
5
  export declare function inboundSchema<T extends Record<string, string>>(enumObj: T): z.ZodType<OpenEnum<T>, z.ZodTypeDef, unknown>;
12
6
  export declare function inboundSchemaInt<T extends Record<string, number | string>>(enumObj: T): z.ZodType<OpenEnum<T>, z.ZodTypeDef, unknown>;
13
7
  export declare function outboundSchema<T extends Record<string, string>>(_: T): z.ZodType<string, z.ZodTypeDef, OpenEnum<T>>;
14
8
  export declare function outboundSchemaInt<T extends Record<string, number | string>>(_: T): z.ZodType<number, z.ZodTypeDef, OpenEnum<T>>;
15
- export {};
16
9
  //# sourceMappingURL=enums.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/types/enums.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,MAAM,CAAC;AACrC,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,CAAC,OAAO,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC;AAChE,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,IACxE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CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAE9C"}
package/types/enums.js CHANGED
@@ -36,35 +36,17 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.unrecognizedCounter = unrecognizedCounter;
40
39
  exports.inboundSchema = inboundSchema;
41
40
  exports.inboundSchemaInt = inboundSchemaInt;
42
41
  exports.outboundSchema = outboundSchema;
43
42
  exports.outboundSchemaInt = outboundSchemaInt;
44
43
  const z = __importStar(require("zod/v3"));
45
- function unrecognized(value) {
46
- unrecognizedCount++;
47
- return value;
48
- }
49
- let unrecognizedCount = 0;
50
- let refCount = 0;
51
- function unrecognizedCounter() {
52
- refCount++;
53
- const start = unrecognizedCount;
54
- return {
55
- count: () => {
56
- const count = unrecognizedCount - start;
57
- if (--refCount === 0)
58
- unrecognizedCount = 0;
59
- return count;
60
- },
61
- };
62
- }
44
+ const unrecognized_js_1 = require("./unrecognized.js");
63
45
  function inboundSchema(enumObj) {
64
46
  const options = Object.values(enumObj);
65
47
  return z.union([
66
48
  ...options.map(x => z.literal(x)),
67
- z.string().transform(x => unrecognized(x)),
49
+ z.string().transform(x => (0, unrecognized_js_1.unrecognized)(x)),
68
50
  ]);
69
51
  }
70
52
  function inboundSchemaInt(enumObj) {
@@ -72,7 +54,7 @@ function inboundSchemaInt(enumObj) {
72
54
  const options = Object.values(enumObj).filter(v => typeof v === "number");
73
55
  return z.union([
74
56
  ...options.map(x => z.literal(x)),
75
- z.number().int().transform(x => unrecognized(x)),
57
+ z.number().int().transform(x => (0, unrecognized_js_1.unrecognized)(x)),
76
58
  ]);
77
59
  }
78
60
  function outboundSchema(_) {
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/types/enums.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBH,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AAO,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,8BAAY,EAAC,CAAC,CAAC,CAAC;KAC1C,CAAC,CAAC;AACZ,CAAC;AAED,SAAgB,cAAc,CAC5B,CAAI;IAEJ,OAAO,CAAC,CAAC,MAAM,EAAS,CAAC;AAC3B,CAAC;AAED,SAAgB,iBAAiB,CAC/B,CAAI;IAEJ,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAS,CAAC;AACjC,CAAC"}
package/types/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  export { blobLikeSchema, isBlobLike } from "./blobs.js";
2
- export type { ClosedEnum, OpenEnum, Unrecognized } from "./enums.js";
2
+ export type { ClosedEnum, OpenEnum } from "./enums.js";
3
3
  export type { Result } from "./fp.js";
4
4
  export type { PageIterator, Paginator } from "./operations.js";
5
5
  export { createPageIterator } from "./operations.js";
6
6
  export { RFCDate } from "./rfcdate.js";
7
+ export * from "./unrecognized.js";
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACrE,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACvD,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
package/types/index.js CHANGED
@@ -2,6 +2,20 @@
2
2
  /*
3
3
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
4
  */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
+ };
5
19
  Object.defineProperty(exports, "__esModule", { value: true });
6
20
  exports.RFCDate = exports.createPageIterator = exports.isBlobLike = exports.blobLikeSchema = void 0;
7
21
  var blobs_js_1 = require("./blobs.js");
@@ -11,4 +25,5 @@ var operations_js_1 = require("./operations.js");
11
25
  Object.defineProperty(exports, "createPageIterator", { enumerable: true, get: function () { return operations_js_1.createPageIterator; } });
12
26
  var rfcdate_js_1 = require("./rfcdate.js");
13
27
  Object.defineProperty(exports, "RFCDate", { enumerable: true, get: function () { return rfcdate_js_1.RFCDate; } });
28
+ __exportStar(require("./unrecognized.js"), exports);
14
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/types/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,uCAAwD;AAA/C,0GAAA,cAAc,OAAA;AAAE,sGAAA,UAAU,OAAA;AAInC,iDAAqD;AAA5C,mHAAA,kBAAkB,OAAA;AAC3B,2CAAuC;AAA9B,qGAAA,OAAO,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/types/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;AAEH,uCAAwD;AAA/C,0GAAA,cAAc,OAAA;AAAE,sGAAA,UAAU,OAAA;AAInC,iDAAqD;AAA5C,mHAAA,kBAAkB,OAAA;AAC3B,2CAAuC;AAA9B,qGAAA,OAAO,OAAA;AAChB,oDAAkC"}
@@ -0,0 +1,10 @@
1
+ declare const __brand: unique symbol;
2
+ export type Unrecognized<T> = T & {
3
+ [__brand]: "unrecognized";
4
+ };
5
+ declare function unrecognized<T>(value: T): Unrecognized<T>;
6
+ export declare function startCountingUnrecognized(): {
7
+ end: () => number;
8
+ };
9
+ export { unrecognized };
10
+ //# sourceMappingURL=unrecognized.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unrecognized.d.ts","sourceRoot":"","sources":["../src/types/unrecognized.ts"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,MAAM,CAAC;AACrC,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,CAAC,OAAO,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC;AAEhE,iBAAS,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAGlD;AAID,wBAAgB,yBAAyB;;EAUxC;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.startCountingUnrecognized = startCountingUnrecognized;
7
+ exports.unrecognized = unrecognized;
8
+ function unrecognized(value) {
9
+ globalCount++;
10
+ return value;
11
+ }
12
+ let globalCount = 0;
13
+ let refCount = 0;
14
+ function startCountingUnrecognized() {
15
+ refCount++;
16
+ const start = globalCount;
17
+ return {
18
+ end: () => {
19
+ const count = globalCount - start;
20
+ if (--refCount === 0)
21
+ globalCount = 0;
22
+ return count;
23
+ },
24
+ };
25
+ }
26
+ //# sourceMappingURL=unrecognized.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unrecognized.js","sourceRoot":"","sources":["../src/types/unrecognized.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAYH,8DAUC;AAEQ,oCAAY;AAnBrB,SAAS,YAAY,CAAI,KAAQ;IAC/B,WAAW,EAAE,CAAC;IACd,OAAO,KAAwB,CAAC;AAClC,CAAC;AAED,IAAI,WAAW,GAAG,CAAC,CAAC;AACpB,IAAI,QAAQ,GAAG,CAAC,CAAC;AACjB,SAAgB,yBAAyB;IACvC,QAAQ,EAAE,CAAC;IACX,MAAM,KAAK,GAAG,WAAW,CAAC;IAC1B,OAAO;QACL,GAAG,EAAE,GAAG,EAAE;YACR,MAAM,KAAK,GAAG,WAAW,GAAG,KAAK,CAAC;YAClC,IAAI,EAAE,QAAQ,KAAK,CAAC;gBAAE,WAAW,GAAG,CAAC,CAAC;YACtC,OAAO,KAAK,CAAC;QACf,CAAC;KACF,CAAC;AACJ,CAAC"}