Skip to content

Releases

v2.1.0

Choose a tag to compare

@arex388 arex388 released this 05 Nov 19:48

Added:

  • DownloadDocumentAsync(Uri) and DownloadDocumentAsync(DownloadDocument.Request) on IDocuSealClient. 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 exposes Content, ContentType and ContentLength; it implements IDisposable, so dispose it once you are done with the stream.
  • Downloads go through a second named HttpClient that never carries X-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

Choose a tag to compare

@arex388 arex388 released this 03 Nov 22:42

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) on DocumentId, EventId, FolderId, SubmissionId, SubmitterId, TemplateId and UserId. It parses with NumberStyles.Integer and the invariant culture, so a leading sign and surrounding whitespace are accepted and a grouped or decimal form is rejected under every culture. On failure result is Empty and the method returns false; null is 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

Choose a tag to compare

@arex388 arex388 released this 03 Nov 04:33

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/ (was https://api.docuseal.co/). EU accounts set Region = DocuSealRegion.Eu on DocuSealClientOptions.

  • Factory base address: DocuSealClientFactory now sets BaseAddress on each client it creates from DocuSealClientOptions.Region, and its cache key is token plus region. A BaseAddress override on the named HttpClient no longer reaches factory-created clients; set Region instead.

  • DI registration: AddDocuSeal() and AddDocuSeal(DocuSealClientOptions) on IServiceCollection are 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 named HttpClient (nameof(IDocuSealClient)) instead of a typed client, and registers DocuSealClientOptions as a singleton.

  • Dependency floors: Microsoft.Extensions.Caching.Memory, Microsoft.Extensions.DependencyInjection.Abstractions, Microsoft.Extensions.Http, System.Text.Json and System.Net.Http.Json now 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.x Microsoft.Extensions stack should stay on 1.0.6.

  • EventType.SentEmail: serializes as send_email (was sent_email, which the API does not recognise).

  • EventType.OpenedEmail: now maps to open_email (was click_email). Code that filtered on OpenedEmail to find clicks must switch to the new EventType.ClickedEmail (click_email).

  • Enum integer values: FieldType, SubmitterStatus and EventType gained members and FieldType.Unknown is 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 now Awaiting and default(EventType) is now ApiCompletedForm. Unknown FieldType tokens read as FieldType.Unknown (were Text).

  • Submission.Status: type changed from SubmitterStatus to SubmissionStatus (Completed, Declined, Expired, Pending).

  • Document renamed to TemplateDocument: Template.Documents is IList<TemplateDocument>. The submission and submitter document shape is the new SubmissionDocument (Name, Url).

  • Event.OccuredAtUtc renamed to OccurredAtUtc (misspelling fixed).

  • Submission.Template: now TemplateSummary? (id, name, external_id, folder_name, created_at, updated_at) instead of the full Template. Call GetTemplateAsync for the full template.

  • Template.Submitters: element type is now TemplateSubmitter (Name, Uuid) instead of Submitter. Uuid matches Field.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?) and TemplateDocument.PreviewUri (Uri?, both absent from the HTML-create and documents-update responses), User.FirstName and User.LastName (string?).

  • CreateSubmission.Response: the Submission member is removed. The response now carries SubmissionId (SubmissionId?) and Submitters (IList<Submitter>, one entry per submitter, each with EmbedSrc). Read SubmissionId, or call GetSubmissionAsync for the submission.

  • Removed Submission.Email, Submission.OpenedAtUtc and Submission.SentAtUtc: these were submitter values. Read them from Submitter.

  • Removed ValidationFailedMessage and ValidationPattern from CreateSubmission.RequestSubmitterField and UpdateSubmitter.RequestField. They never reached the API. Use Validation (RequestFieldValidation, with Pattern and Message).

  • 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, [] or null. Changed members:

    • UpdateTemplate.Request.IsArchived (bool?) and Roles (IList<string>?).
    • UpdateTemplateDocuments: Request.MustMerge; RequestDocument.MustReplace and MustRemove (bool?); RequestDocument.Position (int?); RequestDocument.Name (string?, was required).
    • UpdateSubmitter.Request: IsCompleted, ResendEmail, ResendSms (bool?), Fields and Values (nullable); RequestField.IsReadonly (bool?).
    • CreateSubmission.Request: MustEmail and MustSms (bool?, the true default is removed; the API default is true), 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 bool or int must handle null.

  • Required members loosened:

    • CreateTemplate.Request.Name is string?.
    • CreateTemplate.RequestDocumentField: Name, Areas and Role are nullable and Type is FieldType?; nothing is required, matching the spec.
    • CloneTemplate.Request.Id is no longer required (the validator still rejects an unset id).
    • CreateSubmission.RequestSubmitter.Email is 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.Subject and Body are optional on CreateSubmission, CreateSubmissionFromEmails and UpdateSubmitter; an empty message serializes as {}, as the spec allows.
  • Widened types: CreateSubmission.RequestSubmitter.Values and UpdateSubmitter.Request.Values are IDictionary<string, object?>; RequestSubmitterField.DefaultValue and UpdateSubmitter.RequestField.DefaultValue are object?. Strings still work; reads need a cast.

  • CreateTemplateAsync(FileInfo): a missing file returns Invalid (was Cancelled). An extension other than .pdf or .docx returns Invalid without an HTTP call.

  • IDocuSealClient gained eight members: hand-written implementations of the interface must add them. They are listed under Added.

