Repository navigation
Releases
v2.1.0
Added:
DownloadDocumentAsync(Uri)andDownloadDocumentAsync(DownloadDocument.Request)onIDocuSealClient. They download a submission document URL, the combined document URL or the audit log URL under the same no-throw contract as every other operation, so an expired link is a failed result rather than an exception. The response streams the content on response headers and exposesContent,ContentTypeandContentLength; it implementsIDisposable, so dispose it once you are done with the stream.- Downloads go through a second named
HttpClientthat never carriesX-Auth-Token, so the account token is not sent to the file host. Verified live against the submission document and audit log URLs.
Breaking:
- None for a consumer that injects
IDocuSealClient. A hand-written implementation of the interface (an adapter or a test double) must add the two new members, since .NET Standard 2.0 has no default interface members. (#23)
v2.0.1
Version 2.0.1 is a patch release that adds a no-throw parse to the strongly typed ids. The generator emits TryParse only for net6.0 and later targets, and the library compiles against netstandard2.0 alone, so 2.0.0 shipped the ids with the throwing Parse(string) and nothing else for turning a stored string back into an id. Nothing existing changes shape or behaviour.
Added:
TryParse(string? input, out T result)onDocumentId,EventId,FolderId,SubmissionId,SubmitterId,TemplateIdandUserId. It parses withNumberStyles.Integerand the invariant culture, so a leading sign and surrounding whitespace are accepted and a grouped or decimal form is rejected under every culture. On failureresultisEmptyand the method returnsfalse;nullis a failure, not an exception. The overload is unconditional and distinct from the generator's guarded(string?, IFormatProvider?, out T)and span forms, so it would coexist with them if a net7.0 target were ever added.IParsable<T>is not implemented; it does not exist on netstandard2.0.
if (SubmissionId.TryParse(storedValue, out var submissionId)) {
var submission = await docuSeal.GetSubmissionAsync(submissionId);
}v2.0.0
Version 2.0.0 is one major release that aligns the client with the DocuSeal OpenAPI specification (https://console.docuseal.com/openapi.yml). It adds the endpoints, models, enums and webhook parser the spec defines, corrects request and response shapes, and fixes several defects. The default host moved from https://api.docuseal.co/ to https://api.docuseal.com/; EU accounts select https://api.docuseal.eu/ through a new region option. Each Breaking bullet names the member that changed and what a consumer must do.
Breaking:
-
Default host: the default base address is now
https://api.docuseal.com/(washttps://api.docuseal.co/). EU accounts setRegion = DocuSealRegion.EuonDocuSealClientOptions. -
Factory base address:
DocuSealClientFactorynow setsBaseAddresson each client it creates fromDocuSealClientOptions.Region, and its cache key is token plus region. ABaseAddressoverride on the namedHttpClientno longer reaches factory-created clients; setRegioninstead. -
DI registration:
AddDocuSeal()andAddDocuSeal(DocuSealClientOptions)onIServiceCollectionare now C#extension(IServiceCollection)members. Call sites compile unchanged, but the compiled method names changed, so applications built against 1.x must be recompiled. Single-account registration now uses a namedHttpClient(nameof(IDocuSealClient)) instead of a typed client, and registersDocuSealClientOptionsas a singleton. -
Dependency floors:
Microsoft.Extensions.Caching.Memory,Microsoft.Extensions.DependencyInjection.Abstractions,Microsoft.Extensions.Http,System.Text.JsonandSystem.Net.Http.Jsonnow require 10.0.12 or later. FluentValidation is pinned to[11.12.0,12.0.0)because v12 dropped netstandard2.0. Consumers on the 9.xMicrosoft.Extensionsstack should stay on 1.0.6. -
EventType.SentEmail: serializes assend_email(wassent_email, which the API does not recognise). -
EventType.OpenedEmail: now maps toopen_email(wasclick_email). Code that filtered onOpenedEmailto find clicks must switch to the newEventType.ClickedEmail(click_email). -
Enum integer values:
FieldType,SubmitterStatusandEventTypegained members andFieldType.Unknownis now value 0, so existing numeric values shift. Do not persist these enums as integers; persist the wire token or the member name.default(SubmitterStatus)is nowAwaitinganddefault(EventType)is nowApiCompletedForm. UnknownFieldTypetokens read asFieldType.Unknown(wereText). -
Submission.Status: type changed fromSubmitterStatustoSubmissionStatus(Completed,Declined,Expired,Pending). -
Documentrenamed toTemplateDocument:Template.DocumentsisIList<TemplateDocument>. The submission and submitter document shape is the newSubmissionDocument(Name,Url). -
Event.OccuredAtUtcrenamed toOccurredAtUtc(misspelling fixed). -
Submission.Template: nowTemplateSummary?(id, name, external_id, folder_name, created_at, updated_at) instead of the fullTemplate. CallGetTemplateAsyncfor the full template. -
Template.Submitters: element type is nowTemplateSubmitter(Name,Uuid) instead ofSubmitter.UuidmatchesField.SubmitterId. -
Newly nullable response members:
Submission.AuditUrl(Uri?),Submission.CreatedBy(User?),Submission.Slug(string?, absent from one-off create responses),Submitter.Email(string?),TemplateDocument.Name(string?) andTemplateDocument.PreviewUri(Uri?, both absent from the HTML-create and documents-update responses),User.FirstNameandUser.LastName(string?). -
CreateSubmission.Response: theSubmissionmember is removed. The response now carriesSubmissionId(SubmissionId?) andSubmitters(IList<Submitter>, one entry per submitter, each withEmbedSrc). ReadSubmissionId, or callGetSubmissionAsyncfor the submission. -
Removed
Submission.Email,Submission.OpenedAtUtcandSubmission.SentAtUtc: these were submitter values. Read them fromSubmitter. -
Removed
ValidationFailedMessageandValidationPatternfromCreateSubmission.RequestSubmitterFieldandUpdateSubmitter.RequestField. They never reached the API. UseValidation(RequestFieldValidation, withPatternandMessage). -
Optional request members are nullable and have no defaults. An unset value is now omitted from the request body rather than sent as
false,0,[]ornull. Changed members:UpdateTemplate.Request.IsArchived(bool?) andRoles(IList<string>?).UpdateTemplateDocuments:Request.MustMerge;RequestDocument.MustReplaceandMustRemove(bool?);RequestDocument.Position(int?);RequestDocument.Name(string?, was required).UpdateSubmitter.Request:IsCompleted,ResendEmail,ResendSms(bool?),FieldsandValues(nullable);RequestField.IsReadonly(bool?).CreateSubmission.Request:MustEmailandMustSms(bool?, thetruedefault is removed; the API default istrue),Order(SubmitterOrder?).RequestSubmitter:IsCompleted,MustEmail,MustSms(bool?),Fields,Values.RequestSubmitterField.IsReadonly(bool?).
These are source-compatible in object initializers. Code that reads them into a non-nullable
boolorintmust handlenull. -
Required members loosened:
CreateTemplate.Request.Nameisstring?.CreateTemplate.RequestDocumentField:Name,AreasandRoleare nullable andTypeisFieldType?; nothing is required, matching the spec.CloneTemplate.Request.Idis no longerrequired(the validator still rejects an unset id).CreateSubmission.RequestSubmitter.Emailis optional. A submitter needs an email, a phone or a name, which is the rule the API itself enforces (verified live: a role-only submitter is rejected with 422, a name-only one is accepted).RequestMessage.SubjectandBodyare optional onCreateSubmission,CreateSubmissionFromEmailsandUpdateSubmitter; an empty message serializes as{}, as the spec allows.
-
Widened types:
CreateSubmission.RequestSubmitter.ValuesandUpdateSubmitter.Request.ValuesareIDictionary<string, object?>;RequestSubmitterField.DefaultValueandUpdateSubmitter.RequestField.DefaultValueareobject?. Strings still work; reads need a cast. -
CreateTemplateAsync(FileInfo): a missing file returnsInvalid(wasCancelled). An extension other than.pdfor.docxreturnsInvalidwithout an HTTP call. -
IDocuSealClientgained eight members: hand-written implementations of the interface must add them. They are listed under Added.
Added:
- Region:
DocuSealRegionenum (Global,Eu) andDocuSealClientOptions.Region(defaultGlobal), honoured byAddDocuSeal(options)and byIDocuSealClientFactory.CreateClient(DocuSealClientOptions). Hosts arehttps://api.docuseal.com/andhttps://api.docuseal.eu/. - Enums:
SubmissionStatus,SubmissionSource,TemplateSource,PageSize,FieldFontType,FieldFont,FieldAlign,FieldVerticalAlignandCurrency(each with anUnknownmember), andWebhookEventType.FieldTypegainedHeading,Number,Verification,KbaandStrikethrough.SubmitterStatusgainedAwaitingandDeclined.EventTypecovers all 18 spec tokens and gainedClickedEmail. Each enum has a converter registered with the client. - Models:
TemplateSummary,TemplateSubmitter,SubmitterTemplate,SubmissionDocument,FieldValue,FieldPreferences(response),RequestFieldValidationandRequestFieldPreferences(request, shared by the template, submission and submitter slices). - Model members:
Template:Slug,Preferences,VariablesSchema,AuthorId,Source,ExternalId,HasSharedLink.Submission:Slug,Source,CombinedDocumentUrl,ExpireAtUtc,Variables,Documents, plusSchemasandFields(populated only by the one-off create responses).Submitter:Uuid,Slug,DeclinedAtUtc,ExternalId,Metadata,Preferences,Template,Events,Values,Documents,EmbedSrc.Event.Data.Field.Preferences.ResponsePagination.NextandPrevious. - Response members:
UpdateSubmitter.Response.Submitter;UpdateTemplate.Response.IdandUpdatedAtUtc;UpdateTemplateDocuments.Response.Template;ArchiveTemplate.ResponseandArchiveSubmission.ResponsewithIdandArchivedAtUtc. These responses were previously empty. - Slices and methods:
CreateTemplateFromHtmlAsync(POSTtemplates/html).UpdateSubmissionAsync(PUTsubmissions/{id}). SettingIsArchived = falseunarchives;ClearExpirationsends"expire_at": null.GetSubmissionDocumentsAsync(SubmissionId)andGetSubmissionDocumentsAsync(GetSubmissionDocuments.Request)(GETsubmissions/{id}/documents;MustMergerequests the merged PDF).CreateSubmissionFromEmailsAsync(POSTsubmissions/emails), returning every submitter.CreateSubmissionFromPdfAsync,CreateSubmissionFromDocxAsyncandCreateSubmissionFromHtmlAsync(POSTsubmissions/pdf,/docx,/html), returningSubmission. The PDF slice has its ownRequestDocumentField(name, type, role, required, title, description, areas, options; nothing required), matching the spec's one-off field shape.
- Request members:
ListTemplates:Slug,ExternalId,IsShared,After,Before.CloneTemplate:ExternalId.MergeTemplates:ExternalId,HasSharedLink,Roles.CreateTemplate:ExternalId,Folder,HasSharedLink; PDF-onlyMustFlattenandMustRemoveTags; DOCX-onlyRequestDocument.IsDynamic; fieldIsRequired,Title,Description,Options,Validation,Preferences; areaOption.ListSubmissions:Status,Slug,IsArchived,After,Before.ListSubmitters:Slug, `C...
v1.0.6
- Fixed: A case sensitivity bug discovered by @cbordeman.
- Updated: NuGet packages.
Backfilled release (2026-10-07): notes from CHANGELOG.md (2025-03-17).