Conversation
Update code samples in getting-started/guides/tutorials/administration/ reference to match the SDK v2 API ahead of tailor-platform/sdk#1808 (v2 release line merge into main). docs/sdk/ and docs/app-shell/ are auto-synced and untouched. - db.type() -> db.table() - CLI binary tailor-sdk -> tailor - tailor.workflow.triggerWorkflow/triggerJobFunction -> startWorkflow/startJobFunction - tailor.workflow.resumeWorkflow -> resumeWorkflowExecution - resolver context.user -> context.caller; executor context.user -> context.invoker (TailorUser/TailorActor/TailorInvoker unified into TailorPrincipal) - TailorDB hooks/validators: {value,data,user} -> {input,invoker,now,oldValue}; type-level hooks take a single object instead of a per-field map; validators return string | void instead of boolean/tuple - Wait/Resolve guide rewritten around createWaitPoint/createWaitPoints - Removed references to the deleted openDownloadStream API - Noted the new @tailor-platform/sdk/runtime/globals opt-in import
# Conflicts: # docs/guides/function/builtin-interfaces.md # docs/guides/workflow/creating-workflows.md # docs/guides/workflow/index.md # docs/guides/workflow/monitoring-executions.md # docs/guides/workflow/wait-resolve.md
toiroakr
marked this pull request as ready for review
July 31, 2026 13:07
Fix chained db .type() call sites the earlier single-line sed missed, and align prose describing the schema-definition concept (headings, folder-structure comments, tutorial steps) with the v2 db.type() -> db.table() rename. Leaves literal config keys that are still named 'type' (relation()'s toward.type, executor trigger's type option) and field-level data-type wording (Field Types, GraphQL scalar types) unchanged, matching the published SDK's own reference docs.
…rator link
The SDK's own docs (auto-synced under docs/sdk/) removed docs/sdk/generator/
in the latest sync — defineGenerators() is replaced by definePlugins() in v2,
with the kysely-type generator becoming the kyselyTypePlugin plugin.
- Point the hand-maintained docs/sdk/index.md 'Generator' quick link at the
new plugin/ docs instead of the now-removed generator/ path (was breaking
the VitePress dead-link check on CI).
- Update the develop-from-scratch step-03/step-04 tailor.config.ts samples
from defineGenerators(["@tailor-platform/kysely-type", ...]) to
definePlugins(kyselyTypePlugin({ ... })).
anukiransolur
approved these changes
Aug 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
getting-started,guides,tutorials,administration, andreferenceahead of the SDK v2 release line merging intomain(a breaking major version bump).docs/sdk/anddocs/app-shell/are auto-synced from their source repos and are not touched here.db.type()->db.table()(including the "type" terminology in surrounding prose/headings), CLI binarytailor-sdk->tailor,tailor.workflow.triggerWorkflow->startWorkflow,tailor.workflow.triggerJobFunction->execJobFunction,tailor.workflow.resumeWorkflow->resumeWorkflowExecution,defineGenerators/@tailor-platform/kysely-type->definePlugins/kyselyTypePlugin.user->caller, executor contextuser->invoker(TailorUser/TailorActor/TailorInvokerunified intoTailorPrincipal).{value,data,user}->{input,invoker,now,oldValue}), type-level hooks changed from a per-field map to a single object, and validators now returnstring | voidinstead ofboolean/tuple.createWaitPoint/createWaitPoints, and removed references to the deletedopenDownloadStreamAPI.@tailor-platform/sdk/runtime/globalsopt-in import for ambienttailor.*/tailordb.*globals.maintwice to pick up the SDK's own doc auto-syncs (including theGenerator->Plugindocs rename) and verified against the actually published@tailor-platform/sdk@2.0.0package, not just the prerelease.Notes
tailor-platform/templates(docs/build-from-scratch/sdk) still need the same updates; tracked separately.