@documenso/sdk-typescript 0.5.0 → 0.6.2
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.
- package/README.md +385 -355
- package/_speakeasy/.github/action-inputs-config.json +53 -0
- package/_speakeasy/.github/action-security-config.json +88 -0
- package/bin/mcp-server.js +51156 -29112
- package/bin/mcp-server.js.map +272 -85
- package/examples/package-lock.json +2 -10
- package/funcs/documentDocumentGetMany.d.ts +18 -0
- package/funcs/documentDocumentGetMany.d.ts.map +1 -0
- package/funcs/documentDocumentGetMany.js +118 -0
- package/funcs/documentDocumentGetMany.js.map +1 -0
- package/funcs/envelopeEnvelopeAuditLogFind.d.ts +18 -0
- package/funcs/envelopeEnvelopeAuditLogFind.d.ts.map +1 -0
- package/funcs/envelopeEnvelopeAuditLogFind.js +130 -0
- package/funcs/envelopeEnvelopeAuditLogFind.js.map +1 -0
- package/funcs/envelopeEnvelopeFind.d.ts +18 -0
- package/funcs/envelopeEnvelopeFind.d.ts.map +1 -0
- package/funcs/envelopeEnvelopeFind.js +130 -0
- package/funcs/envelopeEnvelopeFind.js.map +1 -0
- package/funcs/envelopeEnvelopeGetMany.d.ts +18 -0
- package/funcs/envelopeEnvelopeGetMany.d.ts.map +1 -0
- package/funcs/envelopeEnvelopeGetMany.js +118 -0
- package/funcs/envelopeEnvelopeGetMany.js.map +1 -0
- package/funcs/templateTemplateGetMany.d.ts +18 -0
- package/funcs/templateTemplateGetMany.d.ts.map +1 -0
- package/funcs/templateTemplateGetMany.js +118 -0
- package/funcs/templateTemplateGetMany.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.d.ts +1 -0
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +12 -1
- package/lib/encodings.js.map +1 -1
- package/lib/sdks.js +2 -2
- package/lib/sdks.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/prompts.d.ts +3 -3
- package/mcp-server/prompts.d.ts.map +1 -1
- package/mcp-server/prompts.js.map +1 -1
- package/mcp-server/resources.d.ts +3 -3
- package/mcp-server/resources.d.ts.map +1 -1
- package/mcp-server/resources.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +11 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/documentDocumentGetMany.d.ts +8 -0
- package/mcp-server/tools/documentDocumentGetMany.d.ts.map +1 -0
- package/mcp-server/tools/documentDocumentGetMany.js +64 -0
- package/mcp-server/tools/documentDocumentGetMany.js.map +1 -0
- package/mcp-server/tools/envelopeEnvelopeAuditLogFind.d.ts +8 -0
- package/mcp-server/tools/envelopeEnvelopeAuditLogFind.d.ts.map +1 -0
- package/mcp-server/tools/envelopeEnvelopeAuditLogFind.js +64 -0
- package/mcp-server/tools/envelopeEnvelopeAuditLogFind.js.map +1 -0
- package/mcp-server/tools/envelopeEnvelopeFind.d.ts +8 -0
- package/mcp-server/tools/envelopeEnvelopeFind.d.ts.map +1 -0
- package/mcp-server/tools/envelopeEnvelopeFind.js +64 -0
- package/mcp-server/tools/envelopeEnvelopeFind.js.map +1 -0
- package/mcp-server/tools/envelopeEnvelopeGetMany.d.ts +8 -0
- package/mcp-server/tools/envelopeEnvelopeGetMany.d.ts.map +1 -0
- package/mcp-server/tools/envelopeEnvelopeGetMany.js +64 -0
- package/mcp-server/tools/envelopeEnvelopeGetMany.js.map +1 -0
- package/mcp-server/tools/templateTemplateGetMany.d.ts +8 -0
- package/mcp-server/tools/templateTemplateGetMany.d.ts.map +1 -0
- package/mcp-server/tools/templateTemplateGetMany.js +64 -0
- package/mcp-server/tools/templateTemplateGetMany.js.map +1 -0
- package/mcp-server/tools.d.ts +3 -3
- package/mcp-server/tools.d.ts.map +1 -1
- package/mcp-server/tools.js.map +1 -1
- package/models/errors/documentgetmany.d.ts +185 -0
- package/models/errors/documentgetmany.d.ts.map +1 -0
- package/models/errors/documentgetmany.js +268 -0
- package/models/errors/documentgetmany.js.map +1 -0
- package/models/errors/envelopeauditlogfind.d.ts +230 -0
- package/models/errors/envelopeauditlogfind.d.ts.map +1 -0
- package/models/errors/envelopeauditlogfind.js +319 -0
- package/models/errors/envelopeauditlogfind.js.map +1 -0
- package/models/errors/envelopefind.d.ts +230 -0
- package/models/errors/envelopefind.d.ts.map +1 -0
- package/models/errors/envelopefind.js +326 -0
- package/models/errors/envelopefind.js.map +1 -0
- package/models/errors/envelopegetmany.d.ts +185 -0
- package/models/errors/envelopegetmany.d.ts.map +1 -0
- package/models/errors/envelopegetmany.js +268 -0
- package/models/errors/envelopegetmany.js.map +1 -0
- package/models/errors/index.d.ts +5 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +5 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/templategetmany.d.ts +185 -0
- package/models/errors/templategetmany.d.ts.map +1 -0
- package/models/errors/templategetmany.js +268 -0
- package/models/errors/templategetmany.js.map +1 -0
- package/models/operations/documentcreate.d.ts +77 -160
- package/models/operations/documentcreate.d.ts.map +1 -1
- package/models/operations/documentcreate.js +81 -153
- package/models/operations/documentcreate.js.map +1 -1
- package/models/operations/documentcreatedocumenttemporary.d.ts +102 -265
- package/models/operations/documentcreatedocumenttemporary.d.ts.map +1 -1
- package/models/operations/documentcreatedocumenttemporary.js +118 -263
- package/models/operations/documentcreatedocumenttemporary.js.map +1 -1
- package/models/operations/documentdistribute.d.ts +5 -0
- package/models/operations/documentdistribute.d.ts.map +1 -1
- package/models/operations/documentdistribute.js +5 -0
- package/models/operations/documentdistribute.js.map +1 -1
- package/models/operations/documentfind.d.ts +30 -30
- package/models/operations/documentfind.d.ts.map +1 -1
- package/models/operations/documentfind.js +31 -33
- package/models/operations/documentfind.js.map +1 -1
- package/models/operations/documentget.d.ts +25 -105
- package/models/operations/documentget.d.ts.map +1 -1
- package/models/operations/documentget.js +28 -99
- package/models/operations/documentget.js.map +1 -1
- package/models/operations/documentgetmany.d.ts +323 -0
- package/models/operations/documentgetmany.d.ts.map +1 -0
- package/models/operations/documentgetmany.js +370 -0
- package/models/operations/documentgetmany.js.map +1 -0
- package/models/operations/documentupdate.d.ts +20 -15
- package/models/operations/documentupdate.d.ts.map +1 -1
- package/models/operations/documentupdate.js +21 -18
- package/models/operations/documentupdate.js.map +1 -1
- package/models/operations/embeddingpresigncreateembeddingpresigntoken.d.ts +2 -0
- package/models/operations/embeddingpresigncreateembeddingpresigntoken.d.ts.map +1 -1
- package/models/operations/embeddingpresigncreateembeddingpresigntoken.js +2 -0
- package/models/operations/embeddingpresigncreateembeddingpresigntoken.js.map +1 -1
- package/models/operations/embeddingpresignverifyembeddingpresigntoken.d.ts +2 -0
- package/models/operations/embeddingpresignverifyembeddingpresigntoken.d.ts.map +1 -1
- package/models/operations/embeddingpresignverifyembeddingpresigntoken.js +2 -0
- package/models/operations/embeddingpresignverifyembeddingpresigntoken.js.map +1 -1
- package/models/operations/envelopeauditlogfind.d.ts +2844 -0
- package/models/operations/envelopeauditlogfind.d.ts.map +1 -0
- package/models/operations/envelopeauditlogfind.js +3579 -0
- package/models/operations/envelopeauditlogfind.js.map +1 -0
- package/models/operations/envelopecreate.d.ts +103 -167
- package/models/operations/envelopecreate.d.ts.map +1 -1
- package/models/operations/envelopecreate.js +109 -161
- package/models/operations/envelopecreate.js.map +1 -1
- package/models/operations/envelopedistribute.d.ts +46 -0
- package/models/operations/envelopedistribute.d.ts.map +1 -1
- package/models/operations/envelopedistribute.js +49 -1
- package/models/operations/envelopedistribute.js.map +1 -1
- package/models/operations/envelopefieldcreatemany.d.ts +97 -265
- package/models/operations/envelopefieldcreatemany.d.ts.map +1 -1
- package/models/operations/envelopefieldcreatemany.js +106 -280
- package/models/operations/envelopefieldcreatemany.js.map +1 -1
- package/models/operations/envelopefieldget.d.ts +25 -105
- package/models/operations/envelopefieldget.d.ts.map +1 -1
- package/models/operations/envelopefieldget.js +27 -97
- package/models/operations/envelopefieldget.js.map +1 -1
- package/models/operations/envelopefieldupdatemany.d.ts +97 -265
- package/models/operations/envelopefieldupdatemany.d.ts.map +1 -1
- package/models/operations/envelopefieldupdatemany.js +106 -280
- package/models/operations/envelopefieldupdatemany.js.map +1 -1
- package/models/operations/envelopefind.d.ts +465 -0
- package/models/operations/envelopefind.d.ts.map +1 -0
- package/models/operations/envelopefind.js +466 -0
- package/models/operations/envelopefind.js.map +1 -0
- package/models/operations/envelopeget.d.ts +30 -110
- package/models/operations/envelopeget.d.ts.map +1 -1
- package/models/operations/envelopeget.js +33 -104
- package/models/operations/envelopeget.js.map +1 -1
- package/models/operations/envelopegetmany.d.ts +1020 -0
- package/models/operations/envelopegetmany.d.ts.map +1 -0
- package/models/operations/envelopegetmany.js +1190 -0
- package/models/operations/envelopegetmany.js.map +1 -0
- package/models/operations/enveloperecipientcreatemany.d.ts +29 -12
- package/models/operations/enveloperecipientcreatemany.d.ts.map +1 -1
- package/models/operations/enveloperecipientcreatemany.js +40 -15
- package/models/operations/enveloperecipientcreatemany.js.map +1 -1
- package/models/operations/enveloperecipientget.d.ts +25 -105
- package/models/operations/enveloperecipientget.d.ts.map +1 -1
- package/models/operations/enveloperecipientget.js +27 -98
- package/models/operations/enveloperecipientget.js.map +1 -1
- package/models/operations/enveloperecipientupdatemany.d.ts +29 -12
- package/models/operations/enveloperecipientupdatemany.d.ts.map +1 -1
- package/models/operations/enveloperecipientupdatemany.js +40 -15
- package/models/operations/enveloperecipientupdatemany.js.map +1 -1
- package/models/operations/enveloperedistribute.d.ts +42 -0
- package/models/operations/enveloperedistribute.d.ts.map +1 -1
- package/models/operations/enveloperedistribute.js +44 -1
- package/models/operations/enveloperedistribute.js.map +1 -1
- package/models/operations/envelopeupdate.d.ts +20 -15
- package/models/operations/envelopeupdate.d.ts.map +1 -1
- package/models/operations/envelopeupdate.js +21 -18
- package/models/operations/envelopeupdate.js.map +1 -1
- package/models/operations/envelopeuse.d.ts +106 -78
- package/models/operations/envelopeuse.d.ts.map +1 -1
- package/models/operations/envelopeuse.js +118 -77
- package/models/operations/envelopeuse.js.map +1 -1
- package/models/operations/fieldcreatedocumentfield.d.ts +97 -265
- package/models/operations/fieldcreatedocumentfield.d.ts.map +1 -1
- package/models/operations/fieldcreatedocumentfield.js +106 -280
- package/models/operations/fieldcreatedocumentfield.js.map +1 -1
- package/models/operations/fieldcreatedocumentfields.d.ts +97 -265
- package/models/operations/fieldcreatedocumentfields.d.ts.map +1 -1
- package/models/operations/fieldcreatedocumentfields.js +107 -280
- package/models/operations/fieldcreatedocumentfields.js.map +1 -1
- package/models/operations/fieldcreatetemplatefield.d.ts +97 -265
- package/models/operations/fieldcreatetemplatefield.d.ts.map +1 -1
- package/models/operations/fieldcreatetemplatefield.js +106 -280
- package/models/operations/fieldcreatetemplatefield.js.map +1 -1
- package/models/operations/fieldcreatetemplatefields.d.ts +97 -265
- package/models/operations/fieldcreatetemplatefields.d.ts.map +1 -1
- package/models/operations/fieldcreatetemplatefields.js +107 -280
- package/models/operations/fieldcreatetemplatefields.js.map +1 -1
- package/models/operations/fieldgetdocumentfield.d.ts +25 -105
- package/models/operations/fieldgetdocumentfield.d.ts.map +1 -1
- package/models/operations/fieldgetdocumentfield.js +27 -97
- package/models/operations/fieldgetdocumentfield.js.map +1 -1
- package/models/operations/fieldgettemplatefield.d.ts +25 -105
- package/models/operations/fieldgettemplatefield.d.ts.map +1 -1
- package/models/operations/fieldgettemplatefield.js +27 -97
- package/models/operations/fieldgettemplatefield.js.map +1 -1
- package/models/operations/fieldupdatedocumentfield.d.ts +97 -265
- package/models/operations/fieldupdatedocumentfield.d.ts.map +1 -1
- package/models/operations/fieldupdatedocumentfield.js +106 -280
- package/models/operations/fieldupdatedocumentfield.js.map +1 -1
- package/models/operations/fieldupdatedocumentfields.d.ts +97 -265
- package/models/operations/fieldupdatedocumentfields.d.ts.map +1 -1
- package/models/operations/fieldupdatedocumentfields.js +107 -280
- package/models/operations/fieldupdatedocumentfields.js.map +1 -1
- package/models/operations/fieldupdatetemplatefield.d.ts +97 -265
- package/models/operations/fieldupdatetemplatefield.d.ts.map +1 -1
- package/models/operations/fieldupdatetemplatefield.js +106 -280
- package/models/operations/fieldupdatetemplatefield.js.map +1 -1
- package/models/operations/fieldupdatetemplatefields.d.ts +97 -265
- package/models/operations/fieldupdatetemplatefields.d.ts.map +1 -1
- package/models/operations/fieldupdatetemplatefields.js +107 -280
- package/models/operations/fieldupdatetemplatefields.js.map +1 -1
- package/models/operations/folderupdatefolder.d.ts +5 -5
- package/models/operations/folderupdatefolder.d.ts.map +1 -1
- package/models/operations/folderupdatefolder.js +6 -6
- package/models/operations/folderupdatefolder.js.map +1 -1
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/recipientcreatedocumentrecipient.d.ts +10 -10
- package/models/operations/recipientcreatedocumentrecipient.d.ts.map +1 -1
- package/models/operations/recipientcreatedocumentrecipient.js +11 -13
- package/models/operations/recipientcreatedocumentrecipient.js.map +1 -1
- package/models/operations/recipientcreatedocumentrecipients.d.ts +10 -10
- package/models/operations/recipientcreatedocumentrecipients.d.ts.map +1 -1
- package/models/operations/recipientcreatedocumentrecipients.js +11 -11
- package/models/operations/recipientcreatedocumentrecipients.js.map +1 -1
- package/models/operations/recipientcreatetemplaterecipient.d.ts +10 -10
- package/models/operations/recipientcreatetemplaterecipient.d.ts.map +1 -1
- package/models/operations/recipientcreatetemplaterecipient.js +11 -13
- package/models/operations/recipientcreatetemplaterecipient.js.map +1 -1
- package/models/operations/recipientcreatetemplaterecipients.d.ts +10 -10
- package/models/operations/recipientcreatetemplaterecipients.d.ts.map +1 -1
- package/models/operations/recipientcreatetemplaterecipients.js +11 -11
- package/models/operations/recipientcreatetemplaterecipients.js.map +1 -1
- package/models/operations/recipientgetdocumentrecipient.d.ts +25 -105
- package/models/operations/recipientgetdocumentrecipient.d.ts.map +1 -1
- package/models/operations/recipientgetdocumentrecipient.js +27 -103
- package/models/operations/recipientgetdocumentrecipient.js.map +1 -1
- package/models/operations/recipientgettemplaterecipient.d.ts +25 -105
- package/models/operations/recipientgettemplaterecipient.d.ts.map +1 -1
- package/models/operations/recipientgettemplaterecipient.js +27 -103
- package/models/operations/recipientgettemplaterecipient.js.map +1 -1
- package/models/operations/recipientupdatedocumentrecipient.d.ts +35 -115
- package/models/operations/recipientupdatedocumentrecipient.d.ts.map +1 -1
- package/models/operations/recipientupdatedocumentrecipient.js +38 -120
- package/models/operations/recipientupdatedocumentrecipient.js.map +1 -1
- package/models/operations/recipientupdatedocumentrecipients.d.ts +35 -115
- package/models/operations/recipientupdatedocumentrecipients.d.ts.map +1 -1
- package/models/operations/recipientupdatedocumentrecipients.js +38 -118
- package/models/operations/recipientupdatedocumentrecipients.js.map +1 -1
- package/models/operations/recipientupdatetemplaterecipient.d.ts +35 -115
- package/models/operations/recipientupdatetemplaterecipient.d.ts.map +1 -1
- package/models/operations/recipientupdatetemplaterecipient.js +38 -120
- package/models/operations/recipientupdatetemplaterecipient.js.map +1 -1
- package/models/operations/recipientupdatetemplaterecipients.d.ts +35 -115
- package/models/operations/recipientupdatetemplaterecipients.d.ts.map +1 -1
- package/models/operations/recipientupdatetemplaterecipients.js +38 -118
- package/models/operations/recipientupdatetemplaterecipients.js.map +1 -1
- package/models/operations/templatecreatedocumentfromtemplate.d.ts +239 -186
- package/models/operations/templatecreatedocumentfromtemplate.d.ts.map +1 -1
- package/models/operations/templatecreatedocumentfromtemplate.js +277 -178
- package/models/operations/templatecreatedocumentfromtemplate.js.map +1 -1
- package/models/operations/templatecreatetemplate.d.ts +5 -0
- package/models/operations/templatecreatetemplate.d.ts.map +1 -1
- package/models/operations/templatecreatetemplate.js +5 -0
- package/models/operations/templatecreatetemplate.js.map +1 -1
- package/models/operations/templatecreatetemplatetemporary.d.ts +35 -110
- package/models/operations/templatecreatetemplatetemporary.d.ts.map +1 -1
- package/models/operations/templatecreatetemplatetemporary.js +41 -116
- package/models/operations/templatecreatetemplatetemporary.js.map +1 -1
- package/models/operations/templatefindtemplates.d.ts +30 -110
- package/models/operations/templatefindtemplates.d.ts.map +1 -1
- package/models/operations/templatefindtemplates.js +33 -103
- package/models/operations/templatefindtemplates.js.map +1 -1
- package/models/operations/templategetmany.d.ts +822 -0
- package/models/operations/templategetmany.d.ts.map +1 -0
- package/models/operations/templategetmany.js +958 -0
- package/models/operations/templategetmany.js.map +1 -0
- package/models/operations/templategettemplatebyid.d.ts +30 -110
- package/models/operations/templategettemplatebyid.d.ts.map +1 -1
- package/models/operations/templategettemplatebyid.js +33 -104
- package/models/operations/templategettemplatebyid.js.map +1 -1
- package/models/operations/templateupdatetemplate.d.ts +20 -15
- package/models/operations/templateupdatetemplate.d.ts.map +1 -1
- package/models/operations/templateupdatetemplate.js +24 -18
- package/models/operations/templateupdatetemplate.js.map +1 -1
- package/package.json +3 -6
- package/sdk/document.d.ts +7 -0
- package/sdk/document.d.ts.map +1 -1
- package/sdk/document.js +10 -0
- package/sdk/document.js.map +1 -1
- package/sdk/envelope.d.ts +26 -0
- package/sdk/envelope.d.ts.map +1 -0
- package/sdk/envelope.js +42 -0
- package/sdk/envelope.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/template.d.ts +7 -0
- package/sdk/template.d.ts.map +1 -1
- package/sdk/template.js +10 -0
- package/sdk/template.js.map +1 -1
- package/src/funcs/documentDocumentGetMany.ts +181 -0
- package/src/funcs/envelopeEnvelopeAuditLogFind.ts +203 -0
- package/src/funcs/envelopeEnvelopeFind.ts +198 -0
- package/src/funcs/envelopeEnvelopeGetMany.ts +181 -0
- package/src/funcs/templateTemplateGetMany.ts +181 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +17 -3
- package/src/lib/sdks.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +7 -3
- package/src/mcp-server/resources.ts +7 -3
- package/src/mcp-server/server.ts +11 -1
- package/src/mcp-server/tools/documentDocumentGetMany.ts +37 -0
- package/src/mcp-server/tools/envelopeEnvelopeAuditLogFind.ts +37 -0
- package/src/mcp-server/tools/envelopeEnvelopeFind.ts +37 -0
- package/src/mcp-server/tools/envelopeEnvelopeGetMany.ts +37 -0
- package/src/mcp-server/tools/templateTemplateGetMany.ts +37 -0
- package/src/mcp-server/tools.ts +7 -3
- package/src/models/errors/documentgetmany.ts +503 -0
- package/src/models/errors/envelopeauditlogfind.ts +637 -0
- package/src/models/errors/envelopefind.ts +613 -0
- package/src/models/errors/envelopegetmany.ts +503 -0
- package/src/models/errors/index.ts +5 -0
- package/src/models/errors/templategetmany.ts +503 -0
- package/src/models/operations/documentcreate.ts +169 -340
- package/src/models/operations/documentcreatedocumenttemporary.ts +220 -547
- package/src/models/operations/documentdistribute.ts +5 -0
- package/src/models/operations/documentfind.ts +74 -62
- package/src/models/operations/documentget.ts +52 -198
- package/src/models/operations/documentgetmany.ts +772 -0
- package/src/models/operations/documentupdate.ts +47 -38
- package/src/models/operations/embeddingpresigncreateembeddingpresigntoken.ts +4 -0
- package/src/models/operations/embeddingpresignverifyembeddingpresigntoken.ts +4 -0
- package/src/models/operations/envelopeauditlogfind.ts +8406 -0
- package/src/models/operations/envelopecreate.ts +239 -355
- package/src/models/operations/envelopedistribute.ts +100 -0
- package/src/models/operations/envelopefieldcreatemany.ts +219 -552
- package/src/models/operations/envelopefieldget.ts +52 -210
- package/src/models/operations/envelopefieldupdatemany.ts +219 -552
- package/src/models/operations/envelopefind.ts +979 -0
- package/src/models/operations/envelopeget.ts +63 -209
- package/src/models/operations/envelopegetmany.ts +2658 -0
- package/src/models/operations/enveloperecipientcreatemany.ts +91 -28
- package/src/models/operations/enveloperecipientget.ts +52 -212
- package/src/models/operations/enveloperecipientupdatemany.ts +91 -28
- package/src/models/operations/enveloperedistribute.ts +102 -0
- package/src/models/operations/envelopeupdate.ts +47 -38
- package/src/models/operations/envelopeuse.ts +259 -151
- package/src/models/operations/fieldcreatedocumentfield.ts +222 -553
- package/src/models/operations/fieldcreatedocumentfields.ts +221 -553
- package/src/models/operations/fieldcreatetemplatefield.ts +222 -553
- package/src/models/operations/fieldcreatetemplatefields.ts +221 -553
- package/src/models/operations/fieldgetdocumentfield.ts +52 -212
- package/src/models/operations/fieldgettemplatefield.ts +52 -212
- package/src/models/operations/fieldupdatedocumentfield.ts +222 -553
- package/src/models/operations/fieldupdatedocumentfields.ts +221 -553
- package/src/models/operations/fieldupdatetemplatefield.ts +222 -553
- package/src/models/operations/fieldupdatetemplatefields.ts +221 -553
- package/src/models/operations/folderupdatefolder.ts +12 -12
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/recipientcreatedocumentrecipient.ts +28 -24
- package/src/models/operations/recipientcreatedocumentrecipients.ts +28 -24
- package/src/models/operations/recipientcreatetemplaterecipient.ts +28 -24
- package/src/models/operations/recipientcreatetemplaterecipients.ts +28 -24
- package/src/models/operations/recipientgetdocumentrecipient.ts +53 -217
- package/src/models/operations/recipientgettemplaterecipient.ts +53 -217
- package/src/models/operations/recipientupdatedocumentrecipient.ts +80 -237
- package/src/models/operations/recipientupdatedocumentrecipients.ts +80 -237
- package/src/models/operations/recipientupdatetemplaterecipient.ts +80 -237
- package/src/models/operations/recipientupdatetemplaterecipients.ts +80 -237
- package/src/models/operations/templatecreatedocumentfromtemplate.ts +671 -420
- package/src/models/operations/templatecreatetemplate.ts +5 -0
- package/src/models/operations/templatecreatetemplatetemporary.ts +69 -224
- package/src/models/operations/templatefindtemplates.ts +64 -224
- package/src/models/operations/templategetmany.ts +2134 -0
- package/src/models/operations/templategettemplatebyid.ts +65 -225
- package/src/models/operations/templateupdatetemplate.ts +41 -37
- package/src/sdk/document.ts +18 -0
- package/src/sdk/envelope.ts +63 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/template.ts +18 -0
- package/src/types/enums.ts +1 -21
- package/src/types/index.ts +2 -1
- package/src/types/unrecognized.ts +35 -0
- package/tsconfig.json +1 -2
- package/types/enums.d.ts +1 -8
- package/types/enums.d.ts.map +1 -1
- package/types/enums.js +3 -21
- package/types/enums.js.map +1 -1
- package/types/index.d.ts +2 -1
- package/types/index.d.ts.map +1 -1
- package/types/index.js +15 -0
- package/types/index.js.map +1 -1
- package/types/unrecognized.d.ts +16 -0
- package/types/unrecognized.d.ts.map +1 -0
- package/types/unrecognized.js +34 -0
- package/types/unrecognized.js.map +1 -0
|
@@ -0,0 +1,2134 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type TemplateGetManyRequest = {
|
|
12
|
+
templateIds: Array<number>;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const TemplateGetManyTypeEnum = {
|
|
16
|
+
Public: "PUBLIC",
|
|
17
|
+
Private: "PRIVATE",
|
|
18
|
+
} as const;
|
|
19
|
+
export type TemplateGetManyTypeEnum = ClosedEnum<
|
|
20
|
+
typeof TemplateGetManyTypeEnum
|
|
21
|
+
>;
|
|
22
|
+
|
|
23
|
+
export const TemplateGetManyVisibility = {
|
|
24
|
+
Everyone: "EVERYONE",
|
|
25
|
+
ManagerAndAbove: "MANAGER_AND_ABOVE",
|
|
26
|
+
Admin: "ADMIN",
|
|
27
|
+
} as const;
|
|
28
|
+
export type TemplateGetManyVisibility = ClosedEnum<
|
|
29
|
+
typeof TemplateGetManyVisibility
|
|
30
|
+
>;
|
|
31
|
+
|
|
32
|
+
export const TemplateGetManyGlobalAccessAuth = {
|
|
33
|
+
Account: "ACCOUNT",
|
|
34
|
+
TwoFactorAuth: "TWO_FACTOR_AUTH",
|
|
35
|
+
} as const;
|
|
36
|
+
export type TemplateGetManyGlobalAccessAuth = ClosedEnum<
|
|
37
|
+
typeof TemplateGetManyGlobalAccessAuth
|
|
38
|
+
>;
|
|
39
|
+
|
|
40
|
+
export const TemplateGetManyGlobalActionAuth = {
|
|
41
|
+
Account: "ACCOUNT",
|
|
42
|
+
Passkey: "PASSKEY",
|
|
43
|
+
TwoFactorAuth: "TWO_FACTOR_AUTH",
|
|
44
|
+
Password: "PASSWORD",
|
|
45
|
+
} as const;
|
|
46
|
+
export type TemplateGetManyGlobalActionAuth = ClosedEnum<
|
|
47
|
+
typeof TemplateGetManyGlobalActionAuth
|
|
48
|
+
>;
|
|
49
|
+
|
|
50
|
+
export type TemplateGetManyAuthOptions = {
|
|
51
|
+
globalAccessAuth: Array<TemplateGetManyGlobalAccessAuth>;
|
|
52
|
+
globalActionAuth: Array<TemplateGetManyGlobalActionAuth>;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type TemplateGetManyTeam = {
|
|
56
|
+
id: number;
|
|
57
|
+
url: string;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export const TemplateGetManyFieldTypeEnum = {
|
|
61
|
+
Signature: "SIGNATURE",
|
|
62
|
+
FreeSignature: "FREE_SIGNATURE",
|
|
63
|
+
Initials: "INITIALS",
|
|
64
|
+
Name: "NAME",
|
|
65
|
+
Email: "EMAIL",
|
|
66
|
+
Date: "DATE",
|
|
67
|
+
Text: "TEXT",
|
|
68
|
+
Number: "NUMBER",
|
|
69
|
+
Radio: "RADIO",
|
|
70
|
+
Checkbox: "CHECKBOX",
|
|
71
|
+
Dropdown: "DROPDOWN",
|
|
72
|
+
} as const;
|
|
73
|
+
export type TemplateGetManyFieldTypeEnum = ClosedEnum<
|
|
74
|
+
typeof TemplateGetManyFieldTypeEnum
|
|
75
|
+
>;
|
|
76
|
+
|
|
77
|
+
export type TemplateGetManyValue3 = {
|
|
78
|
+
value: string;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export type TemplateGetManyFieldMetaDropdown = {
|
|
82
|
+
label?: string | undefined;
|
|
83
|
+
placeholder?: string | undefined;
|
|
84
|
+
required?: boolean | undefined;
|
|
85
|
+
readOnly?: boolean | undefined;
|
|
86
|
+
fontSize?: number | undefined;
|
|
87
|
+
type: "dropdown";
|
|
88
|
+
values?: Array<TemplateGetManyValue3> | undefined;
|
|
89
|
+
defaultValue?: string | undefined;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export type TemplateGetManyValue2 = {
|
|
93
|
+
id: number;
|
|
94
|
+
checked: boolean;
|
|
95
|
+
value: string;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export const TemplateGetManyDirection2 = {
|
|
99
|
+
Vertical: "vertical",
|
|
100
|
+
Horizontal: "horizontal",
|
|
101
|
+
} as const;
|
|
102
|
+
export type TemplateGetManyDirection2 = ClosedEnum<
|
|
103
|
+
typeof TemplateGetManyDirection2
|
|
104
|
+
>;
|
|
105
|
+
|
|
106
|
+
export type TemplateGetManyFieldMetaCheckbox = {
|
|
107
|
+
label?: string | undefined;
|
|
108
|
+
placeholder?: string | undefined;
|
|
109
|
+
required?: boolean | undefined;
|
|
110
|
+
readOnly?: boolean | undefined;
|
|
111
|
+
fontSize?: number | undefined;
|
|
112
|
+
type: "checkbox";
|
|
113
|
+
values?: Array<TemplateGetManyValue2> | undefined;
|
|
114
|
+
validationRule?: string | undefined;
|
|
115
|
+
validationLength?: number | undefined;
|
|
116
|
+
direction?: TemplateGetManyDirection2 | undefined;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export type TemplateGetManyValue1 = {
|
|
120
|
+
id: number;
|
|
121
|
+
checked: boolean;
|
|
122
|
+
value: string;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export const TemplateGetManyDirection1 = {
|
|
126
|
+
Vertical: "vertical",
|
|
127
|
+
Horizontal: "horizontal",
|
|
128
|
+
} as const;
|
|
129
|
+
export type TemplateGetManyDirection1 = ClosedEnum<
|
|
130
|
+
typeof TemplateGetManyDirection1
|
|
131
|
+
>;
|
|
132
|
+
|
|
133
|
+
export type TemplateGetManyFieldMetaRadio = {
|
|
134
|
+
label?: string | undefined;
|
|
135
|
+
placeholder?: string | undefined;
|
|
136
|
+
required?: boolean | undefined;
|
|
137
|
+
readOnly?: boolean | undefined;
|
|
138
|
+
fontSize?: number | undefined;
|
|
139
|
+
type: "radio";
|
|
140
|
+
values?: Array<TemplateGetManyValue1> | undefined;
|
|
141
|
+
direction?: TemplateGetManyDirection1 | undefined;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
export const TemplateGetManyTextAlign6 = {
|
|
145
|
+
Left: "left",
|
|
146
|
+
Center: "center",
|
|
147
|
+
Right: "right",
|
|
148
|
+
} as const;
|
|
149
|
+
export type TemplateGetManyTextAlign6 = ClosedEnum<
|
|
150
|
+
typeof TemplateGetManyTextAlign6
|
|
151
|
+
>;
|
|
152
|
+
|
|
153
|
+
export const TemplateGetManyVerticalAlign2 = {
|
|
154
|
+
Top: "top",
|
|
155
|
+
Middle: "middle",
|
|
156
|
+
Bottom: "bottom",
|
|
157
|
+
} as const;
|
|
158
|
+
export type TemplateGetManyVerticalAlign2 = ClosedEnum<
|
|
159
|
+
typeof TemplateGetManyVerticalAlign2
|
|
160
|
+
>;
|
|
161
|
+
|
|
162
|
+
export type TemplateGetManyFieldMetaNumber = {
|
|
163
|
+
label?: string | undefined;
|
|
164
|
+
placeholder?: string | undefined;
|
|
165
|
+
required?: boolean | undefined;
|
|
166
|
+
readOnly?: boolean | undefined;
|
|
167
|
+
fontSize?: number | undefined;
|
|
168
|
+
type: "number";
|
|
169
|
+
numberFormat?: string | null | undefined;
|
|
170
|
+
value?: string | undefined;
|
|
171
|
+
minValue?: number | null | undefined;
|
|
172
|
+
maxValue?: number | null | undefined;
|
|
173
|
+
textAlign?: TemplateGetManyTextAlign6 | undefined;
|
|
174
|
+
lineHeight?: number | null | undefined;
|
|
175
|
+
letterSpacing?: number | null | undefined;
|
|
176
|
+
verticalAlign?: TemplateGetManyVerticalAlign2 | null | undefined;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
export const TemplateGetManyTextAlign5 = {
|
|
180
|
+
Left: "left",
|
|
181
|
+
Center: "center",
|
|
182
|
+
Right: "right",
|
|
183
|
+
} as const;
|
|
184
|
+
export type TemplateGetManyTextAlign5 = ClosedEnum<
|
|
185
|
+
typeof TemplateGetManyTextAlign5
|
|
186
|
+
>;
|
|
187
|
+
|
|
188
|
+
export const TemplateGetManyVerticalAlign1 = {
|
|
189
|
+
Top: "top",
|
|
190
|
+
Middle: "middle",
|
|
191
|
+
Bottom: "bottom",
|
|
192
|
+
} as const;
|
|
193
|
+
export type TemplateGetManyVerticalAlign1 = ClosedEnum<
|
|
194
|
+
typeof TemplateGetManyVerticalAlign1
|
|
195
|
+
>;
|
|
196
|
+
|
|
197
|
+
export type TemplateGetManyFieldMetaText = {
|
|
198
|
+
label?: string | undefined;
|
|
199
|
+
placeholder?: string | undefined;
|
|
200
|
+
required?: boolean | undefined;
|
|
201
|
+
readOnly?: boolean | undefined;
|
|
202
|
+
fontSize?: number | undefined;
|
|
203
|
+
type: "text";
|
|
204
|
+
text?: string | undefined;
|
|
205
|
+
characterLimit?: number | undefined;
|
|
206
|
+
textAlign?: TemplateGetManyTextAlign5 | undefined;
|
|
207
|
+
lineHeight?: number | null | undefined;
|
|
208
|
+
letterSpacing?: number | null | undefined;
|
|
209
|
+
verticalAlign?: TemplateGetManyVerticalAlign1 | null | undefined;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
export const TemplateGetManyTextAlign4 = {
|
|
213
|
+
Left: "left",
|
|
214
|
+
Center: "center",
|
|
215
|
+
Right: "right",
|
|
216
|
+
} as const;
|
|
217
|
+
export type TemplateGetManyTextAlign4 = ClosedEnum<
|
|
218
|
+
typeof TemplateGetManyTextAlign4
|
|
219
|
+
>;
|
|
220
|
+
|
|
221
|
+
export type TemplateGetManyFieldMetaDate = {
|
|
222
|
+
label?: string | undefined;
|
|
223
|
+
placeholder?: string | undefined;
|
|
224
|
+
required?: boolean | undefined;
|
|
225
|
+
readOnly?: boolean | undefined;
|
|
226
|
+
fontSize?: number | undefined;
|
|
227
|
+
type: "date";
|
|
228
|
+
textAlign?: TemplateGetManyTextAlign4 | undefined;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
export const TemplateGetManyTextAlign3 = {
|
|
232
|
+
Left: "left",
|
|
233
|
+
Center: "center",
|
|
234
|
+
Right: "right",
|
|
235
|
+
} as const;
|
|
236
|
+
export type TemplateGetManyTextAlign3 = ClosedEnum<
|
|
237
|
+
typeof TemplateGetManyTextAlign3
|
|
238
|
+
>;
|
|
239
|
+
|
|
240
|
+
export type TemplateGetManyFieldMetaEmail = {
|
|
241
|
+
label?: string | undefined;
|
|
242
|
+
placeholder?: string | undefined;
|
|
243
|
+
required?: boolean | undefined;
|
|
244
|
+
readOnly?: boolean | undefined;
|
|
245
|
+
fontSize?: number | undefined;
|
|
246
|
+
type: "email";
|
|
247
|
+
textAlign?: TemplateGetManyTextAlign3 | undefined;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
export const TemplateGetManyTextAlign2 = {
|
|
251
|
+
Left: "left",
|
|
252
|
+
Center: "center",
|
|
253
|
+
Right: "right",
|
|
254
|
+
} as const;
|
|
255
|
+
export type TemplateGetManyTextAlign2 = ClosedEnum<
|
|
256
|
+
typeof TemplateGetManyTextAlign2
|
|
257
|
+
>;
|
|
258
|
+
|
|
259
|
+
export type TemplateGetManyFieldMetaName = {
|
|
260
|
+
label?: string | undefined;
|
|
261
|
+
placeholder?: string | undefined;
|
|
262
|
+
required?: boolean | undefined;
|
|
263
|
+
readOnly?: boolean | undefined;
|
|
264
|
+
fontSize?: number | undefined;
|
|
265
|
+
type: "name";
|
|
266
|
+
textAlign?: TemplateGetManyTextAlign2 | undefined;
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
export const TemplateGetManyTextAlign1 = {
|
|
270
|
+
Left: "left",
|
|
271
|
+
Center: "center",
|
|
272
|
+
Right: "right",
|
|
273
|
+
} as const;
|
|
274
|
+
export type TemplateGetManyTextAlign1 = ClosedEnum<
|
|
275
|
+
typeof TemplateGetManyTextAlign1
|
|
276
|
+
>;
|
|
277
|
+
|
|
278
|
+
export type TemplateGetManyFieldMetaInitials = {
|
|
279
|
+
label?: string | undefined;
|
|
280
|
+
placeholder?: string | undefined;
|
|
281
|
+
required?: boolean | undefined;
|
|
282
|
+
readOnly?: boolean | undefined;
|
|
283
|
+
fontSize?: number | undefined;
|
|
284
|
+
type: "initials";
|
|
285
|
+
textAlign?: TemplateGetManyTextAlign1 | undefined;
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
export type TemplateGetManyFieldMetaSignature = {
|
|
289
|
+
label?: string | undefined;
|
|
290
|
+
placeholder?: string | undefined;
|
|
291
|
+
required?: boolean | undefined;
|
|
292
|
+
readOnly?: boolean | undefined;
|
|
293
|
+
fontSize?: number | undefined;
|
|
294
|
+
type: "signature";
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
export type TemplateGetManyFieldMetaUnion =
|
|
298
|
+
| TemplateGetManyFieldMetaSignature
|
|
299
|
+
| TemplateGetManyFieldMetaInitials
|
|
300
|
+
| TemplateGetManyFieldMetaName
|
|
301
|
+
| TemplateGetManyFieldMetaEmail
|
|
302
|
+
| TemplateGetManyFieldMetaDate
|
|
303
|
+
| TemplateGetManyFieldMetaText
|
|
304
|
+
| TemplateGetManyFieldMetaNumber
|
|
305
|
+
| TemplateGetManyFieldMetaRadio
|
|
306
|
+
| TemplateGetManyFieldMetaCheckbox
|
|
307
|
+
| TemplateGetManyFieldMetaDropdown;
|
|
308
|
+
|
|
309
|
+
export type TemplateGetManyField = {
|
|
310
|
+
envelopeId: string;
|
|
311
|
+
envelopeItemId: string;
|
|
312
|
+
type: TemplateGetManyFieldTypeEnum;
|
|
313
|
+
id: number;
|
|
314
|
+
secondaryId: string;
|
|
315
|
+
recipientId: number;
|
|
316
|
+
page: number;
|
|
317
|
+
positionX?: any | undefined;
|
|
318
|
+
positionY?: any | undefined;
|
|
319
|
+
width?: any | undefined;
|
|
320
|
+
height?: any | undefined;
|
|
321
|
+
customText: string;
|
|
322
|
+
inserted: boolean;
|
|
323
|
+
fieldMeta:
|
|
324
|
+
| TemplateGetManyFieldMetaSignature
|
|
325
|
+
| TemplateGetManyFieldMetaInitials
|
|
326
|
+
| TemplateGetManyFieldMetaName
|
|
327
|
+
| TemplateGetManyFieldMetaEmail
|
|
328
|
+
| TemplateGetManyFieldMetaDate
|
|
329
|
+
| TemplateGetManyFieldMetaText
|
|
330
|
+
| TemplateGetManyFieldMetaNumber
|
|
331
|
+
| TemplateGetManyFieldMetaRadio
|
|
332
|
+
| TemplateGetManyFieldMetaCheckbox
|
|
333
|
+
| TemplateGetManyFieldMetaDropdown
|
|
334
|
+
| null;
|
|
335
|
+
documentId?: number | null | undefined;
|
|
336
|
+
templateId?: number | null | undefined;
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
export const TemplateGetManyRole = {
|
|
340
|
+
Cc: "CC",
|
|
341
|
+
Signer: "SIGNER",
|
|
342
|
+
Viewer: "VIEWER",
|
|
343
|
+
Approver: "APPROVER",
|
|
344
|
+
Assistant: "ASSISTANT",
|
|
345
|
+
} as const;
|
|
346
|
+
export type TemplateGetManyRole = ClosedEnum<typeof TemplateGetManyRole>;
|
|
347
|
+
|
|
348
|
+
export const TemplateGetManyReadStatus = {
|
|
349
|
+
NotOpened: "NOT_OPENED",
|
|
350
|
+
Opened: "OPENED",
|
|
351
|
+
} as const;
|
|
352
|
+
export type TemplateGetManyReadStatus = ClosedEnum<
|
|
353
|
+
typeof TemplateGetManyReadStatus
|
|
354
|
+
>;
|
|
355
|
+
|
|
356
|
+
export const TemplateGetManySigningStatus = {
|
|
357
|
+
NotSigned: "NOT_SIGNED",
|
|
358
|
+
Signed: "SIGNED",
|
|
359
|
+
Rejected: "REJECTED",
|
|
360
|
+
} as const;
|
|
361
|
+
export type TemplateGetManySigningStatus = ClosedEnum<
|
|
362
|
+
typeof TemplateGetManySigningStatus
|
|
363
|
+
>;
|
|
364
|
+
|
|
365
|
+
export const TemplateGetManySendStatus = {
|
|
366
|
+
NotSent: "NOT_SENT",
|
|
367
|
+
Sent: "SENT",
|
|
368
|
+
} as const;
|
|
369
|
+
export type TemplateGetManySendStatus = ClosedEnum<
|
|
370
|
+
typeof TemplateGetManySendStatus
|
|
371
|
+
>;
|
|
372
|
+
|
|
373
|
+
export const TemplateGetManyAccessAuth = {
|
|
374
|
+
Account: "ACCOUNT",
|
|
375
|
+
TwoFactorAuth: "TWO_FACTOR_AUTH",
|
|
376
|
+
} as const;
|
|
377
|
+
export type TemplateGetManyAccessAuth = ClosedEnum<
|
|
378
|
+
typeof TemplateGetManyAccessAuth
|
|
379
|
+
>;
|
|
380
|
+
|
|
381
|
+
export const TemplateGetManyActionAuth = {
|
|
382
|
+
Account: "ACCOUNT",
|
|
383
|
+
Passkey: "PASSKEY",
|
|
384
|
+
TwoFactorAuth: "TWO_FACTOR_AUTH",
|
|
385
|
+
Password: "PASSWORD",
|
|
386
|
+
ExplicitNone: "EXPLICIT_NONE",
|
|
387
|
+
} as const;
|
|
388
|
+
export type TemplateGetManyActionAuth = ClosedEnum<
|
|
389
|
+
typeof TemplateGetManyActionAuth
|
|
390
|
+
>;
|
|
391
|
+
|
|
392
|
+
export type TemplateGetManyRecipientAuthOptions = {
|
|
393
|
+
accessAuth: Array<TemplateGetManyAccessAuth>;
|
|
394
|
+
actionAuth: Array<TemplateGetManyActionAuth>;
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
export type TemplateGetManyRecipient = {
|
|
398
|
+
envelopeId: string;
|
|
399
|
+
role: TemplateGetManyRole;
|
|
400
|
+
readStatus: TemplateGetManyReadStatus;
|
|
401
|
+
signingStatus: TemplateGetManySigningStatus;
|
|
402
|
+
sendStatus: TemplateGetManySendStatus;
|
|
403
|
+
id: number;
|
|
404
|
+
email: string;
|
|
405
|
+
name: string;
|
|
406
|
+
token: string;
|
|
407
|
+
documentDeletedAt: string | null;
|
|
408
|
+
expired: string | null;
|
|
409
|
+
signedAt: string | null;
|
|
410
|
+
authOptions: TemplateGetManyRecipientAuthOptions | null;
|
|
411
|
+
signingOrder: number | null;
|
|
412
|
+
rejectionReason: string | null;
|
|
413
|
+
documentId?: number | null | undefined;
|
|
414
|
+
templateId?: number | null | undefined;
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
export const TemplateGetManySigningOrder = {
|
|
418
|
+
Parallel: "PARALLEL",
|
|
419
|
+
Sequential: "SEQUENTIAL",
|
|
420
|
+
} as const;
|
|
421
|
+
export type TemplateGetManySigningOrder = ClosedEnum<
|
|
422
|
+
typeof TemplateGetManySigningOrder
|
|
423
|
+
>;
|
|
424
|
+
|
|
425
|
+
export const TemplateGetManyDistributionMethod = {
|
|
426
|
+
Email: "EMAIL",
|
|
427
|
+
None: "NONE",
|
|
428
|
+
} as const;
|
|
429
|
+
export type TemplateGetManyDistributionMethod = ClosedEnum<
|
|
430
|
+
typeof TemplateGetManyDistributionMethod
|
|
431
|
+
>;
|
|
432
|
+
|
|
433
|
+
export type TemplateGetManyTemplateMeta = {
|
|
434
|
+
signingOrder: TemplateGetManySigningOrder;
|
|
435
|
+
distributionMethod: TemplateGetManyDistributionMethod;
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
export type TemplateGetManyDirectLink = {
|
|
439
|
+
token: string;
|
|
440
|
+
enabled: boolean;
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
export type TemplateGetManyData = {
|
|
444
|
+
type: TemplateGetManyTypeEnum;
|
|
445
|
+
visibility: TemplateGetManyVisibility;
|
|
446
|
+
id: number;
|
|
447
|
+
externalId: string | null;
|
|
448
|
+
title: string;
|
|
449
|
+
userId: number;
|
|
450
|
+
teamId: number;
|
|
451
|
+
authOptions: TemplateGetManyAuthOptions | null;
|
|
452
|
+
createdAt: string;
|
|
453
|
+
updatedAt: string;
|
|
454
|
+
publicTitle: string;
|
|
455
|
+
publicDescription: string;
|
|
456
|
+
folderId: string | null;
|
|
457
|
+
useLegacyFieldInsertion: boolean;
|
|
458
|
+
envelopeId: string;
|
|
459
|
+
team: TemplateGetManyTeam | null;
|
|
460
|
+
fields: Array<TemplateGetManyField>;
|
|
461
|
+
recipients: Array<TemplateGetManyRecipient>;
|
|
462
|
+
templateMeta: TemplateGetManyTemplateMeta | null;
|
|
463
|
+
directLink: TemplateGetManyDirectLink | null;
|
|
464
|
+
templateDocumentDataId?: string | undefined;
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Successful response
|
|
469
|
+
*/
|
|
470
|
+
export type TemplateGetManyResponse = {
|
|
471
|
+
data: Array<TemplateGetManyData>;
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
/** @internal */
|
|
475
|
+
export const TemplateGetManyRequest$inboundSchema: z.ZodType<
|
|
476
|
+
TemplateGetManyRequest,
|
|
477
|
+
z.ZodTypeDef,
|
|
478
|
+
unknown
|
|
479
|
+
> = z.object({
|
|
480
|
+
templateIds: z.array(z.number()),
|
|
481
|
+
});
|
|
482
|
+
/** @internal */
|
|
483
|
+
export type TemplateGetManyRequest$Outbound = {
|
|
484
|
+
templateIds: Array<number>;
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
/** @internal */
|
|
488
|
+
export const TemplateGetManyRequest$outboundSchema: z.ZodType<
|
|
489
|
+
TemplateGetManyRequest$Outbound,
|
|
490
|
+
z.ZodTypeDef,
|
|
491
|
+
TemplateGetManyRequest
|
|
492
|
+
> = z.object({
|
|
493
|
+
templateIds: z.array(z.number()),
|
|
494
|
+
});
|
|
495
|
+
|
|
496
|
+
export function templateGetManyRequestToJSON(
|
|
497
|
+
templateGetManyRequest: TemplateGetManyRequest,
|
|
498
|
+
): string {
|
|
499
|
+
return JSON.stringify(
|
|
500
|
+
TemplateGetManyRequest$outboundSchema.parse(templateGetManyRequest),
|
|
501
|
+
);
|
|
502
|
+
}
|
|
503
|
+
export function templateGetManyRequestFromJSON(
|
|
504
|
+
jsonString: string,
|
|
505
|
+
): SafeParseResult<TemplateGetManyRequest, SDKValidationError> {
|
|
506
|
+
return safeParse(
|
|
507
|
+
jsonString,
|
|
508
|
+
(x) => TemplateGetManyRequest$inboundSchema.parse(JSON.parse(x)),
|
|
509
|
+
`Failed to parse 'TemplateGetManyRequest' from JSON`,
|
|
510
|
+
);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/** @internal */
|
|
514
|
+
export const TemplateGetManyTypeEnum$inboundSchema: z.ZodNativeEnum<
|
|
515
|
+
typeof TemplateGetManyTypeEnum
|
|
516
|
+
> = z.nativeEnum(TemplateGetManyTypeEnum);
|
|
517
|
+
/** @internal */
|
|
518
|
+
export const TemplateGetManyTypeEnum$outboundSchema: z.ZodNativeEnum<
|
|
519
|
+
typeof TemplateGetManyTypeEnum
|
|
520
|
+
> = TemplateGetManyTypeEnum$inboundSchema;
|
|
521
|
+
|
|
522
|
+
/** @internal */
|
|
523
|
+
export const TemplateGetManyVisibility$inboundSchema: z.ZodNativeEnum<
|
|
524
|
+
typeof TemplateGetManyVisibility
|
|
525
|
+
> = z.nativeEnum(TemplateGetManyVisibility);
|
|
526
|
+
/** @internal */
|
|
527
|
+
export const TemplateGetManyVisibility$outboundSchema: z.ZodNativeEnum<
|
|
528
|
+
typeof TemplateGetManyVisibility
|
|
529
|
+
> = TemplateGetManyVisibility$inboundSchema;
|
|
530
|
+
|
|
531
|
+
/** @internal */
|
|
532
|
+
export const TemplateGetManyGlobalAccessAuth$inboundSchema: z.ZodNativeEnum<
|
|
533
|
+
typeof TemplateGetManyGlobalAccessAuth
|
|
534
|
+
> = z.nativeEnum(TemplateGetManyGlobalAccessAuth);
|
|
535
|
+
/** @internal */
|
|
536
|
+
export const TemplateGetManyGlobalAccessAuth$outboundSchema: z.ZodNativeEnum<
|
|
537
|
+
typeof TemplateGetManyGlobalAccessAuth
|
|
538
|
+
> = TemplateGetManyGlobalAccessAuth$inboundSchema;
|
|
539
|
+
|
|
540
|
+
/** @internal */
|
|
541
|
+
export const TemplateGetManyGlobalActionAuth$inboundSchema: z.ZodNativeEnum<
|
|
542
|
+
typeof TemplateGetManyGlobalActionAuth
|
|
543
|
+
> = z.nativeEnum(TemplateGetManyGlobalActionAuth);
|
|
544
|
+
/** @internal */
|
|
545
|
+
export const TemplateGetManyGlobalActionAuth$outboundSchema: z.ZodNativeEnum<
|
|
546
|
+
typeof TemplateGetManyGlobalActionAuth
|
|
547
|
+
> = TemplateGetManyGlobalActionAuth$inboundSchema;
|
|
548
|
+
|
|
549
|
+
/** @internal */
|
|
550
|
+
export const TemplateGetManyAuthOptions$inboundSchema: z.ZodType<
|
|
551
|
+
TemplateGetManyAuthOptions,
|
|
552
|
+
z.ZodTypeDef,
|
|
553
|
+
unknown
|
|
554
|
+
> = z.object({
|
|
555
|
+
globalAccessAuth: z.array(TemplateGetManyGlobalAccessAuth$inboundSchema),
|
|
556
|
+
globalActionAuth: z.array(TemplateGetManyGlobalActionAuth$inboundSchema),
|
|
557
|
+
});
|
|
558
|
+
/** @internal */
|
|
559
|
+
export type TemplateGetManyAuthOptions$Outbound = {
|
|
560
|
+
globalAccessAuth: Array<string>;
|
|
561
|
+
globalActionAuth: Array<string>;
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
/** @internal */
|
|
565
|
+
export const TemplateGetManyAuthOptions$outboundSchema: z.ZodType<
|
|
566
|
+
TemplateGetManyAuthOptions$Outbound,
|
|
567
|
+
z.ZodTypeDef,
|
|
568
|
+
TemplateGetManyAuthOptions
|
|
569
|
+
> = z.object({
|
|
570
|
+
globalAccessAuth: z.array(TemplateGetManyGlobalAccessAuth$outboundSchema),
|
|
571
|
+
globalActionAuth: z.array(TemplateGetManyGlobalActionAuth$outboundSchema),
|
|
572
|
+
});
|
|
573
|
+
|
|
574
|
+
export function templateGetManyAuthOptionsToJSON(
|
|
575
|
+
templateGetManyAuthOptions: TemplateGetManyAuthOptions,
|
|
576
|
+
): string {
|
|
577
|
+
return JSON.stringify(
|
|
578
|
+
TemplateGetManyAuthOptions$outboundSchema.parse(templateGetManyAuthOptions),
|
|
579
|
+
);
|
|
580
|
+
}
|
|
581
|
+
export function templateGetManyAuthOptionsFromJSON(
|
|
582
|
+
jsonString: string,
|
|
583
|
+
): SafeParseResult<TemplateGetManyAuthOptions, SDKValidationError> {
|
|
584
|
+
return safeParse(
|
|
585
|
+
jsonString,
|
|
586
|
+
(x) => TemplateGetManyAuthOptions$inboundSchema.parse(JSON.parse(x)),
|
|
587
|
+
`Failed to parse 'TemplateGetManyAuthOptions' from JSON`,
|
|
588
|
+
);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
/** @internal */
|
|
592
|
+
export const TemplateGetManyTeam$inboundSchema: z.ZodType<
|
|
593
|
+
TemplateGetManyTeam,
|
|
594
|
+
z.ZodTypeDef,
|
|
595
|
+
unknown
|
|
596
|
+
> = z.object({
|
|
597
|
+
id: z.number(),
|
|
598
|
+
url: z.string(),
|
|
599
|
+
});
|
|
600
|
+
/** @internal */
|
|
601
|
+
export type TemplateGetManyTeam$Outbound = {
|
|
602
|
+
id: number;
|
|
603
|
+
url: string;
|
|
604
|
+
};
|
|
605
|
+
|
|
606
|
+
/** @internal */
|
|
607
|
+
export const TemplateGetManyTeam$outboundSchema: z.ZodType<
|
|
608
|
+
TemplateGetManyTeam$Outbound,
|
|
609
|
+
z.ZodTypeDef,
|
|
610
|
+
TemplateGetManyTeam
|
|
611
|
+
> = z.object({
|
|
612
|
+
id: z.number(),
|
|
613
|
+
url: z.string(),
|
|
614
|
+
});
|
|
615
|
+
|
|
616
|
+
export function templateGetManyTeamToJSON(
|
|
617
|
+
templateGetManyTeam: TemplateGetManyTeam,
|
|
618
|
+
): string {
|
|
619
|
+
return JSON.stringify(
|
|
620
|
+
TemplateGetManyTeam$outboundSchema.parse(templateGetManyTeam),
|
|
621
|
+
);
|
|
622
|
+
}
|
|
623
|
+
export function templateGetManyTeamFromJSON(
|
|
624
|
+
jsonString: string,
|
|
625
|
+
): SafeParseResult<TemplateGetManyTeam, SDKValidationError> {
|
|
626
|
+
return safeParse(
|
|
627
|
+
jsonString,
|
|
628
|
+
(x) => TemplateGetManyTeam$inboundSchema.parse(JSON.parse(x)),
|
|
629
|
+
`Failed to parse 'TemplateGetManyTeam' from JSON`,
|
|
630
|
+
);
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/** @internal */
|
|
634
|
+
export const TemplateGetManyFieldTypeEnum$inboundSchema: z.ZodNativeEnum<
|
|
635
|
+
typeof TemplateGetManyFieldTypeEnum
|
|
636
|
+
> = z.nativeEnum(TemplateGetManyFieldTypeEnum);
|
|
637
|
+
/** @internal */
|
|
638
|
+
export const TemplateGetManyFieldTypeEnum$outboundSchema: z.ZodNativeEnum<
|
|
639
|
+
typeof TemplateGetManyFieldTypeEnum
|
|
640
|
+
> = TemplateGetManyFieldTypeEnum$inboundSchema;
|
|
641
|
+
|
|
642
|
+
/** @internal */
|
|
643
|
+
export const TemplateGetManyValue3$inboundSchema: z.ZodType<
|
|
644
|
+
TemplateGetManyValue3,
|
|
645
|
+
z.ZodTypeDef,
|
|
646
|
+
unknown
|
|
647
|
+
> = z.object({
|
|
648
|
+
value: z.string(),
|
|
649
|
+
});
|
|
650
|
+
/** @internal */
|
|
651
|
+
export type TemplateGetManyValue3$Outbound = {
|
|
652
|
+
value: string;
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
/** @internal */
|
|
656
|
+
export const TemplateGetManyValue3$outboundSchema: z.ZodType<
|
|
657
|
+
TemplateGetManyValue3$Outbound,
|
|
658
|
+
z.ZodTypeDef,
|
|
659
|
+
TemplateGetManyValue3
|
|
660
|
+
> = z.object({
|
|
661
|
+
value: z.string(),
|
|
662
|
+
});
|
|
663
|
+
|
|
664
|
+
export function templateGetManyValue3ToJSON(
|
|
665
|
+
templateGetManyValue3: TemplateGetManyValue3,
|
|
666
|
+
): string {
|
|
667
|
+
return JSON.stringify(
|
|
668
|
+
TemplateGetManyValue3$outboundSchema.parse(templateGetManyValue3),
|
|
669
|
+
);
|
|
670
|
+
}
|
|
671
|
+
export function templateGetManyValue3FromJSON(
|
|
672
|
+
jsonString: string,
|
|
673
|
+
): SafeParseResult<TemplateGetManyValue3, SDKValidationError> {
|
|
674
|
+
return safeParse(
|
|
675
|
+
jsonString,
|
|
676
|
+
(x) => TemplateGetManyValue3$inboundSchema.parse(JSON.parse(x)),
|
|
677
|
+
`Failed to parse 'TemplateGetManyValue3' from JSON`,
|
|
678
|
+
);
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
/** @internal */
|
|
682
|
+
export const TemplateGetManyFieldMetaDropdown$inboundSchema: z.ZodType<
|
|
683
|
+
TemplateGetManyFieldMetaDropdown,
|
|
684
|
+
z.ZodTypeDef,
|
|
685
|
+
unknown
|
|
686
|
+
> = z.object({
|
|
687
|
+
label: z.string().optional(),
|
|
688
|
+
placeholder: z.string().optional(),
|
|
689
|
+
required: z.boolean().optional(),
|
|
690
|
+
readOnly: z.boolean().optional(),
|
|
691
|
+
fontSize: z.number().default(12),
|
|
692
|
+
type: z.literal("dropdown"),
|
|
693
|
+
values: z.array(z.lazy(() => TemplateGetManyValue3$inboundSchema)).optional(),
|
|
694
|
+
defaultValue: z.string().optional(),
|
|
695
|
+
});
|
|
696
|
+
/** @internal */
|
|
697
|
+
export type TemplateGetManyFieldMetaDropdown$Outbound = {
|
|
698
|
+
label?: string | undefined;
|
|
699
|
+
placeholder?: string | undefined;
|
|
700
|
+
required?: boolean | undefined;
|
|
701
|
+
readOnly?: boolean | undefined;
|
|
702
|
+
fontSize: number;
|
|
703
|
+
type: "dropdown";
|
|
704
|
+
values?: Array<TemplateGetManyValue3$Outbound> | undefined;
|
|
705
|
+
defaultValue?: string | undefined;
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
/** @internal */
|
|
709
|
+
export const TemplateGetManyFieldMetaDropdown$outboundSchema: z.ZodType<
|
|
710
|
+
TemplateGetManyFieldMetaDropdown$Outbound,
|
|
711
|
+
z.ZodTypeDef,
|
|
712
|
+
TemplateGetManyFieldMetaDropdown
|
|
713
|
+
> = z.object({
|
|
714
|
+
label: z.string().optional(),
|
|
715
|
+
placeholder: z.string().optional(),
|
|
716
|
+
required: z.boolean().optional(),
|
|
717
|
+
readOnly: z.boolean().optional(),
|
|
718
|
+
fontSize: z.number().default(12),
|
|
719
|
+
type: z.literal("dropdown"),
|
|
720
|
+
values: z.array(z.lazy(() => TemplateGetManyValue3$outboundSchema))
|
|
721
|
+
.optional(),
|
|
722
|
+
defaultValue: z.string().optional(),
|
|
723
|
+
});
|
|
724
|
+
|
|
725
|
+
export function templateGetManyFieldMetaDropdownToJSON(
|
|
726
|
+
templateGetManyFieldMetaDropdown: TemplateGetManyFieldMetaDropdown,
|
|
727
|
+
): string {
|
|
728
|
+
return JSON.stringify(
|
|
729
|
+
TemplateGetManyFieldMetaDropdown$outboundSchema.parse(
|
|
730
|
+
templateGetManyFieldMetaDropdown,
|
|
731
|
+
),
|
|
732
|
+
);
|
|
733
|
+
}
|
|
734
|
+
export function templateGetManyFieldMetaDropdownFromJSON(
|
|
735
|
+
jsonString: string,
|
|
736
|
+
): SafeParseResult<TemplateGetManyFieldMetaDropdown, SDKValidationError> {
|
|
737
|
+
return safeParse(
|
|
738
|
+
jsonString,
|
|
739
|
+
(x) => TemplateGetManyFieldMetaDropdown$inboundSchema.parse(JSON.parse(x)),
|
|
740
|
+
`Failed to parse 'TemplateGetManyFieldMetaDropdown' from JSON`,
|
|
741
|
+
);
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
/** @internal */
|
|
745
|
+
export const TemplateGetManyValue2$inboundSchema: z.ZodType<
|
|
746
|
+
TemplateGetManyValue2,
|
|
747
|
+
z.ZodTypeDef,
|
|
748
|
+
unknown
|
|
749
|
+
> = z.object({
|
|
750
|
+
id: z.number(),
|
|
751
|
+
checked: z.boolean(),
|
|
752
|
+
value: z.string(),
|
|
753
|
+
});
|
|
754
|
+
/** @internal */
|
|
755
|
+
export type TemplateGetManyValue2$Outbound = {
|
|
756
|
+
id: number;
|
|
757
|
+
checked: boolean;
|
|
758
|
+
value: string;
|
|
759
|
+
};
|
|
760
|
+
|
|
761
|
+
/** @internal */
|
|
762
|
+
export const TemplateGetManyValue2$outboundSchema: z.ZodType<
|
|
763
|
+
TemplateGetManyValue2$Outbound,
|
|
764
|
+
z.ZodTypeDef,
|
|
765
|
+
TemplateGetManyValue2
|
|
766
|
+
> = z.object({
|
|
767
|
+
id: z.number(),
|
|
768
|
+
checked: z.boolean(),
|
|
769
|
+
value: z.string(),
|
|
770
|
+
});
|
|
771
|
+
|
|
772
|
+
export function templateGetManyValue2ToJSON(
|
|
773
|
+
templateGetManyValue2: TemplateGetManyValue2,
|
|
774
|
+
): string {
|
|
775
|
+
return JSON.stringify(
|
|
776
|
+
TemplateGetManyValue2$outboundSchema.parse(templateGetManyValue2),
|
|
777
|
+
);
|
|
778
|
+
}
|
|
779
|
+
export function templateGetManyValue2FromJSON(
|
|
780
|
+
jsonString: string,
|
|
781
|
+
): SafeParseResult<TemplateGetManyValue2, SDKValidationError> {
|
|
782
|
+
return safeParse(
|
|
783
|
+
jsonString,
|
|
784
|
+
(x) => TemplateGetManyValue2$inboundSchema.parse(JSON.parse(x)),
|
|
785
|
+
`Failed to parse 'TemplateGetManyValue2' from JSON`,
|
|
786
|
+
);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/** @internal */
|
|
790
|
+
export const TemplateGetManyDirection2$inboundSchema: z.ZodNativeEnum<
|
|
791
|
+
typeof TemplateGetManyDirection2
|
|
792
|
+
> = z.nativeEnum(TemplateGetManyDirection2);
|
|
793
|
+
/** @internal */
|
|
794
|
+
export const TemplateGetManyDirection2$outboundSchema: z.ZodNativeEnum<
|
|
795
|
+
typeof TemplateGetManyDirection2
|
|
796
|
+
> = TemplateGetManyDirection2$inboundSchema;
|
|
797
|
+
|
|
798
|
+
/** @internal */
|
|
799
|
+
export const TemplateGetManyFieldMetaCheckbox$inboundSchema: z.ZodType<
|
|
800
|
+
TemplateGetManyFieldMetaCheckbox,
|
|
801
|
+
z.ZodTypeDef,
|
|
802
|
+
unknown
|
|
803
|
+
> = z.object({
|
|
804
|
+
label: z.string().optional(),
|
|
805
|
+
placeholder: z.string().optional(),
|
|
806
|
+
required: z.boolean().optional(),
|
|
807
|
+
readOnly: z.boolean().optional(),
|
|
808
|
+
fontSize: z.number().default(12),
|
|
809
|
+
type: z.literal("checkbox"),
|
|
810
|
+
values: z.array(z.lazy(() => TemplateGetManyValue2$inboundSchema)).optional(),
|
|
811
|
+
validationRule: z.string().optional(),
|
|
812
|
+
validationLength: z.number().optional(),
|
|
813
|
+
direction: TemplateGetManyDirection2$inboundSchema.default("vertical"),
|
|
814
|
+
});
|
|
815
|
+
/** @internal */
|
|
816
|
+
export type TemplateGetManyFieldMetaCheckbox$Outbound = {
|
|
817
|
+
label?: string | undefined;
|
|
818
|
+
placeholder?: string | undefined;
|
|
819
|
+
required?: boolean | undefined;
|
|
820
|
+
readOnly?: boolean | undefined;
|
|
821
|
+
fontSize: number;
|
|
822
|
+
type: "checkbox";
|
|
823
|
+
values?: Array<TemplateGetManyValue2$Outbound> | undefined;
|
|
824
|
+
validationRule?: string | undefined;
|
|
825
|
+
validationLength?: number | undefined;
|
|
826
|
+
direction: string;
|
|
827
|
+
};
|
|
828
|
+
|
|
829
|
+
/** @internal */
|
|
830
|
+
export const TemplateGetManyFieldMetaCheckbox$outboundSchema: z.ZodType<
|
|
831
|
+
TemplateGetManyFieldMetaCheckbox$Outbound,
|
|
832
|
+
z.ZodTypeDef,
|
|
833
|
+
TemplateGetManyFieldMetaCheckbox
|
|
834
|
+
> = z.object({
|
|
835
|
+
label: z.string().optional(),
|
|
836
|
+
placeholder: z.string().optional(),
|
|
837
|
+
required: z.boolean().optional(),
|
|
838
|
+
readOnly: z.boolean().optional(),
|
|
839
|
+
fontSize: z.number().default(12),
|
|
840
|
+
type: z.literal("checkbox"),
|
|
841
|
+
values: z.array(z.lazy(() => TemplateGetManyValue2$outboundSchema))
|
|
842
|
+
.optional(),
|
|
843
|
+
validationRule: z.string().optional(),
|
|
844
|
+
validationLength: z.number().optional(),
|
|
845
|
+
direction: TemplateGetManyDirection2$outboundSchema.default("vertical"),
|
|
846
|
+
});
|
|
847
|
+
|
|
848
|
+
export function templateGetManyFieldMetaCheckboxToJSON(
|
|
849
|
+
templateGetManyFieldMetaCheckbox: TemplateGetManyFieldMetaCheckbox,
|
|
850
|
+
): string {
|
|
851
|
+
return JSON.stringify(
|
|
852
|
+
TemplateGetManyFieldMetaCheckbox$outboundSchema.parse(
|
|
853
|
+
templateGetManyFieldMetaCheckbox,
|
|
854
|
+
),
|
|
855
|
+
);
|
|
856
|
+
}
|
|
857
|
+
export function templateGetManyFieldMetaCheckboxFromJSON(
|
|
858
|
+
jsonString: string,
|
|
859
|
+
): SafeParseResult<TemplateGetManyFieldMetaCheckbox, SDKValidationError> {
|
|
860
|
+
return safeParse(
|
|
861
|
+
jsonString,
|
|
862
|
+
(x) => TemplateGetManyFieldMetaCheckbox$inboundSchema.parse(JSON.parse(x)),
|
|
863
|
+
`Failed to parse 'TemplateGetManyFieldMetaCheckbox' from JSON`,
|
|
864
|
+
);
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
/** @internal */
|
|
868
|
+
export const TemplateGetManyValue1$inboundSchema: z.ZodType<
|
|
869
|
+
TemplateGetManyValue1,
|
|
870
|
+
z.ZodTypeDef,
|
|
871
|
+
unknown
|
|
872
|
+
> = z.object({
|
|
873
|
+
id: z.number(),
|
|
874
|
+
checked: z.boolean(),
|
|
875
|
+
value: z.string(),
|
|
876
|
+
});
|
|
877
|
+
/** @internal */
|
|
878
|
+
export type TemplateGetManyValue1$Outbound = {
|
|
879
|
+
id: number;
|
|
880
|
+
checked: boolean;
|
|
881
|
+
value: string;
|
|
882
|
+
};
|
|
883
|
+
|
|
884
|
+
/** @internal */
|
|
885
|
+
export const TemplateGetManyValue1$outboundSchema: z.ZodType<
|
|
886
|
+
TemplateGetManyValue1$Outbound,
|
|
887
|
+
z.ZodTypeDef,
|
|
888
|
+
TemplateGetManyValue1
|
|
889
|
+
> = z.object({
|
|
890
|
+
id: z.number(),
|
|
891
|
+
checked: z.boolean(),
|
|
892
|
+
value: z.string(),
|
|
893
|
+
});
|
|
894
|
+
|
|
895
|
+
export function templateGetManyValue1ToJSON(
|
|
896
|
+
templateGetManyValue1: TemplateGetManyValue1,
|
|
897
|
+
): string {
|
|
898
|
+
return JSON.stringify(
|
|
899
|
+
TemplateGetManyValue1$outboundSchema.parse(templateGetManyValue1),
|
|
900
|
+
);
|
|
901
|
+
}
|
|
902
|
+
export function templateGetManyValue1FromJSON(
|
|
903
|
+
jsonString: string,
|
|
904
|
+
): SafeParseResult<TemplateGetManyValue1, SDKValidationError> {
|
|
905
|
+
return safeParse(
|
|
906
|
+
jsonString,
|
|
907
|
+
(x) => TemplateGetManyValue1$inboundSchema.parse(JSON.parse(x)),
|
|
908
|
+
`Failed to parse 'TemplateGetManyValue1' from JSON`,
|
|
909
|
+
);
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
/** @internal */
|
|
913
|
+
export const TemplateGetManyDirection1$inboundSchema: z.ZodNativeEnum<
|
|
914
|
+
typeof TemplateGetManyDirection1
|
|
915
|
+
> = z.nativeEnum(TemplateGetManyDirection1);
|
|
916
|
+
/** @internal */
|
|
917
|
+
export const TemplateGetManyDirection1$outboundSchema: z.ZodNativeEnum<
|
|
918
|
+
typeof TemplateGetManyDirection1
|
|
919
|
+
> = TemplateGetManyDirection1$inboundSchema;
|
|
920
|
+
|
|
921
|
+
/** @internal */
|
|
922
|
+
export const TemplateGetManyFieldMetaRadio$inboundSchema: z.ZodType<
|
|
923
|
+
TemplateGetManyFieldMetaRadio,
|
|
924
|
+
z.ZodTypeDef,
|
|
925
|
+
unknown
|
|
926
|
+
> = z.object({
|
|
927
|
+
label: z.string().optional(),
|
|
928
|
+
placeholder: z.string().optional(),
|
|
929
|
+
required: z.boolean().optional(),
|
|
930
|
+
readOnly: z.boolean().optional(),
|
|
931
|
+
fontSize: z.number().default(12),
|
|
932
|
+
type: z.literal("radio"),
|
|
933
|
+
values: z.array(z.lazy(() => TemplateGetManyValue1$inboundSchema)).optional(),
|
|
934
|
+
direction: TemplateGetManyDirection1$inboundSchema.default("vertical"),
|
|
935
|
+
});
|
|
936
|
+
/** @internal */
|
|
937
|
+
export type TemplateGetManyFieldMetaRadio$Outbound = {
|
|
938
|
+
label?: string | undefined;
|
|
939
|
+
placeholder?: string | undefined;
|
|
940
|
+
required?: boolean | undefined;
|
|
941
|
+
readOnly?: boolean | undefined;
|
|
942
|
+
fontSize: number;
|
|
943
|
+
type: "radio";
|
|
944
|
+
values?: Array<TemplateGetManyValue1$Outbound> | undefined;
|
|
945
|
+
direction: string;
|
|
946
|
+
};
|
|
947
|
+
|
|
948
|
+
/** @internal */
|
|
949
|
+
export const TemplateGetManyFieldMetaRadio$outboundSchema: z.ZodType<
|
|
950
|
+
TemplateGetManyFieldMetaRadio$Outbound,
|
|
951
|
+
z.ZodTypeDef,
|
|
952
|
+
TemplateGetManyFieldMetaRadio
|
|
953
|
+
> = z.object({
|
|
954
|
+
label: z.string().optional(),
|
|
955
|
+
placeholder: z.string().optional(),
|
|
956
|
+
required: z.boolean().optional(),
|
|
957
|
+
readOnly: z.boolean().optional(),
|
|
958
|
+
fontSize: z.number().default(12),
|
|
959
|
+
type: z.literal("radio"),
|
|
960
|
+
values: z.array(z.lazy(() => TemplateGetManyValue1$outboundSchema))
|
|
961
|
+
.optional(),
|
|
962
|
+
direction: TemplateGetManyDirection1$outboundSchema.default("vertical"),
|
|
963
|
+
});
|
|
964
|
+
|
|
965
|
+
export function templateGetManyFieldMetaRadioToJSON(
|
|
966
|
+
templateGetManyFieldMetaRadio: TemplateGetManyFieldMetaRadio,
|
|
967
|
+
): string {
|
|
968
|
+
return JSON.stringify(
|
|
969
|
+
TemplateGetManyFieldMetaRadio$outboundSchema.parse(
|
|
970
|
+
templateGetManyFieldMetaRadio,
|
|
971
|
+
),
|
|
972
|
+
);
|
|
973
|
+
}
|
|
974
|
+
export function templateGetManyFieldMetaRadioFromJSON(
|
|
975
|
+
jsonString: string,
|
|
976
|
+
): SafeParseResult<TemplateGetManyFieldMetaRadio, SDKValidationError> {
|
|
977
|
+
return safeParse(
|
|
978
|
+
jsonString,
|
|
979
|
+
(x) => TemplateGetManyFieldMetaRadio$inboundSchema.parse(JSON.parse(x)),
|
|
980
|
+
`Failed to parse 'TemplateGetManyFieldMetaRadio' from JSON`,
|
|
981
|
+
);
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
/** @internal */
|
|
985
|
+
export const TemplateGetManyTextAlign6$inboundSchema: z.ZodNativeEnum<
|
|
986
|
+
typeof TemplateGetManyTextAlign6
|
|
987
|
+
> = z.nativeEnum(TemplateGetManyTextAlign6);
|
|
988
|
+
/** @internal */
|
|
989
|
+
export const TemplateGetManyTextAlign6$outboundSchema: z.ZodNativeEnum<
|
|
990
|
+
typeof TemplateGetManyTextAlign6
|
|
991
|
+
> = TemplateGetManyTextAlign6$inboundSchema;
|
|
992
|
+
|
|
993
|
+
/** @internal */
|
|
994
|
+
export const TemplateGetManyVerticalAlign2$inboundSchema: z.ZodNativeEnum<
|
|
995
|
+
typeof TemplateGetManyVerticalAlign2
|
|
996
|
+
> = z.nativeEnum(TemplateGetManyVerticalAlign2);
|
|
997
|
+
/** @internal */
|
|
998
|
+
export const TemplateGetManyVerticalAlign2$outboundSchema: z.ZodNativeEnum<
|
|
999
|
+
typeof TemplateGetManyVerticalAlign2
|
|
1000
|
+
> = TemplateGetManyVerticalAlign2$inboundSchema;
|
|
1001
|
+
|
|
1002
|
+
/** @internal */
|
|
1003
|
+
export const TemplateGetManyFieldMetaNumber$inboundSchema: z.ZodType<
|
|
1004
|
+
TemplateGetManyFieldMetaNumber,
|
|
1005
|
+
z.ZodTypeDef,
|
|
1006
|
+
unknown
|
|
1007
|
+
> = z.object({
|
|
1008
|
+
label: z.string().optional(),
|
|
1009
|
+
placeholder: z.string().optional(),
|
|
1010
|
+
required: z.boolean().optional(),
|
|
1011
|
+
readOnly: z.boolean().optional(),
|
|
1012
|
+
fontSize: z.number().default(12),
|
|
1013
|
+
type: z.literal("number"),
|
|
1014
|
+
numberFormat: z.nullable(z.string()).optional(),
|
|
1015
|
+
value: z.string().optional(),
|
|
1016
|
+
minValue: z.nullable(z.number()).optional(),
|
|
1017
|
+
maxValue: z.nullable(z.number()).optional(),
|
|
1018
|
+
textAlign: TemplateGetManyTextAlign6$inboundSchema.optional(),
|
|
1019
|
+
lineHeight: z.nullable(z.number()).optional(),
|
|
1020
|
+
letterSpacing: z.nullable(z.number()).optional(),
|
|
1021
|
+
verticalAlign: z.nullable(TemplateGetManyVerticalAlign2$inboundSchema)
|
|
1022
|
+
.optional(),
|
|
1023
|
+
});
|
|
1024
|
+
/** @internal */
|
|
1025
|
+
export type TemplateGetManyFieldMetaNumber$Outbound = {
|
|
1026
|
+
label?: string | undefined;
|
|
1027
|
+
placeholder?: string | undefined;
|
|
1028
|
+
required?: boolean | undefined;
|
|
1029
|
+
readOnly?: boolean | undefined;
|
|
1030
|
+
fontSize: number;
|
|
1031
|
+
type: "number";
|
|
1032
|
+
numberFormat?: string | null | undefined;
|
|
1033
|
+
value?: string | undefined;
|
|
1034
|
+
minValue?: number | null | undefined;
|
|
1035
|
+
maxValue?: number | null | undefined;
|
|
1036
|
+
textAlign?: string | undefined;
|
|
1037
|
+
lineHeight?: number | null | undefined;
|
|
1038
|
+
letterSpacing?: number | null | undefined;
|
|
1039
|
+
verticalAlign?: string | null | undefined;
|
|
1040
|
+
};
|
|
1041
|
+
|
|
1042
|
+
/** @internal */
|
|
1043
|
+
export const TemplateGetManyFieldMetaNumber$outboundSchema: z.ZodType<
|
|
1044
|
+
TemplateGetManyFieldMetaNumber$Outbound,
|
|
1045
|
+
z.ZodTypeDef,
|
|
1046
|
+
TemplateGetManyFieldMetaNumber
|
|
1047
|
+
> = z.object({
|
|
1048
|
+
label: z.string().optional(),
|
|
1049
|
+
placeholder: z.string().optional(),
|
|
1050
|
+
required: z.boolean().optional(),
|
|
1051
|
+
readOnly: z.boolean().optional(),
|
|
1052
|
+
fontSize: z.number().default(12),
|
|
1053
|
+
type: z.literal("number"),
|
|
1054
|
+
numberFormat: z.nullable(z.string()).optional(),
|
|
1055
|
+
value: z.string().optional(),
|
|
1056
|
+
minValue: z.nullable(z.number()).optional(),
|
|
1057
|
+
maxValue: z.nullable(z.number()).optional(),
|
|
1058
|
+
textAlign: TemplateGetManyTextAlign6$outboundSchema.optional(),
|
|
1059
|
+
lineHeight: z.nullable(z.number()).optional(),
|
|
1060
|
+
letterSpacing: z.nullable(z.number()).optional(),
|
|
1061
|
+
verticalAlign: z.nullable(TemplateGetManyVerticalAlign2$outboundSchema)
|
|
1062
|
+
.optional(),
|
|
1063
|
+
});
|
|
1064
|
+
|
|
1065
|
+
export function templateGetManyFieldMetaNumberToJSON(
|
|
1066
|
+
templateGetManyFieldMetaNumber: TemplateGetManyFieldMetaNumber,
|
|
1067
|
+
): string {
|
|
1068
|
+
return JSON.stringify(
|
|
1069
|
+
TemplateGetManyFieldMetaNumber$outboundSchema.parse(
|
|
1070
|
+
templateGetManyFieldMetaNumber,
|
|
1071
|
+
),
|
|
1072
|
+
);
|
|
1073
|
+
}
|
|
1074
|
+
export function templateGetManyFieldMetaNumberFromJSON(
|
|
1075
|
+
jsonString: string,
|
|
1076
|
+
): SafeParseResult<TemplateGetManyFieldMetaNumber, SDKValidationError> {
|
|
1077
|
+
return safeParse(
|
|
1078
|
+
jsonString,
|
|
1079
|
+
(x) => TemplateGetManyFieldMetaNumber$inboundSchema.parse(JSON.parse(x)),
|
|
1080
|
+
`Failed to parse 'TemplateGetManyFieldMetaNumber' from JSON`,
|
|
1081
|
+
);
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
/** @internal */
|
|
1085
|
+
export const TemplateGetManyTextAlign5$inboundSchema: z.ZodNativeEnum<
|
|
1086
|
+
typeof TemplateGetManyTextAlign5
|
|
1087
|
+
> = z.nativeEnum(TemplateGetManyTextAlign5);
|
|
1088
|
+
/** @internal */
|
|
1089
|
+
export const TemplateGetManyTextAlign5$outboundSchema: z.ZodNativeEnum<
|
|
1090
|
+
typeof TemplateGetManyTextAlign5
|
|
1091
|
+
> = TemplateGetManyTextAlign5$inboundSchema;
|
|
1092
|
+
|
|
1093
|
+
/** @internal */
|
|
1094
|
+
export const TemplateGetManyVerticalAlign1$inboundSchema: z.ZodNativeEnum<
|
|
1095
|
+
typeof TemplateGetManyVerticalAlign1
|
|
1096
|
+
> = z.nativeEnum(TemplateGetManyVerticalAlign1);
|
|
1097
|
+
/** @internal */
|
|
1098
|
+
export const TemplateGetManyVerticalAlign1$outboundSchema: z.ZodNativeEnum<
|
|
1099
|
+
typeof TemplateGetManyVerticalAlign1
|
|
1100
|
+
> = TemplateGetManyVerticalAlign1$inboundSchema;
|
|
1101
|
+
|
|
1102
|
+
/** @internal */
|
|
1103
|
+
export const TemplateGetManyFieldMetaText$inboundSchema: z.ZodType<
|
|
1104
|
+
TemplateGetManyFieldMetaText,
|
|
1105
|
+
z.ZodTypeDef,
|
|
1106
|
+
unknown
|
|
1107
|
+
> = z.object({
|
|
1108
|
+
label: z.string().optional(),
|
|
1109
|
+
placeholder: z.string().optional(),
|
|
1110
|
+
required: z.boolean().optional(),
|
|
1111
|
+
readOnly: z.boolean().optional(),
|
|
1112
|
+
fontSize: z.number().default(12),
|
|
1113
|
+
type: z.literal("text"),
|
|
1114
|
+
text: z.string().optional(),
|
|
1115
|
+
characterLimit: z.number().optional(),
|
|
1116
|
+
textAlign: TemplateGetManyTextAlign5$inboundSchema.optional(),
|
|
1117
|
+
lineHeight: z.nullable(z.number()).optional(),
|
|
1118
|
+
letterSpacing: z.nullable(z.number()).optional(),
|
|
1119
|
+
verticalAlign: z.nullable(TemplateGetManyVerticalAlign1$inboundSchema)
|
|
1120
|
+
.optional(),
|
|
1121
|
+
});
|
|
1122
|
+
/** @internal */
|
|
1123
|
+
export type TemplateGetManyFieldMetaText$Outbound = {
|
|
1124
|
+
label?: string | undefined;
|
|
1125
|
+
placeholder?: string | undefined;
|
|
1126
|
+
required?: boolean | undefined;
|
|
1127
|
+
readOnly?: boolean | undefined;
|
|
1128
|
+
fontSize: number;
|
|
1129
|
+
type: "text";
|
|
1130
|
+
text?: string | undefined;
|
|
1131
|
+
characterLimit?: number | undefined;
|
|
1132
|
+
textAlign?: string | undefined;
|
|
1133
|
+
lineHeight?: number | null | undefined;
|
|
1134
|
+
letterSpacing?: number | null | undefined;
|
|
1135
|
+
verticalAlign?: string | null | undefined;
|
|
1136
|
+
};
|
|
1137
|
+
|
|
1138
|
+
/** @internal */
|
|
1139
|
+
export const TemplateGetManyFieldMetaText$outboundSchema: z.ZodType<
|
|
1140
|
+
TemplateGetManyFieldMetaText$Outbound,
|
|
1141
|
+
z.ZodTypeDef,
|
|
1142
|
+
TemplateGetManyFieldMetaText
|
|
1143
|
+
> = z.object({
|
|
1144
|
+
label: z.string().optional(),
|
|
1145
|
+
placeholder: z.string().optional(),
|
|
1146
|
+
required: z.boolean().optional(),
|
|
1147
|
+
readOnly: z.boolean().optional(),
|
|
1148
|
+
fontSize: z.number().default(12),
|
|
1149
|
+
type: z.literal("text"),
|
|
1150
|
+
text: z.string().optional(),
|
|
1151
|
+
characterLimit: z.number().optional(),
|
|
1152
|
+
textAlign: TemplateGetManyTextAlign5$outboundSchema.optional(),
|
|
1153
|
+
lineHeight: z.nullable(z.number()).optional(),
|
|
1154
|
+
letterSpacing: z.nullable(z.number()).optional(),
|
|
1155
|
+
verticalAlign: z.nullable(TemplateGetManyVerticalAlign1$outboundSchema)
|
|
1156
|
+
.optional(),
|
|
1157
|
+
});
|
|
1158
|
+
|
|
1159
|
+
export function templateGetManyFieldMetaTextToJSON(
|
|
1160
|
+
templateGetManyFieldMetaText: TemplateGetManyFieldMetaText,
|
|
1161
|
+
): string {
|
|
1162
|
+
return JSON.stringify(
|
|
1163
|
+
TemplateGetManyFieldMetaText$outboundSchema.parse(
|
|
1164
|
+
templateGetManyFieldMetaText,
|
|
1165
|
+
),
|
|
1166
|
+
);
|
|
1167
|
+
}
|
|
1168
|
+
export function templateGetManyFieldMetaTextFromJSON(
|
|
1169
|
+
jsonString: string,
|
|
1170
|
+
): SafeParseResult<TemplateGetManyFieldMetaText, SDKValidationError> {
|
|
1171
|
+
return safeParse(
|
|
1172
|
+
jsonString,
|
|
1173
|
+
(x) => TemplateGetManyFieldMetaText$inboundSchema.parse(JSON.parse(x)),
|
|
1174
|
+
`Failed to parse 'TemplateGetManyFieldMetaText' from JSON`,
|
|
1175
|
+
);
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
/** @internal */
|
|
1179
|
+
export const TemplateGetManyTextAlign4$inboundSchema: z.ZodNativeEnum<
|
|
1180
|
+
typeof TemplateGetManyTextAlign4
|
|
1181
|
+
> = z.nativeEnum(TemplateGetManyTextAlign4);
|
|
1182
|
+
/** @internal */
|
|
1183
|
+
export const TemplateGetManyTextAlign4$outboundSchema: z.ZodNativeEnum<
|
|
1184
|
+
typeof TemplateGetManyTextAlign4
|
|
1185
|
+
> = TemplateGetManyTextAlign4$inboundSchema;
|
|
1186
|
+
|
|
1187
|
+
/** @internal */
|
|
1188
|
+
export const TemplateGetManyFieldMetaDate$inboundSchema: z.ZodType<
|
|
1189
|
+
TemplateGetManyFieldMetaDate,
|
|
1190
|
+
z.ZodTypeDef,
|
|
1191
|
+
unknown
|
|
1192
|
+
> = z.object({
|
|
1193
|
+
label: z.string().optional(),
|
|
1194
|
+
placeholder: z.string().optional(),
|
|
1195
|
+
required: z.boolean().optional(),
|
|
1196
|
+
readOnly: z.boolean().optional(),
|
|
1197
|
+
fontSize: z.number().default(12),
|
|
1198
|
+
type: z.literal("date"),
|
|
1199
|
+
textAlign: TemplateGetManyTextAlign4$inboundSchema.optional(),
|
|
1200
|
+
});
|
|
1201
|
+
/** @internal */
|
|
1202
|
+
export type TemplateGetManyFieldMetaDate$Outbound = {
|
|
1203
|
+
label?: string | undefined;
|
|
1204
|
+
placeholder?: string | undefined;
|
|
1205
|
+
required?: boolean | undefined;
|
|
1206
|
+
readOnly?: boolean | undefined;
|
|
1207
|
+
fontSize: number;
|
|
1208
|
+
type: "date";
|
|
1209
|
+
textAlign?: string | undefined;
|
|
1210
|
+
};
|
|
1211
|
+
|
|
1212
|
+
/** @internal */
|
|
1213
|
+
export const TemplateGetManyFieldMetaDate$outboundSchema: z.ZodType<
|
|
1214
|
+
TemplateGetManyFieldMetaDate$Outbound,
|
|
1215
|
+
z.ZodTypeDef,
|
|
1216
|
+
TemplateGetManyFieldMetaDate
|
|
1217
|
+
> = z.object({
|
|
1218
|
+
label: z.string().optional(),
|
|
1219
|
+
placeholder: z.string().optional(),
|
|
1220
|
+
required: z.boolean().optional(),
|
|
1221
|
+
readOnly: z.boolean().optional(),
|
|
1222
|
+
fontSize: z.number().default(12),
|
|
1223
|
+
type: z.literal("date"),
|
|
1224
|
+
textAlign: TemplateGetManyTextAlign4$outboundSchema.optional(),
|
|
1225
|
+
});
|
|
1226
|
+
|
|
1227
|
+
export function templateGetManyFieldMetaDateToJSON(
|
|
1228
|
+
templateGetManyFieldMetaDate: TemplateGetManyFieldMetaDate,
|
|
1229
|
+
): string {
|
|
1230
|
+
return JSON.stringify(
|
|
1231
|
+
TemplateGetManyFieldMetaDate$outboundSchema.parse(
|
|
1232
|
+
templateGetManyFieldMetaDate,
|
|
1233
|
+
),
|
|
1234
|
+
);
|
|
1235
|
+
}
|
|
1236
|
+
export function templateGetManyFieldMetaDateFromJSON(
|
|
1237
|
+
jsonString: string,
|
|
1238
|
+
): SafeParseResult<TemplateGetManyFieldMetaDate, SDKValidationError> {
|
|
1239
|
+
return safeParse(
|
|
1240
|
+
jsonString,
|
|
1241
|
+
(x) => TemplateGetManyFieldMetaDate$inboundSchema.parse(JSON.parse(x)),
|
|
1242
|
+
`Failed to parse 'TemplateGetManyFieldMetaDate' from JSON`,
|
|
1243
|
+
);
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
/** @internal */
|
|
1247
|
+
export const TemplateGetManyTextAlign3$inboundSchema: z.ZodNativeEnum<
|
|
1248
|
+
typeof TemplateGetManyTextAlign3
|
|
1249
|
+
> = z.nativeEnum(TemplateGetManyTextAlign3);
|
|
1250
|
+
/** @internal */
|
|
1251
|
+
export const TemplateGetManyTextAlign3$outboundSchema: z.ZodNativeEnum<
|
|
1252
|
+
typeof TemplateGetManyTextAlign3
|
|
1253
|
+
> = TemplateGetManyTextAlign3$inboundSchema;
|
|
1254
|
+
|
|
1255
|
+
/** @internal */
|
|
1256
|
+
export const TemplateGetManyFieldMetaEmail$inboundSchema: z.ZodType<
|
|
1257
|
+
TemplateGetManyFieldMetaEmail,
|
|
1258
|
+
z.ZodTypeDef,
|
|
1259
|
+
unknown
|
|
1260
|
+
> = z.object({
|
|
1261
|
+
label: z.string().optional(),
|
|
1262
|
+
placeholder: z.string().optional(),
|
|
1263
|
+
required: z.boolean().optional(),
|
|
1264
|
+
readOnly: z.boolean().optional(),
|
|
1265
|
+
fontSize: z.number().default(12),
|
|
1266
|
+
type: z.literal("email"),
|
|
1267
|
+
textAlign: TemplateGetManyTextAlign3$inboundSchema.optional(),
|
|
1268
|
+
});
|
|
1269
|
+
/** @internal */
|
|
1270
|
+
export type TemplateGetManyFieldMetaEmail$Outbound = {
|
|
1271
|
+
label?: string | undefined;
|
|
1272
|
+
placeholder?: string | undefined;
|
|
1273
|
+
required?: boolean | undefined;
|
|
1274
|
+
readOnly?: boolean | undefined;
|
|
1275
|
+
fontSize: number;
|
|
1276
|
+
type: "email";
|
|
1277
|
+
textAlign?: string | undefined;
|
|
1278
|
+
};
|
|
1279
|
+
|
|
1280
|
+
/** @internal */
|
|
1281
|
+
export const TemplateGetManyFieldMetaEmail$outboundSchema: z.ZodType<
|
|
1282
|
+
TemplateGetManyFieldMetaEmail$Outbound,
|
|
1283
|
+
z.ZodTypeDef,
|
|
1284
|
+
TemplateGetManyFieldMetaEmail
|
|
1285
|
+
> = z.object({
|
|
1286
|
+
label: z.string().optional(),
|
|
1287
|
+
placeholder: z.string().optional(),
|
|
1288
|
+
required: z.boolean().optional(),
|
|
1289
|
+
readOnly: z.boolean().optional(),
|
|
1290
|
+
fontSize: z.number().default(12),
|
|
1291
|
+
type: z.literal("email"),
|
|
1292
|
+
textAlign: TemplateGetManyTextAlign3$outboundSchema.optional(),
|
|
1293
|
+
});
|
|
1294
|
+
|
|
1295
|
+
export function templateGetManyFieldMetaEmailToJSON(
|
|
1296
|
+
templateGetManyFieldMetaEmail: TemplateGetManyFieldMetaEmail,
|
|
1297
|
+
): string {
|
|
1298
|
+
return JSON.stringify(
|
|
1299
|
+
TemplateGetManyFieldMetaEmail$outboundSchema.parse(
|
|
1300
|
+
templateGetManyFieldMetaEmail,
|
|
1301
|
+
),
|
|
1302
|
+
);
|
|
1303
|
+
}
|
|
1304
|
+
export function templateGetManyFieldMetaEmailFromJSON(
|
|
1305
|
+
jsonString: string,
|
|
1306
|
+
): SafeParseResult<TemplateGetManyFieldMetaEmail, SDKValidationError> {
|
|
1307
|
+
return safeParse(
|
|
1308
|
+
jsonString,
|
|
1309
|
+
(x) => TemplateGetManyFieldMetaEmail$inboundSchema.parse(JSON.parse(x)),
|
|
1310
|
+
`Failed to parse 'TemplateGetManyFieldMetaEmail' from JSON`,
|
|
1311
|
+
);
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
/** @internal */
|
|
1315
|
+
export const TemplateGetManyTextAlign2$inboundSchema: z.ZodNativeEnum<
|
|
1316
|
+
typeof TemplateGetManyTextAlign2
|
|
1317
|
+
> = z.nativeEnum(TemplateGetManyTextAlign2);
|
|
1318
|
+
/** @internal */
|
|
1319
|
+
export const TemplateGetManyTextAlign2$outboundSchema: z.ZodNativeEnum<
|
|
1320
|
+
typeof TemplateGetManyTextAlign2
|
|
1321
|
+
> = TemplateGetManyTextAlign2$inboundSchema;
|
|
1322
|
+
|
|
1323
|
+
/** @internal */
|
|
1324
|
+
export const TemplateGetManyFieldMetaName$inboundSchema: z.ZodType<
|
|
1325
|
+
TemplateGetManyFieldMetaName,
|
|
1326
|
+
z.ZodTypeDef,
|
|
1327
|
+
unknown
|
|
1328
|
+
> = z.object({
|
|
1329
|
+
label: z.string().optional(),
|
|
1330
|
+
placeholder: z.string().optional(),
|
|
1331
|
+
required: z.boolean().optional(),
|
|
1332
|
+
readOnly: z.boolean().optional(),
|
|
1333
|
+
fontSize: z.number().default(12),
|
|
1334
|
+
type: z.literal("name"),
|
|
1335
|
+
textAlign: TemplateGetManyTextAlign2$inboundSchema.optional(),
|
|
1336
|
+
});
|
|
1337
|
+
/** @internal */
|
|
1338
|
+
export type TemplateGetManyFieldMetaName$Outbound = {
|
|
1339
|
+
label?: string | undefined;
|
|
1340
|
+
placeholder?: string | undefined;
|
|
1341
|
+
required?: boolean | undefined;
|
|
1342
|
+
readOnly?: boolean | undefined;
|
|
1343
|
+
fontSize: number;
|
|
1344
|
+
type: "name";
|
|
1345
|
+
textAlign?: string | undefined;
|
|
1346
|
+
};
|
|
1347
|
+
|
|
1348
|
+
/** @internal */
|
|
1349
|
+
export const TemplateGetManyFieldMetaName$outboundSchema: z.ZodType<
|
|
1350
|
+
TemplateGetManyFieldMetaName$Outbound,
|
|
1351
|
+
z.ZodTypeDef,
|
|
1352
|
+
TemplateGetManyFieldMetaName
|
|
1353
|
+
> = z.object({
|
|
1354
|
+
label: z.string().optional(),
|
|
1355
|
+
placeholder: z.string().optional(),
|
|
1356
|
+
required: z.boolean().optional(),
|
|
1357
|
+
readOnly: z.boolean().optional(),
|
|
1358
|
+
fontSize: z.number().default(12),
|
|
1359
|
+
type: z.literal("name"),
|
|
1360
|
+
textAlign: TemplateGetManyTextAlign2$outboundSchema.optional(),
|
|
1361
|
+
});
|
|
1362
|
+
|
|
1363
|
+
export function templateGetManyFieldMetaNameToJSON(
|
|
1364
|
+
templateGetManyFieldMetaName: TemplateGetManyFieldMetaName,
|
|
1365
|
+
): string {
|
|
1366
|
+
return JSON.stringify(
|
|
1367
|
+
TemplateGetManyFieldMetaName$outboundSchema.parse(
|
|
1368
|
+
templateGetManyFieldMetaName,
|
|
1369
|
+
),
|
|
1370
|
+
);
|
|
1371
|
+
}
|
|
1372
|
+
export function templateGetManyFieldMetaNameFromJSON(
|
|
1373
|
+
jsonString: string,
|
|
1374
|
+
): SafeParseResult<TemplateGetManyFieldMetaName, SDKValidationError> {
|
|
1375
|
+
return safeParse(
|
|
1376
|
+
jsonString,
|
|
1377
|
+
(x) => TemplateGetManyFieldMetaName$inboundSchema.parse(JSON.parse(x)),
|
|
1378
|
+
`Failed to parse 'TemplateGetManyFieldMetaName' from JSON`,
|
|
1379
|
+
);
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
/** @internal */
|
|
1383
|
+
export const TemplateGetManyTextAlign1$inboundSchema: z.ZodNativeEnum<
|
|
1384
|
+
typeof TemplateGetManyTextAlign1
|
|
1385
|
+
> = z.nativeEnum(TemplateGetManyTextAlign1);
|
|
1386
|
+
/** @internal */
|
|
1387
|
+
export const TemplateGetManyTextAlign1$outboundSchema: z.ZodNativeEnum<
|
|
1388
|
+
typeof TemplateGetManyTextAlign1
|
|
1389
|
+
> = TemplateGetManyTextAlign1$inboundSchema;
|
|
1390
|
+
|
|
1391
|
+
/** @internal */
|
|
1392
|
+
export const TemplateGetManyFieldMetaInitials$inboundSchema: z.ZodType<
|
|
1393
|
+
TemplateGetManyFieldMetaInitials,
|
|
1394
|
+
z.ZodTypeDef,
|
|
1395
|
+
unknown
|
|
1396
|
+
> = z.object({
|
|
1397
|
+
label: z.string().optional(),
|
|
1398
|
+
placeholder: z.string().optional(),
|
|
1399
|
+
required: z.boolean().optional(),
|
|
1400
|
+
readOnly: z.boolean().optional(),
|
|
1401
|
+
fontSize: z.number().default(12),
|
|
1402
|
+
type: z.literal("initials"),
|
|
1403
|
+
textAlign: TemplateGetManyTextAlign1$inboundSchema.optional(),
|
|
1404
|
+
});
|
|
1405
|
+
/** @internal */
|
|
1406
|
+
export type TemplateGetManyFieldMetaInitials$Outbound = {
|
|
1407
|
+
label?: string | undefined;
|
|
1408
|
+
placeholder?: string | undefined;
|
|
1409
|
+
required?: boolean | undefined;
|
|
1410
|
+
readOnly?: boolean | undefined;
|
|
1411
|
+
fontSize: number;
|
|
1412
|
+
type: "initials";
|
|
1413
|
+
textAlign?: string | undefined;
|
|
1414
|
+
};
|
|
1415
|
+
|
|
1416
|
+
/** @internal */
|
|
1417
|
+
export const TemplateGetManyFieldMetaInitials$outboundSchema: z.ZodType<
|
|
1418
|
+
TemplateGetManyFieldMetaInitials$Outbound,
|
|
1419
|
+
z.ZodTypeDef,
|
|
1420
|
+
TemplateGetManyFieldMetaInitials
|
|
1421
|
+
> = z.object({
|
|
1422
|
+
label: z.string().optional(),
|
|
1423
|
+
placeholder: z.string().optional(),
|
|
1424
|
+
required: z.boolean().optional(),
|
|
1425
|
+
readOnly: z.boolean().optional(),
|
|
1426
|
+
fontSize: z.number().default(12),
|
|
1427
|
+
type: z.literal("initials"),
|
|
1428
|
+
textAlign: TemplateGetManyTextAlign1$outboundSchema.optional(),
|
|
1429
|
+
});
|
|
1430
|
+
|
|
1431
|
+
export function templateGetManyFieldMetaInitialsToJSON(
|
|
1432
|
+
templateGetManyFieldMetaInitials: TemplateGetManyFieldMetaInitials,
|
|
1433
|
+
): string {
|
|
1434
|
+
return JSON.stringify(
|
|
1435
|
+
TemplateGetManyFieldMetaInitials$outboundSchema.parse(
|
|
1436
|
+
templateGetManyFieldMetaInitials,
|
|
1437
|
+
),
|
|
1438
|
+
);
|
|
1439
|
+
}
|
|
1440
|
+
export function templateGetManyFieldMetaInitialsFromJSON(
|
|
1441
|
+
jsonString: string,
|
|
1442
|
+
): SafeParseResult<TemplateGetManyFieldMetaInitials, SDKValidationError> {
|
|
1443
|
+
return safeParse(
|
|
1444
|
+
jsonString,
|
|
1445
|
+
(x) => TemplateGetManyFieldMetaInitials$inboundSchema.parse(JSON.parse(x)),
|
|
1446
|
+
`Failed to parse 'TemplateGetManyFieldMetaInitials' from JSON`,
|
|
1447
|
+
);
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
/** @internal */
|
|
1451
|
+
export const TemplateGetManyFieldMetaSignature$inboundSchema: z.ZodType<
|
|
1452
|
+
TemplateGetManyFieldMetaSignature,
|
|
1453
|
+
z.ZodTypeDef,
|
|
1454
|
+
unknown
|
|
1455
|
+
> = z.object({
|
|
1456
|
+
label: z.string().optional(),
|
|
1457
|
+
placeholder: z.string().optional(),
|
|
1458
|
+
required: z.boolean().optional(),
|
|
1459
|
+
readOnly: z.boolean().optional(),
|
|
1460
|
+
fontSize: z.number().default(12),
|
|
1461
|
+
type: z.literal("signature"),
|
|
1462
|
+
});
|
|
1463
|
+
/** @internal */
|
|
1464
|
+
export type TemplateGetManyFieldMetaSignature$Outbound = {
|
|
1465
|
+
label?: string | undefined;
|
|
1466
|
+
placeholder?: string | undefined;
|
|
1467
|
+
required?: boolean | undefined;
|
|
1468
|
+
readOnly?: boolean | undefined;
|
|
1469
|
+
fontSize: number;
|
|
1470
|
+
type: "signature";
|
|
1471
|
+
};
|
|
1472
|
+
|
|
1473
|
+
/** @internal */
|
|
1474
|
+
export const TemplateGetManyFieldMetaSignature$outboundSchema: z.ZodType<
|
|
1475
|
+
TemplateGetManyFieldMetaSignature$Outbound,
|
|
1476
|
+
z.ZodTypeDef,
|
|
1477
|
+
TemplateGetManyFieldMetaSignature
|
|
1478
|
+
> = z.object({
|
|
1479
|
+
label: z.string().optional(),
|
|
1480
|
+
placeholder: z.string().optional(),
|
|
1481
|
+
required: z.boolean().optional(),
|
|
1482
|
+
readOnly: z.boolean().optional(),
|
|
1483
|
+
fontSize: z.number().default(12),
|
|
1484
|
+
type: z.literal("signature"),
|
|
1485
|
+
});
|
|
1486
|
+
|
|
1487
|
+
export function templateGetManyFieldMetaSignatureToJSON(
|
|
1488
|
+
templateGetManyFieldMetaSignature: TemplateGetManyFieldMetaSignature,
|
|
1489
|
+
): string {
|
|
1490
|
+
return JSON.stringify(
|
|
1491
|
+
TemplateGetManyFieldMetaSignature$outboundSchema.parse(
|
|
1492
|
+
templateGetManyFieldMetaSignature,
|
|
1493
|
+
),
|
|
1494
|
+
);
|
|
1495
|
+
}
|
|
1496
|
+
export function templateGetManyFieldMetaSignatureFromJSON(
|
|
1497
|
+
jsonString: string,
|
|
1498
|
+
): SafeParseResult<TemplateGetManyFieldMetaSignature, SDKValidationError> {
|
|
1499
|
+
return safeParse(
|
|
1500
|
+
jsonString,
|
|
1501
|
+
(x) => TemplateGetManyFieldMetaSignature$inboundSchema.parse(JSON.parse(x)),
|
|
1502
|
+
`Failed to parse 'TemplateGetManyFieldMetaSignature' from JSON`,
|
|
1503
|
+
);
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
/** @internal */
|
|
1507
|
+
export const TemplateGetManyFieldMetaUnion$inboundSchema: z.ZodType<
|
|
1508
|
+
TemplateGetManyFieldMetaUnion,
|
|
1509
|
+
z.ZodTypeDef,
|
|
1510
|
+
unknown
|
|
1511
|
+
> = z.union([
|
|
1512
|
+
z.lazy(() => TemplateGetManyFieldMetaSignature$inboundSchema),
|
|
1513
|
+
z.lazy(() => TemplateGetManyFieldMetaInitials$inboundSchema),
|
|
1514
|
+
z.lazy(() => TemplateGetManyFieldMetaName$inboundSchema),
|
|
1515
|
+
z.lazy(() => TemplateGetManyFieldMetaEmail$inboundSchema),
|
|
1516
|
+
z.lazy(() => TemplateGetManyFieldMetaDate$inboundSchema),
|
|
1517
|
+
z.lazy(() => TemplateGetManyFieldMetaText$inboundSchema),
|
|
1518
|
+
z.lazy(() => TemplateGetManyFieldMetaNumber$inboundSchema),
|
|
1519
|
+
z.lazy(() => TemplateGetManyFieldMetaRadio$inboundSchema),
|
|
1520
|
+
z.lazy(() => TemplateGetManyFieldMetaCheckbox$inboundSchema),
|
|
1521
|
+
z.lazy(() => TemplateGetManyFieldMetaDropdown$inboundSchema),
|
|
1522
|
+
]);
|
|
1523
|
+
/** @internal */
|
|
1524
|
+
export type TemplateGetManyFieldMetaUnion$Outbound =
|
|
1525
|
+
| TemplateGetManyFieldMetaSignature$Outbound
|
|
1526
|
+
| TemplateGetManyFieldMetaInitials$Outbound
|
|
1527
|
+
| TemplateGetManyFieldMetaName$Outbound
|
|
1528
|
+
| TemplateGetManyFieldMetaEmail$Outbound
|
|
1529
|
+
| TemplateGetManyFieldMetaDate$Outbound
|
|
1530
|
+
| TemplateGetManyFieldMetaText$Outbound
|
|
1531
|
+
| TemplateGetManyFieldMetaNumber$Outbound
|
|
1532
|
+
| TemplateGetManyFieldMetaRadio$Outbound
|
|
1533
|
+
| TemplateGetManyFieldMetaCheckbox$Outbound
|
|
1534
|
+
| TemplateGetManyFieldMetaDropdown$Outbound;
|
|
1535
|
+
|
|
1536
|
+
/** @internal */
|
|
1537
|
+
export const TemplateGetManyFieldMetaUnion$outboundSchema: z.ZodType<
|
|
1538
|
+
TemplateGetManyFieldMetaUnion$Outbound,
|
|
1539
|
+
z.ZodTypeDef,
|
|
1540
|
+
TemplateGetManyFieldMetaUnion
|
|
1541
|
+
> = z.union([
|
|
1542
|
+
z.lazy(() => TemplateGetManyFieldMetaSignature$outboundSchema),
|
|
1543
|
+
z.lazy(() => TemplateGetManyFieldMetaInitials$outboundSchema),
|
|
1544
|
+
z.lazy(() => TemplateGetManyFieldMetaName$outboundSchema),
|
|
1545
|
+
z.lazy(() => TemplateGetManyFieldMetaEmail$outboundSchema),
|
|
1546
|
+
z.lazy(() => TemplateGetManyFieldMetaDate$outboundSchema),
|
|
1547
|
+
z.lazy(() => TemplateGetManyFieldMetaText$outboundSchema),
|
|
1548
|
+
z.lazy(() => TemplateGetManyFieldMetaNumber$outboundSchema),
|
|
1549
|
+
z.lazy(() => TemplateGetManyFieldMetaRadio$outboundSchema),
|
|
1550
|
+
z.lazy(() => TemplateGetManyFieldMetaCheckbox$outboundSchema),
|
|
1551
|
+
z.lazy(() => TemplateGetManyFieldMetaDropdown$outboundSchema),
|
|
1552
|
+
]);
|
|
1553
|
+
|
|
1554
|
+
export function templateGetManyFieldMetaUnionToJSON(
|
|
1555
|
+
templateGetManyFieldMetaUnion: TemplateGetManyFieldMetaUnion,
|
|
1556
|
+
): string {
|
|
1557
|
+
return JSON.stringify(
|
|
1558
|
+
TemplateGetManyFieldMetaUnion$outboundSchema.parse(
|
|
1559
|
+
templateGetManyFieldMetaUnion,
|
|
1560
|
+
),
|
|
1561
|
+
);
|
|
1562
|
+
}
|
|
1563
|
+
export function templateGetManyFieldMetaUnionFromJSON(
|
|
1564
|
+
jsonString: string,
|
|
1565
|
+
): SafeParseResult<TemplateGetManyFieldMetaUnion, SDKValidationError> {
|
|
1566
|
+
return safeParse(
|
|
1567
|
+
jsonString,
|
|
1568
|
+
(x) => TemplateGetManyFieldMetaUnion$inboundSchema.parse(JSON.parse(x)),
|
|
1569
|
+
`Failed to parse 'TemplateGetManyFieldMetaUnion' from JSON`,
|
|
1570
|
+
);
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
/** @internal */
|
|
1574
|
+
export const TemplateGetManyField$inboundSchema: z.ZodType<
|
|
1575
|
+
TemplateGetManyField,
|
|
1576
|
+
z.ZodTypeDef,
|
|
1577
|
+
unknown
|
|
1578
|
+
> = z.object({
|
|
1579
|
+
envelopeId: z.string(),
|
|
1580
|
+
envelopeItemId: z.string(),
|
|
1581
|
+
type: TemplateGetManyFieldTypeEnum$inboundSchema,
|
|
1582
|
+
id: z.number(),
|
|
1583
|
+
secondaryId: z.string(),
|
|
1584
|
+
recipientId: z.number(),
|
|
1585
|
+
page: z.number(),
|
|
1586
|
+
positionX: z.any().optional(),
|
|
1587
|
+
positionY: z.any().optional(),
|
|
1588
|
+
width: z.any().optional(),
|
|
1589
|
+
height: z.any().optional(),
|
|
1590
|
+
customText: z.string(),
|
|
1591
|
+
inserted: z.boolean(),
|
|
1592
|
+
fieldMeta: z.nullable(
|
|
1593
|
+
z.union([
|
|
1594
|
+
z.lazy(() => TemplateGetManyFieldMetaSignature$inboundSchema),
|
|
1595
|
+
z.lazy(() => TemplateGetManyFieldMetaInitials$inboundSchema),
|
|
1596
|
+
z.lazy(() => TemplateGetManyFieldMetaName$inboundSchema),
|
|
1597
|
+
z.lazy(() => TemplateGetManyFieldMetaEmail$inboundSchema),
|
|
1598
|
+
z.lazy(() => TemplateGetManyFieldMetaDate$inboundSchema),
|
|
1599
|
+
z.lazy(() => TemplateGetManyFieldMetaText$inboundSchema),
|
|
1600
|
+
z.lazy(() => TemplateGetManyFieldMetaNumber$inboundSchema),
|
|
1601
|
+
z.lazy(() => TemplateGetManyFieldMetaRadio$inboundSchema),
|
|
1602
|
+
z.lazy(() => TemplateGetManyFieldMetaCheckbox$inboundSchema),
|
|
1603
|
+
z.lazy(() => TemplateGetManyFieldMetaDropdown$inboundSchema),
|
|
1604
|
+
]),
|
|
1605
|
+
),
|
|
1606
|
+
documentId: z.nullable(z.number()).optional(),
|
|
1607
|
+
templateId: z.nullable(z.number()).optional(),
|
|
1608
|
+
});
|
|
1609
|
+
/** @internal */
|
|
1610
|
+
export type TemplateGetManyField$Outbound = {
|
|
1611
|
+
envelopeId: string;
|
|
1612
|
+
envelopeItemId: string;
|
|
1613
|
+
type: string;
|
|
1614
|
+
id: number;
|
|
1615
|
+
secondaryId: string;
|
|
1616
|
+
recipientId: number;
|
|
1617
|
+
page: number;
|
|
1618
|
+
positionX?: any | undefined;
|
|
1619
|
+
positionY?: any | undefined;
|
|
1620
|
+
width?: any | undefined;
|
|
1621
|
+
height?: any | undefined;
|
|
1622
|
+
customText: string;
|
|
1623
|
+
inserted: boolean;
|
|
1624
|
+
fieldMeta:
|
|
1625
|
+
| TemplateGetManyFieldMetaSignature$Outbound
|
|
1626
|
+
| TemplateGetManyFieldMetaInitials$Outbound
|
|
1627
|
+
| TemplateGetManyFieldMetaName$Outbound
|
|
1628
|
+
| TemplateGetManyFieldMetaEmail$Outbound
|
|
1629
|
+
| TemplateGetManyFieldMetaDate$Outbound
|
|
1630
|
+
| TemplateGetManyFieldMetaText$Outbound
|
|
1631
|
+
| TemplateGetManyFieldMetaNumber$Outbound
|
|
1632
|
+
| TemplateGetManyFieldMetaRadio$Outbound
|
|
1633
|
+
| TemplateGetManyFieldMetaCheckbox$Outbound
|
|
1634
|
+
| TemplateGetManyFieldMetaDropdown$Outbound
|
|
1635
|
+
| null;
|
|
1636
|
+
documentId?: number | null | undefined;
|
|
1637
|
+
templateId?: number | null | undefined;
|
|
1638
|
+
};
|
|
1639
|
+
|
|
1640
|
+
/** @internal */
|
|
1641
|
+
export const TemplateGetManyField$outboundSchema: z.ZodType<
|
|
1642
|
+
TemplateGetManyField$Outbound,
|
|
1643
|
+
z.ZodTypeDef,
|
|
1644
|
+
TemplateGetManyField
|
|
1645
|
+
> = z.object({
|
|
1646
|
+
envelopeId: z.string(),
|
|
1647
|
+
envelopeItemId: z.string(),
|
|
1648
|
+
type: TemplateGetManyFieldTypeEnum$outboundSchema,
|
|
1649
|
+
id: z.number(),
|
|
1650
|
+
secondaryId: z.string(),
|
|
1651
|
+
recipientId: z.number(),
|
|
1652
|
+
page: z.number(),
|
|
1653
|
+
positionX: z.any().optional(),
|
|
1654
|
+
positionY: z.any().optional(),
|
|
1655
|
+
width: z.any().optional(),
|
|
1656
|
+
height: z.any().optional(),
|
|
1657
|
+
customText: z.string(),
|
|
1658
|
+
inserted: z.boolean(),
|
|
1659
|
+
fieldMeta: z.nullable(
|
|
1660
|
+
z.union([
|
|
1661
|
+
z.lazy(() => TemplateGetManyFieldMetaSignature$outboundSchema),
|
|
1662
|
+
z.lazy(() => TemplateGetManyFieldMetaInitials$outboundSchema),
|
|
1663
|
+
z.lazy(() => TemplateGetManyFieldMetaName$outboundSchema),
|
|
1664
|
+
z.lazy(() => TemplateGetManyFieldMetaEmail$outboundSchema),
|
|
1665
|
+
z.lazy(() => TemplateGetManyFieldMetaDate$outboundSchema),
|
|
1666
|
+
z.lazy(() => TemplateGetManyFieldMetaText$outboundSchema),
|
|
1667
|
+
z.lazy(() => TemplateGetManyFieldMetaNumber$outboundSchema),
|
|
1668
|
+
z.lazy(() => TemplateGetManyFieldMetaRadio$outboundSchema),
|
|
1669
|
+
z.lazy(() => TemplateGetManyFieldMetaCheckbox$outboundSchema),
|
|
1670
|
+
z.lazy(() => TemplateGetManyFieldMetaDropdown$outboundSchema),
|
|
1671
|
+
]),
|
|
1672
|
+
),
|
|
1673
|
+
documentId: z.nullable(z.number()).optional(),
|
|
1674
|
+
templateId: z.nullable(z.number()).optional(),
|
|
1675
|
+
});
|
|
1676
|
+
|
|
1677
|
+
export function templateGetManyFieldToJSON(
|
|
1678
|
+
templateGetManyField: TemplateGetManyField,
|
|
1679
|
+
): string {
|
|
1680
|
+
return JSON.stringify(
|
|
1681
|
+
TemplateGetManyField$outboundSchema.parse(templateGetManyField),
|
|
1682
|
+
);
|
|
1683
|
+
}
|
|
1684
|
+
export function templateGetManyFieldFromJSON(
|
|
1685
|
+
jsonString: string,
|
|
1686
|
+
): SafeParseResult<TemplateGetManyField, SDKValidationError> {
|
|
1687
|
+
return safeParse(
|
|
1688
|
+
jsonString,
|
|
1689
|
+
(x) => TemplateGetManyField$inboundSchema.parse(JSON.parse(x)),
|
|
1690
|
+
`Failed to parse 'TemplateGetManyField' from JSON`,
|
|
1691
|
+
);
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
/** @internal */
|
|
1695
|
+
export const TemplateGetManyRole$inboundSchema: z.ZodNativeEnum<
|
|
1696
|
+
typeof TemplateGetManyRole
|
|
1697
|
+
> = z.nativeEnum(TemplateGetManyRole);
|
|
1698
|
+
/** @internal */
|
|
1699
|
+
export const TemplateGetManyRole$outboundSchema: z.ZodNativeEnum<
|
|
1700
|
+
typeof TemplateGetManyRole
|
|
1701
|
+
> = TemplateGetManyRole$inboundSchema;
|
|
1702
|
+
|
|
1703
|
+
/** @internal */
|
|
1704
|
+
export const TemplateGetManyReadStatus$inboundSchema: z.ZodNativeEnum<
|
|
1705
|
+
typeof TemplateGetManyReadStatus
|
|
1706
|
+
> = z.nativeEnum(TemplateGetManyReadStatus);
|
|
1707
|
+
/** @internal */
|
|
1708
|
+
export const TemplateGetManyReadStatus$outboundSchema: z.ZodNativeEnum<
|
|
1709
|
+
typeof TemplateGetManyReadStatus
|
|
1710
|
+
> = TemplateGetManyReadStatus$inboundSchema;
|
|
1711
|
+
|
|
1712
|
+
/** @internal */
|
|
1713
|
+
export const TemplateGetManySigningStatus$inboundSchema: z.ZodNativeEnum<
|
|
1714
|
+
typeof TemplateGetManySigningStatus
|
|
1715
|
+
> = z.nativeEnum(TemplateGetManySigningStatus);
|
|
1716
|
+
/** @internal */
|
|
1717
|
+
export const TemplateGetManySigningStatus$outboundSchema: z.ZodNativeEnum<
|
|
1718
|
+
typeof TemplateGetManySigningStatus
|
|
1719
|
+
> = TemplateGetManySigningStatus$inboundSchema;
|
|
1720
|
+
|
|
1721
|
+
/** @internal */
|
|
1722
|
+
export const TemplateGetManySendStatus$inboundSchema: z.ZodNativeEnum<
|
|
1723
|
+
typeof TemplateGetManySendStatus
|
|
1724
|
+
> = z.nativeEnum(TemplateGetManySendStatus);
|
|
1725
|
+
/** @internal */
|
|
1726
|
+
export const TemplateGetManySendStatus$outboundSchema: z.ZodNativeEnum<
|
|
1727
|
+
typeof TemplateGetManySendStatus
|
|
1728
|
+
> = TemplateGetManySendStatus$inboundSchema;
|
|
1729
|
+
|
|
1730
|
+
/** @internal */
|
|
1731
|
+
export const TemplateGetManyAccessAuth$inboundSchema: z.ZodNativeEnum<
|
|
1732
|
+
typeof TemplateGetManyAccessAuth
|
|
1733
|
+
> = z.nativeEnum(TemplateGetManyAccessAuth);
|
|
1734
|
+
/** @internal */
|
|
1735
|
+
export const TemplateGetManyAccessAuth$outboundSchema: z.ZodNativeEnum<
|
|
1736
|
+
typeof TemplateGetManyAccessAuth
|
|
1737
|
+
> = TemplateGetManyAccessAuth$inboundSchema;
|
|
1738
|
+
|
|
1739
|
+
/** @internal */
|
|
1740
|
+
export const TemplateGetManyActionAuth$inboundSchema: z.ZodNativeEnum<
|
|
1741
|
+
typeof TemplateGetManyActionAuth
|
|
1742
|
+
> = z.nativeEnum(TemplateGetManyActionAuth);
|
|
1743
|
+
/** @internal */
|
|
1744
|
+
export const TemplateGetManyActionAuth$outboundSchema: z.ZodNativeEnum<
|
|
1745
|
+
typeof TemplateGetManyActionAuth
|
|
1746
|
+
> = TemplateGetManyActionAuth$inboundSchema;
|
|
1747
|
+
|
|
1748
|
+
/** @internal */
|
|
1749
|
+
export const TemplateGetManyRecipientAuthOptions$inboundSchema: z.ZodType<
|
|
1750
|
+
TemplateGetManyRecipientAuthOptions,
|
|
1751
|
+
z.ZodTypeDef,
|
|
1752
|
+
unknown
|
|
1753
|
+
> = z.object({
|
|
1754
|
+
accessAuth: z.array(TemplateGetManyAccessAuth$inboundSchema),
|
|
1755
|
+
actionAuth: z.array(TemplateGetManyActionAuth$inboundSchema),
|
|
1756
|
+
});
|
|
1757
|
+
/** @internal */
|
|
1758
|
+
export type TemplateGetManyRecipientAuthOptions$Outbound = {
|
|
1759
|
+
accessAuth: Array<string>;
|
|
1760
|
+
actionAuth: Array<string>;
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1763
|
+
/** @internal */
|
|
1764
|
+
export const TemplateGetManyRecipientAuthOptions$outboundSchema: z.ZodType<
|
|
1765
|
+
TemplateGetManyRecipientAuthOptions$Outbound,
|
|
1766
|
+
z.ZodTypeDef,
|
|
1767
|
+
TemplateGetManyRecipientAuthOptions
|
|
1768
|
+
> = z.object({
|
|
1769
|
+
accessAuth: z.array(TemplateGetManyAccessAuth$outboundSchema),
|
|
1770
|
+
actionAuth: z.array(TemplateGetManyActionAuth$outboundSchema),
|
|
1771
|
+
});
|
|
1772
|
+
|
|
1773
|
+
export function templateGetManyRecipientAuthOptionsToJSON(
|
|
1774
|
+
templateGetManyRecipientAuthOptions: TemplateGetManyRecipientAuthOptions,
|
|
1775
|
+
): string {
|
|
1776
|
+
return JSON.stringify(
|
|
1777
|
+
TemplateGetManyRecipientAuthOptions$outboundSchema.parse(
|
|
1778
|
+
templateGetManyRecipientAuthOptions,
|
|
1779
|
+
),
|
|
1780
|
+
);
|
|
1781
|
+
}
|
|
1782
|
+
export function templateGetManyRecipientAuthOptionsFromJSON(
|
|
1783
|
+
jsonString: string,
|
|
1784
|
+
): SafeParseResult<TemplateGetManyRecipientAuthOptions, SDKValidationError> {
|
|
1785
|
+
return safeParse(
|
|
1786
|
+
jsonString,
|
|
1787
|
+
(x) =>
|
|
1788
|
+
TemplateGetManyRecipientAuthOptions$inboundSchema.parse(JSON.parse(x)),
|
|
1789
|
+
`Failed to parse 'TemplateGetManyRecipientAuthOptions' from JSON`,
|
|
1790
|
+
);
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
/** @internal */
|
|
1794
|
+
export const TemplateGetManyRecipient$inboundSchema: z.ZodType<
|
|
1795
|
+
TemplateGetManyRecipient,
|
|
1796
|
+
z.ZodTypeDef,
|
|
1797
|
+
unknown
|
|
1798
|
+
> = z.object({
|
|
1799
|
+
envelopeId: z.string(),
|
|
1800
|
+
role: TemplateGetManyRole$inboundSchema,
|
|
1801
|
+
readStatus: TemplateGetManyReadStatus$inboundSchema,
|
|
1802
|
+
signingStatus: TemplateGetManySigningStatus$inboundSchema,
|
|
1803
|
+
sendStatus: TemplateGetManySendStatus$inboundSchema,
|
|
1804
|
+
id: z.number(),
|
|
1805
|
+
email: z.string(),
|
|
1806
|
+
name: z.string(),
|
|
1807
|
+
token: z.string(),
|
|
1808
|
+
documentDeletedAt: z.nullable(z.string()),
|
|
1809
|
+
expired: z.nullable(z.string()),
|
|
1810
|
+
signedAt: z.nullable(z.string()),
|
|
1811
|
+
authOptions: z.nullable(
|
|
1812
|
+
z.lazy(() => TemplateGetManyRecipientAuthOptions$inboundSchema),
|
|
1813
|
+
),
|
|
1814
|
+
signingOrder: z.nullable(z.number()),
|
|
1815
|
+
rejectionReason: z.nullable(z.string()),
|
|
1816
|
+
documentId: z.nullable(z.number()).optional(),
|
|
1817
|
+
templateId: z.nullable(z.number()).optional(),
|
|
1818
|
+
});
|
|
1819
|
+
/** @internal */
|
|
1820
|
+
export type TemplateGetManyRecipient$Outbound = {
|
|
1821
|
+
envelopeId: string;
|
|
1822
|
+
role: string;
|
|
1823
|
+
readStatus: string;
|
|
1824
|
+
signingStatus: string;
|
|
1825
|
+
sendStatus: string;
|
|
1826
|
+
id: number;
|
|
1827
|
+
email: string;
|
|
1828
|
+
name: string;
|
|
1829
|
+
token: string;
|
|
1830
|
+
documentDeletedAt: string | null;
|
|
1831
|
+
expired: string | null;
|
|
1832
|
+
signedAt: string | null;
|
|
1833
|
+
authOptions: TemplateGetManyRecipientAuthOptions$Outbound | null;
|
|
1834
|
+
signingOrder: number | null;
|
|
1835
|
+
rejectionReason: string | null;
|
|
1836
|
+
documentId?: number | null | undefined;
|
|
1837
|
+
templateId?: number | null | undefined;
|
|
1838
|
+
};
|
|
1839
|
+
|
|
1840
|
+
/** @internal */
|
|
1841
|
+
export const TemplateGetManyRecipient$outboundSchema: z.ZodType<
|
|
1842
|
+
TemplateGetManyRecipient$Outbound,
|
|
1843
|
+
z.ZodTypeDef,
|
|
1844
|
+
TemplateGetManyRecipient
|
|
1845
|
+
> = z.object({
|
|
1846
|
+
envelopeId: z.string(),
|
|
1847
|
+
role: TemplateGetManyRole$outboundSchema,
|
|
1848
|
+
readStatus: TemplateGetManyReadStatus$outboundSchema,
|
|
1849
|
+
signingStatus: TemplateGetManySigningStatus$outboundSchema,
|
|
1850
|
+
sendStatus: TemplateGetManySendStatus$outboundSchema,
|
|
1851
|
+
id: z.number(),
|
|
1852
|
+
email: z.string(),
|
|
1853
|
+
name: z.string(),
|
|
1854
|
+
token: z.string(),
|
|
1855
|
+
documentDeletedAt: z.nullable(z.string()),
|
|
1856
|
+
expired: z.nullable(z.string()),
|
|
1857
|
+
signedAt: z.nullable(z.string()),
|
|
1858
|
+
authOptions: z.nullable(
|
|
1859
|
+
z.lazy(() => TemplateGetManyRecipientAuthOptions$outboundSchema),
|
|
1860
|
+
),
|
|
1861
|
+
signingOrder: z.nullable(z.number()),
|
|
1862
|
+
rejectionReason: z.nullable(z.string()),
|
|
1863
|
+
documentId: z.nullable(z.number()).optional(),
|
|
1864
|
+
templateId: z.nullable(z.number()).optional(),
|
|
1865
|
+
});
|
|
1866
|
+
|
|
1867
|
+
export function templateGetManyRecipientToJSON(
|
|
1868
|
+
templateGetManyRecipient: TemplateGetManyRecipient,
|
|
1869
|
+
): string {
|
|
1870
|
+
return JSON.stringify(
|
|
1871
|
+
TemplateGetManyRecipient$outboundSchema.parse(templateGetManyRecipient),
|
|
1872
|
+
);
|
|
1873
|
+
}
|
|
1874
|
+
export function templateGetManyRecipientFromJSON(
|
|
1875
|
+
jsonString: string,
|
|
1876
|
+
): SafeParseResult<TemplateGetManyRecipient, SDKValidationError> {
|
|
1877
|
+
return safeParse(
|
|
1878
|
+
jsonString,
|
|
1879
|
+
(x) => TemplateGetManyRecipient$inboundSchema.parse(JSON.parse(x)),
|
|
1880
|
+
`Failed to parse 'TemplateGetManyRecipient' from JSON`,
|
|
1881
|
+
);
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
/** @internal */
|
|
1885
|
+
export const TemplateGetManySigningOrder$inboundSchema: z.ZodNativeEnum<
|
|
1886
|
+
typeof TemplateGetManySigningOrder
|
|
1887
|
+
> = z.nativeEnum(TemplateGetManySigningOrder);
|
|
1888
|
+
/** @internal */
|
|
1889
|
+
export const TemplateGetManySigningOrder$outboundSchema: z.ZodNativeEnum<
|
|
1890
|
+
typeof TemplateGetManySigningOrder
|
|
1891
|
+
> = TemplateGetManySigningOrder$inboundSchema;
|
|
1892
|
+
|
|
1893
|
+
/** @internal */
|
|
1894
|
+
export const TemplateGetManyDistributionMethod$inboundSchema: z.ZodNativeEnum<
|
|
1895
|
+
typeof TemplateGetManyDistributionMethod
|
|
1896
|
+
> = z.nativeEnum(TemplateGetManyDistributionMethod);
|
|
1897
|
+
/** @internal */
|
|
1898
|
+
export const TemplateGetManyDistributionMethod$outboundSchema: z.ZodNativeEnum<
|
|
1899
|
+
typeof TemplateGetManyDistributionMethod
|
|
1900
|
+
> = TemplateGetManyDistributionMethod$inboundSchema;
|
|
1901
|
+
|
|
1902
|
+
/** @internal */
|
|
1903
|
+
export const TemplateGetManyTemplateMeta$inboundSchema: z.ZodType<
|
|
1904
|
+
TemplateGetManyTemplateMeta,
|
|
1905
|
+
z.ZodTypeDef,
|
|
1906
|
+
unknown
|
|
1907
|
+
> = z.object({
|
|
1908
|
+
signingOrder: TemplateGetManySigningOrder$inboundSchema,
|
|
1909
|
+
distributionMethod: TemplateGetManyDistributionMethod$inboundSchema,
|
|
1910
|
+
});
|
|
1911
|
+
/** @internal */
|
|
1912
|
+
export type TemplateGetManyTemplateMeta$Outbound = {
|
|
1913
|
+
signingOrder: string;
|
|
1914
|
+
distributionMethod: string;
|
|
1915
|
+
};
|
|
1916
|
+
|
|
1917
|
+
/** @internal */
|
|
1918
|
+
export const TemplateGetManyTemplateMeta$outboundSchema: z.ZodType<
|
|
1919
|
+
TemplateGetManyTemplateMeta$Outbound,
|
|
1920
|
+
z.ZodTypeDef,
|
|
1921
|
+
TemplateGetManyTemplateMeta
|
|
1922
|
+
> = z.object({
|
|
1923
|
+
signingOrder: TemplateGetManySigningOrder$outboundSchema,
|
|
1924
|
+
distributionMethod: TemplateGetManyDistributionMethod$outboundSchema,
|
|
1925
|
+
});
|
|
1926
|
+
|
|
1927
|
+
export function templateGetManyTemplateMetaToJSON(
|
|
1928
|
+
templateGetManyTemplateMeta: TemplateGetManyTemplateMeta,
|
|
1929
|
+
): string {
|
|
1930
|
+
return JSON.stringify(
|
|
1931
|
+
TemplateGetManyTemplateMeta$outboundSchema.parse(
|
|
1932
|
+
templateGetManyTemplateMeta,
|
|
1933
|
+
),
|
|
1934
|
+
);
|
|
1935
|
+
}
|
|
1936
|
+
export function templateGetManyTemplateMetaFromJSON(
|
|
1937
|
+
jsonString: string,
|
|
1938
|
+
): SafeParseResult<TemplateGetManyTemplateMeta, SDKValidationError> {
|
|
1939
|
+
return safeParse(
|
|
1940
|
+
jsonString,
|
|
1941
|
+
(x) => TemplateGetManyTemplateMeta$inboundSchema.parse(JSON.parse(x)),
|
|
1942
|
+
`Failed to parse 'TemplateGetManyTemplateMeta' from JSON`,
|
|
1943
|
+
);
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
/** @internal */
|
|
1947
|
+
export const TemplateGetManyDirectLink$inboundSchema: z.ZodType<
|
|
1948
|
+
TemplateGetManyDirectLink,
|
|
1949
|
+
z.ZodTypeDef,
|
|
1950
|
+
unknown
|
|
1951
|
+
> = z.object({
|
|
1952
|
+
token: z.string(),
|
|
1953
|
+
enabled: z.boolean(),
|
|
1954
|
+
});
|
|
1955
|
+
/** @internal */
|
|
1956
|
+
export type TemplateGetManyDirectLink$Outbound = {
|
|
1957
|
+
token: string;
|
|
1958
|
+
enabled: boolean;
|
|
1959
|
+
};
|
|
1960
|
+
|
|
1961
|
+
/** @internal */
|
|
1962
|
+
export const TemplateGetManyDirectLink$outboundSchema: z.ZodType<
|
|
1963
|
+
TemplateGetManyDirectLink$Outbound,
|
|
1964
|
+
z.ZodTypeDef,
|
|
1965
|
+
TemplateGetManyDirectLink
|
|
1966
|
+
> = z.object({
|
|
1967
|
+
token: z.string(),
|
|
1968
|
+
enabled: z.boolean(),
|
|
1969
|
+
});
|
|
1970
|
+
|
|
1971
|
+
export function templateGetManyDirectLinkToJSON(
|
|
1972
|
+
templateGetManyDirectLink: TemplateGetManyDirectLink,
|
|
1973
|
+
): string {
|
|
1974
|
+
return JSON.stringify(
|
|
1975
|
+
TemplateGetManyDirectLink$outboundSchema.parse(templateGetManyDirectLink),
|
|
1976
|
+
);
|
|
1977
|
+
}
|
|
1978
|
+
export function templateGetManyDirectLinkFromJSON(
|
|
1979
|
+
jsonString: string,
|
|
1980
|
+
): SafeParseResult<TemplateGetManyDirectLink, SDKValidationError> {
|
|
1981
|
+
return safeParse(
|
|
1982
|
+
jsonString,
|
|
1983
|
+
(x) => TemplateGetManyDirectLink$inboundSchema.parse(JSON.parse(x)),
|
|
1984
|
+
`Failed to parse 'TemplateGetManyDirectLink' from JSON`,
|
|
1985
|
+
);
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
/** @internal */
|
|
1989
|
+
export const TemplateGetManyData$inboundSchema: z.ZodType<
|
|
1990
|
+
TemplateGetManyData,
|
|
1991
|
+
z.ZodTypeDef,
|
|
1992
|
+
unknown
|
|
1993
|
+
> = z.object({
|
|
1994
|
+
type: TemplateGetManyTypeEnum$inboundSchema,
|
|
1995
|
+
visibility: TemplateGetManyVisibility$inboundSchema,
|
|
1996
|
+
id: z.number(),
|
|
1997
|
+
externalId: z.nullable(z.string()),
|
|
1998
|
+
title: z.string(),
|
|
1999
|
+
userId: z.number(),
|
|
2000
|
+
teamId: z.number(),
|
|
2001
|
+
authOptions: z.nullable(
|
|
2002
|
+
z.lazy(() => TemplateGetManyAuthOptions$inboundSchema),
|
|
2003
|
+
),
|
|
2004
|
+
createdAt: z.string(),
|
|
2005
|
+
updatedAt: z.string(),
|
|
2006
|
+
publicTitle: z.string(),
|
|
2007
|
+
publicDescription: z.string(),
|
|
2008
|
+
folderId: z.nullable(z.string()),
|
|
2009
|
+
useLegacyFieldInsertion: z.boolean(),
|
|
2010
|
+
envelopeId: z.string(),
|
|
2011
|
+
team: z.nullable(z.lazy(() => TemplateGetManyTeam$inboundSchema)),
|
|
2012
|
+
fields: z.array(z.lazy(() => TemplateGetManyField$inboundSchema)),
|
|
2013
|
+
recipients: z.array(z.lazy(() => TemplateGetManyRecipient$inboundSchema)),
|
|
2014
|
+
templateMeta: z.nullable(
|
|
2015
|
+
z.lazy(() => TemplateGetManyTemplateMeta$inboundSchema),
|
|
2016
|
+
),
|
|
2017
|
+
directLink: z.nullable(z.lazy(() => TemplateGetManyDirectLink$inboundSchema)),
|
|
2018
|
+
templateDocumentDataId: z.string().default(""),
|
|
2019
|
+
});
|
|
2020
|
+
/** @internal */
|
|
2021
|
+
export type TemplateGetManyData$Outbound = {
|
|
2022
|
+
type: string;
|
|
2023
|
+
visibility: string;
|
|
2024
|
+
id: number;
|
|
2025
|
+
externalId: string | null;
|
|
2026
|
+
title: string;
|
|
2027
|
+
userId: number;
|
|
2028
|
+
teamId: number;
|
|
2029
|
+
authOptions: TemplateGetManyAuthOptions$Outbound | null;
|
|
2030
|
+
createdAt: string;
|
|
2031
|
+
updatedAt: string;
|
|
2032
|
+
publicTitle: string;
|
|
2033
|
+
publicDescription: string;
|
|
2034
|
+
folderId: string | null;
|
|
2035
|
+
useLegacyFieldInsertion: boolean;
|
|
2036
|
+
envelopeId: string;
|
|
2037
|
+
team: TemplateGetManyTeam$Outbound | null;
|
|
2038
|
+
fields: Array<TemplateGetManyField$Outbound>;
|
|
2039
|
+
recipients: Array<TemplateGetManyRecipient$Outbound>;
|
|
2040
|
+
templateMeta: TemplateGetManyTemplateMeta$Outbound | null;
|
|
2041
|
+
directLink: TemplateGetManyDirectLink$Outbound | null;
|
|
2042
|
+
templateDocumentDataId: string;
|
|
2043
|
+
};
|
|
2044
|
+
|
|
2045
|
+
/** @internal */
|
|
2046
|
+
export const TemplateGetManyData$outboundSchema: z.ZodType<
|
|
2047
|
+
TemplateGetManyData$Outbound,
|
|
2048
|
+
z.ZodTypeDef,
|
|
2049
|
+
TemplateGetManyData
|
|
2050
|
+
> = z.object({
|
|
2051
|
+
type: TemplateGetManyTypeEnum$outboundSchema,
|
|
2052
|
+
visibility: TemplateGetManyVisibility$outboundSchema,
|
|
2053
|
+
id: z.number(),
|
|
2054
|
+
externalId: z.nullable(z.string()),
|
|
2055
|
+
title: z.string(),
|
|
2056
|
+
userId: z.number(),
|
|
2057
|
+
teamId: z.number(),
|
|
2058
|
+
authOptions: z.nullable(
|
|
2059
|
+
z.lazy(() => TemplateGetManyAuthOptions$outboundSchema),
|
|
2060
|
+
),
|
|
2061
|
+
createdAt: z.string(),
|
|
2062
|
+
updatedAt: z.string(),
|
|
2063
|
+
publicTitle: z.string(),
|
|
2064
|
+
publicDescription: z.string(),
|
|
2065
|
+
folderId: z.nullable(z.string()),
|
|
2066
|
+
useLegacyFieldInsertion: z.boolean(),
|
|
2067
|
+
envelopeId: z.string(),
|
|
2068
|
+
team: z.nullable(z.lazy(() => TemplateGetManyTeam$outboundSchema)),
|
|
2069
|
+
fields: z.array(z.lazy(() => TemplateGetManyField$outboundSchema)),
|
|
2070
|
+
recipients: z.array(z.lazy(() => TemplateGetManyRecipient$outboundSchema)),
|
|
2071
|
+
templateMeta: z.nullable(
|
|
2072
|
+
z.lazy(() => TemplateGetManyTemplateMeta$outboundSchema),
|
|
2073
|
+
),
|
|
2074
|
+
directLink: z.nullable(
|
|
2075
|
+
z.lazy(() => TemplateGetManyDirectLink$outboundSchema),
|
|
2076
|
+
),
|
|
2077
|
+
templateDocumentDataId: z.string().default(""),
|
|
2078
|
+
});
|
|
2079
|
+
|
|
2080
|
+
export function templateGetManyDataToJSON(
|
|
2081
|
+
templateGetManyData: TemplateGetManyData,
|
|
2082
|
+
): string {
|
|
2083
|
+
return JSON.stringify(
|
|
2084
|
+
TemplateGetManyData$outboundSchema.parse(templateGetManyData),
|
|
2085
|
+
);
|
|
2086
|
+
}
|
|
2087
|
+
export function templateGetManyDataFromJSON(
|
|
2088
|
+
jsonString: string,
|
|
2089
|
+
): SafeParseResult<TemplateGetManyData, SDKValidationError> {
|
|
2090
|
+
return safeParse(
|
|
2091
|
+
jsonString,
|
|
2092
|
+
(x) => TemplateGetManyData$inboundSchema.parse(JSON.parse(x)),
|
|
2093
|
+
`Failed to parse 'TemplateGetManyData' from JSON`,
|
|
2094
|
+
);
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
/** @internal */
|
|
2098
|
+
export const TemplateGetManyResponse$inboundSchema: z.ZodType<
|
|
2099
|
+
TemplateGetManyResponse,
|
|
2100
|
+
z.ZodTypeDef,
|
|
2101
|
+
unknown
|
|
2102
|
+
> = z.object({
|
|
2103
|
+
data: z.array(z.lazy(() => TemplateGetManyData$inboundSchema)),
|
|
2104
|
+
});
|
|
2105
|
+
/** @internal */
|
|
2106
|
+
export type TemplateGetManyResponse$Outbound = {
|
|
2107
|
+
data: Array<TemplateGetManyData$Outbound>;
|
|
2108
|
+
};
|
|
2109
|
+
|
|
2110
|
+
/** @internal */
|
|
2111
|
+
export const TemplateGetManyResponse$outboundSchema: z.ZodType<
|
|
2112
|
+
TemplateGetManyResponse$Outbound,
|
|
2113
|
+
z.ZodTypeDef,
|
|
2114
|
+
TemplateGetManyResponse
|
|
2115
|
+
> = z.object({
|
|
2116
|
+
data: z.array(z.lazy(() => TemplateGetManyData$outboundSchema)),
|
|
2117
|
+
});
|
|
2118
|
+
|
|
2119
|
+
export function templateGetManyResponseToJSON(
|
|
2120
|
+
templateGetManyResponse: TemplateGetManyResponse,
|
|
2121
|
+
): string {
|
|
2122
|
+
return JSON.stringify(
|
|
2123
|
+
TemplateGetManyResponse$outboundSchema.parse(templateGetManyResponse),
|
|
2124
|
+
);
|
|
2125
|
+
}
|
|
2126
|
+
export function templateGetManyResponseFromJSON(
|
|
2127
|
+
jsonString: string,
|
|
2128
|
+
): SafeParseResult<TemplateGetManyResponse, SDKValidationError> {
|
|
2129
|
+
return safeParse(
|
|
2130
|
+
jsonString,
|
|
2131
|
+
(x) => TemplateGetManyResponse$inboundSchema.parse(JSON.parse(x)),
|
|
2132
|
+
`Failed to parse 'TemplateGetManyResponse' from JSON`,
|
|
2133
|
+
);
|
|
2134
|
+
}
|