Added:

  • Region: DocuSealRegion enum (Global, Eu) and DocuSealClientOptions.Region (default Global), honoured by AddDocuSeal(options) and by IDocuSealClientFactory.CreateClient(DocuSealClientOptions). Hosts are https://api.docuseal.com/ and https://api.docuseal.eu/.
  • Enums: SubmissionStatus, SubmissionSource, TemplateSource, PageSize, FieldFontType, FieldFont, FieldAlign, FieldVerticalAlign and Currency (each with an Unknown member), and WebhookEventType. FieldType gained Heading, Number, Verification, Kba and Strikethrough. SubmitterStatus gained Awaiting and Declined. EventType covers all 18 spec tokens and gained ClickedEmail. Each enum has a converter registered with the client.
  • Models: TemplateSummary, TemplateSubmitter, SubmitterTemplate, SubmissionDocument, FieldValue, FieldPreferences (response), RequestFieldValidation and RequestFieldPreferences (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, plus Schemas and Fields (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.Next and Previous.
  • Response members: UpdateSubmitter.Response.Submitter; UpdateTemplate.Response.Id and UpdatedAtUtc; UpdateTemplateDocuments.Response.Template; ArchiveTemplate.Response and ArchiveSubmission.Response with Id and ArchivedAtUtc. These responses were previously empty.
  • Slices and methods:
    • CreateTemplateFromHtmlAsync (POST templates/html).
    • UpdateSubmissionAsync (PUT submissions/{id}). Setting IsArchived = false unarchives; ClearExpiration sends "expire_at": null.
    • GetSubmissionDocumentsAsync(SubmissionId) and GetSubmissionDocumentsAsync(GetSubmissionDocuments.Request) (GET submissions/{id}/documents; MustMerge requests the merged PDF).
    • CreateSubmissionFromEmailsAsync (POST submissions/emails), returning every submitter.
    • CreateSubmissionFromPdfAsync, CreateSubmissionFromDocxAsync and CreateSubmissionFromHtmlAsync (POST submissions/pdf, /docx, /html), returning Submission. The PDF slice has its own RequestDocumentField (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-only MustFlatten and MustRemoveTags; DOCX-only RequestDocument.IsDynamic; field IsRequired, Title, Description, Options, Validation, Preferences; area Option.
    • ListSubmissions: Status, Slug, IsArchived, After, Before.
    • ListSubmitters: Slug, `C...
Read more

v1.0.6

Choose a tag to compare

@arex388 arex388 released this 07 Oct 20:04
  • Fixed: A case sensitivity bug discovered by @cbordeman.
  • Updated: NuGet packages.

Backfilled release (2026-10-07): notes from CHANGELOG.md (2025-03-17).

v1.0.5

Choose a tag to compare

@arex388 arex388 released this 07 Oct 20:03
  • Updated: NuGet packages.

Backfilled release (2026-10-07): notes from CHANGELOG.md (2024-10-13).

v1.0.4

Choose a tag to compare

@arex388 arex388 released this 07 Oct 20:03
  • Internal code cleanup.

Backfilled release (2026-10-07): notes from CHANGELOG.md (2024-09-25).

v1.0.3

Choose a tag to compare

@arex388 arex388 released this 07 Oct 20:03
  • Internal code cleanup and improvements.
  • Bug fixes.
  • Presumably enabled Source Link.

Backfilled release (2026-10-07): notes from CHANGELOG.md (2024-09-23).

v1.0.2

Choose a tag to compare

@arex388 arex388 released this 07 Oct 20:03
  • Bug fixes.

Backfilled release (2026-10-07): notes from CHANGELOG.md (2024-08-08).

v1.0.1

Choose a tag to compare

@arex388 arex388 released this 07 Oct 20:03
  • Renamed AddDocuSealClient() to AddDocuSeal() because that's what it should have been from the beginning.

Backfilled release (2026-10-07): notes from CHANGELOG.md (2024-08-07).

v1.0.0

Choose a tag to compare

@arex388 arex388 released this 07 Oct 20:03
  • Initial release.

Backfilled release (2026-10-07): notes from CHANGELOG.md (2024-08-06).