Changelog
This is built from the release tags and the commits that touched the SDK between them. The SDK is pre-1.0, so a release can contain breaking changes; they are marked Breaking. Dates are the tag dates.
To move between releases, change the version in go get github.com/flowcatalyst/go-sdk@vX.Y.Z. The
module path changed once, at v0.0.9.
v0.7.0 (2026-11-30)
Section titled “v0.7.0 (2026-11-30)”FieldPolicyResponse.LockedMembers: the policy members the client does not let its applications override (set by platform administrators; read-only here). The SDK has no call to set an application’s override; use the platform’s/api/field-policies/{clientId}/applications/{appCode}routes.
v0.6.0 (2026-11-26)
Section titled “v0.6.0 (2026-11-26)”- Field-worker unlock keys.
FieldWorkers().ListUnlockKeysandRevokeUnlockKey(on an already revoked key it ends the sessions the key left),FieldUnlockKeyListResponse; the device’sUnlockKey; the policy’sUnlockKeysEnabledandUnlockKeyAttestation.PinReauthDaysaccepts 0 and defaults to 0. FieldPolicyResponse.ToRequestandFieldPolicies().Update: read the policy, change it, write every field back. A policyPUTreplaces the policy, so a request that leavesUnlockKeysEnabledout switches unlock keys off for the client, revokes its keys and signs those workers out.Putis unchanged and sends what it is given; preferUpdate.
v0.5.0 (2026-11-20)
Section titled “v0.5.0 (2026-11-20)”- Field-worker photos.
FieldWorkers().SetPhoto(raw image body, with its content type),GetPhoto(returns the bytes, an ETag, and whether the answer was not modified) andRemovePhoto;FieldPolicies().DeletePhotos;FieldWorkerResponse.Photo.FieldPolicyResponseandPutFieldPolicyRequestgainPhotosEnabledandWorkerMaySetOwnPhoto(aPUTreplaces the policy: a field left out takes its default,PhotosEnabledtrue andWorkerMaySetOwnPhotofalse). The client sends a body of bytes as it is and can read an answer of bytes.
v0.4.0 (2026-11-19)
Section titled “v0.4.0 (2026-11-19)”- Behaviour change: a token verifies only in the spelling it was issued in.
TokenValidator,HmacTokenValidatorandFieldTokenVerifierrefuse a token whose segments are not canonical base64url: another last character with the same significant bits,=padding,+or/, a line break, or whitespace in the token (for a field token,FieldReasonMalformed). A DPoP proof so spelled, with its key’sxoryso spelled, or with whitespace around it, isFieldReasonInvalidProof. Nothing the platform issues is affected; only a token someone re-spelled after it was issued, or one from a signer with a non-standard encoder, stops working. See Wire conventions. - A field worker can be created without a code.
EnsureFieldWorkerRequest.WorkerCodeis optional; left empty, the platform generates the code andFieldWorkerResponse.WorkerCodecarries it. NewEnsureFieldWorkerRequest.IdempotencyKey(only without a code): a repeat with the same key answers the same worker, andEnsuremarks such a request repeatable. PutFieldPolicyRequest.WorkerCodeDigitsandFieldPolicyResponse.WorkerCodeDigits: the number of digits of a generated worker code (3 to 6, default 3).
v0.3.0 (2026-11-18)
Section titled “v0.3.0 (2026-11-18)”- Breaking: retries follow the request’s repeatability. Before, every request was retried on 408, 425, 429,
500, 502, 503, 504 and on any transport error, so a
POSTthe platform had applied was sent again when its answer was lost: a provisioning retried after a gateway 502 was refused 409ALREADY_PROVISIONEDand its one-time secrets were gone, and a create could make a duplicate. Now aPOSTorPATCHis not repeated after 500, 502, 503, 504 or a transport failure after the request may have been sent. Only the syncs,FieldTokens.IntrospectandRouter.InPipelineBatchare marked repeatable. 408, 425, 429 and failures before sending are still retried for every request. See Retries. - New
*client.OutcomeUnknownErrorandclient.IsOutcomeUnknown. A non-repeatable request that ends with 502, 503, 504 or a transport failure after sending returns it instead of the bare*APIErroror transport error. It unwraps to them, soerrors.As(err, &apiErr)still sees a 502. Testclient.IsOutcomeUnknown(err)where you create or change something, read the state (for a provisioning,Applications.GetServiceAccount), and send again only if it was not applied. APOSTthat answers 500 is no longer retried. - New
FlowCatalystClient.PostRepeatablefor a customPOSTthat is safe to send twice. WithTimeoutbounds each attempt, not all attempts together, so a repeatable request that times out can be retried. With the defaults a call can take up to three timeouts plus the delays; bound the whole call with the context.WithRetry(0, ...)makes one request (it made none and returned nil).- A
DELETEthat answers 404 on a retry after an unknown outcome succeeds. Applications.GetServiceAccountis back:GET /api/applications/{id}/service-accountreturns the application’s*ServiceAccountResponse(no secret); 404 when the application is unknown or has no account; it needs read access to the application andservice-account:view. The earlier advice to callServiceAccounts().Getwith the application’sserviceAccountIdwas wrong: that is the id of the account’s service principal, not of the service account, so the lookup answers 404.
v0.2.0 (2026-11-18)
Section titled “v0.2.0 (2026-11-18)”ServiceAccountCredentials.Webhook(*ServiceAccountWebhookSecrets:AuthTokenandSigningSecret):Applications().ProvisionServiceAccountreturns the account’s webhook credentials, once, in plaintext. It is nil from a platform that predates them. Re-provisioning is unchanged: 409ALREADY_PROVISIONED, nothing rotated.JwksCache.Registerstarts a fetch in the background.Getstill makes its own first fetch so the caller sees the error.
v0.1.0 (2026-11-15)
Section titled “v0.1.0 (2026-11-15)”- Breaking: Go 1.27 or later. The SDK now uses
github.com/lestrrat-go/jwx/v4(v2 is deprecated), which needs Go 1.27 (jwx v4 needs an experiment flag on Go 1.26). The SDK’s CI matrix and README say so. - Breaking:
auth.JwksCache.Getreturns jwx v4’sjwk.Set, not v2’s. Nothing outside the SDK calls it in the platform. jwx v4 moved the key-set cache out of its core, so the SDK uses the project’sjwkfetchmodule (andhttprc, as before). The cache keeps its behaviour: the first fetch happens on first use, a failed first fetch keeps failing as a discovery error untilRefreshJWKS, cached keys are served during an outage, and a rotation is seen only after a refresh. - The MongoDB outbox reader moves to mongo-driver v2. The BSON written for every filter, update, sort and projection is byte-identical and documents decode the same.
v0.0.20 (2026-11-15)
Section titled “v0.0.20 (2026-11-15)”- Dependencies only: the SDK’s direct dependencies moved to their latest releases (among them pgx 5.13.0, go-redis 9.23.0 and jwx 2.1.7).
v0.0.19 (2026-11-13)
Section titled “v0.0.19 (2026-11-13)”Security fixes; behaviour changes:
webhook.Verifier.Verifyandwebhook.Validator.ValidatereturnErrMissingSecretfor an empty secret, before any other check. A verifier built from an unset environment variable no longer accepts requests signed with the empty key. Constructors are unchanged (no panic).scheduledjobs.Runner.ProcessSignedverifies withFLOWCATALYST_SIGNING_SECRETwhenBuilder.SigningSecretwas not called. A firing with a missing, invalid or stale signature isResultUnauthorized; no handler runs and no lock is taken. With no secret from either source it still runs the firing and logs one warning per runner.- New
Builder.RequireSignature()(default off): with no resolvable secretProcessandProcessSignedreturnResultUnauthorized. - New
webhook.SigningSecretEnvVarandwebhook.SigningSecretFromEnv(). - Path segments are escaped (
url.PathEscape) in everyclientmethod that put a caller-supplied id, code, name or identifier into the URL path. Ids made of[A-Za-z0-9_:-]are unchanged on the wire.
v0.0.18 (2026-11-10)
Section titled “v0.0.18 (2026-11-10)”- Access-token claims:
AccessTokenClaims.Tier(with a fallback to the legacy scope tier),IsAnchor,IsPartner,IsClient,PermissionsandHasPermissionfrom the scope,ClientIDsandClientCodesfromid:codeentries, andHasClientAccesson the id. - Scheduled-job runner:
Envelope.Concurrent(no lock for a concurrent job unlessEnforceLock), andBuilder.SigningSecretwithRunner.ProcessSigned(a bad or missing signature is refused).
v0.0.17 (2026-11-09)
Section titled “v0.0.17 (2026-11-09)”- Push rows.
outbox.TypePush,outbox.NewPushandoutbox.PushRow, andWritePushon both writers (outboxpgx.Sinkandoutboxsql.Writer). The row’s message group is the topic unless set; on Postgres the insert also runspg_notify('fc_outbox_push')so a listening relay delivers at once. A refused push is a*outbox.PushErrorwith a code. See Outbox. - The conformance harness for plan-built rows reads
connectionIdandidempotencyKey.
v0.0.16 (2026-11-08)
Section titled “v0.0.16 (2026-11-08)”- Dispatch jobs follow the framework’s current vectors. A job that names no client of its own now
carries the writer’s
ClientCode, except under the platform client_platform. An idempotency key is written as given and must not be blank or longer than 100 bytes of UTF-8.connectionIdandidempotencyKeycome last in the payload. - Field workers: an optional contact phone number (
PHONE_INVALIDfor a malformed one).
v0.0.15 (2026-11-06)
Section titled “v0.0.15 (2026-11-06)”- Field workers can be linked to a platform user for audit correlation only (it grants nothing):
FieldWorkers().LinkandUnlink,LinkedPrincipalIDonFieldPrincipal, and on the worker and introspection responses.
v0.0.14 (2026-11-06)
Section titled “v0.0.14 (2026-11-06)”- Field tokens from unenrolled devices.
FieldPrincipal.DeviceIDis empty andDeviceModeisUNENROLLEDwhen the token’s key is not an enrolled device. FieldPrincipal.Actor(from the token’sactclaim) andTestfor test identities.- Admin calls on
FieldWorkers():IssueBadge,ListBadges,RevokeBadge,BulkIssueBadges,CreateSignInCode. - Dispatch jobs send
connectionIdandidempotencyKey.DispatchJobgainsConnectionIDandIdempotencyKey, sent and validated.
v0.0.13 (2026-11-03)
Section titled “v0.0.13 (2026-11-03)”Behaviour changes:
FieldTokenVerifierrequiresexp. A field token with noexpclaim is refused asinvalid_token.auth.FieldMiddlewarerequiresFieldTokenVerifierConfig.BaseURLand panics at construction without it. The proof’shtuis compared withBaseURLplus the request path; theHostandX-Forwarded-Protofallback is gone.TokenValidatoracceptstoken_useidentityagain. The allowlist isapi,identityor absent;fieldand anything else stay refused. v0.0.12’s refusal ofidentitywas an unintended break.
v0.0.12 (2026-11-03)
Section titled “v0.0.12 (2026-11-03)”- Field-worker identity.
auth.FieldTokenVerifier,auth.FieldMiddlewareandauth.FieldPrincipalFromverify a field access token (RS256,typ fc-field+jwt) and its ES256 DPoP proof. - The admin client:
FieldWorkers(),FieldDevices(),FieldPolicies()andFieldTokens()(introspection). TokenValidatornow refusestoken_usevalues that are not an API credential. (This refusedidentitytoo, which v0.0.13 reversed.)
v0.0.11 (2026-11-01)
Section titled “v0.0.11 (2026-11-01)”- Ingestions: a target has a
kind(DISPATCH_JOBorEVENT),dataOnlyandwrapNonJson; an event target omits the delivery fields. An HTTP source gainsaccept(content types and body).
v0.0.10 (2026-10-30)
Section titled “v0.0.10 (2026-10-30)”A version bump only; no SDK change is recorded between v0.0.9 and v0.0.10.
v0.0.9 (2026-10-30)
Section titled “v0.0.9 (2026-10-30)”- New module path:
github.com/flowcatalyst/go-sdk, published to its own repository one commit per release. Breaking for imports only: changegithub.com/flowcatalyst/flowcatalyst/pkg/fcsdk/...togithub.com/flowcatalyst/go-sdk/.... - Ingestion responses carry
config,warningsandnamesHiddenas the platform sends them.
v0.0.8 (2026-10-30)
Section titled “v0.0.8 (2026-10-30)”Under the old module path.
- Breaking.
IngestionsResource.Failurestakesclient.IngestionFailureFilters(Category,Undismissed). - Ingestion notices, drafts and the save outcome (
Save.Outcome,Save.AwaitingPromote); versions carryDraftandDigest; failures carryCategoryand dismissal;DismissFailureandSecrets. client.WithOnBehalfOfsendsX-On-Behalf-Ofon platform-config set, delete and reveal, checked before sending.SFTPSource.AcceptAnyHostKey.- Platform-config list rows name the client’s identifier beside its stored id (
ClientIdentifier). RevealSecretdocuments the reveal permissions and the linked-client confinement.
v0.0.7 (2026-10-24)
Section titled “v0.0.7 (2026-10-24)”- The ingestion API:
Ingestions()andIngestionSets().
v0.0.6 (2026-10-23)
Section titled “v0.0.6 (2026-10-23)”- Platform-config reveal-secret:
PlatformConfig().RevealSecret, and"***"as the value of every SECRET property on reads.
v0.0.5 (2026-10-19)
Section titled “v0.0.5 (2026-10-19)”- The
/api/meroutes are checked against the OpenAPI lock.
v0.0.4, v0.0.3, v0.0.2 (2026-10-15 to 2026-10-16)
Section titled “v0.0.4, v0.0.3, v0.0.2 (2026-10-15 to 2026-10-16)”Version bumps only; no SDK change is recorded in these three releases.
v0.0.1 (2026-10-14)
Section titled “v0.0.1 (2026-10-14)”The first tagged release. The SDK had just been made its own Go module (Apache-2.0) with a release line, CI and a smoke test. It contained:
- The use-case envelope (
usecaseop) and the pgx unit of work (usecasepgx). - The outbox writers with rows following the shared vector, dispatch jobs, a
database/sqlwriter (outboxsql) and MySQL support. Dispatch jobs onusecaseop.Plan(Plan.Dispatch). syncwith connections, scheduled jobs, the OpenAPI document and docs, and principal-sync results.- The platform
client, with every DTO and method audited against the OpenAPI lock. auth,webhook,scheduledjobs,tsid,cacheandlock.- Database-backed tests moved to the nested
pkg/fcsdk/testsmodule.
Client changes made before v0.0.1
Section titled “Client changes made before v0.0.1”The platform client was audited method by method against the OpenAPI lock. These signatures changed from the pre-release code, and they are the shape you get today:
- 204 routes return only
error:Applications.Update,EnableForClient,DisableForClient;Clients.Update,EnableApplication,DisableApplication,UpdateApplications;DispatchPools.Update,Archive,Suspend,Activate;EventTypes.Update;Subscriptions.Update;Processes.Update;ScheduledJobs.Update,Pause,Resume,Archive,LogForInstance,CompleteInstance. {id}creates return*CreatedResponse:DispatchPools.Create,EventTypes.Create,Subscriptions.Create,Processes.Create.Connections.Createreturns the whole*ConnectionResponse.- Responses that were discarded are returned:
Connections.PauseandActivate;Principals.AddRole,RemoveRole,SetRoles,GrantClientAccess;Principals.SyncUsersreturns*SyncUsersResult(syncedEmails);Roles.ListForApplicationreturns[]RoleResponse. - Routes the platform did not have were removed:
Applications.GetServiceAccountandApplications.UpdateClientConfig(useGetClientConfig,EnableForClientandDisableForClient).GetServiceAccountcame back in v0.3.0, above, when the platform gainedGET /api/applications/{id}/service-account. The advice given at the time, to read the account withServiceAccounts().Getand the application’sserviceAccountId, was wrong: that id is the service principal’s, so the lookup answers 404. Point an application at an account withApplications.LinkServiceAccount. - Query parameters match the lock:
Applications.List(ctx, appType, active),Clients.List(ctx),Connections.List(ctx, clientID, status),EventTypes.List(ctx, *EventTypeFilters),Processes.List(ctx, *ProcessFilters). - Wrong routes fixed:
Processes.ArchiveandDispatchPools.Archivecall/archive(they had called the hardDELETE);DispatchPools.Deleteis new. - Required request members are always sent, including
falsewhere the platform requires the member.
The SDK’s own “Unreleased” note
Section titled “The SDK’s own “Unreleased” note”The SDK’s README still has an “Unreleased” section listing three behaviour changes. They are in v0.0.13, above. Treat that section as stale.