# © 2026 1001636023 Ontario Inc., operating as AlmondTill/G3N. All rights reserved. # Use of this documentation is subject to the Terms of Service at https://www.almondtill.com/terms. "One server-composed reference caption: the caption of a record this record references via a declared ID-class field. A list field answers one row per entry. caption is null when the reference cannot be composed (a foreign-root record — no cross-tenant leak; a dangling id). Provider/system identifiers (Stripe refs, saga locks) never appear — they are declared external." type RefCaption { "The referencing field name on the carrying record (e.g. brandId, owners)." field: String! "The referenced id verbatim as the record carries it (a id; the org costCentre answers its sysId)." id: ID! "The referenced record's caption — null when not composable (foreign root · dangling)." caption: String "The declared target construct type of the reference: fixed refs verbatim; a polymorphic ref answers the sibling-resolved type, null when the sibling names nothing. Schema-level knowledge — never data." refType: String "The referenced construct's id when it differs from id (a sysid-storing field — the org costCentre), answered only when the record is readable under your root; null everywhere else (id IS the construct id). Fetch the record by refId when present, else by id." refId: ID "WHY caption is null: dangling = the referenced record does not exist (purged, or never did); unreadable = it exists but this session cannot read it (a foreign root — the word never says which). null on a captioned row." reason: String } "A resolved session principal — what an authenticated call acts as." type Principal { sessionId: ID! "The principal class — user | api | device." kind: String! "The User construct the session is a principal of — user kind only." userId: ID "The acting Account — user + api kinds (the api kind's = the minter's Account); null on device." accountId: ID "The ApiKey the session was exchanged from — api kind only." apiKeyId: ID "The Device the session belongs to — the device kind, AND the user kind on a composite POS session; null otherwise." deviceId: ID "The device's canned hardware class — the device kind + the composite POS session's user kind; null otherwise." deviceType: String "The device's live 0..1 Register binding — the device kind + the composite POS session's user kind (null while unpaired / on pi_bridge / without a device facet). The register derives its till + selling location from this, never from a device(id) read (a cashier tier cannot make one)." registerId: ID "The device's parent LogicalFacility (the selling location) — the device kind + the composite POS session's user kind; null otherwise." logicalFacilityId: ID "The organization the session acts in (the attribution org)." orgId: ID! "The org-group family root." rootId: ID! "The live effective capability, re-derived from the account status every call — user/api kinds; null on device." capability: String "The session’s organization group caption; read from the group record on every me — null only when the session names no group (never for a live session)." groupCaption: String "The captions of the roles the session acts with in its organization — user kind only; null on the api/device kinds (their authority is the key’s / the device’s, not a role’s)." roleCaptions: [String!] "The acting organization's creation instant (the Organization record's createdAt, ISO-8601): the office's What's new starts at the later of the platform's public launch day and this day, so a merchant never sees changes older than their own start; null only when the organization record is absent." orgCreatedAt: String } "The result of a successful login — the opaque bearer token (returned once) + the live principal." type LoginResult { token: String! principal: Principal! } "One admissible organization for a proven credential." type LoginChoiceOrg { orgId: ID! caption: String! "The OR-… organization sysId — the human-facing reference chip (the picker never shows a id)." sysId: String! } "One org group's picker section — the caption is a header, never a choice; only role-bearing active orgs appear." type LoginChoiceGroup { groupId: ID! groupCaption: String! orgs: [LoginChoiceOrg!]! } "The loginChoices answer — groups caption-sorted; empty means the credential proved but no workspace admits it (a fact, not an oracle)." type LoginChoicesResult { groups: [LoginChoiceGroup!]! } "The result of a successful consumer register/login — the opaque bearer token (returned once; only its hash is ever stored) + the shopper's own profile. Consumer sessions carry NO Account and NO capability tier — the canned CONSUMER_SESSION_OPERATIONS roster is their entire authz surface (default-deny both directions)." type ConsumerAuthResult { token: String! consumer: Consumer! } "The result of a successful collaborator login — the opaque bearer token (returned once; only its hash is ever stored) + the collaborator's own record. Collaborator sessions carry NO Account; their ruled-op authz is the acted-org Roles, evaluated + enforced unconditionally (the api-plane law — deny-by-default)." type CollaboratorAuthResult { token: String! collaborator: Collaborator! } "The show-once invite mint." type CollaboratorInviteMint { collaborator: Collaborator! inviteToken: String! expiresAt: String! } "One org the collaborator may sign into." type CollaboratorLoginChoice { orgId: ID! caption: String! sysId: String! } "The collaboratorLoginChoices answer — orgs caption-sorted; the credential proved before anything answers (no oracle)." type CollaboratorLoginChoicesResult { orgs: [CollaboratorLoginChoice!]! } "The calling collaborator's access picture: the same projection types + the same pure evaluator as the staff read (no second mechanism, no drift). Evaluates descriptors only — the session/capability composition already gated this call." type CollaboratorAccess { "The session's acting org — the coordinate the login picked (the wire's own answer; the org-choice projection reused)." actingOrg: CollaboratorLoginChoice! "The collaborator's roles AT the acting org as loaded live (deduplicated) — non-active roles visibly contribute nothing." roles: [EffectivePermissionsRole!]! "One entry registry operation (sorted — the whole descriptor universe): can this session do X, and WHY, for every X." operations: [EffectivePermission!]! } "The group-scoped, name-bearing construct types the caption search read-model indexes (generated from the contracts SEARCHABLE_CONSTRUCT_TYPES SoT — anti-drift)." enum SearchableType { Organization CostCentre User PhysicalFacilityLocation PhysicalFacility LogicalFacility Zone Bin Brand Season Tag Characteristic CustomUom Manufacturer Vendor Category Division OptionGroup OptionValue Style Product Collection Contact Promotion LoyaltyProgram CustomerPriceGroup Affiliate CorporateCustomer PriceList Consumer Task Team Collaborator PurchaseOrder Receipt Rtv VendorInvoice Transfer TransferRequest Count Order Return Invoice CreditNote DebitNote Payment Refund Dispute Fulfillment TillSession Appointment Warranty CsCase GiftRegistry ApprovalRequest Register Device SchedulableResource StoredValueInstrument ExemptionCertificate TaxRegistration Storefront Segment Dashboard } "One caption-search typeahead hit — the display projection of a matched construct." type SearchHit { id: ID! type: SearchableType! rootId: ID! caption: String! status: String! "The human-facing system id (sysId); null for a construct minted before the sysId scheme." sysId: String } "one cross-type search hit — the display projection + the token that matched (a caption word · the sysId · the master's code), so a face can say why the record answered." type SearchAllHit { id: ID! "The human-facing system id (sysId); null for a construct minted before the sysId scheme." sysId: String caption: String! status: String! "The folded token the prefix matched — a caption word, the sysId or the record's own code." token: String! } "the hits of ONE searchable type, in the index's order (folded token · type · id)." type SearchAllGroup { type: SearchableType! hits: [SearchAllHit!]! } "ONE typeahead page over every kind of record the caller may read — the hits grouped by type in the searchable-type order; more says rows remained beyond this page (a typeahead page is born bounded — no cursor; a face opens the full results elsewhere)." type SearchAllPage { groups: [SearchAllGroup!]! more: Boolean! } "One descriptor contribution — the carrying Role + the descriptor that matched (the verification-mechanism attribution)." type DescriptorContribution { "The Role construct id carrying the matching descriptor." roleId: ID! descriptor: RoleDescriptor! } "One operation's evaluation under the flat algorithm: permitted ⟺ at least one allow matched AND no disallow matched." type EffectivePermission { "The logical service name (today: api)." service: String! "The service external operation name (a schema Query/Mutation field)." action: String! permitted: Boolean! "The allow descriptors that matched, attributed to their carrying roles." allows: [DescriptorContribution!]! "The disallow descriptors that matched (ANY entry here forces permitted: false), attributed to their carrying roles." disallows: [DescriptorContribution!]! } "An assigned role the evaluation considered — the user orgRoles selection for the org, loaded live. Only active roles contribute: a non-active role is listed with its status and contributes nothing (neither polarity) — visibly retired from evaluation." type EffectivePermissionsRole { roleId: ID! caption: String! status: String! } "The verification mechanism: (user, org) → the full effective-permission map + which role contributed each descriptor, computed by the same evaluator the future gate uses (preview ≡ enforcement — no second mechanism, no drift). Evaluates descriptors only: it does NOT compose the account-capability / dark-org / user-lifecycle gates." type EffectivePermissions { "The user roles AT the org as loaded live (deduplicated) — non-active roles visibly contribute nothing." roles: [EffectivePermissionsRole!]! "One entry registry operation (sorted — the whole descriptor universe): can the user do X, and WHY, for every X." operations: [EffectivePermission!]! "The authority tier the roles resolve to. The office's landing lens picks its starter layout by it." authorityTier: String } "One structured-filter clause: `field` must be on the family's declared filterable roster (taught in the listing's own doc — an unknown field's refusal re-teaches it); `op` must fit the field's kind (text contains/begins_with · enum/ref any_of · date on/before/after/between · number/money eq/lt/gt/between · flag is); `values` carries 1..25 strings — exactly ONE for the single-value operators, exactly TWO ordered low,high for `between`, one-or-more for `any_of`. Value grammars: dates are calendar days `YYYY-MM-DD` (the executor owns the UTC day window); number/money are decimal strings (compared exactly, never floated); flags are `true`/`false`; refs are ids; enum tokens must be of the declared vocabulary. Every violation refuses VALIDATION/INVALID naming the problem — the op stays String (not an enum) precisely so the refusal can teach instead of a transport parse error." input FilterClauseInput { field: String! op: String! values: [String!]! } "The structured filter: AND across clauses · OR within a clause's values; max 8 clauses, one clause per (field, operator) pair. Absent means unfiltered; an empty clause list refuses (say nothing, or say something)." input FilterInput { clauses: [FilterClauseInput!]! } "One sort key: missing-fact records trail in either direction; ties resolve by id, so every order is total and pages are stable." input SortInput { field: String! direction: SortDirection! } "The sort directions (the contracts SORT_DIRECTIONS vocabulary verbatim: asc · desc)." enum SortDirection { asc desc } "One interpreted filter clause." type InterpretedClause { field: String! op: String! values: [String!]! } "One part of the written request the interpreter could not express in the filter grammar — `part` quotes the user's own words; `reason` speaks the same teaching voice the filter validator refuses in (an inexpressible ask and an invalid hand-built clause read identically)." type InterpretUnmappablePart { part: String! reason: String! } "One in-tenant record a reference name might mean (the office lookup picker pre-opens over these)." type InterpretRefCandidate { id: ID! caption: String! } "One reference name that did not resolve to exactly one record — empty candidates = no match at all; the human picks (names never resolve by guess)." type InterpretAmbiguousRef { field: String! text: String! candidates: [InterpretRefCandidate!]! } "The NL interpreter's answer: grammar clauses that survived the strict validator, the parts that could not map (worded), and the reference names needing a human pick." type InterpretedFilter { clauses: [InterpretedClause!]! unmappable: [InterpretUnmappablePart!]! ambiguousRefs: [InterpretAmbiguousRef!]! } "One plan step: `family` must be a plan-searchable family; the optional `filter` is the FilterInput grammar verbatim, validated against that family's roster exactly as its filtered listing validates it." input SearchPlanStepInput { family: String! filter: FilterInput } "The two hop directions (the contracts PLAN_HOP_DIRECTIONS vocabulary verbatim: outbound · inbound): outbound follows the current family's reference field to the family it names (one keyed read per distinct id); inbound walks the named family and keeps the rows whose reference field names a current match." enum SearchPlanHopDirection { outbound inbound } "One hop along a known relationship — a construct-graph reference or a roster ref field, both ends plan-searchable; a hop that is not a relationship of the current family refuses naming the legal ones — with its own optional clauses against the family it reaches." input SearchPlanHopInput { direction: SearchPlanHopDirection! field: String! family: String! filter: FilterInput } "The whole plan: the start step, zero to 3 hops in order, and the answer's ceiling (`limit` 1..200; absent = 100). Everything validates against the registry before anything runs; a JSON null on an optional field reads as absent." input SearchPlanInput { start: SearchPlanStepInput! hops: [SearchPlanHopInput!] limit: Int } "One walked family's measured size (keys only, before any read) — `over` when the count passed the budget that remained when it was measured." type SearchPlanWalkEstimate { family: String! size: Int! over: Boolean! } "The estimate the run made before reading a record: every walked family's size plus one frontier ceiling (1000) per outbound hop." type SearchPlanEstimate { examinedMax: Int! walks: [SearchPlanWalkEstimate!]! } "One answer row — the six summary fields of a record of the plan's last family." type SearchPlanMatch { family: String! id: ID! sysId: String caption: String! status: String! updatedAt: String } "A finished plan run: the plan in words, the pre-read estimate, the matches newest first up to the limit, the exact matchCount, the records examined, the elapsed ms." type SearchPlanRun { words: String! estimate: SearchPlanEstimate! matches: [SearchPlanMatch!]! matchCount: Int! examined: Int! elapsedMs: Int! } "One part of a plain-words ask no plan could express: `step` 0 = the ask as a whole (the router's own), 1 = the start family, k + 1 = hop k; `family` is null at step 0; `reason` speaks the same teaching voice the filter validator refuses in." type SearchPlanDraftUnmappable { step: Int! family: String part: String! reason: String! } "One reference name in a step's conditions that did not resolve to exactly one record: the human picks from the candidates (empty = no match at all); `step` 1 = the start, k + 1 = hop k." type SearchPlanDraftAmbiguousRef { step: Int! family: String! field: String! text: String! candidates: [InterpretRefCandidate!]! } "Nothing has run." type SearchPlanDraft { words: String! planJson: String! reasoning: String! unmappable: [SearchPlanDraftUnmappable!]! ambiguousRefs: [SearchPlanDraftAmbiguousRef!]! } "Nothing has run and nothing is saved." type ReportDraft { words: String! specJson: String! reasoning: String! unmappable: [SearchPlanDraftUnmappable!]! ambiguousRefs: [SearchPlanDraftAmbiguousRef!]! } "ONE candidate question the assistant drafted: the strict TrainingQuestionDraft shape — the prompt, 2..6 options, the right one (0-based), the explanation, and the play step it tests (null = the whole course). Nothing is stored: save each one you keep through createTrainingQuestion with source drafted." type TrainingQuestionDraft { prompt: String! options: [String!]! correctIndex: Int! explanation: String! stepN: Int } "The draft call's answer: the course, the kept candidates (at most the count asked) and how many the strict schema dropped — loud, never silent." type TrainingQuestionDrafts { courseKey: String! candidates: [TrainingQuestionDraft!]! dropped: Int! } "One training requirement that applies to YOU: the rule, its due instant (the later of your role grant and the rule's birth, plus its grace days) and whether a valid certificate satisfies it today (certified · certificateId)." type MyTrainingRequirement { requirementId: ID! roleTemplateKey: String! courseKey: String! passMark: Int! graceDays: Int! dueAt: String! certified: Boolean! certificateId: ID "The refresh standing — derived at read time, never stored: certified AND the certificate was passed on an older version of the course (the play’s content changed, or the play is gone); false whenever not certified. Sit again to refresh." refreshDue: Boolean! "When the refresh falls due — the daily sweep’s first observation of the change + the strictest applicable graceDays; null until the sweep has observed it (the face words a due-less refresh honestly)." refreshDueAt: String } "One play's reading — the steps you have read (1-based, sorted, unique) and the last read instant." type MyTrainingPlayProgress { playKey: String! stepsRead: [Int!]! lastReadAt: String! } "One course's standing for you — sittings started today (UTC), the open sitting, the last sitting, the best score, whether you ever passed, the latest certificate minted for it.: a row stands only for a course you engaged with (a sitting started or sat, a practice started or handed in) — the sweep's marks alone surface none; + practiceToday · lastPracticeScore · lastPracticeAt." type MyTrainingCourse { courseKey: String! attemptsToday: Int! openAttemptId: ID lastAttemptId: ID bestScore: Int passed: Boolean! certificateId: ID "Practices started today (UTC) — the practice's OWN cap (20 a day), never the sitting's." practiceToday: Int! "The last practice's score and instant — null until a practice was handed in (the last replaces the previous)." lastPracticeScore: Int lastPracticeAt: String } "Your training standing — the ONE self read the face needs: the requirements that apply to you · your progress per play · your courses · your open sittings · your valid certificates." type MyTraining { requirements: [MyTrainingRequirement!]! progress: [MyTrainingPlayProgress!]! courses: [MyTrainingCourse!]! openAttempts: [TrainingAttempt!]! certificates: [TrainingCertificate!]! } "ONE drawn question as the sitter sees it: the prompt, its options and the play step it tests (null = the whole course). correctIndex and explanation are null while the attempt is open (or doomed — never graded) and present once it is submitted — for every caller: the key never rides an open sitting." type TrainingSittingQuestion { id: ID! stepN: Int prompt: String! options: [String!]! correctIndex: Int explanation: String } "ONE sitting opened whole: the attempt + its drawn questions in the stored draw's order (a since-retired question still answers — the draw is history; a row that cannot be read is skipped). A NON-subject reader's view obeys the training.score_visibility policy of their acting organization (2 whole · 1 the answers withheld · 0 the answers and the score withheld); the subject always sees all of their own." type TrainingSitting { attempt: TrainingAttempt! questions: [TrainingSittingQuestion!]! } "ONE drawn question as you practise it" type TrainingPracticeQuestion { id: ID! sysId: String! stepN: Int prompt: String! options: [String!]! } "A practice draw opened: the course, the pass mark you rehearse against (the strictest rule binding your roles for the course, else 80), the drawn questions in the order asked, when. Nothing is certified." type TrainingPracticeSitting { courseKey: String! passMark: Int! questions: [TrainingPracticeQuestion!]! startedAt: String! } "ONE question of a handed-in practice: the key, the explanation and your pick (yourAnswer). A question retired for good since the start graded as missed and is not listed." type TrainingPracticeResultQuestion { id: ID! sysId: String! stepN: Int prompt: String! options: [String!]! correctIndex: Int! explanation: String! yourAnswer: Int! } "A handed-in practice: the score over the whole draw, the pass mark, passed (the answer's alone — never a standing; no certificate, no notice), the readable questions with their keys and your picks, practices started today, when. The last result replaces the previous one in your own progress record." type TrainingPracticeResult { courseKey: String! score: Int! passMark: Int! passed: Boolean! questions: [TrainingPracticeResultQuestion!]! practiceToday: Int! submittedAt: String! } "What a tutor answer rests on: a step of the course (ref = the step number) or a question of the bank (ref = its sysId)." type TrainingTutorGround { kind: String! ref: String! } "The tutor's answer: plain words (at most 1200 characters), the grounds it rests on, the model that spoke. Nothing is stored." type TrainingTutorAnswer { answer: String! grounds: [TrainingTutorGround!]! model: String! } "One background search's result set: the matches of the plan's last family newest first up to the plan's limit, the exact matchCount, the records examined, `partial` (the job halted before finishing — refused, expired, or cancelled; the partials survive), `expired` (the 7-day result set is gone; the job record stays), and the instant it expires (absent while the job still runs)." type SearchJobMatches { matches: [SearchPlanMatch!]! matchCount: Int! examined: Int! partial: Boolean! expired: Boolean! expiresAt: String } "The export file formats — derived from the contracts EXPORT_FORMATS: csv (RFC 4180 through the one cell rule) · jsonl (JSON Lines — one record per line)." enum ExportFormat { csv jsonl } "One finished export's download: the presigned GET (`url`, alive until `expiresAt` — 300 s), the name to save it as, and the file's facts off the record — bytes · rowCount · format · `partial` (the run halted before the end; the file holds what was written)." type ExportJobDownload { url: String! expiresAt: String! fileName: String! bytes: Int! rowCount: Int! format: ExportFormat! partial: Boolean! } "The report measure functions — derived from the contracts REPORT_MEASURE_FNS: count takes no field; sum · min · max · avg take ONE money or number field of the terminal family." enum ReportMeasureFn { count sum min max avg } "The calendar buckets a date group key takes — derived from the contracts REPORT_DATE_BUCKETS: UTC on the stored instant; week is the ISO-8601 week (Monday-based; its year may differ from the calendar year at the boundaries)." enum ReportDateBucket { day week month quarter year } "One group key: a roster field of the terminal family of kind enum · reference · text · flag · date; `bucket` is required on a date field and forbidden on every other kind." input ReportGroupKeyInput { field: String! bucket: ReportDateBucket } "One measure: `count` alone (no field — and it is always present whether named or not), or sum · min · max · avg over ONE money or number field (`field` required for those four)." input ReportMeasureInput { fn: ReportMeasureFn! field: String } "The report's sort — over an output column name (`totalMinor.sum`, `createdAt.month`, `count`, a projected field, …), never a raw roster field; the direction is the contracts SORT_DIRECTIONS vocabulary. Absent: groups by count desc then the keys asc; rows newest first." input ReportSortInput { by: String! direction: SortDirection! } "The whole report spec: the plan (the SearchPlanInput grammar verbatim — its defaults apply, its `limit` bounds a projection's rows on the synchronous lane), then exactly one of `columns` (1..24 — a projection) / `groupBy` (1..4 — an aggregate); `measures` (up to 8) ride only with groupBy; an optional `sort`. Everything validates against the terminal family's roster before anything runs; a JSON null on an optional field reads as absent." input ReportSpecInput { plan: SearchPlanInput! columns: [String!] groupBy: [ReportGroupKeyInput!] measures: [ReportMeasureInput!] sort: ReportSortInput } "One output column of a report: its name in the row (``, `.`, `.caption`, `count`, `.`) and its kind — a roster kind (text · enum · ref · date · number · money · flag) or one the report mints: count · caption · bucket." type ReportColumn { name: String! kind: String! } "A finished synchronous report run: the report in words, the terminal family, the output plan, the rows as one JSON array text (`rowsJson` — the planJson carrier idiom: a row's shape is the column plan's, so the receiver parses; money renders as a decimal string by the currency's exponent, a missing group key reads `(none)`), rowCount · groupCount (0 for a projection), the records examined (the walks plus every caption hydrated — cumulative across the pages of a paged run), the pre-read estimate, the elapsed ms, and the reference families whose `.caption` column was omitted because the caller may not list them. The paged run: `partial` reads true when the clock or the page bound cut a ready-made report's walk. The rows are then the page's partial sums. `nextToken` carries the cursor to pass back as params.nextToken for the next page, null when the answer is whole." type ReportRows { words: String! terminalFamily: String! columns: [ReportColumn!]! rowsJson: String! rowCount: Int! groupCount: Int! examined: Int! estimate: SearchPlanEstimate! elapsedMs: Int! captionsOmitted: [String!]! partial: Boolean! nextToken: String } "The catalogue parameters: period — a preset (today · yesterday · this_week · last_week · this_month · last_month · this_quarter · year_to_date) or yyyy-mm-dd..Yyyy-mm-dd (inclusive UTC days, at most 366); lens — an organization of your group; person — `me` or a user id; record — the ledger owner's id (a till session · an inventory item · a house account · a loyalty member · a gift card · an affiliate); axis — an axis word or id; status — a state word of the report's family; option — a yes/no switch; facility — ONE active facility of your group. A field the report does not declare refuses VALIDATION/INVALID naming the legal ones. nextToken — the page cursor a partial answer handed back; every report takes it, opaque and tenant-bound. A cursor never saves: createReport refuses it." input ReportParamsInput { period: String lens: ID person: ID record: ID axis: String status: String option: Boolean facility: ID nextToken: String } "One parameter a catalogue report takes — its name and kind, whether it is required, its default, the words beside the control and the family a picker draws from." type ReportCatalogParam { name: String! kind: String! required: Boolean! default: String words: String! family: String } "One column of a catalogue report — its name in the rows, its kind, the words the face shows, the currency column of a money cell, and whether the totals row sums it." type ReportCatalogColumn { name: String! kind: String! words: String! currencyOf: String sum: Boolean! } "One catalogue report with your verdict: allowed (lane full — every family it reads is listable by your role — or self — the self lane over your own records) or denied with the why in words." type ReportCatalogRow { key: String! group: String! title: String! question: String! engine: String! params: [ReportCatalogParam!]! columns: [ReportCatalogColumn!]! reads: [String!]! selfLane: String roles: String! allowed: Boolean! lane: String why: String } "One page of the report catalogue (born paginated — limit · nextToken over the bounded catalogue)." type ReportCatalogPage { items: [ReportCatalogRow!]! nextToken: String } "The name assist's answer: ONE cleaned-up name, already normalized under the name rule and bounded like every stored caption. It pre-fills the rename input — nothing auto-applies." type SuggestedCaption { suggestion: String! } "The reason assist's answer: ONE drafted change-log reason, trimmed and bounded like every stored cause reason. It pre-fills the reason input — nothing auto-applies." type SuggestedReason { suggestion: String! } "The record review's answer: a short plain-text issue review of the record content you sent, or exactly 'No issues found.'. Read-only advice — it renders in a popup and changes nothing." type RecordReview { review: String! } "The note-suggest answer: ONE drafted note body. Pre-fills only — nothing posts automatically." type SuggestedNote { suggestion: String! } "The thread-summary answer: the synopsis of the thread YOU sent — advice words, nothing changes." type ThreadSummary { summary: String! } "The form-fill assist's answer: drafted values for the empty fields you asked about, name/value pairs the office pre-fills for review, plus advice about what you already answered. Drafts only — nothing applies automatically; an empty list means nothing was predictable." type FormFillSuggestion { fields: [FormFillField!]! "a short check of the answered lines — formats, internal consistency, real-world plausibility (an address's parts must agree). '' = nothing to flag. Advice only — nothing is corrected automatically." advice: String! } "One drafted field value — the exact field name from your want lines + the text to type." type FormFillField { name: String! value: String! } "The responsive guide's answer: what this step is doing, what you have provided, what is still needed and why. Guidance only — rendered verbatim beside the page's static words; nothing applies or changes." type StepExplanation { explanation: String! } "The code suggest's answer: ONE derived code, free against its family's declared uniqueness scope at answer time (a race can still take it before you save — the save then refuses honestly). It pre-fills the code input — nothing auto-applies." type SuggestedCode { suggestion: String! } "The page context the assistant grounds on." input AssistantContextInput { "The current route (the location path)." route: String! "The page's title as shown." pageTitle: String! "The record family the page serves (when a catalog page)." specType: String "The looked-at record's type (detail pages)." recordType: String "The looked-at record's caption (identity, not data)." recordCaption: String "The looked-at record's sysId (identity, not data)." recordSysId: String "The URL's?filter= value verbatim (when filtering)." filter: String "The URL's?sort= value (when sorting)." sort: String "Where the ask was made: guide — the Guide tab or the Handbook; absent = the rail." origin: String } "One page link in an assistant answer — the path is validated against the app's OWN route directory (an invented path never reaches you)." type AssistantLink { label: String! path: String! } "The assistant's answer: grounded prose + up to five directory links. Advisory only — nothing was changed on your behalf." type AssistantAnswer { answer: String! links: [AssistantLink!]! "The session Ask-context meter." contextTurns: Int! "The context ceiling — at the cap, clear the context to continue." contextTurnsMax: Int! "true once older exchanges have been condensed into the session memory (the folding marker)." contextFolded: Boolean! } "The Ask session-context meter after a clear." type AssistantContextMeter { contextTurns: Int! contextTurnsMax: Int! contextFolded: Boolean! } "An organization — the container: a merchant's operating organization within its org group." type Organization { id: ID! "The group-scoped human-facing system id — the account-number-style immutable org id." sysId: String! type: String! caption: String! "The state: active | parked | suspended | doomed." status: String! "The parent org group; for an Organization parentId === rootId." parentId: ID! "The org-group family root." rootId: ID! createdAt: String! updatedAt: String! revisionNum: Int! revision: ID! "The server-composed captions of this record's declared references: owners → the Account captions (caption only — never email/loginName) · primaryPhysicalFacility → the PF caption · costCentre → the CostCentre caption (by sysId)." refCaptions: [RefCaption!]! "ISO-3166 country — the org's ONE locked jurisdiction." jurisdiction: String! "Mutable human-readable organization code." code: String! "The registered legal name; the org IS the legal facility." legalName: String! "Optional trading brand name; absent = trades under the legal name." brandName: String "Optional operating-as / DBA name." operatingAsName: String "The owner Account ids; the composite create sets the creating principal's Account." owners: [ID!]! "The org's exactly-one CostCentre sysId — kit-minted with the org; the envelope attribution anchor. Null only on a pre- org." costCentre: String "The designated primary PhysicalFacility id. Null only on a pre-composite (bootstrap-seeded) org." primaryPhysicalFacility: ID "The org's default trading currency — a platform registry code. Derived from the launch jurisdiction at birth when the create omits it (CA → CAD · US → USD · AU → AUD · NZ → NZD); null only on an organization born before that law. An org may not select a Style until it carries one, and every selected style's non-doomed Products must price it (CONFLICT/CURRENCY_FLOOR, the three-site closure)." defaultCurrency: String "The allowed set — the effective list of currencies this organization accepts on every typed currency field (money entries, the purchasing currency, the FX pair, the drawer, the loyalty/markdown anchors — group-level records accept the union of the group's organizations' sets): the owner's stored list when set (updateOrganization, A2_STRUCTURE), else the default currency alone, else empty. A code outside it refuses VALIDATION/CURRENCY_NOT_ALLOWED naming the set; a platform-registry code outside the registry refuses at parse. Sorted; at most 16." allowedCurrencies: [String!]! "The org's Stripe Connect account ref — kit-stamped by provisionStripeAccount, immutable once set (never caller-editable). Null = unprovisioned (card payments route the platform account)." stripeAccountRef: String "Whether the connected account can take direct charges. Stamped at provision + refreshStripeAccountStatus. Null = unprovisioned." stripeChargesEnabled: Boolean "Whether the merchant completed Stripe-hosted onboarding. Stamped at provision + refresh. Null = unprovisioned." stripeDetailsSubmitted: Boolean "The owner seats' identity-verification standings. Compliance status only, never identity data — Stripe custodies the documents; the platform stores the outcome." ownerVerifications: [OwnerVerificationStanding!]! } "One owner seat's identity-verification standing." type OwnerVerificationStanding { "The owner Account id (the org's owners entry this standing describes)." accountId: ID! "The standing — requires_input | processing | verified | canceled (Stripe's own session vocabulary). Null: verification was never started." status: String "Present exactly when verified — the once-per-account-forever fact's instant (UTC ISO)." verifiedAt: String } "An ephemeral Stripe-hosted onboarding link. The merchant completes Stripe-owned requirement collection there (the Standard shape — platform-supplied ToS refuses structurally, probed live)." type StripeOnboardingLink { url: String! "The link's Stripe-side expiry (epoch seconds)." expiresAt: Int! } input FirstPhysicalFacilityInput { "Optional: default = the merchant code when given, else 'Physical Facility'." caption: String "The referenced PhysicalFacilityLocation id — must exist, in-tenant, active." physicalFacilityLocationId: ID! code: String } "The first LogicalFacility of the composite create — NewLogicalFacilityInput minus physicalFacilityId (the parent is the first PF)." input FirstLogicalFacilityInput { "Optional: default = the merchant code when given, else 'Logical Facility'." caption: String "The operating character: store/showroom | warehouse — immutable after birth." classification: String! code: String } "The first Zone of the composite create — NewZoneInput minus logicalFacilityId (the parent is the first LF)." input FirstZoneInput { "Optional: default = the merchant code when given, else 'Zone'." caption: String coordinates: String code: String } "The first Bin of the composite create — NewBinInput minus zoneId (the parent is the first zone); coordinates required at birth." input FirstBinInput { "Optional: default = the merchant code when given, else the coordinates locator." caption: String coordinates: String! code: String } "Create-input for the composite org-create. The org's CostCentre and the primary-PF designation are kit-minted." input NewOrganizationInput { "Optional: when omitted the default is the legalName; when supplied it must be non-blank." caption: String "ISO-3166 country — the org's ONE locked jurisdiction; a NEW org is gated to the launch countries: CA | US | AU | NZ — a value outside the roster refuses VALIDATION/INVALID naming the four." jurisdiction: String! "Human-readable organization code." code: String! "The registered legal name." legalName: String! brandName: String operatingAsName: String "The optional default trading currency — a platform-registry code; when omitted it derives from the jurisdiction, so a new organization always carries one (the floor's anchor)." defaultCurrency: String "The optional allowed set at birth — 1..16 distinct platform-registry codes the organization will accept on every typed currency field; it must contain the default (supplied or derived); omitted = the default alone." allowedCurrencies: [String!] physicalFacility: FirstPhysicalFacilityInput! logicalFacility: FirstLogicalFacilityInput! zone: FirstZoneInput! bin: FirstBinInput! } "The composite org-create result — the org + its whole min-1 chain, ALL born in ONE atomic operation. The CostCentre rides organization.costCentre as its sysId." type OrganizationCreation { organization: Organization! physicalFacility: PhysicalFacility! logicalFacility: LogicalFacility! zone: Zone! bin: Bin! } "One page of the organizations listing — the records + the opaque resume cursor." type OrganizationPage { "The page's records." items: [Organization!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The exact matched-set size of a filtered/sorted read; null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true — this lane walks the whole family whole), or the matches seen so far (false); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Edit-input for an Organization. jurisdiction (ONE locked country), owners (ownership transfer = its own privileged op) and costCentre (kit-minted) are NOT editable." input EditOrganizationInput { caption: String "Mutable human-readable organization code." code: String "The registered legal name." legalName: String brandName: String operatingAsName: String "Re-designate the primary PhysicalFacility. The new PF must be in-tenant, belong to this org, and be active; the OLD designation releases implicitly." primaryPhysicalFacility: ID "The default trading currency. A change under live OrgStyle selections is floor-gated: every selected style's non-doomed Products must already carry the NEW currency; and it must land inside the allowed set." defaultCurrency: String "The allowed set: replaces the whole list — 1..16 distinct platform-registry codes the organization accepts on every typed currency field. Removing a currency is allowed (history keeps its snapshots; the faces stop offering it); removing the default refuses VALIDATION/INVALID naming defaultCurrency (change both in one edit). Never clearable." allowedCurrencies: [String!] } "One system-shipped immutable Characteristic template; identical for every tenant." type CannedCharacteristic { "The stable registry key a copyCannedCharacteristic names (kebab-case)." key: String! caption: String! valueType: CharacteristicValueType! grammar: CharacteristicGrammar "The canned-UoM unit code (number-typed templates only)." unit: String } "Copy-input for copyCannedCharacteristic: the template key + optional caption/code overrides; the template payload (valueType/grammar/unit) copies verbatim — customize after the copy via updateCharacteristic." input CopyCannedCharacteristicInput { "The canned template key (cannedCharacteristics lists them) — an unknown key is refused VALIDATION/INVALID." key: String! "Optional caption override; default = the template caption." caption: String "Optional code override; default = the template key." code: String } "One canned unit of measure." type CannedUom { code: String! caption: String! dimensionClass: UomDimensionClass! "The conversion factor to the class base unit (count=each · mass=kg · volume=l · length=m · area=m2 · time=day); base units carry exactly 1." factorToBase: Float! } "The nested Product block of createItem — the whole-style pricing carrier." input ItemProductInput { "Optional: default = the merchant code when given, else 'Product'." caption: String code: String "The RRP map — required, at least 1 entry." rrp: [MoneyEntryInput!]! msrp: [MoneyEntryInput!] tagIds: [ID!] } "The nested Variant block of createItem — the single zero-dimension cell (the coordinate is forced empty; the stock-UoM pair defaults (canned, each) and is immutable)." input ItemVariantInput { "Optional: default = the merchant code when given, else 'Variant'." caption: String code: String stockUomKind: StockUomKind stockUomRef: String } "Create-input for createItem. The style-level fields sit at the top (the item IS its style to a general-merch merchant); styleType is forced simple and the scheme forced zero-dimension — NOT inputs." input NewItemInput { "Optional style caption: default = the merchant code when given, else 'Style'." caption: String code: String brandId: ID seasonIds: [ID!] categoryPlacements: [StylePlacementEntryInput!] tagIds: [ID!] characteristicEntries: [StyleCharacteristicEntryInput!] product: ItemProductInput! variant: ItemVariantInput! } "The composite item-create result — the zero-dimension simple Style + the whole-style Product + the single Variant, ALL born in ONE atomic transaction." type ItemCreation { style: Style! product: Product! variant: Variant! } "ONE ledgered identifier assignment: a kind + value borne by a Variant over an assignment window." type IdentifierEntry { id: ID! type: String! "The derived display caption — kind + value; never editable." caption: String! "The state: active | doomed (doomed = voided — excluded from listings/resolution)." status: String! "The bearer Variant." parentId: ID! rootId: ID! "The canned identifier kind." kind: String! "The identifier value verbatim as authored (merchant-/-authored)." value: String! "The org whose namespace the assignment occupies — present for org-scoped kinds (plu/gtin), absent for the group-scoped sku." organizationId: ID "The assignment instant." assignedAt: String! "The supersession instant." supersededAt: String createdAt: String! updatedAt: String! revision: ID! revisionNum: Int! } "One resolution hit: the ledgered entry + its hydrated bearer Variant + the current/outdated flag." type IdentifierResolutionMatch { entry: IdentifierEntry! variant: Variant! "true when the assignment window is still open (supersededAt absent) — an old printed label resolves with current: false (outdated),." current: Boolean! } "Assign-input for assignIdentifier. organizationId is required for org-scoped kinds (plu/gtin) and refused for sku; override is GTIN-only." input AssignIdentifierInput { variantId: ID! "The canned kind (sku | plu | gtin:upc-a | gtin:ean-13 | gtin:itf-14) — server-validated before the generic parse." kind: String! "The value, verbatim — per-kind shape-validated." value: String! organizationId: ID override: Boolean } "Retire-input for retireIdentifier." input RetireIdentifierInput { variantId: ID! kind: String! organizationId: ID } "One evaluated collection hit: the surviving Product + whether an active CollectionMember record backs it (a pin on dynamic collections; every static hit is member-backed)." type CollectionProductHit { product: Product! "true when an active CollectionMember record backs this hit — the explicit-curation flag." pinned: Boolean! } "One option selection on a listed variant." type AgentCatalogSelectedOption { optionGroupId: ID! "The axis caption (Color · Size …)." name: String! optionValueId: ID! "The value caption (Blue · Large …)." label: String! } "One selectable value of a product option; `available`/`exists` are filled by agentChannelCatalogProduct only (relative to the effective selections)." type AgentCatalogOptionValue { id: ID! label: String! "A listed variant with this value AND the other effective selections is available — detail read only." available: Boolean "A listed variant with this value AND the other effective selections exists — detail read only." exists: Boolean } "One option axis across a product's listed variants (values in OptionValue ordinal order)." type AgentCatalogOption { optionGroupId: ID! name: String! values: [AgentCatalogOptionValue!]! } "A GTIN identifier as a released barcode standard: UPC | EAN | GTIN." type AgentCatalogBarcode { type: String! value: String! } "Lookup correlation — which request identifier reached this variant and how: exact | featured (agentChannelCatalogLookup only)." type AgentCatalogInput { id: String! match: String! } "A category the product's Style is placed in — the id + the merchant caption (the search filter matches the caption)." type AgentCatalogCategory { id: ID! value: String! } "One listed variant: active, not vetoed, ranged at the channel's selling location with a sale-price window in effect NOW, priced by the channel's PriceList plane when it yields (else the standing window), in the organization's currency." type AgentCatalogVariant { "The Variant id — the released item.id a checkout line names." id: ID! productId: ID! "The variant caption." title: String! code: String "The current sku identifier, when assigned." sku: String barcodes: [AgentCatalogBarcode!]! "The organization's currency — every price on the listing is in it." currency: String! "The effective unit price in minor units." priceMinor: Int! "The standing window price in minor units — present only when the PriceList plane priced lower (the honest strikethrough)." listPriceMinor: Int "The SalePrice window in effect (the lapse law's witness)." salePriceId: ID! "The InventoryItem at the selling location (the ranging witness)." inventoryItemId: ID! "A stockless style type (service · bundle): always available, no status, never a figure." stockless: Boolean! available: Boolean! "in_stock | out_of_stock — absent for a stockless variant." availabilityStatus: String "The available quantity (on hand − reserved) as the platform's decimal string — only when the channel shows stock levels and the variant is stocked." availableQuantity: String options: [AgentCatalogSelectedOption!]! "Lookup correlation — agentChannelCatalogLookup only; null elsewhere." inputs: [AgentCatalogInput!] } "One listed product: in the union of the channel's active listed Collections (the evaluator), with at least one listed variant; the words from the decorations (display-name · description · short-description), else the captions." type AgentCatalogProduct { id: ID! styleId: ID! title: String! description: String shortDescription: String code: String "The Style's Brand caption, when present." brand: String categories: [AgentCatalogCategory!]! "Tag captions (the product's ∪ the style's)." tags: [String!]! currency: String! priceMinMinor: Int! priceMaxMinor: Int! listPriceMinMinor: Int listPriceMaxMinor: Int "The option axes across the listed variants (the Style scheme order)." options: [AgentCatalogOption!]! "The listed variants — at least one." variants: [AgentCatalogVariant!]! "The listed collections that carry this product (collection order)." collectionIds: [ID!]! "True when an active CollectionMember pins it in any listed collection." pinned: Boolean! } "One page of agentChannelCatalogSearch — the listing order (collection order · the evaluator's order within a collection); nextCursor present iff a page follows; truncated when the listing was cut at its ceiling." type AgentChannelCatalogPage { products: [AgentCatalogProduct!]! nextCursor: String totalCount: Int! truncated: Boolean! } "The agentChannelCatalogLookup answer — every returned variant carries inputs (which identifiers reached it); notFound names the identifiers that resolved to nothing listed (request order)." type AgentChannelCatalogLookup { products: [AgentCatalogProduct!]! notFound: [String!]! truncated: Boolean! } "The agentChannelCatalogProduct answer — null product when the identifier resolves to nothing listed; selected = the effective selections after relaxation; options carry available/exists relative to them." type AgentChannelCatalogDetail { product: AgentCatalogProduct selected: [AgentCatalogSelectedOption!]! options: [AgentCatalogOption!]! truncated: Boolean! } "A requested option selection for agentChannelCatalogProduct — by option-value id when known (preferred), else by axis name + value label." input AgentCatalogSelectedOptionInput { name: String! label: String! id: ID } "The fulfillment method types a checkout may choose (the Order option methods ship · pickup_instore · pickup_curbside map onto them) (the released well-known values this business serves): shipping | pickup." enum AgentCheckoutFulfillmentType { shipping pickup } "One checkout line to sell — the listed Variant + whole units." input AgentCheckoutLineInput { variantId: ID! quantity: Int! } "The platform-captured consent decisions (the four UCP purposes: marketing · analytics · preferences · sale_or_sharing) — a field present = asserted; absent = the channel default speaks." input AgentCheckoutConsentInput { marketing: Boolean analytics: Boolean preferences: Boolean sale_or_sharing: Boolean } "The buyer as the platform gave them — names · email · phone (the channel's requireBuyerEmail/requireBuyerPhone decide what is missing; an invalid email is a recoverable message, never a refusal) · consent." input AgentCheckoutBuyerInput { firstName: String lastName: String email: String phone: String consent: AgentCheckoutConsentInput } "The platform's shipping address AS received — every field optional; the platform judges completeness (name · ≥ 1 address line · city · an ISO alpha-2 country) and messages the gaps; id = the platform's own destination id (echoed)." input AgentCheckoutShipToInput { id: String name: String addressLines: [String!] city: String region: String postalCode: String countryCode: String phone: String } "The delivery choice — ONE method per checkout: shipping (the address + a rate-card optionId) or pickup (one of the channel's pickup locations + pickup_instore | pickup_curbside)." input AgentCheckoutFulfillmentInput { type: AgentCheckoutFulfillmentType! shipTo: AgentCheckoutShipToInput pickupLogicalFacilityId: ID optionId: String } "The whole checkout as the platform states it (create = the birth; update = full replacement — the released law)." input AgentCheckoutInput { lines: [AgentCheckoutLineInput!]! buyer: AgentCheckoutBuyerInput fulfillment: AgentCheckoutFulfillmentInput "The discount extension: the platform's codes — replacement semantics (the list replaces the held coupon; clears); absent = untouched. At most 8 codes, each at most 64 characters; matched case-insensitively. A rejected code is a warning message at $.discounts.codes[i], never a refusal." discountCodes: [String!] } "One message the status rule raised — a released code (out_of_stock · item_unavailable · address_undeliverable · eligibility_invalid · missing · discount_code_invalid · …), the kind (error | warning), an RFC 9535 path into the released response, the words, the severity (recoverable | unrecoverable — an error's member; a warning carries none on the released wire)." type AgentCheckoutMessage { code: String! "error | warning (a rejected discount code is a warning)." kind: String! path: String content: String! severity: String! } "One quoted line — the Order line (lineNo) · the listed variant · whole units · the plane-aware unit price · base − discounts + tax = total (minor units) · listed/available at quote time." type AgentCheckoutLine { lineNo: Int! variantId: ID! productId: ID! title: String! quantity: Int! unitPriceMinor: Int! baseMinor: Int! discountMinor: Int! taxMinor: Int! totalMinor: Int! listed: Boolean! available: Boolean! } "One fulfillment option on offer — a rate card (fee · earliest/latest instants from handling + transit days) or a pickup choice (fee 0)." type AgentCheckoutOption { id: String! title: String! description: String feeMinor: Int! earliestAt: String latestAt: String } "A postal address (the facility records' own shape) — a pickup location's." type AgentCheckoutPostalAddress { line1: String! line2: String city: String! region: String postalCode: String countryCode: String! } "One of the channel's pickup locations (an active LogicalFacility) — the name + its facility address when resolvable." type AgentCheckoutPickupLocation { logicalFacilityId: ID! name: String! address: AgentCheckoutPostalAddress } "One consent purpose's standing — the platform's captured decision (source platform) or the channel's default (source business)." type AgentCheckoutConsent { purpose: String! granted: Boolean! source: String! } "The fulfillment offer + the selection — the offered types · the selected type · the stored destination (+ the platform's id) · the pickup locations · the options for the selected type + destination · the selected option · its fee." type AgentCheckoutFulfillment { offered: [AgentCheckoutFulfillmentType!]! selectedType: AgentCheckoutFulfillmentType shipTo: OrderShipTo shipToId: String pickupLocations: [AgentCheckoutPickupLocation!]! selectedPickupLogicalFacilityId: ID options: [AgentCheckoutOption!]! selectedOptionId: String feeMinor: Int! } "The quote's money (minor units): subtotal − discounts + tax + the fulfillment fee = total." type AgentCheckoutTotals { subtotalMinor: Int! discountMinor: Int! taxMinor: Int! fulfillmentMinor: Int! totalMinor: Int! } "The discount extension's view: the platform's codes as submitted on a create/update (rejected codes included — the spec echoes them) or as held on a read + every applied discount (code-based and automatic). Always built; the shop's host renders it only when the channel advertises the extension (allowDiscountCodes)." type AgentCheckoutDiscounts { codes: [String!]! applied: [AgentCheckoutAppliedDiscount!]! } "One applied discount: the coupon code (absent on an automatic discount) · the caption · the applied reduction in minor units · automatic (a promotion · loyalty · employee · manual entry) · the allocation method (each = a line-level entry applied per item | across = an order-level entry split pro-rata) · the pipeline's priority (1 = applied first) · the per-line allocations when the pipeline can name them (Σ == amountMinor; absent otherwise)." type AgentCheckoutAppliedDiscount { code: String title: String! amountMinor: Int! automatic: Boolean! method: String! priority: Int! allocations: [AgentCheckoutDiscountAllocation!] } "One line's share of an applied discount: the Order line number + the share in minor units." type AgentCheckoutDiscountAllocation { lineNo: Int! amountMinor: Int! } "The buyer as stored — names · email · phone." type AgentCheckoutBuyer { firstName: String lastName: String email: String phone: String } "The agent checkout view: the draft Order as a UCP checkout session at NOW — status ∈ incomplete | requires_escalation | ready_for_complete | complete_in_progress | completed | canceled (the status rule) over its lines, buyer, consent, fulfillment offer, totals, discounts and messages." type AgentCheckout { orderId: ID! revision: ID! revisionNum: Int! agentChannelId: ID! organizationId: ID! "The platform that opened it — absent on a staff test drive." platformProfileUrl: String "The linked buyer: the Consumer this checkout is stamped with — the platform's user token named them (or a staff test drive did); absent on a guest checkout." consumerId: ID currency: String! "The draft Order's own status (draft · sent · accepted · expired · cancelled)." orderStatus: String! status: String! "The session's expiry (the draft's validUntil = birth + the channel's checkout TTL)." validUntil: String lines: [AgentCheckoutLine!]! buyer: AgentCheckoutBuyer consent: [AgentCheckoutConsent!]! fulfillment: AgentCheckoutFulfillment! totals: AgentCheckoutTotals! "The discount extension's view: the codes + the applied discounts; always present on the wire." discounts: AgentCheckoutDiscounts! messages: [AgentCheckoutMessage!]! "The minted sale — present iff status is completed." order: AgentCheckoutOrderRef "The instrument that paid — display-safe (never a credential); present iff the checkout completed." payment: AgentCheckoutPayment } "The minted sale a completed checkout names: its id + human label (the sale's sysId); the door adds the permalink from the business host." type AgentCheckoutOrderRef { id: ID! sysId: String! "The receipt token: the sale’s stored capability; the door builds order.permalink_url from it (absent on a pre- sale)." receiptToken: String } "The display-safe echo of the instrument that paid: the platform's ids + the processor's brand/last four." type AgentCheckoutPayment { instrumentId: String! handlerId: String! type: String! brand: String last4: String } "The credential the platform submits at complete: a token_credential — the type (PAYMENT_GATEWAY for Google Pay via Stripe) + the token (a Stripe tok_/pm_ id or the Stripe Token object as a JSON string); a raw card number is refused." input AgentCheckoutCredentialInput { type: String! token: String! } "Display words for the instrument — brand · last digits · expiry; optional, presentational only." input AgentCheckoutInstrumentDisplayInput { brand: String lastDigits: String expiryMonth: Int expiryYear: Int } "The selected payment instrument: the platform's instrument id · the handler id the business advertises (gpay) · the instrument type (card) · the credential · display words." input AgentCheckoutInstrumentInput { id: String! handlerId: String! type: String! credential: AgentCheckoutCredentialInput! display: AgentCheckoutInstrumentDisplayInput } "The complete request: the ONE selected instrument." input AgentCheckoutCompleteInput { instrument: AgentCheckoutInstrumentInput! } "One sold line as the platform reads it: the frozen money + the three quantity counts (whole units) + the derived status ∈ processing | partial | fulfilled | removed." type AgentOrderLine { lineNo: Int! variantId: ID! productId: ID! title: String! unitPriceMinor: Int! quantityOriginal: Int! quantityTotal: Int! quantityFulfilled: Int! baseMinor: Int! discountMinor: Int! taxMinor: Int! totalMinor: Int! status: String! } "One line share of a fulfillment event." type AgentOrderEventLine { lineNo: Int! quantity: Int! } "One fulfillment event — a Fulfillment record's state as an append-only shipment fact: type ∈ processing | shipped | ready_for_pickup | delivered | canceled; tracking when shipped." type AgentOrderEvent { id: ID! occurredAt: String! type: String! lines: [AgentOrderEventLine!]! trackingRef: String carrierName: String description: String } "One post-order adjustment: type ∈ refund | cancellation — a Refund (signed minor units, negative = money returned) or the sale's own cancellation; status pending | completed | failed." type AgentOrderAdjustment { id: ID! type: String! occurredAt: String! status: String! amountMinor: Int description: String } "The fulfillment side: the option the buyer chose (ONE expectation) · its destination (the ship-to or the pickup location) · the buyer-facing words · the events so far." type AgentOrderFulfillment { methodType: String! option: OrderFulfillmentOption! shipTo: OrderShipTo pickupLocation: AgentCheckoutPickupLocation description: String events: [AgentOrderEvent!]! } "The agent order view: the minted sale as the platform reads it — the released dev.ucp.shopping.order rendered by the door from these words; permalinkUrl = the order resource's own URL on the business host." type AgentOrder { orderId: ID! sysId: String! "The checkout this sale was minted from." checkoutId: ID! agentChannelId: ID! organizationId: ID! "The platform that originated it — absent on a staff test drive." platformProfileUrl: String "The linked buyer: the Consumer the sale is stamped with; a linked platform reads the buyer's orders through it; absent on a guest sale." consumerId: ID currency: String! "The sale's own status (placed · completed · cancelled · …)." orderStatus: String! paymentState: String! fulfillmentState: String! placedAt: String! permalinkUrl: String! "The receipt token: the sale’s stored capability the door’s permalink is built from; absent on a pre- sale." receiptToken: String lines: [AgentOrderLine!]! buyer: AgentCheckoutBuyer fulfillment: AgentOrderFulfillment! adjustments: [AgentOrderAdjustment!]! totals: AgentCheckoutTotals! } "The 5 stock buckets. available is NOT a bucket: it is always derived (on_hand − reserved) and never stored." enum StockBucket { on_hand reserved in_transit damaged held } "The 15 canned movement types." enum StockMovementType { receive transfer_out transfer_in adjust count_correct sell return build_consume build_produce break_consume break_produce assemble_on_fly relocate reclass rtv cost_true_up reserve release } "A signed money delta — the movement's value impact: receive +qty x cost · adjust ±qty x WMA · reclass none. The amount is a signed strict decimal string (the MoneyEntry grammar with a sign)." type CostImpact { currency: String! amount: String! } "ONE posted Stock-Card movement fact: the magnitude rides quantity (positive), the direction rides fromBucket/toBucket (the classic in/out card form; a bucket balance = sum of to minus sum of from)." type InventoryEntry { id: ID! type: String! "The derived display caption — movement + quantity; never editable." caption: String! "The state: active | doomed (doomed = voided, reserved for a future void-family flow — excluded from the card and the verify sum)." status: String! "The parent InventoryItem." parentId: ID! rootId: ID! "The canned movement type." movement: StockMovementType! "The movement magnitude — a positive strict decimal string in the variant stock UoM; direction rides the buckets." quantity: String! "The bucket this movement drains (adjust-down · reclass source); absent for receive / adjust-up." fromBucket: StockBucket "The bucket this movement fills (receive · adjust-up · reclass target); absent for adjust-down." toBucket: StockBucket "The receive unit cost. Receive-only." unitCost: MoneyEntry "The signed value delta this movement caused; absent when no cost basis exists." costImpact: CostImpact "The reason code/text — required on adjust; carries the canned held reason on a reclass into held." reason: String "Provenance document refs (bounded free strings — the PO/receipt refs land typed)." refs: [String!] "Present (true) exactly when this movement drove a touched bucket negative." overcommitted: Boolean "The bin this movement left." fromBinId: ID "The bin this movement entered." toBinId: ID "The lot identity the relocate moved." lotCode: String createdAt: String! updatedAt: String! revision: ID! revisionNum: Int! } "Carries only the three locatable buckets (reserved is a claim overlay, in_transit is not physically here — both stay on the item caches); quantities are non-negative (a relocate refuses driving a record negative — CONFLICT/INSUFFICIENT_STOCK). The derived un-binned pool = item caches minus the record sums (see verifyInventoryItem). Records persist at zero; a zeroed record does NOT block its bin." type StockRecord { "The owning InventoryItem." inventoryItemId: ID! "The Bin holding this shard." binId: ID! "The lot identity." lotCode: String "The lot expiry (UTC instant) — birth-stamped; a later mismatch refuses; a record missing it is enriched by the next lotted relocate that supplies one." lotExpiresAt: String onHandQty: String! damagedQty: String! heldQty: String! createdAt: String! updatedAt: String! revisionNum: Int! } "A movement outcome: the posted entry + the post-movement InventoryItem — written in ONE transaction, so they can never disagree." type StockMovement { inventoryItem: InventoryItem! entry: InventoryEntry! } "The five cached bucket balances by field (the verify read projection; available is derived, not a bucket)." type StockBucketTotals { onHandQty: String! reservedQty: String! inTransitQty: String! damagedQty: String! heldQty: String! } "The two-way reconciliation report: the Stock-Card sum per bucket (active entries; to minus from) vs the cached balances on the II." type InventoryVerification { inventoryItem: InventoryItem! "Active (non-voided) entries summed." entryCount: Int! computed: StockBucketTotals! cached: StockBucketTotals! "true when every computed flow bucket equals its cached balance AND the record shards reconcile (recordsConsistent) AND the reserved claim overlay reconciles vs the open transfer docs — exact decimal comparison throughout." consistent: Boolean! "The item StockRecord shard rows." recordCount: Int! "Sum of the record shards per bucket." binned: StockBucketTotals! "The derived un-binned pool per bucket = cached minus binned." unbinned: StockBucketTotals! "true when the per-(bin, lot, bucket) recompute from the relocate entries equals every stored record, every record is non-negative, and no non-zero recomputed cell lacks its row." recordsConsistent: Boolean! "Sum reserved by open transfer docs naming this item as a source line." openTransferReservedQty: String! "true when the cached reserved equals the open-doc sum." reservedConsistent: Boolean! } "Receive-input for receiveStock. unitCost is required with an explicit currency: the first costed receive fixes the II cost currency; a later mismatch is refused naming the expected currency." input ReceiveStockInput { inventoryItemId: ID! "The received quantity — a strictly positive decimal string." quantity: String! "The unit cost {currency, amount} — the WMA input." unitCost: MoneyEntryInput! "Optional caption override for the posted entry." caption: String refs: [String!] } "Adjust-input for adjustStock. A negative adjust may drive the bucket negative — allowed + evented. Value at current WMA." input AdjustStockInput { inventoryItemId: ID! "The signed delta (non-zero decimal string) — positive writes on, negative writes off." quantity: String! "The adjusted bucket — on_hand | damaged | held; defaulted to on_hand when omitted." bucket: StockBucket "Required: the merchant adjustment reason." reason: String! caption: String refs: [String!] } "Reclass-input for reclassStock. heldReason is required exactly when the target is held and refused otherwise." input ReclassStockInput { inventoryItemId: ID! "The moved quantity — a strictly positive decimal string." quantity: String! fromBucket: StockBucket! toBucket: StockBucket! "The canned held reason — required iff toBucket is held." heldReason: String caption: String refs: [String!] } "An assembly movement outcome: the KIT leg + the component legs of the ONE transaction, in recipe order. The entry movement types (build_consume | build_produce | break_consume | break_produce) carry direction." type StockAssembly { kit: StockMovement! components: [StockMovement!]! } "Build-input for buildStock: quantity = the kits produced; every live component edge consumes edgeQty x quantity from on_hand at the same facility (on_hand to on_hand only). caption rides the KIT leg; refs ride every leg." input BuildStockInput { inventoryItemId: ID! "The kits produced — a strictly positive decimal string." quantity: String! "Optional caption override for the KIT (build_produce) entry." caption: String refs: [String!] } "Break-input for breakStock." input BreakStockInput { inventoryItemId: ID! "The kits broken — a strictly positive decimal string." quantity: String! "Optional caption override for the KIT (break_consume) entry." caption: String refs: [String!] } "Relocate-input for relocateStock. A location is a Bin or (side absent) the derived un-binned pool: bin-to-bin, pool-to-bin (put-away), bin-to-pool (take-out); at least ONE side names a bin and an equal pair refuses. Both bins must belong to the item logical facility (relocate is intra-LF by law); the to-bin must be active. Lot fields ride only on lot-controlled items." input RelocateStockInput { inventoryItemId: ID! "The moved quantity — a strictly positive decimal string." quantity: String! "The relocated bucket — on_hand | damaged | held; defaulted to on_hand when omitted." bucket: StockBucket "The source Bin id; absent = the un-binned pool." fromBinId: ID "The target Bin id; absent = the un-binned pool." toBinId: ID "The lot identity." lotCode: String "The lot expiry (UTC instant) — birth-stamps the lot record; a later mismatch refuses; a record missing it is enriched." lotExpiresAt: String caption: String refs: [String!] } "One caller-supplied line at create." input TransferLineInput { inventoryItemId: ID! "The quantity to move — a strictly positive decimal string." quantity: String! } "Create-input for createTransfer." input CreateTransferInput { "Optional caption." caption: String "The source LogicalFacility id (the containment parent)." sourceLogicalFacilityId: ID! "The destination LogicalFacility id (pointer ref; must differ from the source)." destinationLogicalFacilityId: ID! "The lines." lines: [TransferLineInput!]! } "Ship-input for shipTransfer. The optional shipped metadata lands here (known at ship time, not before)." input ShipTransferInput { transferId: ID! "Optional expected-arrival instant (UTC ISO-8601 — drives the future in-transit aging strand)." expectedArrivalAt: String "Optional carrier / tracking references (bounded free strings, max 8 x 128)." carrierRefs: [String!] } "One receipt landing: a line (by lineNo) x a landing bucket — on_hand (the default) or held. One receipt per (line, landing bucket) per call; a line may split across both." input TransferReceiptInput { "The line being received (1-based, as stored)." lineNo: Int! "The quantity landing NOW — strictly positive; cumulative receipts never exceed the line shipped quantity." quantity: String! "The landing bucket — on_hand | held only (defaulted to on_hand when omitted; a foreign bucket refuses)." toBucket: StockBucket "The canned held reason — required iff toBucket is held." heldReason: String } "One declared-surplus landing." input TransferSurplusInput { "The line whose surplus arrived (1-based, as stored)." lineNo: Int! "The surplus quantity landing NOW — strictly positive; never counts toward receivedQty (stamps unplannedQty)." quantity: String! "The landing bucket — on_hand | held only (defaulted to on_hand when omitted; the receipts matrix verbatim)." toBucket: StockBucket "The canned held reason — required iff toBucket is held." heldReason: String } "One wrong-item arrival: a destination-LF junction x quantity, booked qty-only (no transfer line = no frozen cost; the source's correction carries the true cost)." input TransferUnplannedArrivalInput { "The receiving junction (variant x the transfer destination LF — the custody law; scoped + active)." inventoryItemId: ID! "The quantity that physically arrived — strictly positive." quantity: String! "The landing bucket — on_hand | held only (defaulted to on_hand when omitted)." toBucket: StockBucket "The canned held reason — required iff toBucket is held." heldReason: String "Optional free-text reason riding the movement entry." reason: String } "Receive-input for receiveTransfer." input ReceiveTransferInput { transferId: ID! "The documented landings." receipts: [TransferReceiptInput!]! "Declared surplus per line." surplus: [TransferSurplusInput!] "Wrong-item arrivals." unplannedArrivals: [TransferUnplannedArrivalInput!] } "One residual disposition: a line (by lineNo) x a disposition code x a quantity. The resolve codes are loss | damaged | found | scrap | returned; a line residual may split across codes." input TransferResolutionInput { "The line whose residual is being disposed." lineNo: Int! "The residual quantity disposed under this code — strictly positive; at most the line residual." quantity: String! "The disposition code — loss | damaged | found | scrap | returned (server-validated; the registry is vocabulary-complete x6)." disposition: String! "Optional free-text reason riding the disposition movement entry." reason: String } "Resolve-input for resolveTransfer." input ResolveTransferInput { transferId: ID! "The dispositions (min 1; at most one per line x disposition code — max 120; the port action budget is the binding bound)." resolutions: [TransferResolutionInput!]! } "One caller-supplied line at create." input TransferRequestLineInput { variantId: ID! "The requested quantity — a strictly positive decimal string." quantity: String! orderLineRef: SpecialOrderLineRefInput } "Create-input for createTransferRequest." input CreateTransferRequestInput { "Optional caption." caption: String "The requesting LogicalFacility id (the containment parent — the demand home)." requestingLogicalFacilityId: ID! "The optional targeted source LF; absent = open to the group; must differ from the requesting LF." targetLogicalFacilityId: ID "Optional needed-by instant (UTC ISO-8601; birth-fixed — TR-k)." neededBy: String "Optional canned priority (low | normal | high | urgent; birth-fixed — TR-k)." priority: TransferRequestPriority "The lines." lines: [TransferRequestLineInput!]! } "One accepted line: the request line (by lineNo) x the quantity this source commits NOW (cumulative live allocations never exceed requested — over-allocation refuses CONFLICT/DISCREPANCY, TR-g)." input AcceptTransferRequestLineInput { "The request line being accepted (1-based, as stored)." lineNo: Int! "The quantity accepted NOW — strictly positive." quantity: String! } "Accept-input for acceptTransferRequest: ONE acceptance = ONE linked Transfer born ready at the accepting source (a light pair births completed — the whole movement in the accept transaction)." input AcceptTransferRequestInput { transferRequestId: ID! "The accepting source LogicalFacility id (!= the requesting LF; must match the target when the request is targeted — TR-g)." sourceLogicalFacilityId: ID! "Optional caption for the born Transfer (default: transfer lines)." caption: String "The accepted lines (min 1; at most one per request line)." lines: [AcceptTransferRequestLineInput!]! } "One declined line: the request line (by lineNo) x an optional informational reason." input RejectTransferRequestLineInput { "The request line being declined (1-based, as stored)." lineNo: Int! "Optional free-text reason (bounded; feeds the requester close-short judgment)." reason: String } "ONE marker per (line, source); duplicates refuse." input RejectTransferRequestInput { transferRequestId: ID! "The declining source LogicalFacility id (!= the requesting LF; must match the target when targeted)." sourceLogicalFacilityId: ID! "The declined lines (min 1; at most one per request line)." lines: [RejectTransferRequestLineInput!]! } "The acceptTransferRequest result: both touched documents." type AcceptTransferRequestResult { "The TransferRequest after the allocation rewrite (rollups + allocation rows stamped)." transferRequest: TransferRequest! "The linked Transfer born by this acceptance (ready — or completed for a light pair)." transfer: Transfer! } "Create-scope input: at most ONE location axis (whole-LF when both arrays are absent | zones | bins) plus the optional control-class II filter; members distinct, scoped to the count's LF status-free." input CountScopeInput { "Count these zones' bins (1..32 distinct members of the count's LF)." zoneIds: [ID!] "Count exactly these bins (1..32 distinct members of the count's LF)." binIds: [ID!] "Restrict the resolved IIs to ONE control class (non-controlled | lot-controlled | serially-controlled — the II attribute filter)." controlClass: String } "Create-input for createCount." input CreateCountInput { "Optional: when omitted the per-type default applies — ' count' (the line count is unknown at birth); when supplied it must be non-blank." caption: String "The LF being counted (the containment parent — rides parentId; scoped + active at create)." logicalFacilityId: ID! "The canned count type (physical | cycle | spot — birth-fixed)." countType: CountType! "The scope selector; absent = the whole LF (records + the un-binned pools)." scope: CountScopeInput "Optional recount linkage — must resolve to a posted Count at the same LF." recountOfCountId: ID } "One captured line: the resolved line (by lineNo) x the physically-counted quantity (>= 0 — an explicit zero is a legitimate capture; negatives refuse)." input CaptureCountLineInput { "The resolved line being captured (1-based, as stored at start)." lineNo: Int! "The counted quantity (decimal string, stock UoM; zero OR more)." countedQty: String! } "expectedAtCapture is server-stamped — never caller-supplied." input CaptureCountInput { countId: ID! "The captured lines (min 1; at most one per resolved line per call — merge duplicates)." lines: [CaptureCountLineInput!]! } "Create-input for createPurchaseOrder." input CreatePurchaseOrderInput { "Optional: when omitted the per-type default applies — 'purchase order line(s)'; when supplied it must be non-blank." caption: String "Its purchasingCurrency snapshots as the PO currency." orgVendorId: ID! "Optional canned payment terms (registry tokens, e.g. net-30) — omitted ⇒ the OrgVendor's." paymentTerms: String "Optional canned Incoterms 2020 rule — omitted ⇒ the OrgVendor's." incotermCode: String "Optional vendor-side order/quote reference (max 64)." vendorReference: String "Optional free-text notes (max 4096)." notes: String "The lines." lines: [PurchaseOrderLineInput!]! } "One page of a PurchaseOrder's own line collection." type PurchaseOrderLinePage { "The page's records in lineNo order (a page may hold fewer than `limit` — walk until `nextToken` is null)." items: [PurchaseOrderLine!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the line set is complete. Opaque + purchase-order-bound (the unfiltered lane) / filter-bound (the filtered lane)." nextToken: String "The exact matched-set size of a filtered/sorted read; null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true — this lane walks the whole line set whole), or the matches seen so far (false); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Append-input for addPurchaseOrderLines." input AddPurchaseOrderLinesInput { "The PurchaseOrder appended to — tenant-scoped + draft (a live post-draft doc refuses CONFLICT/REF_STATE naming the required state)." purchaseOrderId: ID! "The appended lines (1..90 — the per-call ceiling; the same defaults + gates as create; distinct variant × receiving-LF keys across the whole document, not merely the call; the document's total refuses past 1000)." lines: [PurchaseOrderLineInput!]! } "Replace-input for updatePurchaseOrderLine." input UpdatePurchaseOrderLineInput { "The PurchaseOrder edited — tenant-scoped + draft." purchaseOrderId: ID! "The line addressed by its stored lineNo (1..1000); a number with no live row refuses VALIDATION/INVALID naming it (removed numbers are never re-used, so the address is unambiguous forever)." lineNo: Int! "The replacement line — the same shape, defaults and gates as create; its lineNo is kept (the address does not move)." line: PurchaseOrderLineInput! } "Remove-input for removePurchaseOrderLines." input RemovePurchaseOrderLinesInput { "The PurchaseOrder edited — tenant-scoped + draft." purchaseOrderId: ID! "The removed line numbers (1..90 per call, distinct); an unknown number refuses VALIDATION/INVALID naming it." lineNos: [Int!]! } "Create-input for createReceipt." input CreateReceiptInput { "Optional: when omitted the per-type default applies — 'receipt line(s)'; when supplied it must be non-blank." caption: String purchaseOrderId: ID! "The receiving LF this document captures arrivals for — tenant-scoped + active; must be named by ≥1 PO line (VALIDATION/INVALID else)." logicalFacilityId: ID! "The lines." lines: [ReceiptLineInput!]! "Optional landed-cost estimate components (≤8, amounts in the PO currency — VALIDATION/INVALID naming both else)." landedComponents: [LandedCostComponentInput!] } "One page of a Receipt's own line collection." type ReceiptLinePage { "The page's records in lineNo order (a page may hold fewer than `limit` — walk until `nextToken` is null)." items: [ReceiptLine!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the line set is complete. Opaque + receipt-bound (the unfiltered lane) / filter-bound (the filtered lane)." nextToken: String "The exact matched-set size of a filtered/sorted read; null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true — this lane walks the whole line set whole), or the matches seen so far (false); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Append-input for addReceiptLines." input AddReceiptLinesInput { "The Receipt appended to — tenant-scoped + draft (a live post-draft doc refuses CONFLICT/REF_STATE naming the required state)." receiptId: ID! "The appended lines (1..90 — the per-call ceiling; the same addressing + pack-entry gates as create against the birth-fixed parent PO; distinct (PO line × disposition) keys across the whole document, not merely the call; the document's total refuses past 1000)." lines: [ReceiptLineInput!]! } "Replace-input for updateReceiptLine." input UpdateReceiptLineInput { "The Receipt edited — tenant-scoped + draft." receiptId: ID! "The line addressed by its stored lineNo (1..1000); a number with no live row refuses NOT_FOUND naming it (removed numbers are never re-used, so the address is unambiguous forever)." lineNo: Int! "The replacement line — the same shape, defaults and gates as create; its lineNo is kept (the address does not move)." line: ReceiptLineInput! } "Remove-input for removeReceiptLines." input RemoveReceiptLinesInput { "The Receipt edited — tenant-scoped + draft." receiptId: ID! "The removed line numbers (1..90 per call, distinct); an unknown number refuses NOT_FOUND naming it." lineNos: [Int!]! } "Create-input for createRtv." input CreateRtvInput { "Optional: when omitted the per-type default applies — 'return to vendor line(s)'; when supplied it must be non-blank." caption: String orgVendorId: ID! "The optional originating PurchaseOrder — must belong to the same OrgVendor and be past-issue (a draft/pending/cancelled order shipped nothing to return)." purchaseOrderId: ID "The LF the return ships from — tenant-scoped + active + the buying org's (SL-b set-time; re-checked at ship)." shipFromLogicalFacilityId: ID! "Optional expected vendor credit (in the vendor purchasingCurrency — VALIDATION/INVALID naming both else); omitted ⇒ ship stamps the Σ quantity × current WMA default." expectedCredit: MoneyEntryInput "The lines." lines: [RtvLineInput!]! } "Input for recordRtvCredit." input RecordRtvCreditInput { rtvId: ID! "The credit the vendor actually issued — its currency must match the stored expectation when one exists." actualCredit: MoneyEntryInput! "Explicitly accept an actual ≠ expected credit." acknowledgeVariance: Boolean } "Create-input for createVendorInvoice." input CreateVendorInvoiceInput { "Optional: when omitted the vendor invoice number IS the caption; when supplied it must be non-blank." caption: String purchaseOrderId: ID! "The billing OrgVendor — optional (defaults to the PO vendor); a carrier/broker onboarded as its own OrgVendor names itself here. Active-gated." invoiceOrgVendorId: ID "The vendor own invoice number (raw spelling stored; trim+case-fold normalized for the double-pay uniq pair — a live holder refuses CONFLICT/IDENTITY_TAKEN naming it)." invoiceNumber: String! "The vendor invoice date (UTC ISO-8601 — their paper date)." invoiceDate: String! "The merchandise match lines (≤24, one per PO line) — at-least-one-of with actualComponents." matchLines: [VendorInvoiceMatchLineInput!] "The landed-cost actual components (≤8, amounts in the PO currency) — trued-up at capture against the posted receipts estimates of the same component type." actualComponents: [LandedCostComponentInput!] "Optional vendor-stated grand total (informational; in the PO currency)." total: MoneyEntryInput "Optional free-text notes (max 4096)." notes: String } "One derived inbound line. Derived at read — never stored (the TR outstanding stance)." type ExpectedReceipt { "The receivable PurchaseOrder (issued / acknowledged / partially_received)." purchaseOrderId: ID! "Its human handle (PO-… sysId)." purchaseOrderSysId: String! "The supplying OrgVendor enablement." orgVendorId: ID! "The buying org." organizationId: ID! "The PO line number." lineNo: Int! "The ordered variant." variantId: ID! "The receiving LF the outstanding quantity is inbound to." logicalFacilityId: ID! "ordered − received (derived; strictly positive rows only — fully-received lines drop)." outstandingQty: String! "The line expected-arrival instant (UTC ISO-8601; absent when never derivable)." expectedArrivalAt: String } "One issue-time line selection — the (orderLineNo, quantity) entry." input InvoiceLineSelectionInput { "The order line to invoice (its frozen 1-based lineNo)." orderLineNo: Int! "The quantity to invoice (positive decimal string; ≤ the line's un-invoiced remainder)." quantity: String! } "Issue-input for issueInvoice." input IssueInvoiceInput { "Optional: when omitted the default is 'invoice of N lines'; when supplied it must be non-blank." caption: String "The Order to invoice — same-group; ∈ {placed, completed} (an open/held cart cannot bill; a voided/abandoned/cancelled order has nothing to bill)." orderId: ID! "The partial-model selections (omitted = the full un-invoiced remainder; supplied = ≥ 1 entries, distinct orderLineNos)." lines: [InvoiceLineSelectionInput!] } "One note delta entry — a positive magnitude on the invoice line's taxableBase axis; the sign is the document's (CreditNote −, DebitNote +); the tax delta recomputes on top from the captured components." input NoteDeltaLineInput { "The invoice line to correct (1-based on the superseded Invoice)." invoiceLineNo: Int! "The base-delta magnitude in minor units (strictly positive)." amountMinor: Int! } "Issue-input for issueCreditNote." input IssueCreditNoteInput { "Optional: when omitted the default is 'credit note of '; when supplied it must be non-blank." caption: String "The superseded Invoice — same-group; ∈ {issued, closed} (a voided invoice refuses)." invoiceId: ID! "The required audit reason." reason: String! "The positive delta magnitudes, one per corrected invoice line (≥ 1, distinct invoiceLineNos)." lines: [NoteDeltaLineInput!]! } "Issue-input for issueDebitNote." input IssueDebitNoteInput { "Optional: when omitted the default is 'debit note of '; when supplied it must be non-blank." caption: String "The superseded Invoice — same-group; ∈ {issued, closed} (a voided invoice refuses)." invoiceId: ID! "The required audit reason." reason: String! "The positive delta magnitudes, one per corrected invoice line (≥ 1, distinct invoiceLineNos)." lines: [NoteDeltaLineInput!]! } "One receive-time disposition entry — addresses a return line by lineNo; one entry per (lineNo, disposition) pair; Σ per non-stockless line == the line quantity exactly (exact cover; stockless lines take NO entries)." input ReturnDispositionEntryInput { "The return line this entry covers (its 1-based lineNo)." lineNo: Int! "What happens to the returned units — restock, inspect, damaged or scrap." disposition: ReturnDisposition! "The quantity under this code (positive decimal string)." quantity: String! "Required for non-restock codes." reason: String } "Receive-input for receiveReturn." input ReceiveReturnInput { returnId: ID! "The doc revision the caller read." expectedRevision: ID! "The disposition cover (≥ 1 entries)." dispositions: [ReturnDispositionEntryInput!]! } "Refund-input for refundReturn." input RefundReturnInput { returnId: ID! "The doc revision the caller read." expectedRevision: ID! "The routing method: cash reaches the drawer; original_tender walks the reversible money LIFO — instrument redemptions reverse internally, integrated payments through the processor; store_credit mints a customer-bound instrument." method: ReturnRefundMethod! "Optional external reference (a processor id / credit-slip number)." reference: String "The open drawer session paying out — required for method=cash, refused otherwise." tillSessionId: ID "The store-credit customer binding: this block ∥ the Return's order-capture copy; absent both, the mint refuses VALIDATION/INVALID naming it." customer: OrderCustomerInput } "The wire-recordable manual drawer entry types: float_in/count_adjust are open/close-posted; cash_sale/cash_refund/change_given post only through the tender writers." enum ManualCashEntryType { paid_in paid_out drop pickup } "Open-input for openTillSession: the Register (tenant-scoped, active) + the counted opening float (1..8 distinct currencies, each >= 0 — a zero is an explicit statement and posts NO float_in entry)." input OpenTillSessionInput { "Optional: when omitted the default applies — 'till session at '; non-blank when supplied." caption: String registerId: ID! "The counted opening float per currency (distinct; >= 0 each). Every currency is a platform-registry code inside the register's organization's allowed set." float: [DrawerAmountInput!]! } "Close-input for closeTillSession: the counted drawer per currency (distinct; >= 0). The covering rule: every currency with a non-zero drawer total must be counted (state the zero — an uncounted one refuses VALIDATION naming it); counting an unledgered currency is legal (pure over)." input CloseTillSessionInput { tillSessionId: ID! "The doc revision the caller read." expectedRevision: ID! "The counted drawer (may be empty only when every drawer total is zero). Every currency is a platform-registry code inside the register's organization's allowed set." counted: [DrawerAmountInput!]! } "Record-input for recordCashEntry: a positive magnitude (the port stamps the type-law sign — paid_in/pickup into the drawer, paid_out/drop OUT); reason required; glCategory required on paid_in/paid_out and refused otherwise. The session must be open." input RecordCashEntryInput { tillSessionId: ID! entryType: ManualCashEntryType! "The entry currency — a platform-registry code inside the register's organization's allowed set." currency: String! "The positive magnitude in minor units — the port stamps the sign." amountMinor: Int! "Required — the merchant's drawer-op reason ('window cleaner', 'safe drop 14:00')." reason: String! "The GL category — required iff paid_in/paid_out; a bounded free string (the GAAP journal mapping is a named deferral)." glCategory: String "Optional caption override." caption: String "Provenance document refs (bounded free strings)." refs: [String!] } "The external_card capture input — a card authorized on a third-party pinpad, recorded: brand + authNumber required (strict); NO Stripe Payment, NO processor call." input TenderExternalCardInput { brand: String! last4: String deviceRef: String authNumber: String! } "The integrated-card presentation input: the opaque tokenized payment method the processor will charge. Brand/last4 are NOT accepted — the stored truth comes from the processor ACK." input TenderCardInput { methodRef: String! } input TenderInstrumentInput { instrumentId: ID code: String } "Apply-input for applyTender: collectedMinor = the cash physically handed over (before change, tip included) or the externally-authorized amount. cash requires the open till session and refuses the capture block; external_card the exact mirror; foreign_cash names the tendered currency (collectedCurrency — collectedMinor is in ITS minor units), requires the till, is converted at OUR stored BUY rate (settle + change in the org default currency; no covering rate = CONFLICT/NO_EFFECTIVE_RATE, retryable), and carries no tip (a named deferral). Dormant types refuse VALIDATION/UNSUPPORTED naming their arrival." input ApplyTenderInput { orderId: ID! "The Order revision the caller read." expectedRevision: ID! tenderType: TenderType! "The positive physical/authorized amount in minor units." collectedMinor: Int! "The tendered currency — required iff foreign_cash, refused otherwise. A platform-registry code inside the selling organization's allowed set." collectedCurrency: String "The tip portion of collectedMinor. Refused on foreign_cash." tipMinor: Int "The open drawer session — required for cash/foreign_cash, refused otherwise." tillSessionId: ID "The pinpad capture — required for external_card, refused otherwise." externalCard: TenderExternalCardInput "The tokenized method presentation — required for card, refused otherwise." card: TenderCardInput "The instrument presentation — required for gift_card/gift_certificate/store_credit, refused otherwise. The redeem lane: active-only · type⟺tender · same-currency · ≤ the remaining due (NO change — the no-cash-out strict default) · ≤ the balance (CONFLICT/INSUFFICIENT_BALANCE — exhaust exactly + split-tender the remainder); NO tip; NO tillSessionId (no drawer money)." instrument: TenderInstrumentInput "Optional — why this tender (at most 256 characters). When the tender charges a house account (on_account) the reason is recorded on that ledger too — at most 256 characters there." reason: String "Optional caption override." caption: String "Provenance document refs (bounded free strings)." refs: [String!] } "Refund-input for refundTender: a positive magnitude (the port stamps the negative sign); cap = the net tendered (CONFLICT/OVER_TENDERED); cash is live; the stored-value types joined." input RefundTenderInput { orderId: ID! "The Order revision the caller read." expectedRevision: ID! "cash + the stored-value types are live; card refunds ride the processor path; recorded external-card refunds ride the Return lane." tenderType: TenderType! "The positive magnitude to refund in minor units." amountMinor: Int! "The open drawer session paying out — required for cash, refused otherwise." tillSessionId: ID "The explicit instrument refund target — required for stored-value types, refused otherwise: a refund_reversal credits it in ONE transaction; a depleted target re-opens; doomed/inactive refuse CONFLICT/REF_STATE." instrument: TenderInstrumentInput "Required — money leaves the business (at most 256 characters). When the refund credits a house account (on_account) the reason is recorded on that ledger too — at most 256 characters there." reason: String! caption: String refs: [String!] } "Input for processReaderPayment: the reader is never named here — it resolves from the caller'S device session (the composite-POS law: exactly ONE active registered card reader on the paired device). amountMinor = the portion applied toward the order balance (≤ the remainder exactly); tipMinor charges ON top. The op returns the created Payment and the reader takes over — poll the payment record: the processor confirm commits the tender + the authorize flip; a reader decline lands it failed." input ProcessReaderPaymentInput { orderId: ID! "The Order revision the caller read." expectedRevision: ID! "The amount applied toward the order balance in minor units (≤ the remainder exactly — the applyTender card law)." amountMinor: Int! "The tip charged ON top of amountMinor." tipMinor: Int reason: String "Optional caption override." caption: String "Provenance document refs (bounded free strings)." refs: [String!] } "No-sale input: open the drawer without a sale; moves NO money — the write is the noSaleCount/lastNoSaleAt stamp (the audit/fraud feed reads the stream)." input NoSaleInput { tillSessionId: ID! "The doc revision the caller read." expectedRevision: ID! "Required — why the drawer opened without a sale ('change for a customer')." reason: String! } "The posReturn refund routing." input PosReturnRefundInput { method: ReturnRefundMethod! reference: String "Required for method=cash (the drawer paying out), refused otherwise." tillSessionId: ID } "One-shot input for posReturn: the NewReturn essentials + the receive disposition cover + the refund routing, walked requested→approved→received→refunded in ONE call." input PosReturnInput { "Optional." caption: String "The Order being returned against — same-group; placed or completed." orderId: ID! "Optional Invoice ref — must belong to orderId (the receipted-return audit edge)." invoiceId: ID "The processing/receiving LF — becomes the parent." logicalFacilityId: ID! "The returned lines (1..45, distinct orderLineNos — the ReturnLineInput shape verbatim)." lines: [ReturnLineInput!]! "The receive cover." dispositions: [ReturnDispositionEntryInput!]! refund: PosReturnRefundInput! } "Copy-input for copyCannedRole: the template key + an optional caption override; the compiled v-pinned descriptors + the authorityTier + the provenance stamps (templateKey/templateVersion) copy port-side — customize after the copy via updateRole. A copy never auto-revs when the template does (fork semantics)." input CopyCannedRoleInput { "The canned template key (cannedRoles lists the 7)." key: RoleTemplateKey! "Optional caption override." caption: String } "Request-input for requestApproval: a live gated action + its target + the parent coordinate (tillSessionId XOR logicalFacilityId) + the required reason." input RequestApprovalInput { "The gated action." action: String! "The blocked action's target — the construct the action gates; state-gated to where the action's op fires." targetId: ID! "The bound value (integer minor units) — required for discount.apply; refused for whole-target actions." valueMinor: Int "The open TillSession the action runs in (the parent; XOR logicalFacilityId)." tillSessionId: ID "The active LF the action runs at when no till session is involved (XOR tillSessionId)." logicalFacilityId: ID "Why the requester needs the override." reason: String! "Optional caption override." caption: String } "Ship-input for shipFulfillment: an effective ship-to is required (stored at create or supplied here — the payload replaces as the label truth); carrier/tracking are capture-only." input ShipFulfillmentInput { fulfillmentId: ID! "The doc revision the caller read." expectedRevision: ID! "The late/replacing ship-to capture (required here iff none stored)." shipTo: FulfillmentShipToInput "The carrier name capture." carrierName: String "The tracking reference capture." trackingRef: String } "Evidence-input for submitEvidenceDispute: ONE free-text field (the minimal-strict surface — maps to the processor's uncategorized_text evidence slot; structured evidence fields are deferred growth)." input SubmitEvidenceDisputeInput { disputeId: ID! "The doc revision the caller read." expectedRevision: ID! "The evidence free text (1..4000; submitted verbatim with submit=true — the processor adjudicates)." evidenceText: String! } "Activate-input for activateStoredValueInstrument: the issued load + the required reason ride the flip." input ActivateStoredValueInstrumentInput { instrumentId: ID! "The instrument revision the caller read." expectedRevision: ID! "The value the activation issues (≥ 1 — an instrument never activates empty)." amountMinor: Int! "Required — money is born; at most 256 characters — it is recorded on the issue entry." reason: String! } "Schedule-input for scheduleMarkdownPlan." input ScheduleMarkdownPlanInput { planId: ID! "The plan revision the caller read." expectedRevision: ID! "Optional narration — rides the transition events." reason: String } "Cancel-input for cancelMarkdownPlan." input CancelMarkdownPlanInput { planId: ID! "The plan revision the caller read." expectedRevision: ID! "Optional narration — rides the transition events + the doomed records' causes." reason: String } "Pay-input for arPay." input ArPayInput { "The OrgCustomer house account." orgCustomerId: ID! "The positive payment magnitude in minor units (the account's arCurrency lane; > the balance refuses CONFLICT/INSUFFICIENT_AR_BALANCE naming live figures)." amountMinor: Int! "Optional narration (a cheque reference)." reason: String } "Writeoff-input for arWriteoff." input ArWriteoffInput { orgCustomerId: ID! "The positive writeoff magnitude in minor units (≤ the balance — the never-negative law)." amountMinor: Int! "Required — bad debt always says why." reason: String! } "Settle-input for settleCreditNoteToAr." input SettleCreditNoteToArInput { creditNoteId: ID! "The note revision the caller read." expectedRevision: ID! "Optional narration — rides the close transition + the entry." reason: String } "Settle-input for settleDebitNoteToAr." input SettleDebitNoteToArInput { debitNoteId: ID! "The note revision the caller read." expectedRevision: ID! reason: String } "Reorder-input for reorderOrder: the sale-profile non-doomed source + optional context overrides." input ReorderOrderInput { "The source Order (tenant-scoped): sale-profile only (a draft/quote converts via accept; other profiles refuse VALIDATION/UNSUPPORTED) + non-doomed (cancelled/voided/abandoned refuse CONFLICT/REF_STATE naming the state)." orderId: ID! "Override the selling org (default: the source's) — active-gated; the clone currency snapshots the effective org's defaultCurrency." organizationId: ID "Override the selling/fulfilling LF (default: the source's) — active + must belong to the effective org (the spine law)." logicalFacilityId: ID "Override the selling channel (default: the source's) — decides the clone's parent (pos → the LF; ecom → the org) + the reserve arm at place." channel: OrderChannel } "Copy-input for copyCannedConsentPurpose: the template key + an optional caption override; the code + consentModel + the provenance stamps (templateKey/templateVersion) copy port-side — customize after the copy via updateConsentPurpose. A copy never auto-revs when the registry does (fork semantics)." input CopyCannedConsentPurposeInput { "The canned template key (cannedConsentPurposes lists the 6)." key: ConsentPurposeTemplateKey! "Optional caption override." caption: String } "Staff decide-input for grantConsent/withdrawConsent: the acted-on consumer is named and the capture surface is required." input ConsentDecisionInput { "The acted-on Consumer." consumerId: ID! "The ConsentPurpose decided on (tenant-scoped + active — a retired purpose refuses CONFLICT/REF_STATE naming it)." purposeId: ID! "The consent-notice/policy version presented at this decision." policyVersion: String! "Where the decision was captured — storefront | pos | back_office | cli | import." captureSurface: String! "The locale presented (canonical BCP-47 core); optional." captureLocale: String } "Consumer decide-input for grantMyConsent/withdrawMyConsent: the principal's OWN consumerId + the server-fixed storefront captureSurface stamp kit-side." input MyConsentDecisionInput { "The ConsentPurpose decided on (tenant-scoped + active)." purposeId: ID! "The consent-notice/policy version presented (1..128)." policyVersion: String! "The locale presented (canonical BCP-47 core); optional." captureLocale: String } "One CS-case thread message. internal_note rows never serialize to the consumer face." type CaseMessage { id: ID! type: String! caption: String! status: String! "The owning CsCase." parentId: ID! "The org-group family root." rootId: ID! createdAt: String! updatedAt: String! revisionNum: Int! revision: ID! "consumer | user | system — WHO wrote it (system rows carry NO authorId; the future auto_close trail)." authorKind: String! "The authoring principal (a Consumer or User id — server-stamped from the channel); absent on system rows." authorId: ID "customer_visible | internal_note — internal notes are staff-face only." visibility: String! "The message body (1..4096)." body: String! } "One page of a case's thread." type CaseMessagePage { items: [CaseMessage!]! "Present ⇒ more may remain (pass back verbatim as nextToken); null ⇒ the thread is complete. Opaque + case-bound." nextToken: String } input NewCaseMessageInput { "The case appended to (tenant-scoped; a terminal case refuses CONFLICT/IMMUTABLE)." caseId: ID! "The message body (1..4096)." body: String! "customer_visible | internal_note." visibility: String! } "Consumer case-open input for openMyCase." input OpenMyCaseInput { "The subject line (required — an unnamed case is meaningless)." caption: String! "return_request | refund_inquiry | product_issue | complaint | general_inquiry | warranty_claim | shipping_issue | order_change | other." caseType: String! "The opening message body." body: String! "Optional OWN-order ref — must trace to the caller (cross-owner refuses NOT_FOUND, no leak)." orderId: ID "Optional OWN-return ref — same ownership law." returnId: ID } "Consumer reply-input for addMyCaseMessage." input NewMyCaseMessageInput { "The caller's OWN case (cross-owner refuses NOT_FOUND)." caseId: ID! "The message body (1..4096)." body: String! } "Consumer rma-input for requestMyReturn." input RequestMyReturnInput { "The caller's OWN Order (explicit id — order browse is the storefront; cross-owner refuses NOT_FOUND)." orderId: ID! "The returned lines (≥ 1, distinct orderLineNos, positive quantities — the ReturnLineInput shape verbatim)." lines: [ReturnLineInput!]! } "One desired variant on a GiftRegistry. variantId is the membership identity (immutable — remove + re-add instead); remove = doom, history preserved." type RegistryItem { id: ID! type: String! caption: String! "active | doomed (removed — history; the marker frees by takeover)." status: String! "The owning GiftRegistry." parentId: ID! "The org-group family root." rootId: ID! createdAt: String! updatedAt: String! revisionNum: Int! revision: ID! "The desired Variant. Immutable." variantId: ID! "1..999." desiredQty: Int! "low | normal | high — the owner's signal to gift-givers (optional)." priority: String "The owner's note (1..512, optional)." note: String } "One page of a registry's item rows." type RegistryItemPage { items: [RegistryItem!]! "Present ⇒ more may remain (pass back verbatim as nextToken); null ⇒ the list is complete. Opaque + registry-bound." nextToken: String } "One recorded purchase against a registry item. Purchased qty per item = Σ these rows' qty; remaining = max(0, desired − purchased) — over-fulfillment records legally." type RegistryFulfillment { id: ID! type: String! caption: String! status: String! "The owning GiftRegistry." parentId: ID! "The org-group family root." rootId: ID! createdAt: String! updatedAt: String! revisionNum: Int! revision: ID! "The fulfilled RegistryItem (its row id — validated active in this registry at record)." registryItemId: ID! "The fulfilling Order (ref-only — NO order amendment)." orderId: ID! "The fulfilling order line." orderLineNo: Int! "1..999." qty: Int! "The gift-giver when a registered Consumer (guest purchasers absent)." purchaserConsumerId: ID } "One page of a registry's fulfillment facts." type RegistryFulfillmentPage { items: [RegistryFulfillment!]! "Present ⇒ more may remain (pass back verbatim as nextToken); null ⇒ the list is complete." nextToken: String } "Item ADD input — shared by both lanes. The (registry × variant) marker mints in the same transaction; the registry must be active; the active-items ceiling (200) gates kit-side." input NewRegistryItemInput { "The target registry (tenant-scoped; the consumer lane requires ownership — cross-owner refuses NOT_FOUND)." registryId: ID! "The desired Variant (in-tenant + active)." variantId: ID! "1..999." desiredQty: Int! "low | normal | high." priority: String "1..512." note: String } "Item edit input — shared by both lanes. variantId is deliberately absent — the membership identity (remove + re-add instead, the CollectionMember law)." input EditRegistryItemInput { registryId: ID! itemId: ID! desiredQty: Int priority: String note: String } "Fulfillment record input." input RecordRegistryFulfillmentInput { registryId: ID! registryItemId: ID! orderId: ID! "The fulfilling order line." orderLineNo: Int! "1..999." qty: Int! "The gift-giver when a registered Consumer (optional)." purchaserConsumerId: ID } "Consumer registry-open input for createMyGiftRegistry." input CreateMyGiftRegistryInput { "The registry name (required — an unnamed registry is meaningless)." caption: String! "wedding | baby | birthday | anniversary | holiday | wishlist | custom." registryType: String! "public | unlisted | private — defaults 'private'." privacy: String "ISO-8601 instant — present ⇒ arms the scheduled expiry." eventDate: String shipTo: RegistryShipToInput } "Consumer review-submit input for submitMyReview." input SubmitMyReviewInput { "The reviewed Product (in-tenant + non-doomed)." productId: ID! "1..5 (integer)." rating: Int! "1..200." title: String! "1..4096." body: String! orderId: ID } "Consumer review-edit input for updateMyReview. productId is deliberately absent (the marker identity — re-target = a NEW review after removal); supplying orderId re-runs the pointed proof; the state never moves on edit." input EditMyReviewInput { "The author's OWN review (cross-author refuses NOT_FOUND)." reviewId: ID! rating: Int title: String body: String "Re-runs the pointed proof." orderId: ID } "One platform token-ledger fact. The wallet's balance = Σ these rows' signed amounts exactly — cached in the same transaction as every append." type TokenEntry { id: ID! type: String! caption: String! status: String! "The owning TokenAccount." parentId: ID! "The org-group family root." rootId: ID! createdAt: String! updatedAt: String! revisionNum: Int! revision: ID! "purchase | plan_included | grant | drawdown | transfer | adjustment." entryKind: String! "The signed integer token amount — the sign IS the flow direction (purchase/grant +, drawdown −, transfer ±, adjustment ±)." amountTokens: Int! "The reason text — always present on grant/adjustment (root money moves say why); optional narration otherwise." reason: String "The settled TokenPurchase." tokenPurchaseId: ID "The BillingCharge whose settle minted this credit." billingChargeId: ID "The transfer counterpart's org group." transferCounterpartRootId: ID "The transfer counterpart's entry (the sum-conserving pair cross-reference — transfer entries only)." transferCounterpartEntryId: ID "The per-(event × dimension) itemization." drawdownLines: [TokenDrawdownLine!] "The µtoken accrual carried into this entry from prior sub-token usage." carriedInMicroTokens: Int "The µtoken remainder carried OUT to the wallet's microTokenCarry after this entry materialized." carriedOutMicroTokens: Int "The rate card that priced this entry." rateCardVersion: Int } "One drawdown line — the per-(event × dimension) itemization." type TokenDrawdownLine { "The rated usage event's id." usageEventId: ID! "records_storage | blob_storage | archived_blob_storage | compute | bandwidth_in | bandwidth_out | api_call." dimension: String! "The measured quantity in the dimension's declared unit (integer)." quantity: Int! "The line's micro-token product (quantity × the card rate; 1,000,000 micro-tokens = 1 token)." microTokens: Int! } "One page of a wallet's token-ledger facts." type TokenEntryPage { items: [TokenEntry!]! "Present ⇒ more may remain (pass back verbatim as nextToken); null ⇒ the ledger is walked to the wallet's birth month. Opaque + wallet-bound." nextToken: String } "One platform referral-earnings fact. accrue (+, the subscription line — 20% of each referred group's collected base-fee overhead, lifetime both-in-good-standing) · usage (+, the consumption line — 10% of the referred group's monthly consumed paid-kernel value, its first 12 billed months) · applied (−, bill-netting — your own base fee credit-settled against earnings) · clawback (−, a dispute reversal). Each entry snapshots its rate + basis (self-auditing at every parse)." type AffiliateAccrual { id: ID! type: String! caption: String! status: String! "The paying group's TokenAccount (the driving fact's own anchor — your wallet on applied entries)." parentId: ID! "The paying org group." rootId: ID! createdAt: String! updatedAt: String! revisionNum: Int! revision: ID! "accrue | usage | applied | clawback." entryType: String! "The earning org group." ownerOrgGroupId: ID! "The entry's month (yyyy-mm — the collected/consumed/netted period)." periodMonth: String! "accrue only: the referred group's billed-cycle ordinal." cycle: Int "The rate that applied (percent — the two earning lines; snapshotted, the entry never lies)." ratePercent: Int "accrue only: the accrual basis in USD cents." collectedUsdCents: Int "usage only: the month's consumed paid-kernel value this entry commissions (USD cents — exact per-block prices)." usageBasisCents: Int "The figure, USD cents — signed by type: accrue/usage strictly positive · applied/clawback strictly negative." amountUsdCents: Int! "accrue only: the driving BillingCharge. Absent on a credit-settled cycle's accrue (no charge document exists — the payer's own applied entry is the netting's trail)." billingChargeId: ID } "One kernel block — a settled purchase's stock lifecycle. Blocks consume oldest-first with at most ONE open at a time; a block earmarked for transfer freezes until the decision (it cannot be consumed — freezing most of your stock can starve the wallet, the disclosed strictness); an opened block can never transfer (the purity law); a transferred block records where it went." type KernelBlock { "== the funding TokenPurchase id (one id, two records)." id: ID! type: String! caption: String! "allocated (charge in flight) · approved (money settled — in the queue; transferable) · opened (being consumed — transfer-ineligible forever) · consumed (none left) · transfer_requested (frozen, awaiting the decision) · transfer_denied (stock again — consumable, re-requestable) · transfer_approved (frozen — execute or lapse) · transferred (moved whole) · doomed (the charge failed)." status: String! "The group wallet (the queue's operational home)." parentId: ID! rootId: ID! createdAt: String! updatedAt: String! revisionNum: Int! revision: ID! "The block's whole size (kernels/tokens — blocks move whole)." tokensPurchased: Int! "What the block cost (USD cents — its own consumption is valued at exactly this, proportionally)." usdAmountCents: Int! "The volume tier that priced it." volumeTierCode: String! "When the money settled (absent = not yet stock / the charge failed)." approvedAt: String "When the queue first reached it (present ⇒ it can never transfer — the purity law)." openedAt: String "When it fully drained." consumedAt: String "The latest transfer ask (re-asks refresh it)." transferRequestedAt: String "The requested destination group." transferRequestedToOrgGroupId: ID "Your request's reason (rides the review)." transferRequestReason: String "The latest deny + the reviewed reason (a denied block is stock again)." transferDeniedAt: String transferDeniedReason: String "Where it went (present ⟺ transferred)." transferredToOrgGroupId: ID transferredAt: String } "Your group's claimed referral code." type ClaimedReferralCode { "The shareable code (give it to businesses you refer — they enter it at signup)." code: String! "What the referred business gets: this percent off their monthly base fee…" promotionPercent: Int! "…for this many billing cycles (the two-sided standard)." promotionCycles: Int! } "One Stripe revshare give-back entry. ONE entry per closed month PER positive-net currency where the group's earned tier stood (the per-currency basis — no cross-currency math ever); every figure is snapshotted (self-auditing — amountMinor == the half-up volume × rateBps × tierBp product at every parse)." type GiveBackAccrualEntry { id: ID! type: String! caption: String! status: String! "The group's TokenAccount (the wallet anchor)." parentId: ID! "The earning org group — the reader's own." rootId: ID! createdAt: String! updatedAt: String! revisionNum: Int! revision: ID! "accrue (the v1 roster verbatim — clawback/adjust arrive with the payout lane, worded)." entryType: String! "The closed month the entry pays back (yyyy-mm)." periodMonth: String! "Real consecutive good-standing months at the evaluation." tenureMonths: Int! "Tenure + any switcher clock credit — what the ladder read." effectiveTenureMonths: Int! "ladder | heritage (the flat-100% GEN-convert rule)." basis: String! "The earned share, basis points (2500 · 5000 · 7500 · 10000)." tierBp: Int! "The revshare rate that applied, basis points of volume (snapshotted — the config is adjustable, the entry never lies)." rateBps: Int! "The give-back config version in force at the mint." rateVersion: Int! "The entry's currency — the netted volume's own (one entry per positive-net currency)." currency: String! "The NET basis the entry pays on (the month's settled volume − refund netting + any consumed carry), minor units." volumeMinor: Int! "The accrued figure in the entry's currency, minor units — strictly positive (the zero-skip law)." amountMinor: Int! } "One lifetime give-back total." type GiveBackLifetimeTotal { currency: String! "Σ every accrued entry in this currency, minor units." amountMinor: Int! } "The caller group's give-back standing (the program's merchant-visible transparency surface): the derived tenure clock, the earned tier, the next rung, and the earned ledger. Figures are as of computedThroughMonth — the last closed month the billing engine decided." type GiveBackReport { convertedFrom: String revokedAt: String "The root’s spoken revocation reason (at most 256 characters; present with revokedAt)." revokedReason: String "Real consecutive good-standing months (0 = no live streak / nothing evaluated yet)." tenureMonths: Int! "Tenure + any switcher clock credit — what the ladder reads." effectiveTenureMonths: Int! "ladder | heritage — how the current tier is earned." basis: String! "The earned share NOW, basis points (0 = not yet earning)." tierBp: Int! "The next ladder rung above the current effective months (absent at the top and for a standing heritage 100%)." nextTierAtMonths: Int nextTierBp: Int "The last closed month the platform decided (absent = no month ever evaluated)." computedThroughMonth: String "Σ every accrued entry per currency, minor units, currency-ascending." lifetime: [GiveBackLifetimeTotal!]! "The earned entries, newest-first + bounded (limit clamps [1,200] default 50; before pages backward by entry id)." accruals: [GiveBackAccrualEntry!]! } "One referred signup on your referral code and where it stands." type ReferredSignup { "The referred org group (the business that signed up with your code — its own group id, the same handle it shares for kernel-block transfers)." referredOrgGroupId: ID! "The referred group's code (its merchant handle). Null when the group no longer exists." referredGroupCode: String "pending (awaiting AlmondTill's approval) | approved (earning from their next billing cycle) | denied (this referral will not earn — their own discount stands). Null when the group no longer exists. Derived from the referred group's own standing — never stored on the roster row." standing: String "When the referred group was born on your code (UTC ISO-8601) — the review clock starts here; pending-era months never retro-accrue." createdAt: String! "The decision instant (UTC ISO-8601); null while pending." decidedAt: String } "How one referred business is performing for you: the roster row's fields verbatim (the ReferredSignup shape) plus what its months have earned you." type ReferralPerformance { "The referred org group (the business that signed up with your code)." referredOrgGroupId: ID! "The referred group's code (its merchant handle). Null when the group no longer exists." referredGroupCode: String "pending | approved | denied — derived from the referred group's own standing; null when the group no longer exists." standing: String "When the referred group was born on your code (UTC ISO-8601)." createdAt: String! "The decision instant (UTC ISO-8601); null while pending." decidedAt: String "Line-1 months that paid you — one accrue entry each (the subscription share; lifetime while both groups stand)." cyclesEarned: Int! "The referred group's billed-cycle ordinal at its last line-1 mint (1-based). Null before the first mint." latestCycle: Int "Line-2 months that paid you — one usage entry each (the consumption share inside the referred group's first 12 billed months; a month with no paid consumption mints nothing and still spends a window month)." usageMonthsEarned: Int! "Billed months left in the usage window AS OF the last line-1 mint (12 − latestCycle, floored at 0). Null before the first mint." usageMonthsLeft: Int "What this business earned you, lifetime (accrue + usage; USD cents, ≥ 0)." earnedUsdCents: Int! "Dispute reversals traced to this business (USD cents, ≤ 0)." clawbackUsdCents: Int! "The first month (yyyy-mm) an earning entry landed for this business; null before the first." firstEarnedMonth: String "The last month (yyyy-mm) an earning entry landed for this business; null before the first." lastEarnedMonth: String } "One month of your referral earnings: the four entry types summed for that period, the net, and how many referred businesses earned that month." type ReferralMonth { "The period, UTC yyyy-mm." periodMonth: String! "Σ accrue that month (the subscription share; ≥ 0)." accrueUsdCents: Int! "Σ usage that month (the consumption share; ≥ 0)." usageUsdCents: Int! "Σ applied that month (your own base fee credit-settled from earnings; ≤ 0)." appliedUsdCents: Int! "Σ clawback that month (dispute reversals; ≤ 0)." clawbackUsdCents: Int! "The four summed (signed)." netUsdCents: Int! "Distinct referred businesses with an earning entry that month." earningReferrals: Int! } "Your referral program at a glance: counts by standing, lifetime totals by kind (signed like the ledger: earned ≥ 0 · applied/clawback ≤ 0), the spendable credit, the newest 12 months that carry entries, and one page of referred businesses with their figures." type ReferralReport { "Every business that signed up with your code — gone ones included." referredCount: Int! pendingCount: Int! approvedCount: Int! deniedCount: Int! "Referred businesses that no longer exist on the platform (their rows read blank — no code, no standing)." goneCount: Int! "Referred businesses with at least one earning entry (accrue or usage)." earningCount: Int! "Lifetime Σ accrue + usage (USD cents, ≥ 0)." earnedUsdCents: Int! "Lifetime Σ applied — your own base fees credit-settled from earnings (USD cents, ≤ 0)." appliedUsdCents: Int! "Lifetime Σ clawback — dispute reversals (USD cents, ≤ 0)." clawbackUsdCents: Int! "Your wallet's spendable referral credit (USD cents). Null when the group holds no wallet." spendableUsdCents: Int "The newest 12 months that carry entries, newest-first." months: [ReferralMonth!]! "One page of your referred businesses, newest-first by the referred group's id (limit clamps [1,200] default 50; before = a strict id upper bound — the affiliateAccruals grammar)." referrals: [ReferralPerformance!]! } "The caller group's handholding-plan report: the live size classing (what a purchase today charges), the ruled per-incident price, and the plan's standing in the ONE coverage vocabulary." type SupportPlanReport { "The size class the trailing quarter's consumption lands in today." sizeClass: String! "What a quarter at that class charges, USD cents ($250 · $500 · $1,000 · $3,750 — the public page's own figures)." quarterUsdCents: Int! "The classing basis in whole tokens/month (display words — the exact compare runs in kernels)." basisTokensPerMonth: Int! "The size-threshold config version that classed it." thresholdsVersion: Int! "The planless per-incident human-support price, USD cents ($25 — 'the paid tow', a deliberate-ask deductible; it stays open during the activation wait)." incidentUsdCents: Int! "The coverage standing: none | pending_first_collection | waiting (inside the 72 h activation wait) | active | active_canceled (paid coverage serves; renewals stopped) | lapsed." standing: String! "the instant the wallet's complimentary onboarding window ends (the wallet's birth + includedDays — 90 days for every account; the window includes handholding-equivalent human support at the base price). Absent = the group holds no wallet." onboardingUntil: String "is the onboarding window covering right now (server-computed — no activation wait applies; the window is not purchasable)?" onboardingCovers: Boolean! "The days of staffed support the group's wallet includes from its birth: 90 days for every account (the group's stored supportIncludedDays — a later change of the rule never moves a standing group). onboardingUntil = the wallet's birth + these days." includedDays: Int! "The latest purchase instant (absent = never purchased)." purchasedAt: String "purchasedAt + the 72 h activation wait in force at purchase (the CAA law — a plan serves no incident before this)." activatesAt: String "The last covered month, UTC yyyy-mm (absent while the first collection is un-settled)." coveredThroughMonth: String "The cancel instant (absent = standing)." canceledAt: String } "Custody attach input." input AttachTokenAccountBillingMethodInput { "The Stripe PaymentMethod token (pm_…) to store for off-session charging." methodRef: String! } "The block-transfer ask." input RequestKernelBlockTransferInput { "The blocks to move (each == its purchase id; distinct; ≤ 16)." blockIds: [ID!]! "The receiving org group." toOrgGroupId: ID! "Why — the review reads it." reason: String! } input GrantTokensInput { "The receiving org group (the wallet's root)." orgGroupId: ID! "The positive grant magnitude (a grant loads tokens)." amountTokens: Int! "Required — root money moves always say why." reason: String! } input AdjustTokensInput { orgGroupId: ID! "The signed non-zero correction." amountTokens: Int! "Required — corrections always say why." reason: String! } input TransferTokensInput { "The sending org group (its wallet posts the negative side)." fromOrgGroupId: ID! "The receiving org group (its wallet posts the positive side)." toOrgGroupId: ID! "The positive magnitude moved (the pair is sum-conserving by construction)." amountTokens: Int! reason: String! } type TokenGrantResult { entry: TokenEntry! tokenAccount: TokenAccount! } type TokenTransferResult { outEntry: TokenEntry! inEntry: TokenEntry! fromTokenAccount: TokenAccount! toTokenAccount: TokenAccount! } "The review queues hold NON-terminal requests only (rows release at the terminals); history reads by id forever." type ChangeRequest { id: ID! "The construct type discriminant." type: String! "The CQ-… sysId." sysId: String! caption: String! "submitted | in_review | needs_info | approved | realizing | realized | realization_failed | rejected | cancelled." status: String! "The registry — 'onboarding_signup' (the public signup) | 'org_park' | 'org_unpark' | 'demo_request' (the public demo request — the onboarding profile's sibling, a request of its own); the profile discriminant." requestType: String! "The onboarding profile's form (present ⟺ requestType is onboarding_signup — the profile pair is exactly-one-set; the ONE resubmit-mutable field)." payload: OnboardingSignupPayload "The management profile's form." lifecyclePayload: OrganizationLifecyclePayload "The reviewer's clarification ask (stamped by requestChangeRequestInfo; the v1 answer lane is out-of-band + resubmitChangeRequest)." needsInfoNote: String "The rejection reason." rejectReason: String "The convergent-resume stamps." realizedAccountId: ID realizedOrgGroupId: ID "Present ⟺ the realization's classification minted the fused wallet." realizedTokenAccountId: ID realizedClassification: String "The last realization fault,." realizationFault: String createdAt: String! updatedAt: String! revisionNum: Int! } "The prospect's evaluation scope — derived from the contracts ONBOARDING_EVALUATION_SCOPES." enum OnboardingEvaluationScope { one_location one_workflow whole_business } "The launch countries — derived from the contracts LAUNCH_COUNTRIES. The signup payload’s country rides it; every org-create jurisdiction is gated to the same roster." enum LaunchCountry { CA US AU NZ } "The prospective merchant's signup form." type OnboardingSignupPayload { email: String! loginName: String! accountCaption: String groupCaption: String! message: String "The optional referral code." referralCode: String "The prospect's evaluation scope." evaluationScope: OnboardingEvaluationScope "The merchant’s country." country: LaunchCountry } "The submit/resubmit form (the payload's input twin)." input OnboardingSignupPayloadInput { "The owner Account's email — the one-live-signup-per-email uniq coordinate (frees at every terminal)." email: String! "The desired owner loginName — advisory until realization reserves it." loginName: String! accountCaption: String "The merchant's business/group display caption." groupCaption: String! "Free-text context for the reviewer — bounded; never machine-consumed." message: String "The optional referral code." referralCode: String "The Terms-of-Service acceptance: the current published version string, accepted verbatim. SDL-optional for wire compatibility, but the submit engine requires it equal to the current version — absent/stale refuses the ONE opaque signup sentence." tosVersion: String "The optional evaluation scope: what the prospect wants to prove first — one_location | one_workflow | whole_business; a stray value is refused by the enum itself; resubmit may change it (a stated intent, not a reservation coordinate)." evaluationScope: OnboardingEvaluationScope "The merchant’s country: one of the launch countries. SDL-optional for wire compatibility, but the submit engine requires it — absent refuses naming the field; a non-launch value is refused by the enum itself; resubmit may change it (a stated fact, not a reservation coordinate)." country: LaunchCountry } "What the public submit returns." type SubmitOnboardingSignupResult { requestId: ID! status: String! "The human-readable application reference." reference: String! } "The public demo request's form: a short ask for a demonstration, separate from the account application; strict and hard-bounded at the boundary; no terms acceptance, no login name, no referral code." input DemoRequestInput { "Who is asking — 1 to 200 characters." contactName: String! "Where the reply goes — the account email grammar; one live demo request per email." email: String! "The business asking — 1 to 200 characters; the request's caption reads Demo — ." businessName: String! "The business's country — one of the launch countries (the launch-country gate verbatim). SDL-optional for wire compatibility, but the platform requires it: absent refuses naming the field; a non-launch value is refused by the enum itself." country: LaunchCountry "What the business uses today — optional, up to 120 characters." currentSystem: String "What they would most like to see — optional, up to 500 characters." need: String } "What the public demo request returns." type RequestDemoResult { requestId: ID! status: String! "The human-readable reference (the CQ-… sysId — the requester's letter prints it)." reference: String! } "What the public redeem returns." type RedeemOnboardingEmailVerificationResult { status: String! } "What the public resend ask returns." type ResendOnboardingEmailVerificationResult { status: String! } "What the public reset ask returns." type RequestPasswordResetResult { status: String! } "What the public reset completion returns." type CompletePasswordResetResult { status: String! } "What the public reset-context read returns: the account email behind a live reset token — the set-new-password page’s account line + the username field a password manager pairs with the new password." type PasswordResetContext { email: String! } "The public resend ask." input ResendOnboardingEmailVerificationInput { "The application reference from the receipt — CQ-XXXX-XXXX-XXXX (any casing)." reference: String! "The application's email, exactly as submitted." email: String! } "The management profile's form." type OrganizationLifecyclePayload { organizationId: ID! "Free-text context for the reviewer (why park/unpark) — bounded; never machine-consumed." message: String } "The submit/resubmit form of the management profile." input OrganizationLifecyclePayloadInput { "The target Organization — the pending-(type×org) reservation coordinate: resubmit may NOT change it (the onboarding email law's exact analog; a different org is a NEW request)." organizationId: ID! "Free-text context for the reviewer — bounded; never machine-consumed." message: String } type ChangeRequestPage { items: [ChangeRequest!]! "Present ⇒ more may remain (pass back verbatim as nextToken); null ⇒ the walk is complete." nextToken: String } "One platform merchant-acquisition referral code." type ReferralCode { id: ID! "The RD-… sysId." sysId: String! caption: String! "active | inactive (disabled — the marker kept, new signups refuse) | doomed (declared-dormant)." status: String! "single_email (bound, once, may carry the promotion) | multi (open attribution; optional caps/window) — immutable at birth." kind: String! "The normalized code (trim + uppercase — entry is case-insensitive; immutable at birth, the coupon law)." code: String! "The attribution label the born group's referredBy carries (e.g. partner-podcast)." channel: String! "The affiliate org group commissions accrue to — absent = house/campaign attribution." ownerOrgGroupId: ID "single_email only: the ONE prospect email this code serves (matched case-insensitively at submit)." boundEmail: String "single_email only: the v1 percent×cycles base-fee promotion the born group is stamped with." billingPromotion: ReferralBillingPromotion "multi only: the total-consumption cap." maxUses: Int "multi only: the half-open [startAt, endAt) window start (absent = already open)." startAt: String "multi only: the half-open window end (absent = evergreen)." endAt: String createdAt: String! updatedAt: String! revisionNum: Int! } "The v1 referral billing promotion." type ReferralBillingPromotion { "platform_fee_discount (the future-variant seam)." kind: String! percent: Int! cycles: Int! } "The promotion's input twin." input ReferralBillingPromotionInput { kind: String! percent: Int! cycles: Int! } "The mint form." input NewReferralCodeInput { "Optional display caption — defaults to the normalized code." caption: String "The RAW vanity code — absent ⇒ the kit generates REF-XXXX-XXXX." code: String "single_email | multi." kind: String! channel: String! ownerOrgGroupId: ID boundEmail: String billingPromotion: ReferralBillingPromotionInput maxUses: Int startAt: String endAt: String } "The usage story." type ReferralCodeUsage { "Live reservations + consumptions (multi — bounded by maxUses modulo the disclosed check-then-add race)." held: Int! "Realized births — the attribution stat." used: Int! "single_email: a live application holds (or a realized one consumed) the pending slot." singleReserved: Boolean! } "The root read result — the code + its usage story." type ReferralCodeDetail { referralCode: ReferralCode! usage: ReferralCodeUsage! } "One ReferralCode page — the permanent referralreg walk: every code, ANY status (≠ the live-only onboarding queue)." type ReferralCodePage { items: [ReferralCode!]! "Present ⇒ more may remain (pass back verbatim as nextToken); null ⇒ the walk is complete." nextToken: String } "One generic note on ANY same-tenant construct. Internal-only in v1 (no consumer face — CsCase owns that lane)." type Note { id: ID! type: String! caption: String! status: String! "The annotated target construct (ANY same-tenant type — the note's parent)." parentId: ID! "The org-group family root." rootId: ID! createdAt: String! updatedAt: String! revisionNum: Int! revision: ID! "The target's construct type — server-stamped from the existence read (the tombstone render's anchor)." targetType: String! "The authoring staff User (server-stamped from the principal — notes are internal-only in v1)." authorId: ID! parentNoteId: ID "The optional lead line (1..120; immutable — the ledger law)." title: String "The kind ∈ {comment, question, action} (unnamed births stamp 'comment'; pre- rows answer the default — states ride later)." kind: String! "The note body (1..4096)." body: String! "The outbound links (≤8; absolute http(s):// only — the scheme fence held at the boundary)." links: [NoteLink!] attachments: [NoteAttachmentMeta!] "The bound construct references (≤8, distinct by (type,id) — validated in-tenant + non-doomed at write; ref-ONLY per the @375 law: a purged target renders as a tombstone)." refs: [TaskConstructRef!] "The mentions." mentions: [NoteMention!] "The labels (≤8 — the shared TaskLabel vocabulary; active at write)." labelIds: [ID!] "Set-once, server-stamped; the face joins the state chip through it against the tasksByConstruct page." taskId: ID "the referenced-caption rule: the server-composed captions for refs + mentions + labelIds under the caller-root gate — the surfaces speak names, never ids." refCaptions: [RefCaption!]! "The reaction groups." reactions: [NoteReactionGroup!] } "One reaction group." type NoteReactionGroup { emoji: String! count: Int! userIds: [ID!]! } "One mention on a note." type NoteMention { userId: ID teamId: ID } "One outbound link on a note." type NoteLink { url: String! "Optional display label; absent ⇒ the surface renders the URL." label: String } "sha256 = the mint-declared digest the presigned PUT itself enforced (byte custody)." type NoteAttachmentMeta { "The attachment id (the blobbook SK; minted at upload-mint)." id: ID! filename: String! "The declared MIME — registry-validated against the filename's extension at mint." declaredContentType: String! "The blob's byte size (declared at mint; HeadObject-verified at attach-confirm)." bytes: Int! sha256: String! key: String! } "ONE door's count on a record's Explore level — the referencing family (its construct type name), the reference field on that family, and the exact count of that family's live records whose field names the record (the family's OWN filtered listing's matchCount — the very number the door shows when opened); null when the family did not fit the call's hydration budget (never a guess — the face renders the glyph alone)." type RelationshipDoor { family: String! field: String! count: Int } "The relationshipCounts answer: every door the caller may open (a family whose listing the caller's roles refuse is omitted, never 0) with its count; partial = at least one door answered null (the hydration budget ran out on that family)." type RelationshipCounts { doors: [RelationshipDoor!]! partial: Boolean! } "The notes read's order: oldest = the conversation order (the default — every caller that never asked is byte-stable) · newest = the last-written notes first; either way the cursor resumes in the asked direction (the kit's newest-first law — never a reversed tail)." enum NoteOrder { oldest newest } "One page of a construct's note thread." type NotePage { items: [Note!]! "Present ⇒ more may remain (pass back verbatim as nextToken); null ⇒ the thread is complete. Opaque + target-bound." nextToken: String } "Link input." input NoteLinkInput { url: String! label: String } "Append-input for addNote." input NewNoteInput { "The annotated construct (ANY same-tenant type — existence + same-rootId gate; a cross-tenant/missing target refuses NOT_FOUND)." targetConstructId: ID! "The target's declared construct type." targetType: String! "The note body (1..4096)." body: String! parentNoteId: ID "The optional lead line (1..120)." title: String "The kind ∈ {comment, question, action} — unnamed stamps 'comment' (the Task-priority idiom; server-validated)." kind: String "Outbound links (≤8 — the scheme fence)." links: [NoteLinkInput!] "The caller's own prior upload-mints to bind (≤8, distinct; each un-bound + on the same target — the attachment-first flow)." attachmentIds: [ID!] "The construct refs (≤8, distinct by (type,id); in-tenant + non-doomed at write — the TaskConstructRef law)." refs: [TaskConstructRefInput!] "The mentions (≤8, distinct by target; userId ⊕ teamId each — the sendMessage recipient gates verbatim [a user in-tenant + non-doomed, suspended still receives; a team must be active with the caller a member]; each lands ONE inbox message in the birth txn)." mentions: [NoteMentionInput!] "The labels (≤8, distinct — active TaskLabels; the ONE shared vocabulary)." labelIds: [ID!] } "One mention input." input NoteMentionInput { userId: ID teamId: ID } "Upload-mint input." input MintNoteAttachmentUploadInput { targetConstructId: ID! "The target's declared construct type (the NewNoteInput.targetType law — verified by the existence read)." targetType: String! "The original filename." filename: String! declaredContentType: String! bytes: Int! sha256: String! } "One required header on the presigned PUT." type NoteAttachmentUploadHeader { name: String! value: String! } "The upload ticket: a short-TTL presigned PUT against the write-once blob key, pre-tagged pending (the 7-day lifecycle reaps never-attached orphans). Bind the attachmentId via addNote before the TTL's practical window closes." type NoteAttachmentUploadTicket { "The minted attachment id — pass to addNote.attachmentIds to bind." attachmentId: ID! "The full blob key the ticket writes (notes[-scanned]//…)." key: String! "The presigned put URL (short-TTL)." uploadUrl: String! "The headers the PUT must carry verbatim (signed conditions — checksum + tagging)." requiredHeaders: [NoteAttachmentUploadHeader!]! "When the ticket expires (ISO-8601)." expiresAt: String! } "Download-mint input." input MintNoteAttachmentDownloadInput { noteId: ID! attachmentId: ID! } "The download ticket: a short-TTL presigned GET (the verdict gate already passed for scanned-prefix blobs)." type NoteAttachmentDownloadTicket { attachmentId: ID! filename: String! declaredContentType: String! bytes: Int! "The presigned get URL (short-TTL)." downloadUrl: String! "When the ticket expires (ISO-8601)." expiresAt: String! } "Upload-mint input." input MintWizardMaterialUploadInput { "The wizard's kind word (the fill lanes' `type` — e.g. Item, Brand; the material composes only into this wizard's presses)." wizardType: String! "The original filename (≤255; no path separators + no NUL — the boundary fence; the derivable blob key carries no filename)." filename: String! declaredContentType: String! bytes: Int! sha256: String! } "The material upload ticket (the NoteAttachmentUploadTicket law): PUT to uploadUrl sending every requiredHeader verbatim, then confirmWizardMaterial(id) before the pending lifecycle's window closes." type WizardMaterialUploadTicket { "The minted material id — pass to confirmWizardMaterial to review + keep it." materialId: ID! "The full blob key the ticket writes (materials//…)." key: String! "The presigned put URL (short-TTL)." uploadUrl: String! "The headers the PUT must carry verbatim (signed conditions — checksum + tagging)." requiredHeaders: [NoteAttachmentUploadHeader!]! "When the ticket expires (ISO-8601)." expiresAt: String! } "One confirmed wizard material: what later fill/guide presses compose from." type WizardMaterial { id: ID! "The wizard word the material binds to (the walk-scope fence — it composes only into this wizard's presses, only for its uploader)." wizardType: String! filename: String! declaredContentType: String! bytes: Int! "The extraction — the AI's bounded fact-sheet distillation of the material (≤1600 chars; the material's only memory)." extraction: String! createdAt: String! } "The takeSuggestion input." input TakeSuggestionInput { id: ID! revision: ID! reason: String } "One skill's detector fault from a desk refresh." type SuggestionSkillFault { skill: String! "The refusal's major/minor code (e.g. VALIDATION/INVALID)." code: String! message: String! } "One detector's run in a desk refresh. The list keeps the run order and says what happened to each active skill." type SuggestionSkillRun { "The skill — low_stock · aging_approvals · stock_imbalance." skill: String! "ran = it finished · partial = the time ran out mid-walk, and what it found still counts · a partial low_stock run also lands in skillFaults and records no low-stock count · deferred = it did not start because the time was spent; refresh again to run it · faulted = it refused, and skillFaults has the words." outcome: String! "The stock positions the detector examined — given by the stock detectors; null when the detector does not count them." examined: Int "The stock positions in the detector's scope — given with examined; examined below inScope means the walk stopped early." inScope: Int "The detector's own time in milliseconds (0 when deferred)." ms: Int! } "The desk refresh outcome: minted = fresh offers born · superseded = stale offers closed for changed content · expired = past-due opens flipped · skippedDuplicate = identical open twins (the evidence-set dedup law) · skippedDeclined = the learning signal held · skippedTaken = the living-walk hold · skippedCapped = the per-skill/per-day/open bounds · schemasEnsured/doomedHeld = the v2 registrations minted / held permanently killed · parkedSkills = detectors the org has parked (they never ran) · skillRuns = each active detector's outcome in run order; a deferred or partial detector finishes on the next refresh." type RefreshSuggestionsResult { minted: Int! superseded: Int! expired: Int! skippedDuplicate: Int! skippedDeclined: Int! skippedTaken: Int! skippedCapped: Int! schemasEnsured: Int! doomedHeld: Int! parkedSkills: Int! skillFaults: [SuggestionSkillFault!]! "Each active detector's outcome, in run order: what ran, what the time cut short, and what waits for the next refresh." skillRuns: [SuggestionSkillRun!]! } "The askConsultation input — the target + its current revision, your question, and optionally your own confirmed materials (≤4, minted with wizardType 'consultation' — their stored extractions compose, raw files are never re-read)." input AskConsultationInput { "The Consultation to ask in — its id (yours, in your tenant, open)." id: ID! revision: ID! "Your question, as spoken (trimmed; at most the turn-body bound)." message: String! "Your own confirmed materials (minted with wizardType consultation) whose stored extractions compose with the question; omit the key when none ride — never an empty list." materialIds: [ID!] "A client-minted token (16–128 printable characters); a re-send carrying the same key answers the turn it already landed instead of refusing — never a second question." turnKey: String } "One transcript page (the caseMessages page shape — oldest first; nextToken walks forward)." type ConsultationTurnPage { items: [ConsultationTurn!]! nextToken: String } "One surface's call count inside a usage day." type AiUsageSurfaceCalls { "The metered surface token — e.g. office.assistant, office.form_fill (the at.ai.call.v1 vocabulary)." surface: String! calls: Int! "The surface's output tokens that day." tokensOutput: Int! } "One UTC day of your group's AI usage." type AiUsageDay { "The UTC day (yyyy-mm-dd)." day: String! calls: Int! tokensInput: Int! tokensOutput: Int! "What your plan meters for this day's calls, in kernels. Null for a day counted before the billed figure was kept — honest, never derived; a rebuild of the day fills it." billedKernels: Float "The same at the standard rate, in USD — a decimal string (the money-string law; never a float); volume tiers price lower. Null with billedKernels." billedUsd: String "The per-surface split where the day carries it (days that predate the split answer honestly — totals stay whole)." surfaces: [AiUsageSurfaceCalls!]! } "Your group's AI-usage window: the days with usage, newest first, + the window totals." type AiUsageWindow { days: [AiUsageDay!]! totalCalls: Int! totalTokensInput: Int! totalTokensOutput: Int! "What your plan meters for the window's calls, in kernels — null when any day in the window predates the billed figure (a partial sum would understate it)." totalBilledKernels: Float "The same at the standard rate, in USD — a decimal string (the money-string law); volume tiers price lower. Null with totalBilledKernels." totalBilledUsd: String } "One fired AI-watch flag: WHO tripped which pattern on what day, with the window's count at the crossing. The watch catches and never blocks — this row exists so a human decides." type AiFlagEntry { "The UTC day the flag fired in." day: String! "The tripped pattern — daily_volume | same_request_hour | same_request_day | burst_5min | throttle_bump (the AI_WATCH_PATTERNS registry; thresholds are generous v1, tightened on merchant data)." pattern: String! "Read-side actor resolution: 'user' when actorId resolves to an in-tenant User, else 'other' (a session-keyed actor, or a user since removed) — worded honestly, never guessed." actorKind: String! "The watched actor — a user id (office surfaces) or the session id the event carried (the consumer/api/device planes)." actorId: ID! "The actor's caption when actorKind is 'user' (resolved at read — never stored on the flag)." actorCaption: String "How many times the pattern tripped that day (hour/burst windows can cross again in fresh windows — each crossing grows this row and speaks its own loud line; the inbox task mints on the day's first fire only)." count: Int! } "Your group's fired AI-watch flags: newest day first." type AiFlagWindow { flags: [AiFlagEntry!]! } "One door a ledger row points at: the kind is one of type · record · material · consultation · session · course; the id its coordinate (a type word, a sysId or id, a material id, a consultation id, a session id, a course key)." type AiCallRef { kind: String! id: String! } "The token counts of one AI call (the at.ai.call.v1 shape): cachedInput and cacheWrite ride inside input; reasoning rides inside output." type AiCallTokens { input: Int! cachedInput: Int! cacheWrite: Int! output: Int! reasoning: Int! } "One AI call your group made, with the words: the merchant's prompt · the office-composed context · what the model said it understood · the answer · the refs — beside the metering facts the daily rollup already shows. The words live here and in the event lake only; no log line ever carries them." type AiCall { "= the meter event's callId (the provider call's own uuidV7) — the same id the response envelope's extensions.at.ai.calls.id carries." id: ID! at: String! "The wire request's own id (= that response's extensions.at.callId) — every AI call of one press carries it (a planner's route + steps + resolve; a consultation's rounds)." requestId: ID! "The wire operation the call served — draftReport · askConsultation · interpretFilter · …" op: String! "The metered surface token (the at.ai.call.v1 roster) — e.g. office.report_draft." surface: String! "The exact model id the provider reported." model: String! "The reasoning effort the call rode — low | medium | high | xhigh (low everywhere in slice 1)." effort: String! schemaName: String! "ok | refused | error | timeout." status: String! providerErrorCode: String tokens: AiCallTokens! "What your plan meters for this call, in kernels." billedKernels: Float! "The same at the standard rate, in USD — a decimal string (the money-string law; never a float); volume tiers price lower." billedUsd: String! latencyMs: Int! bytesIn: Int bytesOut: Int "The merchant's words; null where the surface has none (a summary roll, a material extraction, a training draft)." prompt: String "The office-composed context the merchant handed the surface (the page's identity form · the filled fields · the thread); null where none; cut at 8192 with contextTruncated true." context: String contextTruncated: Boolean! "What the model said it understood the request to be (the echo rule — one sentence, at most 240 characters); null when the call did not answer." understood: String "The surface's answer as it parsed it (the strict JSON text after the echo strip); null when the call did not answer; cut at 16000 with answerTruncated true." answer: String answerTruncated: Boolean! refs: [AiCallRef!]! userId: ID sessionId: ID organizationId: ID } "One page of your group's AI calls, newest first (the OrgBusEntryPage grammar)." type AiCallPage { items: [AiCall!]! "Present ⇒ more may remain (pass back verbatim as nextToken; a surface-filtered walk may return a short page with one — keep walking); null ⇒ the walk reached the 13-month floor (or the ONE month asked is exhausted)." nextToken: String } "The wizard draft's state — derived from the contracts FILL_DRAFT_STATES (the enum weld rule): drafting (the assistant is working in the background) · ready (the sheet landed — review it) · failed (it could not be made; failReason says why) · taken · abandoned (closed by you)." enum FillDraftStatus { drafting ready failed taken abandoned } "One page the caller sent for the draft — the step word and its want lines (one per empty field: name — label (kind): help), the fill press's own grammar.: rows names the tables the page declared — absent on a page with none." type FillDraftPageSpec { step: String! want: String! rows: [FillDraftRowsSpec!] } "one table a page declared — a rows-kind field's exact name, its column names in want order (1..12, unique) and the caller's row bound max (1..90). The sheet answers it in FillDraftSheetPage.rows with exactly these columns, never more rows than max." type FillDraftRowsSpec { name: String! columns: [String!]! max: Int! } input FillDraftPageInput { "The page's step word (1..120) — unique across the pages; the sheet answers by it." step: String! "The page's empty fields, one per line as name — label (kind): help (1..2000 characters)." want: String! "the page's tables, declared — at most 4, names unique per page; absent on a page with none. A table's want line reads name — label (a table of rows, up to N; the columns follow): help, and the lines beneath it name the columns as name.column — label (kind): help." rows: [FillDraftRowsSpecInput!] } "one table to declare on a page — the caller declares the bound; the wire never guesses it." input FillDraftRowsSpecInput { "The rows-kind field's exact name (1..200) — the sheet's table wears it; a scalar field of that name, or of name.column, is refused." name: String! "The column names in want order (1..12, unique; a dotted name allowed, a money column ONE name) — the sheet's table carries exactly these, in this order." columns: [String!]! "The most rows the assistant may draft (1..90) — your own bound (a carrier's line budget, a matrix's ceiling); the trailing rows past it are dropped, never kept." max: Int! } "One drafted value in the sheet: the exact field name from want, the text to type (≤ 400), where it came from (the material’s name, or 'your text'), and how sure the assistant was." type FillDraftField { name: String! value: String! source: String! "high | medium | low." confidence: String! } "one drafted ROW of a table — its cells in the table's column order (exactly as many as the columns; each at most 400 characters, an empty string where the source said nothing), where the row came from (the material's name, or 'your text'), and how sure the assistant was. The provenance is per row — check a row at a time." type FillDraftRow { cells: [String!]! source: String! "high | medium | low." confidence: String! } "one drafted table in the sheet — the exact declared name, its columns (equal to the declaration, order and names) and its rows (never more than the declared max; at most 90). A column that names a record carries the merchant's own word for it — a SKU, a barcode, a code or a name — never an identifier: you pick the record afterwards." type FillDraftRowsTable { name: String! columns: [String!]! rows: [FillDraftRow!]! } "One page of the drafted sheet — the sent step word + its drafted fields (deduped by name; at most 40); a page the assistant had nothing for is absent.: rows carries the page's drafted tables — absent on a page that declared none, or on one the assistant drafted no table for." type FillDraftSheetPage { step: String! fields: [FillDraftField!]! rows: [FillDraftRowsTable!] } "One background wizard draft: your text and/or documents in, a drafted sheet across every page of the walk out — in the background (the assistant thinks at its highest effort; the machine polls every 8 s inside a 480 s wall). The sheet (pages · questions · advice · understood) is absent until status ready; failReason is present on failed. Drafts only — nothing is created or applied; you review every value. expiresAt = the draft's lifetime in epoch seconds (startedAt + 30 days)." type FillDraft { id: ID! sysId: String! type: String! caption: String! status: FillDraftStatus! "The drafting person (the draft is theirs alone)." parentId: ID! rootId: ID! revision: ID! revisionNum: Int! createdAt: String! updatedAt: String! "The wizard word the draft was asked for (Item · Location · …) — prompt context and the materials' walk-scope word. A plan draft's word is Scratchpad." wizardType: String! "the Scratchpad this plan draft is for — its steps are the pages; absent on a wizard draft. Set at the start, never changed." subjectId: ID "Your text ('' on a documents-only draft)." brief: String! materialIds: [ID!]! "The pages you sent, in walk order." pages: [FillDraftPageSpec!]! "What was already answered when you asked ('' on a fresh wizard)." filled: String! sheet: [FillDraftSheetPage!] "At most 5 — where the materials disagree, or a required field has no support." questions: [String!] advice: String "What the assistant said it understood (the echo rule) — present once the draft is ready." understood: String turnCount: Int! "what the assistant remembers of the conversation so far — the stored rolling summary; absent until the older turns fold (past 12 un-summarized turns)." summary: String "turns before this ordinal live inside the summary; from it on, they are composed verbatim. 0 until the first fold." summarizedThroughSeq: Int! "the message the assistant is answering right now — present only while a talk is in flight (status drafting)." activeTurnId: ID activeTurnStartedAt: String failReason: String sfExecutionArn: String startRequestId: ID! startedAt: String! readyAt: String "when the sheet was taken into the record the wizard created — present iff status taken (set once)." takenAt: String "the record the draft was taken into — its sysId (or its id) as the taker named it at the take; present only on a taken draft whose take named one (a plain take carries none). A reference, never resolved." takenRef: String expiresAt: Int! } "Who spoke a turn — derived from the contracts FILL_DRAFT_TURN_ROLES (the enum weld rule): user (you) · assistant." enum FillDraftTurnRole { user assistant } "How an assistant turn went — derived from FILL_DRAFT_TURN_OUTCOMES: ok (the reply and the revised sheet landed) · failed (told; failReason says why; the sheet unchanged)." enum FillDraftTurnOutcome { ok failed } "One turn of a draft's conversation: seq is the conversation ordinal (0-based); createdAt the transcript timestamp. Your turns carry your message (body), your materials and the request they rode; the assistant's carry the reply, outcome, failReason iff failed, sheetRevised (the sheet changed under this reply) and what it said it understood." type FillDraftTurn { id: ID! seq: Int! role: FillDraftTurnRole! body: String! materialIds: [ID!] requestId: ID outcome: FillDraftTurnOutcome failReason: String sheetRevised: Boolean understood: String createdAt: String! } "One page of a draft's conversation, oldest first (the transcript order; nextToken walks forward)." type FillDraftTurnPage { items: [FillDraftTurn!]! nextToken: String } "The talkFillDraft input: the draft + its current revision, your message (say, 1..8192), and optionally up to 4 of your own confirmed materials on the same wizard word (their stored fact sheets compose)." input TalkFillDraftInput { id: ID! revision: ID! say: String! materialIds: [ID!] } "The talkFillDraft answer — the draft (now drafting; activeTurnId names your turn) + your turn as appended. The assistant's turn lands in the background — poll the draft or read fillDraftTurns when it is ready again." type TalkFillDraftResult { draft: FillDraft! turn: FillDraftTurn! } "One page of your wizard drafts, newest first (the house page grammar). A page may be short — the owner and status filters ride per id page; walk until nextToken is null." type FillDraftPage { items: [FillDraft!]! nextToken: String } "What to draft from and over: the wizard word · the pages (every page's want at once; ≤ 12) · what is already filled · your text (brief, ≤ 8192) and/or up to 4 of your own confirmed wizard materials on the same wizard word (their stored fact sheets compose — never a raw re-read). At least one of brief / materialIds." input StartFillDraftInput { "The wizard's kind word (1..64) — the fill press's type; the materials' walk-scope word. For a plan draft the word is Scratchpad and subjectId names the plan." wizardType: String! "the Scratchpad whose steps are the pages — your own, still a draft. Given if and only if wizardType is Scratchpad: a subject on another word, or the word without a subject, refuses VALIDATION/INVALID; a plan that is not yours or does not exist is NOT_FOUND; a plan past draft refuses CONFLICT/REF_STATE naming its state." subjectId: ID "Optional; the default is ' draft — '." caption: String brief: String materialIds: [ID!] pages: [FillDraftPageInput!]! "The whole walk's answered label: value lines (0..4000); absent = nothing yet." filled: String } "One dimension's kernel figure inside a usage-report day." type UsageReportDimensionKernels { "The metered dimension token — e.g. compute, api_call, ai_usage (the rate card's vocabulary)." dimension: String! "Integer kernels." kernels: Float! } "One UTC day of your group's metered consumption at the asked lane." type UsageReportDay { "The UTC day (yyyy-mm-dd)." day: String! "Rated events contributing to this row." calls: Int! "Integer kernels consumed (the µtoken IS the kernel)." kernels: Float! "The per-dimension split (only dimensions with usage appear)." dimensions: [UsageReportDimensionKernels!]! } "Your group's consumption window at ONE lane: the days with usage, newest first, + the window totals." type UsageReportWindow { days: [UsageReportDay!]! totalCalls: Int! "The window's total kernels." totalKernels: Float! "The window's per-dimension totals (only dimensions with usage appear)." totalDimensions: [UsageReportDimensionKernels!]! } "One session — a sitting: the WHO rides parentId, the when rides createdAt/updatedAt. Deadlines, accounts, and credentials stay OFF the wire BY design." type Session { id: ID! "The session class: user | api | consumer | device | collaborator | agent_platform." kind: String! "active, expired, revoked, or doomed — terminals persist." status: String! "The principal the sitting belongs to — a User (user kind), ApiKey (api), Consumer (consumer), Device (device), Collaborator (collaborator), or AgentChannel; join it to the staff roster for the display name." parentId: ID! "The organization the session acts in." orgId: ID! "The sign-in instant (ISO)." createdAt: String! "The last write instant (ISO) — activity rolls the idle deadline forward, so this approximates last-seen." updatedAt: String! } "One newest-first page of the sessions listing." type SessionPage { "The page's records, newest first (doomed drops per page — a page may hold fewer than `limit`; walk until `nextToken` is null)." items: [Session!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "A bookmark subject family — user = the personal set · team = the team's shared working set." enum BookmarkSubjectKind { USER TEAM } "The feed/list scope: ALL = mine + my teams (deduped) · OWN = my personal set · team = my teams' sets." enum FeedScope { ALL OWN TEAM } "One subject whose bookmark surfaced a feed card (the All-tab merge attribution)." type BookmarkVia { subjectKind: BookmarkSubjectKind! ownerId: ID! } "One raw bookmark row." type BookmarkRef { subjectKind: BookmarkSubjectKind! "The subject — the calling user's own id (user) or a team id (team)." ownerId: ID! targetType: String! targetId: ID! createdAt: String! "WHO performed the bookmark act (for team rows: the member who added it — provenance)." createdBy: ID! boostedAt: String popAt: String "The private-curation stamp (user rows only by op construction — the Highlights tab filters on it)." highlightedAt: String } "One composed feed card." type FeedCard { targetType: String! targetId: ID! "The target's human id (addressable constructs carry one; never invented)." sysId: String caption: String! status: String! "The target's own last-write instant." updatedAt: String! "The feed sort key — max(target activity, my boost, a DUE scheduled pop); newest first." effectiveAt: String! "The earliest bookmark instant across the surfacing subjects." bookmarkedAt: String! "Every subject whose bookmark surfaced this card (deduped target — the All-tab merge)." via: [BookmarkVia!]! "The calling user's OWN row's boomerang stamps (team stamps contribute to effectiveAt only)." boostedAt: String popAt: String "The calling user's OWN highlight stamp." highlightedAt: String "The target's last conversation instant." activityAt: String "The note card's anchor — the annotated construct's declared type; null on every non-note card." anchorType: String "The note card's anchor id (the anchorType twin — the thread route's id)." anchorId: ID } "The inbox a message is addressed to." enum MessageSubjectKind { USER TEAM } "Who sent it." enum MessageFromKind { USER SYSTEM } "One inbox message." type MessageRef { id: ID! "The inbox — your user id (user) or a team id (team)." toKind: MessageSubjectKind! toId: ID! fromKind: MessageFromKind! "The sender (user) or the attributed actor (system — null for a pure platform notice)." fromUserId: ID body: String! "The optional 'about this record' ref — both present or both null." targetType: String targetId: ID createdAt: String! "User rows: null = unread; team rows: always null (no per-member read state v1)." readAt: String } "One page of the merged inbox walk." type MessageRefPage { items: [MessageRef!]! "Present ⇒ more may remain (pass back verbatim as nextToken); null ⇒ the walk reached the tenant's birth month. Opaque + user-bound." nextToken: String } "The notice vocabulary — derived from the contracts NOTIFICATION_KINDS." enum NotificationKind { burn_breach low_balance fraud_alert billing_charge_failed support_plan_renewed support_plan_lapsing owner_verification_pending referral_approved referral_denied search_finished search_expired search_failed export_finished export_expired export_failed training_certificate_issued training_required training_refresh_due release fill_draft_finished } "The notice attention class — derived from the contracts NOTIFICATION_SEVERITIES: blocking (urgent) · needs_decision (a person must act) · informational (good to know)." enum NotificationSeverity { blocking needs_decision informational } "One platform notice to your account. Month-bucketed at the occasion's own instant; the occasion facts are immutable; readAt stamps first-read-wins." type NotificationRef { "The deterministic occasion id — ## (pass verbatim to markNotificationRead)." id: ID! kind: NotificationKind! "The attention class: derived from the kind through the contracts NOTIFICATION_SEVERITY map at read time, never stored — the attention box, the badge and the mail words derive from it." severity: NotificationSeverity! occasionAt: String! "Which kernel wallet (the /costs door target) — the alarm kinds' subject; null on fraud_alert." tokenAccountId: ID "Which fraud alert (the /fraud-alerts door target) — the fraud_alert subject; null on the alarm kinds." fraudAlertId: ID "Which background search (the /search-jobs//matches door target) — the search_finished · search_expired · search_failed subject; null on the other kinds." searchJobId: ID "Which background export — the export_finished · export_expired · export_failed subject; null on the other kinds." exportJobId: ID "Which training certificate — null on the other kinds." trainingCertificateId: ID "Which training requirement — null on the other kinds." trainingRequirementId: ID changeTag: String "Which wizard draft — the fill_draft_finished subject, the tenth exclusive axis: the draft that became ready (read it with fillDraft; the office door is the landing '/' until opens the wizard on it); null on the other kinds." fillDraftId: ID createdAt: String! "null = unread." readAt: String } "One page of the notice walk." type NotificationRefPage { items: [NotificationRef!]! "Present ⇒ more may remain (pass back verbatim as nextToken); null ⇒ the walk reached your account's birth month. Opaque + account-bound." nextToken: String } "One shipped change, in the merchant's words: what changed and why it matters, the surfaces it touched, the role templates it names, and the office door when one exists. Off the platform's bundled release table — nothing stored, nothing tenant-specific; every signed-in person reads the same rows (the office's What's new tab shows them)." type Change { "The row's key — -; a page cursor names the last key it returned." key: String! tag: String! "The UTC day it shipped — yyyy-mm-dd." date: String! "What changed — at most 90 characters, plain words." title: String! "Why it matters — at most 300 characters, the merchant's voice." summary: String! "The surfaces touched — engine · cli · office · pos · www · assistants · plugins." surfaces: [String!]! "The role templates the change names (the people a release notice tells); empty = named to no one in particular — the tab shows every row to everyone." templates: [String!]! "An office path to open when the change has a door; null otherwise." doorPath: String "The door's words (“open What's new”); null without a door." doorWords: String "A link to the record of the change when one is given; null otherwise." record: String } "One page of the release record, newest first (the house page grammar over a bounded table)." type ChangePage { items: [Change!]! "Present ⇒ more rows remain (pass back verbatim as nextToken); null ⇒ the list is exhausted. Opaque." nextToken: String } "The mail kinds — derived from the contracts MAIL_KINDS." enum MailKind { verification verification_resend reviewed password_reset burn_breach low_balance support_plan_lapsing billing_charge_failed support_plan_renewed owner_verification_pending referral_approved referral_denied demo_received demo_notice } "Where a mail came from — derived from the contracts MAIL_ORIGINS: the requesting surface (a client app word, or undeclared) for the identity kinds; the firing lane for the others." enum MailOrigin { office pos partner cli mcp ucp goldens www demo undeclared usage_check balance_check billing_run owner_check processor_report referral_review } "One email the platform sent to your account. The words derive at read time from the kind + origin." type MailLedgerEntry { "The footer reference — M-XXXX-XXXX-XXXX (pass verbatim to mailByRef)." ref: ID! kind: MailKind! "The kind in words (the letter's heading)." kindWords: String! origin: MailOrigin! "The origin in words — where the request came from, or which lane fired it." originWords: String! "The footer's own first line — the (kind × origin) sentence the mail carried." footerSentence: String! "The dedup marker's subject — the onboarding request · your Account · the wallet · the charge · the referred group." subjectId: ID! "The firing change event's id — the trace into the event lake." eventId: String! "When the firing event happened (the reference encodes it)." eventAt: String! "When the transport accepted the mail." sentAt: String! "The mail provider's own send id." providerMessageId: String! "SHA-256 hex of the recipient address, lowercased — compare, never read." recipientHash: String! } "One page of your mail-ledger walk (newest-first across your account's month buckets; walk until nextToken is null)." type MailLedgerPage { items: [MailLedgerEntry!]! "Present ⇒ more may remain (pass back verbatim as nextToken); null ⇒ the walk reached your account's birth month. Opaque + account-bound." nextToken: String } "One tenant event card. Rows live ~90 days (the window); the per-record History keeps all of time." type OrgBusEntryRef { "The deterministic change id — # (newest-first is the wire order)." id: ID! "What moved — the construct's type + id (the card's open door)." constructType: String! constructId: ID! "The record's sysId at the event." constructSysId: String "The record's caption at the event (as-of truth — a later rename does not rewrite history)." caption: String status: String "What kind of write: create · edit · transition." causeKind: String! "The transition's event name (transitions only — creates/edits have no declared vocabulary)." causeEvent: String "The acting lane's trigger token (doom · rename · a system lane's token) when the cause carried one." causeOp: String "The caller-supplied reason, verbatim, when one rode the write." causeReason: String "WHO — null on pre-provenance/engine writes (word those System)." actor: RevisionActorFace "The record's revision ordinal at the change (0 = its birth)." constructRevisionNum: Int! "When — the record's own updatedAt at the change." occurredAt: String! } "One page of the tenant event walk." type OrgBusEntryPage { items: [OrgBusEntryRef!]! "Present ⇒ more may remain (pass back verbatim as nextToken; a filtered walk may return a short page with one — keep walking); null ⇒ the walk reached the window's edge. Opaque + group-bound." nextToken: String } type OrgLayoutNode { id: ID! sysId: String! caption: String! status: String! } "A logical facility with its registers (the till positions), sysId-ordered." type OrgLayoutLogicalFacility { id: ID! sysId: String! caption: String! status: String! registers: [OrgLayoutNode!]! } "A physical facility: its referenced site (null when the location row is gone) + its logical facilities, sysId-ordered." type OrgLayoutPhysicalFacility { id: ID! sysId: String! caption: String! status: String! location: OrgLayoutNode logicalFacilities: [OrgLayoutLogicalFacility!]! } "The acting organization's identity at the layout's head." type OrgLayoutOrganization { id: ID! sysId: String! caption: String! status: String! code: String! } "The acting org's operational tree in one read: Organization → PhysicalFacilities → LogicalFacilities → Registers. truncated = the antifragile node bound trimmed the deepest levels (real merchants never reach it)." type OrgLayout { organization: OrgLayoutOrganization! physicalFacilities: [OrgLayoutPhysicalFacility!]! truncated: Boolean! } "One batch child code's face — the code + its single-use story. Codes are distribution artifacts (listable), not secrets." type CouponBatchCodeFace { id: ID! "The generated code (-) — present a child code exactly like a parent code (applyOrderCoupon resolves both)." code: String! "unredeemed · redeemed (single-use spent — attach refuses) · clawed_back (a cancelled order reversed the use — redeemable again)." status: String! "Stamped at place with the redeeming order; absent while unredeemed." redeemedAt: String orderId: ID } "The createCouponBatch result — the batch + its minted codes (also listable later via couponBatchCodes)." type CouponBatchMint { couponBatch: CouponBatch! codes: [CouponBatchCodeFace!]! } "One page of a batch's child codes (mint order; walk until nextToken is null)." type CouponBatchCodePage { items: [CouponBatchCodeFace!]! nextToken: String } "One membership row's face — the shopper + when they joined." type SegmentMemberFace { id: ID! consumerId: ID! createdAt: String! } "One page of a segment's members (consumerId order; walk until nextToken is null)." type SegmentMemberPage { items: [SegmentMemberFace!]! nextToken: String } "The addSegmentMembers result — the honest arithmetic (already-present shoppers skip, never error)." type AddSegmentMembersResult { added: Int! skippedExisting: Int! "The live meter after this call." memberCount: Int! } "The removeSegmentMembers result — deletes are idempotent (absent shoppers skip)." type RemoveSegmentMembersResult { removed: Int! skippedAbsent: Int! memberCount: Int! } "The refreshSegment result — sync (queued: false): the re-stamped segment + the honest arithmetic; queued (queued: true): the current segment, the arithmetic honestly absent (the worker re-materializes shortly — evaluatedAt moves on completion; refreshProblem words a refresh that could not complete)." type RefreshSegmentResult { segment: Segment! "true = the universe exceeds the synchronous bound (10,000) — the refresh was queued (the async lane); false = it ran in-request." queued: Boolean! "How many active consumers the predicate matched (after exclusions) — absent when queued." matched: Int added: Int removed: Int } "WHO performed one revision's write: kind names the actor class; exactly that class's ids ride beside it. Null on pre-provenance revisions — history is never fabricated." type RevisionActorFace { "user · consumer · collaborator · api · device · agent_platform · root · system · public (the unauthenticated public-ops lane)." kind: String! "The acting User (kind=user)." userId: ID "The acting User's Account (kind=user)." accountId: ID "The acting Consumer (kind=consumer)." consumerId: ID "The acting ApiKey construct (kind=api — the key, never its minter)." apiKeyId: ID "The acting Device (kind=device)." deviceId: ID "The acting AgentChannel." agentChannelId: ID "The AWS Access Key ID a root action ran under." accessKeyId: String } "WHY one revision exists: the machine cause, with the caller's reason verbatim when the operation carried one, and — since locked — WHO as the typed actor face." type RevisionCauseFace { "create (birth) · edit (an attribute revision) · transition." kind: String! "The success-form event name of the matched transition (transitions only)." event: String "The transition trigger token (e.g. doom, activate); absent on creates/edits." op: String "The caller-supplied reason, verbatim; never required, never blank." reason: String "WHO wrote this revision; null on pre-provenance revisions." actor: RevisionActorFace } "One archived construct revision." type ConstructRevision { "The revision id." revision: ID! "The monotonic revision ordinal (0 = birth). A jump means the intervening revisions predate the archive — history is never fabricated." revisionNum: Int! "Insert (birth) or modify, as the stream recorded it." eventName: String! "The stream's approximate write instant (provenance — the record's own updatedAt inside recordJson is the revision timestamp); null on pre-provenance objects." archivedAt: String "The cause; null on pre-cause-era objects." cause: RevisionCauseFace "The full construct item at this revision, JSON-encoded (storage attributes stripped; money amounts are decimal strings verbatim)." recordJson: String! } "One resolved reference caption for a revision page: a referenced construct id that appears in this page's revisions, with its caption and type. Composed under the caller's root gate; unreadable/dangling references are simply absent." type RevisionCaption { id: ID! caption: String! type: String! } "One page of a construct's revision history." type ConstructRevisionPage { items: [ConstructRevision!]! "the merchant words for the referenced ids this page's revisions carry — old (re-pointed) values included; resolve client-side by id." captions: [RevisionCaption!]! "Present ⇒ more revisions remain (pass back verbatim); null ⇒ the trail is complete. Opaque + construct-bound." nextToken: String } "One suggested next action: a live wire operation the caller may actually perform on the target, ranked by the curated per-type×state order. Render verbatim — the server already filtered and ranked (no client filtering by construction)." type SuggestedAction { "The operation's plain wire name (the op-list law) — e.g. deactivateBrand, closeTillSession." op: String! "One merchant-readable sentence: what taking this action does." why: String! } "One needs-attention entry: something needing the caller's attention in the session org, from a registered bounded source. Render verbatim — the server already ranked (overdue first; no client filtering by construction)." type NeedsAttentionEntry { "The registered source kind — 'task' (v1's one live source; the roster grows additively)." kind: String! "The target's construct type (the open-link rides the office directory — never a fake link)." targetType: String! targetId: ID! "The target's caption." caption: String! "One merchant-readable sentence — an overdue entry names its due instant." reason: String! "The ranking instant (dueAt when present, else createdAt); null never fabricated." at: String } "One postal code's resolved tax jurisdictions: the usual designation first, the postal's other reachable jurisdictions after." type TaxJurisdictionPostalResolution { "The jurisdiction that usually applies at this postal code (the licensed table's primary designation). Null when the code is unknown here — or its designated node has been retired." primary: TaxJurisdiction "The postal code's other jurisdictions — a code straddling city or district lines lists every candidate (bounded; most codes have none)." alternates: [TaxJurisdiction!]! } "The calling principal's OWN Account — the sign-in identity subset." type MyAccount { id: ID! sysId: String! caption: String! "The login identifier." loginName: String! email: String! status: String! createdAt: String! updatedAt: String! revisionNum: Int! revision: ID! } "The calling principal's OWN organization group. Read-only at the wire: the group is born by the platform (the onboarding realization) and governed by root; nothing here is editable from a session. The identity + governance facts only — the referral provenance and the standings are NOT projected." type OrganizationGroup { id: ID! "The global human-facing system id." sysId: String! type: String! caption: String! "active | doomed." status: String! "The globally-unique merchant code — a terse handle." code: String! "The classification — immutable at birth; governs the whole subtree." classification: String! "The owner Account ids; at least one." owners: [ID!]! "Null = none recorded." convertedFrom: String "The Terms of Service version accepted at signup, when stamped. Null on groups born before the ToS existed." tosAcceptedVersion: String createdAt: String! updatedAt: String! revisionNum: Int! } "The calling account's owner identity-verification standing." type IdentityVerificationReport { "True ⟺ the calling account holds ≥1 owner seat — the requirement applies to it. Verification standing is meaningful regardless (once per account, forever)." required: Boolean! "The standing — requires_input | processing | verified | canceled (Stripe's own session vocabulary; requires_input without error words = awaiting you, with them = a failed check awaiting retry). Null: verification was never started." status: String "The current Stripe VerificationSession reference (vs_…) — a pointer, never identity data (Stripe custodies the documents; this platform stores status only)." sessionRef: String "The first start's instant (UTC ISO)." requestedAt: String "The last truth stamp's instant (UTC ISO) — webhook results land within seconds; a stale non-terminal standing re-reads Stripe on this very query (self-healing)." updatedAt: String "Present exactly when verified — the once-per-account-forever fact's instant." verifiedAt: String "Stripe's last_error.code verbatim (e.g. document_expired) — present only after a failed check, always with its reason." lastErrorCode: String "Stripe's last_error.reason verbatim — the honest failure sentence the faces speak." lastErrorReason: String "True exactly when verified AND the verification is past the reported-staleness horizon. Informational only: verified is once per account forever — nothing re-asks, nothing gates." aged: Boolean! } "One started (or re-opened) verification attempt: the hosted-flow door + the standing it opened against." type IdentityVerificationStart { "The standing after the start (a re-entry may discover verified/processing — the url is absent then)." status: String! "The Stripe VerificationSession reference (vs_…)." sessionRef: String! "The Stripe-hosted verification flow's url — short-lived and single-use (open it now); absent when the session no longer accepts input (processing/verified). Re-invoking mints a fresh one." url: String } "One of the calling user's own app-private values." type MyAppDataEntry { app: String! name: String! "The opaque app-serialized payload (≤ 8 KB UTF-8)." value: String! createdAt: String! updatedAt: String! "Restamps on every put — last-write-wins per name is the accepted preference-data law." revision: ID! revisionNum: Int! } "One name's existence + stamps without its value." type MyAppDataEntrySynopsis { app: String! name: String! createdAt: String! updatedAt: String! revision: ID! revisionNum: Int! } "The enrollDevice / reissueDevicePairingCode result — the device + its single-use pairing code, returned once (hash-only at rest; the damm32 check symbol screens typos at entry)." type DeviceEnrollment { device: Device! "The single-use pairing code (XXXX-XXXX-XXXX, Crockford base-32 + check symbol) — shown once, never readable again." pairingCode: String! "The code's expiry instant." pairingCodeExpiresAt: String! } "The completePairingDevice result — the now-active device + its credential, returned once (hash-only at rest; exchanged for device sessions at the auth seam; mandatory 12-month rotation)." type DevicePairingResult { device: Device! "The device credential — shown once; hold it in platform secure custody." deviceCredential: String! "The credential's rotation deadline." credentialExpiresAt: String! } "The revokeAllDeviceSessions result." type RevokeAllDeviceSessionsResult { device: Device! "How many live device sessions the kill switch revoked." revokedSessions: Int! } "The mintApiKey result — the key + its secret, returned once (hash-only at rest; presented only to exchangeApiKey)." type ApiKeyMint { apiKey: ApiKey! "The key secret — shown once, never readable again; never logged." secret: String! } "The exchangeApiKey result — the opaque API-session bearer token (returned once) + its absolute deadline." type ApiKeyExchangeResult { token: String! "The session's absolute expiry instant (24 h from exchange)." expiresAt: String! "The exchanged key (reach + expiry visible; the secret never echoes)." apiKey: ApiKey! } "Create-input for enrollDevice." input EnrollDeviceInput { "Optional display caption; omitted ⇒ 'device at '." caption: String "The parent LogicalFacility — tenant-scoped + active. Immutable after birth (re-home = doom + re-enroll)." logicalFacilityId: ID! deviceType: DeviceType! "Optional Register this device will serve once paired (POS classes only — a pi_bridge refuses one at the boundary; tenant-scoped + active)." registerId: ID code: String } "Input for completePairingDevice." input CompletePairingDeviceInput { "The single-use pairing code from enrollDevice/reissueDevicePairingCode (XXXX-XXXX-XXXX; typo-screened by the check symbol before any lookup)." pairingCode: String! } "Input for reissueDevicePairingCode." input ReissueDevicePairingCodeInput { deviceId: ID! "The device revision the caller read." expectedRevision: ID! } "Input for pairDeviceToRegister." input PairDeviceToRegisterInput { deviceId: ID! "The Register to serve — tenant-scoped + active." registerId: ID! "The device revision the caller read." expectedRevision: ID! } "Input for unpairDevice (the pairDeviceToRegister twin — clears the binding; the same live-TillSession refusal)." input UnpairDeviceInput { deviceId: ID! "The device revision the caller read." expectedRevision: ID! } "Input for revokeAllDeviceSessions." input RevokeAllDeviceSessionsInput { deviceId: ID! "Why the kill switch fired ('tablet reported stolen') — required, evented." reason: String! } "Create-input for mintApiKey." input MintApiKeyInput { "Optional display caption; omitted ⇒ 'api key minted by '." caption: String "The allow/disallow descriptor set. Immutable after minting." descriptors: [RoleDescriptorInput!]! "The mandatory expiry instant — at most 12 months out." expiresAt: String! } "Input for exchangeApiKey." input ExchangeApiKeyInput { "The key secret from mintApiKey — never logged, never stored plain." secret: String! "The org this session will act in." orgId: ID! } "Input for exchangeDeviceCredential." input ExchangeDeviceCredentialInput { "The device credential from completePairingDevice — never logged, never stored plain." credential: String! } "The exchangeDeviceCredential result: the opaque device-session bearer token (returned once) + its deadlines." type DeviceSessionExchangeResult { token: String! "The session's absolute expiry instant (7 d from exchange)." expiresAt: String! "The session's initial idle deadline (24 h; rolls forward on use)." idleExpiresAt: String! "The exchanged Device (the where facts — pairing visible; the credential never echoes)." device: Device! } "The createTerminalConnectionToken result." type TerminalConnectionTokenResult { "The Terminal connection token secret (pst_…) — feed it to the Stripe Terminal SDK's fetchConnectionToken callback verbatim." secret: String! } "The createWebhookSubscription result — the subscription + its signing secret, returned once (plaintext in the non-streamed credential store; verify every delivery with it)." type WebhookSubscriptionMint { webhookSubscription: WebhookSubscription! "The signing secret — shown once, never readable again; never logged. Deliveries sign almondtill-signature: t=,v1=. under this secret>." secret: String! } "The rotateWebhookSubscriptionSecret result — the fresh secret, returned once; the old secret is dead from this instant (no dual-validity window — update your receiver first)." type WebhookSubscriptionSecretRotation { webhookSubscription: WebhookSubscription! "The NEW signing secret — shown once." secret: String! } "The pingWebhookSubscription receipt — accepted at emit; the delivery itself is asynchronous at-least-once through the real lane (watch your endpoint + the failure counters)." type WebhookPingReceipt { "Always true on a normal return (a refusal throws instead) — the receipt that the ping event entered the delivery lane." accepted: Boolean! "The ping's payload id — your endpoint's dedupe key for this test delivery." pingId: ID! } "Create-input for createWebhookSubscription." input CreateWebhookSubscriptionInput { "Optional display caption; omitted ⇒ 'webhook to '." caption: String "The https delivery endpoint — the egress law: https only, no credentials, no explicit port, no IP-literal/localhost/private-suffix hosts; ≤512 chars." targetUrl: String! "The event-name filter (1..64, deduped) — every name must be in the derived deliverable universe." eventTypes: [String!]! "Optional Plugin binding — this subscription joins that plugin's declared event feed; the plugin must be a live in-group registration; immutable after birth (a re-bind = a new subscription)." pluginId: ID } "One retained feed-run object." type FeedRunRef { "The object key — pass verbatim to mintFeedRunDownload." key: String! bytes: Int! "The run instant (the key's own basename — time-ordered lexically)." runAt: String! } "The mintFeedRunDownload ticket: fetch the file with a plain GET before it expires; re-mint per pull (the ticket IS the custody — there are no stored feed credentials)." type FeedRunDownloadTicket { url: String! expiresAt: String! } "Create-input for createFeedSubscription." input CreateFeedSubscriptionInput { "Optional display caption; omitted ⇒ ' feed'." caption: String "The per-org weld: the ONE org this feed exports — an in-group live Organization." organizationId: ID! "What exports — one canned construct type (OrgCustomer · Style · Product · OrgVendor · Order)." dataset: String! "daily · weekly · monthly." cadence: String! "jsonl (lossless, the default posture) · csv (the flat scalar fields)." format: String! } "One eligible acting organization for a connector consent: active and owned by your account, the exchangeApiKey org gate mirrored (the grant names ONE org and every downstream exchange re-runs that gate)." type ConnectorAuthorizationOrg { id: ID! sysId: String! caption: String! } "A validated connector authorize request, resolved for the consent face: the client's words + the redirect host prominent (the consent must) + the RFC 8252 loopback flag + the scope story + your eligible orgs. An invalid request refuses typed and the face shows the error — the wire never builds a redirect from an unvalidated request (the open-redirect law)." type ConnectorAuthorizationReview { "The presented client_id — a dcr_… registration or a cimd https URL (the identity the grant will bind to)." clientId: String! "The client's self-declared display name (absent when the registration carried none — show the clientId)." clientName: String "Where the client's identity came from: dcr (a registered row) or cimd (a fetched client-metadata document)." clientSource: String! "The exact redirect the browser will be sent to on approve/deny (already matched against the client's registered URIs — loopback matches port-agnostic per RFC 8252)." redirectUri: String! "The redirect's host, for prominent display (the spec's consent must: the user sees where the code goes)." redirectHost: String! "True when the redirect is an RFC 8252 loopback (a local program on the approver's machine will receive the code — the face carries the extra warning)." loopback: Boolean! "The read scope every grant carries (almondtill:read). The grant's whole scope is the person's pick on the consent page — Read, or Read and make changes (almondtill:read almondtill:change) — never the client's ask." scope: String! "True when the client asked for offline_access (a refresh token — the connector stays signed in without re-consent until revoked)." offlineAccess: Boolean! "True when the client hinted almondtill:change in its scope ask (recorded for the review; it never preselects the choice — Read is the page's default whatever the client asked, and only the person's pick grants changes)." changesHint: Boolean! "The RFC 8707 resource the tokens will be bound to (the canonical MCP endpoint)." resource: String! "Your eligible acting orgs, sysId-ordered — the active organizations where you hold a role (every active organization you own, for an owner); the consent names exactly ONE." eligibleOrgs: [ConnectorAuthorizationOrg!]! } "One connected AI assistant (a person-bound connection — the assistant acts as the person who approved it, within their own role's access): the client, the access the person chose, the person, the organization, the instants." type ConnectorGrant { id: ID! "The client that connected — a dcr_… registration or a cimd https URL." clientId: String! "The client's display name when it gave one." clientName: String "The access the person chose at consent: read (it only reads) or read_changes (every change rehearsed and confirmed by the person)." access: String! "The grant's scope string as stored — almondtill:read, or almondtill:read almondtill:change." scope: String! "The person the assistant acts as." userId: ID! "The organization it acts in." orgId: ID! createdAt: String! "When the connection expires on its own (twelve months from the consent)." expiresAt: String! } "One page of connected assistants — the caller's own, or every member's for an owner (at most 100 a page; nextToken for the next)." type ConnectorGrantPage { items: [ConnectorGrant!]! nextToken: String } "The consent verdict's redirect instruction: send the browser here — code+state+iss on approve, error=access_denied+state+iss on deny (RFC 9207: iss rides every authorization response)." type ConnectorAuthorizationVerdict { redirectTo: String! } "One reserved booking overlapping the asked window." type AvailabilityBooking { appointmentId: ID! "The window start (UTC instant)." startAt: String! "The window end, exclusive (start + duration — UTC instant)." endAt: String! } "The availability answer — the srcd's own words: availability = resource hours − booked appointments (derived; the client composes free slots; zero server timezone math — hours are naive wall-clock advisory)." type SchedulableResourceAvailability { resourceId: ID! "Concurrent-booking capacity — up to this many bookings may overlap." capacity: Int! "The resource's advisory weekly hours (naive wall-clock — no gate consumes them)." workingHours: [WorkingHoursWindow!]! "The reserved bookings overlapping [from, to) — confirmed/in_progress appointments only (requested ones hold no slot)." bookings: [AvailabilityBooking!]! } "Complete-input for completeAppointment." input CompleteAppointmentInput { appointmentId: ID! "The doc revision the caller read." expectedRevision: ID! "The billing order to link (in-tenant, non-doomed-class) — the last legal moment; omitted = no link." orderId: ID reason: String } "Reschedule-input for rescheduleAppointment." input RescheduleAppointmentInput { appointmentId: ID! "The predecessor's revision the caller read." expectedRevision: ID! "The successor's UTC start instant." startAt: String! durationMinutes: Int resourceIds: [ID!] reason: String } "Claim-input for fileClaimWarranty." input ClaimWarrantyInput { warrantyId: ID! "The warranty revision the caller read." expectedRevision: ID! "The customer-service case the claim is filed under — in-tenant, caseType warranty_claim, not closed/cancelled (CONFLICT/REF_STATE otherwise); stamped warrantyId in the same transaction." caseId: ID! reason: String } "The rescheduleAppointment result: the doomed predecessor + the requested-born successor, linked bilaterally." type AppointmentReschedule { "The superseded appointment (now rescheduled — slot released; successorAppointmentId stamped)." predecessor: Appointment! "The successor (born requested — ITS confirm runs the capacity gate; predecessorAppointmentId stamped)." successor: Appointment! } "One canned storefront theme. The key is the stable contract the DTC render packages ship against." type StorefrontTheme { "The stable theme key a Storefront's theme field names." key: String! caption: String! "One honest line on what the theme is for." description: String! } "One canned fiscal regime: merchants pick a key, never author regimes. model = signature (sign + gap-free number + journal; EU-typical) | clearance (the authority authorizes before issuing; LATAM/Québec-typical). US carries no row — no national regime exists." type FiscalRegime { "The stable regime key issueFiscalReceipt names." key: String! caption: String! "signature | clearance — the two ratified models." model: String! "ISO-3166 alpha-2 of the regime's country." countryCode: String! } "A FiscalReceipt: the gap-free sequential fiscal number + the regime's signature (model A) or clearance authorization code (model B) + the QR payload the printed receipt renders. Immutable once issued — no edit, no transitions, no doom. Certified partners produce the artifact fields — the caller never supplies them." type FiscalReceipt { id: ID! "The group-scoped human-facing system id." sysId: String! type: String! caption: String! status: String! "The fiscalized document." parentId: ID! "The org-group family root." rootId: ID! createdAt: String! updatedAt: String! revisionNum: Int! revision: ID! "The server-composed captions of this record's declared references — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "order | invoice — which book the parentId names." parentKind: String! "The canned regime key (cannedFiscalRegimes lists the roster)." regime: String! "The establishment the series journals — the parent Order's selling LF (an Invoice inherits its Order's)." logicalFacilityId: ID! "The series identity — always # (fiscal series are establishment-bound)." seriesKey: String! "The gap-free sequential fiscal number within the series." seq: Int! "Model A — the partner/device fiscal signature (opaque, partner-shaped); null on a clearance-model receipt." signature: String "Model B — the authority's clearance authorization code (obtained before issuing); null on a signature-model receipt." authorizationCode: String "What the printed receipt renders as QR/barcode." qrPayload: String! "The certified partner's own document reference (null when the partner supplies none)." partnerRef: String } "One page of the org group's fiscal receipts (newest-first; walk until nextToken is null)." type FiscalReceiptPage { items: [FiscalReceipt!]! "Present ⇒ more may remain (pass back verbatim as nextToken); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The exact matched-set size of a filtered/sorted read; null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true — this lane walks the whole family whole), or the matches seen so far (false); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Issue-input for issueFiscalReceipt." input IssueFiscalReceiptInput { "order | invoice — which book parentId names." parentKind: String! "The fiscalized document: an in-tenant Order at completed, or an Invoice at issued/closed (voided refuses)." parentId: ID! "A canned regime key (cannedFiscalRegimes lists the roster; an unknown key refuses naming it)." regime: String! } "One per-currency amount in an answered money metric.: the amount is a decimal string in the currency's major units — any total a store can carry rides the wire." type DashboardMetricAmount { currency: String! "The summed amount as a signed decimal string in the currency's major units — the house money grammar with a sign (-4.00 · 1250 at a whole-unit currency · 1.250 at a three-decimal one; up to twelve integer digits), never minor units." amount: String! } "One widget's answered value: available:true carries kind (count | money | percent | rating | series | census) + the matching figure + asOf; available:false carries a plain-words reason (more rows than one honest glance can total, nothing to measure yet, an organization the buy desk has not evaluated, or records your role may not read — the lens: a lane whose family you cannot list is never read) and nothing else. A figure is never clipped, estimated, or silently partial." type DashboardMetricValue { available: Boolean! "count | money | percent | rating | series | census — present only when available." kind: String "The counted figure." count: Int "The per-currency sums (kind = money; inventory_value excludes items without a cost basis — no cost, no value opinion)." amounts: [DashboardMetricAmount!] "Basis points, 0..10000 (kind = percent — 3452 = 34.52%; sell_through_30d = net units sold over the trailing 30 UTC days ÷ (net sold + on hand now), the velocity NET convention: a returned unit moves from sold to held)." percentBp: Int "The average ×100, 100..500 (kind = rating — 437 = 4.37 stars over the published review census)." ratingCenti: Int "The census behind the rating (kind = rating — an average without its sample size would lie)." sampleCount: Int "The plane a series rides: count = whole things (the points carry value) · minor = a money series · quantity = the stock grammar's scale-4 units (25000 = 2.5 — a fractional stock unit is honest physics, never rounded; the points carry value)." unit: String "The currency of a minor-unit series (kind = series, unit = minor); absent on the other units and on a laned money series (each lane names its own)." currency: String "The series points, one per UTC day, oldest first, at most 366 (kind = series — the count series: units_by_day_30d net units sold, sells minus returns · transactions_by_day_30d orders placed, reversals subtracted on their own day · returns_by_day_30d returns refunded — over the trailing 30 days; a day without a row is 0; each point carries value, its amount null). Empty on a money series, whose figures ride lanes." points: [DashboardSeriesPoint!] "The lanes of a money series: sales_by_day_30d one lane per currency (key = the currency) · tender_mix_30d one lane per tender type and currency (key = the tender type, signed — a refund tender subtracts) · sales_by_organization_30d one lane per selling organization and currency (key = the organization id); each lane carries its currency and its own day points. At most 16 lanes — above that the series answers unavailable with the too-many-lanes reason. Absent on count series." lanes: [DashboardSeriesLane!] "The rows of the record census: one per kind of record your role may list — styles · products · variants · items · consumers · corporate customers · organization customers · orders · purchase orders · returns · users · collaborators · roles · registers · devices · physical facilities · logical facilities · organizations — in that order, each with its active count (null where the kind's lifecycle has no active state — orders · purchase orders · returns), its total (every row, doomed shells included) and whether the kind holds more than the daily sweep's cap of 5000 (over — read the figures as 5000+). Absent on every other kind." rows: [DashboardCensusRow!] "The instant the figure is true at (ISO-8601; compute-on-read for the live lanes; the substrate-fed lanes carry their fold/evaluation instant)." asOf: String "Present only when unavailable — merchant words naming exactly why." reason: String "The comparison figure beside a money or count metric: the same figure over the comparable earlier window with the window named in words — sales_today vs the same weekday last week · sales_week vs the seven days before, off the same daily sales ledger. Present when either window had a figure; absent when neither did (no fabricated zero) and on every other metric." previous: DashboardMetricPrevious } "The comparison figure a money or count metric carries: amounts for a money metric (per currency, the signed decimal string in major units — a currency absent in the earlier window is simply absent: read it as zero), count for a count metric, and the words naming the window." type DashboardMetricPrevious { "The earlier window's per-currency sums (a money metric)." amounts: [DashboardMetricAmount!] "The earlier window's count (a count metric)." count: Int "The comparison in words — 'vs the same weekday last week' · 'vs the week before'." label: String! } "One point of a series value: the UTC calendar day and either the integer value (a count or quantity series) OR the money amount (a money lane's point) — the other null." type DashboardSeriesPoint { "The UTC calendar day, yyyy-mm-dd." day: String! "The integer value on a count or quantity series' plane (signed) — units_by_day_30d · transactions_by_day_30d · returns_by_day_30d; null on a money lane's point." value: Int "The signed decimal money amount in the lane's currency's major units on a money lane's point (sales_by_day_30d · tender_mix_30d · sales_by_organization_30d — the house money grammar with a sign); null on a count or quantity series." amount: String } "One lane of a money series: a key on the lane's dimension (a currency · a tender type · an organization id), the lane's currency, and its day points — one per UTC day, oldest first, a day without a row 0.00, each point's amount the signed decimal string in the lane's currency's major units." type DashboardSeriesLane { "The lane's key on its dimension — the currency code (sales_by_day_30d), the tender type (tender_mix_30d) or the organization id (sales_by_organization_30d)." key: String! "The currency of the lane's money figures (each point's amount is a decimal string in this currency's major units)." currency: String "The lane's name where its key is an id: the selling organization's caption on sales_by_organization_30d; absent where the key says itself (a currency · a tender type) or the organization row is gone." label: String "The lane's points, one per UTC day, oldest first (each point's amount the signed decimal string in major units; value null)." points: [DashboardSeriesPoint!]! } "One row of the record census: a kind of record counted once a day by the census sweep, by status — active · total · over the cap." type DashboardCensusRow { "The kind of record — styles · products · variants · items · consumers · corporate_customers · org_customers · orders · purchase_orders · returns · users · collaborators · roles · registers · devices · physical_facilities · logical_facilities · organizations." key: String! "Rows whose status is active (a floor when over) — null for a kind whose lifecycle has no active state (orders · purchase orders · returns move through placed · issued · refunded and the like, never active): no figure, never a false zero." active: Int "Every row of the kind, doomed shells included — the data-size truth (5001 when over: the walk stopped at the cap + 1)." total: Int! "The kind holds more than the sweep's cap (5000) — read both figures as floors (5000+)." over: Boolean! } "One widget row answered — the dashboard's own layout, ordinal ascending." type DashboardWidgetMetric { metricKey: DashboardMetric! ordinal: Int! value: DashboardMetricValue! } "The dashboardMetrics answer — the layout's widgets, each realized at read time.: dashboardId is null when the read came through the widgets door (a starter layout — no saved row)." type DashboardMetrics { dashboardId: ID widgets: [DashboardWidgetMetric!]! } "One trailing net-demand window." type VelocityWindow { days: Int! "Net demand over the window (may be negative — returns exceeded sells)." netQty: String! } "The resolved parameter values for one (variant × LF) — exactly the registry keys, most-specific setter each." type ResolvedReplenishmentParameters { replenishEnabled: Boolean minUnits: String maxUnits: String daysOfSupplyTarget: Int safetyStockUnits: String reorderMultipleUnits: String reviewCadenceDays: Int abcClassOverride: AbcClass buyVsTransfer: ReplenishmentBuyVsTransfer reserveFloorUnits: String transferableExcess: Boolean allocationWeight: Int } "Per-parameter provenance: which config set the winning value + its specificity trace." type ReplenishmentParameterSource { parameter: String! configId: ID! configSysId: String "Count of SET axes (0–4) — the specificity primary." axisCount: Int! "Location level: 0 = all, 1 = org, 2 = LF." locationLevel: Int! "Merchandise level: none | category: | style (style outranks any depth)." merchandiseLevel: String! seasonLevel: Int! brandLevel: Int! } "The replenishmentParameters diagnostic result." type ReplenishmentParameterResolution { variantId: ID! logicalFacilityId: ID! organizationId: ID parameters: ResolvedReplenishmentParameters! sources: [ReplenishmentParameterSource!]! "Every active config whose set axes matched this target (winners AND out-ranked matches)." matchedConfigIds: [ID!]! } "Per-line provenance — every suggested number traceable: the position parts, the levels, the velocity readings, the config refs, the vendor pick." type SuggestionLineProvenance { inventoryItemId: ID! availableQty: String! inTransitQty: String! "the pending units of the junction's open transfer requests (submitted · open — requested minus shipped), netted by the pull desk against the shortfall; '0' when none (the buy desk does not net — always '0' there). positionQty keeps its three-bucket meaning." requestedQty: String! onOrderQty: String! positionQty: String! reorderPointQty: String! targetLevelQty: String! rawDeficitQty: String! "The reorder multiple applied (the forced reorderMultipleUnits override?? the pack unitsPerPack); absent = none." roundingMultipleQty: String "The effective stock-unit MOQ (pack-denominated junctions compare moq × unitsPerPack — the machinery); absent = none." effectiveMoqQty: String velocity: [VelocityWindow!]! configIds: [ID!]! chosenOrgVendorItemId: ID "The out-ranked candidates, in pick order." alternativeOrgVendorItemIds: [ID!]! "flags: zero-velocity · velocity-not-consumed · unit-cost-inexact · cost-comparison-skipped-mixed-currencies · transfer-cost-exceeds-buy · pack-quantity-exceeds-max · backfill-of-donor." annotations: [String!]! } "One draft-po-shaped line: pack entry when the rounded qty is whole packs, unit entry otherwise (ONE entry mode per line, the XOR law)." type SuggestedPurchaseOrderLine { variantId: ID! logicalFacilityId: ID! quantity: String packQuantity: Int purchasePackId: ID "The exact per-stock-unit cost when derivable (plain listCost, or the pack division when exact-at-4dp) — informational; the create op re-derives authoritatively." estimatedUnitCost: String provenance: SuggestionLineProvenance! } "One suggested purchase order — deficits grouped by OrgVendor; orderMinimum shortfalls are annotated, never padded." type SuggestedPurchaseOrder { orgVendorId: ID! organizationId: ID! currency: String lines: [SuggestedPurchaseOrderLine!]! "Σ line qty × exact unit cost (exact arithmetic, up to 8 fraction digits); absent when any line cost is unknown." estimatedTotal: String orderMinimum: String orderMinimumShortfall: String "Order-level flags: order-minimum-shortfall · order-minimum-uncomputable." annotations: [String!]! } "One tr-shaped line (realization-ready for createTransferRequest — pull semantics; the TR doc IS the demand doc)." type SuggestedTransferRequestLine { variantId: ID! quantity: String! provenance: SuggestionLineProvenance! } "One suggested transfer request — a deficit filled from ONE donor in the lane order." type SuggestedTransferRequest { requestingLogicalFacilityId: ID! targetLogicalFacilityId: ID! lines: [SuggestedTransferRequestLine!]! "How the donor entered the ordering (the lane basis / rank / distance / no-geo flags)." lane: TransferLaneRankingSource "Request-level flags: no-geo-donor-excluded · open-requests-cap." annotations: [String!]! } "The -g buy-vs-transfer-and-backfill coupled pair: transfer-now (D ← donor) + a backfill PO refilling the donor — shared provenance; suggested only when the deficit is urgent (projected stockout inside the horizon — velocity-dependent; zero-velocity books default to the plain PO, disclosed)." type SuggestedCoupledPair { transferNow: SuggestedTransferRequest! backfillPurchaseOrder: SuggestedPurchaseOrder! "Projected days until stockout at the deficit LF (display grade)." urgencyDaysUntilStockout: Float annotations: [String!]! } "A non-suggestion: no-ovi · no-donor · no-weights · deficit-unfilled." type SuggestionGap { inventoryItemId: ID variantId: ID logicalFacilityId: ID annotation: String! detail: String } "The replenishmentSuggestions result.: a walk cut by the time one request allows answers partial with a nextToken. The purchase orders and gaps cover the examined positions; pass the token back to continue." type ReplenishmentSuggestionsResult { purchaseOrders: [SuggestedPurchaseOrder!]! coupledPairs: [SuggestedCoupledPair!]! gaps: [SuggestionGap!]! "The stock positions the walk examined so far, this call and the calls before it; 0 when the scope is unanchored or unconfigured." examined: Int "The stock positions found in scope so far — the pages walked; when partial is null it is the whole scope. With variantIds naming at most 200 distinct items it is the whole named scope on every page." inScope: Int "true when the walk stopped before the end of the scope. A page's findings stop at half the tool-result cap, or at limit when given. The findings above cover only the examined positions. Pass nextToken back to continue; null when the answer is whole." partial: Boolean "Resume cursor — present with partial. Pass it back verbatim as nextToken with the same scope arguments; a cursor binds to the one scope that issued it. Absent when the answer is whole." nextToken: String } "The rebalanceSuggestions result — one TR-shaped payload per donor." type RebalanceSuggestionsResult { transferRequests: [SuggestedTransferRequest!]! gaps: [SuggestionGap!]! "The destination's stock positions the walk examined; null when the destination is missing or not yours." examined: Int "The destination's stock positions in scope; examined below inScope means the walk stopped early. With variantIds naming at most 200 distinct items it is the whole named scope on every page." inScope: Int "true when the time one request allows ran out mid-walk, the per-call bound was reached, or the page budget filled. A page's findings stop at half the tool-result cap, or at limit when given. The transfer requests and gaps above cover only the examined positions. Pass nextToken back to continue, or narrow with variantIds. Null when the answer is whole." partial: Boolean "Resume cursor — present with partial; pass it back verbatim as nextToken with the same destination and variantIds. Absent when the answer is whole." nextToken: String } "Allocation line provenance — the hub's excess derivation + the destination's resolved weight." type AllocationLineProvenance { availableQty: String! targetLevelQty: String! reserveFloorQty: String excessQty: String! allocationWeight: Int! annotations: [String!]! } "One Transfer-SHAPED line (realization-ready for createTransfer — push semantics; the line names the source InventoryItem, the.1 shape)." type SuggestedTransferLine { inventoryItemId: ID! variantId: ID! quantity: String! provenance: AllocationLineProvenance! } "One suggested push Transfer — the hub's genuine excess fair-shared by the destinations resolved allocationWeight (largest remainder; never-lanes drop their destination)." type SuggestedTransfer { sourceLogicalFacilityId: ID! destinationLogicalFacilityId: ID! lines: [SuggestedTransferLine!]! annotations: [String!]! } "The allocationSuggestions result." type AllocationSuggestionsResult { transfers: [SuggestedTransfer!]! gaps: [SuggestionGap!]! } "How one source entered the ordering into a destination: a stored lane mode (never / always / ranked) or the sparse geodistance default." type TransferLaneRankingSource { sourceLfId: ID! "never | always | ranked | default." basis: String! rank: Int laneId: ID weightClass: TransferLaneWeightClass "Great-circle km off the LF→PF→PFL.geo chain; absent when either side has no geo seed." distanceKm: Float "Both endpoints resolve to ONE PhysicalFacilityLocation." samePfl: Boolean! "A geo-absent side — ranks last within its group, loudly flagged (never silent)." noGeo: Boolean! } "One resolved matrix row into the destination: ordered position among considered sources; never entries are shown position-less (excluded from consideration)." type TransferLaneRankingEntry { destinationLfId: ID! sourceLfId: ID! basis: String! rank: Int laneId: ID weightClass: TransferLaneWeightClass distanceKm: Float samePfl: Boolean! noGeo: Boolean! position: Int } "What a stored ABC ranking is ranked by — derived from the contracts ABC_RANK_BASES. sales: the positions that sold in the window, by the cost of what they sold less what came back. value: nothing in the scope sold in the window, so its positions are ranked by the value on hand." enum AbcRankBasis { sales value } "One ranked stock position of the stored ABC ranking." type AbcClassEntry { "The position's place in the ranking. 1 is the best." rank: Int! inventoryItemId: ID! variantId: ID! logicalFacilityId: ID! "The position's class: the pinned class when a replenishment config pins this position (abcClassOverride), else the class the ranking gave it." abcClass: AbcClass! "The stored score: an exact decimal string above zero. It is the cost of what the position sold in the window less what came back. When the page's basis is value, it is the position's value on hand." score: String! "This position's share of the scope's total score, in percent (2 decimal places, for display)." sharePercent: Float! "true when a replenishment config pins this position's class; abcClass is then the pin's." overridden: Boolean! } "How many positions the stored ranking put in each class — the ranking's own counts, before any pin." type AbcClassCounts { A: Int! B: Int! C: Int! } "One page of the stored ABC ranking of a location or an organization. When stored is false, nothing is stored for the scope yet: items is empty and every fact below it is null." type AbcClassPage { "The ranked positions of this page, best first." items: [AbcClassEntry!]! "The cursor of the next page; null at the end of the ranking. Pass it back verbatim as nextToken with the same scope argument." nextToken: String "false when nothing is stored for this scope yet." stored: Boolean! "The first UTC day the ranking covers (yyyy-mm-dd)." windowFromDay: String "The last UTC day the ranking covers (yyyy-mm-dd)." windowToDay: String "When the ranking was made — an ISO-8601 UTC instant." madeAt: String "What the ranking is ranked by: sales, or value when nothing in the scope sold in the window." basis: AbcRankBasis "The ranking's own class counts, before any pin." counts: AbcClassCounts "The currencies the scores were costed in. More than one means the scope mixes currencies; the amounts were added as they stand." currencies: [String!]! } "One value on a matrix axis, in ordinal order — ties by caption then id (the productOptions law). A projection of the OptionValue record — rename/recode the OptionValue, never this face." type StyleMatrixAxisValue { optionValueId: ID! caption: String! code: String ordinal: Int! } "One matrix axis: a scheme dimension of the Style in scheme order — the OptionGroup, its tier, the resolved size run for this dimension (the style's own pick when its group matches, else the group's default, else null), and its values. A projection of the OptionGroup record — rename the OptionGroup, never this face." type StyleMatrixAxis { optionGroupId: ID! caption: String! tier: SchemeTier! sizeRunId: ID values: [StyleMatrixAxisValue!]! } "One live Product of the Style: the header words + the declared segment. A projection of the Product record — rename/recode the Product, never this face." type StyleMatrixProduct { productId: ID! caption: String! code: String status: String! segment: [ProductSegmentEntry!]! } "One cell of the matrix — a live Variant at the asked LogicalFacility: the coordinate in scheme order (re-sorted from the caller-ordered store), the owning InventoryItem when the (variant × LF) junction exists (else null and every quantity 0), on hand · reserved as stored, available = on hand − reserved, on order from the InventoryItem's onOrderQty. Quantities are decimal strings. A projection of the Variant record — rename/recode the Variant, never this face." type StyleStockCell { variantId: ID! productId: ID! caption: String! code: String status: String! coordinate: [VariantCoordinateEntry!]! inventoryItemId: ID onHandQty: String! reservedQty: String! availableQty: String! onOrderQty: String! } "The matrix totals — Σ over every cell by exact decimal addition." type StockMatrixTotals { onHandQty: String! reservedQty: String! availableQty: String! onOrderQty: String! } "ONE Style's stock matrix at ONE LogicalFacility: the axes in scheme order, the live products, the cells sorted axis-major by ordinal, the totals, the cell count." type StyleStockMatrix { styleId: ID! logicalFacilityId: ID! axes: [StyleMatrixAxis!]! products: [StyleMatrixProduct!]! cells: [StyleStockCell!]! totals: StockMatrixTotals! cellCount: Int! } "One filled entry of a size run: the OptionValue, its share, and the whole units it receives." type SizeRunFillCell { optionValueId: ID! share: Int! quantity: Int! } "One drifted junction: the InventoryItem whose stored onOrderQty differs from the derived truth (the receivable purchase orders' open quantity for its variant × logical facility), both as decimal strings. A projection of the InventoryItem record — repair the junction, never this face." type InventoryOnOrderAuditRow { inventoryItemId: ID! variantId: ID! logicalFacilityId: ID! stored: String! derived: String! } "ONE page of the on-order audit: the drifted rows of this page of the tenant's junctions, the page's drift count, and the junction cursor (null on the last page)." type InventoryOnOrderAuditPage { items: [InventoryOnOrderAuditRow!]! driftCount: Int! nextToken: String } "The answer of ONE on-order repair: the junction as it now stands, the figure it held before, the derived figure it was stamped to, and whether anything changed (a converged cell answers false — nothing written)." type InventoryOnOrderRepair { inventoryItem: InventoryItem! previous: String! derived: String! changed: Boolean! } "A postal address — the structured street address a PhysicalFacilityLocation holds." type Address { line1: String! line2: String city: String! region: String postalCode: String "ISO 3166-1 alpha-2 country code." countryCode: String! } "Optional geocoordinates — seed the TransferLane sourcing matrix; not a live routing driver." type Geo { lat: Float! lng: Float! } "A physical facility location — the sole holder of a street address (the PFL→PF→LF→Zone→Bin hierarchy); the first data-plane construct." type PhysicalFacilityLocation { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like PL-… — stable for the record’s life." sysId: String! "The kind of record — always `PhysicalFacilityLocation` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active or doomed." status: String! "The parent org group; for a PFL parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! address: Address! geo: Geo "Optional mutable merchant reference code; uniqueness NOT enforced." code: String "The canonical TaxJurisdiction this address sits in. Absent = unclassified ⇒ origin tax resolution finds no jurisdiction (nexus-none zero tax, disclosed)." taxJurisdictionId: ID } "One page of the physicalFacilityLocations listing — the records + the opaque resume cursor." type PhysicalFacilityLocationPage { "The page's records." items: [PhysicalFacilityLocation!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Address input for creating a PhysicalFacilityLocation." input AddressInput { "Street address, first line." line1: String! "Second address line — apartment, suite or floor. Optional." line2: String "City or town." city: String! "State, province or prefecture. Optional." region: String "Postal or ZIP code, up to 16 characters. Optional." postalCode: String "ISO 3166-1 alpha-2 country code (uppercase)." countryCode: String! } "Geo input." input GeoInput { "The latitude, from -90 to 90." lat: Float! "The longitude, from -180 to 180." lng: Float! } "Create-input for a PhysicalFacilityLocation." input NewPhysicalFacilityLocationInput { "Optional: when omitted the per-type default applies — the address line ('line1, city'); when supplied it must be non-blank." caption: String address: AddressInput! geo: GeoInput code: String "Optional origin classification — the canonical TaxJurisdiction of this address (shared-ref: must exist + be active on the canonical tree; CONFLICT/REF_STATE otherwise)." taxJurisdictionId: ID } "Edit-input for a PhysicalFacilityLocation. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved (no clearing semantic yet). Address edits are typo fixes — a physical move is a new PFL. A supplied taxJurisdictionId re-points the origin classification: shared-ref gated (exists + active on the canonical tree — CONFLICT/REF_STATE otherwise; deliberately NOT tenant-scoped)." input EditPhysicalFacilityLocationInput { caption: String address: AddressInput geo: GeoInput code: String "Re-point the origin classification (shared-ref: exists + active — CONFLICT/REF_STATE otherwise; supplied replaces, no clearing semantic yet)." taxJurisdictionId: ID } "A physical facility — an actual location of an Organization (parent = the org, NOT the family root); holds no address of its own — it references a PhysicalFacilityLocation (two or more orgs may share one PFL). NOT a policy level." type PhysicalFacility { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like PF-… — stable for the record’s life." sysId: String! "The kind of record — always `PhysicalFacility` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent Organization; for a PF parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The referenced PhysicalFacilityLocation — the PF's address." physicalFacilityLocationId: ID! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the physicalFacilities listing — the records + the opaque resume cursor." type PhysicalFacilityPage { "The page's records." items: [PhysicalFacility!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a PhysicalFacility." input NewPhysicalFacilityInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Physical Facility'; when supplied it must be non-blank." caption: String "The parent Organization id." organizationId: ID! "The referenced PhysicalFacilityLocation id." physicalFacilityLocationId: ID! code: String } "Edit-input for a PhysicalFacility. Every field optional, at least ONE required; supplied fields replace." input EditPhysicalFacilityInput { caption: String code: String physicalFacilityLocationId: ID } "A logical facility — where transactions actually occur (sales, purchasing, receiving, transfers); inventory is maintained at LF level. Parent = its PhysicalFacility (NOT the family root). A policy level." type LogicalFacility { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like LF-… — stable for the record’s life." sysId: String! "The kind of record — always `LogicalFacility` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent PhysicalFacility; for an LF parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The derived owning org: == the parent PF's parentId, stamped at birth by every create channel and immutable by construction (both spine hops are birth-immutable). Filterable on the roster (the org-scoped facilities ask — the chooser-scope axis). Non-null since — the backfill stamped the estate and the grandfather window closed." organizationId: ID! "The operating character: store/showroom | warehouse. Set at creation, immutable thereafter; drives the future coordinate-standard policy default." classification: String! "The geographic-Division membership pointer. Setting it is the first armed strict-selection gate: in-tenant + active + geographic-type + an active OrgDivision selection by the LF org, else CONFLICT/UNSELECTED. Absent = no geographic membership." geographicDivisionId: ID "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the logicalFacilities listing — the records + the opaque resume cursor." type LogicalFacilityPage { "The page's records." items: [LogicalFacility!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a LogicalFacility." input NewLogicalFacilityInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Logical Facility'; when supplied it must be non-blank." caption: String "The parent PhysicalFacility id." physicalFacilityId: ID! "The operating character: store/showroom | warehouse — immutable after birth." classification: String! "Optional geographic-Division membership — gated in-tenant + active + geographic-type + an active OrgDivision selection by the LF org." geographicDivisionId: ID code: String } "Edit-input for a LogicalFacility. Every field optional, at least ONE required; supplied fields replace. geographicDivisionId additionally accepts explicit null = leave the division; a supplied NON-null value re-gates exactly like create. The classification is NOT editable; nor is the parent-PF ref." input EditLogicalFacilityInput { caption: String code: String "A NEW geographic-Division membership, or explicit null to leave; omitted = unchanged." geographicDivisionId: ID } "A zone — a subdivision of a LogicalFacility (an LF has one or more; the granularity between the LF and its Bins). Parent = its LogicalFacility (NOT the family root). A policy level; the holdable-inventory characteristics are a later slice." type Zone { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like ZN-… — stable for the record’s life." sysId: String! "The kind of record — always `Zone` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent LogicalFacility; for a Zone parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "Optional mutable locator within the parent LF — free-form until the coordinate-standard policy lands (its default derives from the LF classification)." coordinates: String "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the zones listing — the records + the opaque resume cursor." type ZonePage { "The page's records." items: [Zone!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a Zone." input NewZoneInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Zone'; when supplied it must be non-blank." caption: String "The parent LogicalFacility id." logicalFacilityId: ID! coordinates: String code: String } "Edit-input for a Zone. Every field optional, at least ONE required; supplied fields replace. The parent-LF ref is NOT editable." input EditZoneInput { caption: String coordinates: String code: String } "A bin — the leaf of the facility hierarchy (a Zone has one or more): where stock physically sits. Parent = its Zone (NOT the family root). NOT a policy level." type Bin { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like BN-… — stable for the record’s life." sysId: String! "The kind of record — always `Bin` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent Zone; for a Bin parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "Required mutable locator within the parent Zone — free-form until the coordinate-standard policy lands (the standard is policy-selected, inherited zone from LF from org)." coordinates: String! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the bins listing — the records + the opaque resume cursor." type BinPage { "The page's records." items: [Bin!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a Bin." input NewBinInput { "Optional: when omitted the per-type default applies — the merchant code when given, else the coordinates locator; when supplied it must be non-blank." caption: String "The parent Zone id." zoneId: ID! coordinates: String! code: String } "Edit-input for a Bin. Every field optional, at least ONE required; supplied fields replace. The parent-Zone ref is NOT editable." input EditBinInput { caption: String coordinates: String code: String } "The 7 canned role-template keys." enum RoleTemplateKey { owner system_administrator manager associate_manager warehouse_associate sales_associate cashier } "One canned role template: usable via copyCannedRole → an ordinary editable group Role. Hard boundaries are explicit disallow rows; amounts never appear." type CannedRole { key: RoleTemplateKey! caption: String! "The template version." version: Int! "The authority tier a copy confers." authorityTier: RoleTemplateKey! "The compiled descriptor list." descriptors: [RoleDescriptor!]! } "A descriptor polarity: allow grants; disallow always wins over any allow (the only precedence)." enum RoleDescriptorPolarity { allow disallow } "One allow/disallow descriptor: service:action + polarity, per-segment * wildcards; segments drawn verbatim from the operation registry." type RoleDescriptor { "The logical service name (today: api), or *." service: String! "The service external operation name (a schema Query/Mutation field), or *." action: String! polarity: RoleDescriptorPolarity! } "A role — the group-scoped, merchant-authored authorization construct: 0..N allow/disallow descriptors over the service:action naming universe. Evaluation is flat: default-DENY, union the allow descriptors across the session-user acted-org active roles, any matching disallow always wins; per-segment * wildcards; no specificity ranking." type Role { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like RL-… — stable for the record’s life." sysId: String! "The kind of record — always `Role` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Role parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The allow/disallow descriptors: service:action + polarity, per-segment * wildcards, disallow-wins; non-* segments are drawn verbatim from the operation registry (strict at create/edit). May be empty (grants nothing — default-deny)." descriptors: [RoleDescriptor!]! "Provenance: the canned template this Role was copied from (copyCannedRole); port-stamped, never caller-suppliable; absent on from-scratch roles. A copy never auto-revs when the template does (fork semantics)." templateKey: RoleTemplateKey "Provenance: the template version the copy compiled from; absent on from-scratch roles." templateVersion: Int "The authority tier this Role confers: stamped from the template at copy; editable via updateRole (role administration is — hard-disallowed to every non-admin template, so tier self-elevation is structurally out); absent ⇒ contributes NO tier (deny-by-default at the authority gate). A role carrying an effective allow api:* counts as owner tier regardless (the bootstrap-role rule)." authorityTier: RoleTemplateKey } "One page of the roles listing — the records + the opaque resume cursor." type RolePage { "The page's records." items: [Role!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Descriptor input — service:action + polarity; each segment * or a registry name." input RoleDescriptorInput { "The area of the platform the rule covers, such as catalog or orders, or a star for every area." service: String! "The act the rule covers within the area, such as read or write, or a star for every act." action: String! "Whether the rule allows or denies the act — a deny always wins over an allow." polarity: RoleDescriptorPolarity! } "Create-input for a Role. descriptors is required but MAY be empty; at most 100 per role; exact duplicates refused; non-* segments must name the live operation registry." input NewRoleInput { "Optional: when omitted the per-type default applies — the constant 'Role'; when supplied it must be non-blank." caption: String "The allow/disallow descriptors; may be empty (grants nothing)." descriptors: [RoleDescriptorInput!]! "Optional authority tier; absent ⇒ the role confers no tier (deny-by-default at the authority gate)." authorityTier: RoleTemplateKey } "Edit-input for a Role. Every field optional, at least ONE required; supplied fields replace. descriptors replaces wholesale when supplied (the list is the payload; supplying strips every grant — default-deny). authorityTier replaces when supplied. templateKey/templateVersion are port-stamped provenance (copyCannedRole) — never editable. Assigning roles to users is NOT here — user-role assignment is its own slice." input EditRoleInput { caption: String descriptors: [RoleDescriptorInput!] authorityTier: RoleTemplateKey } "One org's role assignment for a User: the Organization id + the Role ids held there (min 1)." type UserOrgRoles { "The Organization the assignment applies at." org: ID! "The Role construct ids the user holds at that org." roles: [ID!]! } "A user — an Account AT an Organization Group, holding Roles per organization within the group; the principal a login resolves. Fully realized since: createUser binds an existing Account into the caller's group, and the lifecycle transitions ride the operational template with the ruled session semantics — sessions never block and never cascade; a non-active User's sessions go inert at the next resolve." type User { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like US-… — stable for the record’s life." sysId: String! "The kind of record — always `User` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a User parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The Account this user binds — attribute, never key identity; NOT editable." accountId: ID! orgRoles: [UserOrgRoles!]! } "One page of the users listing — the records + the opaque resume cursor." type UserPage { "The page's records." items: [User!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "One org's role assignment — org + min-1 roles; every referenced org and role must be in-tenant AND active." input UserOrgRolesInput { "The id of the organization the roles apply in." org: ID! "The ids of the roles the person holds in that organization — one or more." roles: [ID!]! } "Create-input for a User. accountId names the existing Account to bind (miss → NOT_FOUND/CONSTRUCT; doomed → CONFLICT/REF_STATE; a restricted account is bindable). At most ONE User per (account × group): a live holder refuses CONFLICT/IDENTITY_TAKEN naming it; a doomed holder's binding is taken over atomically. orgRoles is required but MAY be empty; refs validated strict." input NewUserInput { "Optional: when omitted the per-type default applies — the constant 'User'; when supplied it must be non-blank." caption: String "The existing Account this user binds — immutable thereafter." accountId: ID! "The initial role-assignment set; may be empty (no org association yet)." orgRoles: [UserOrgRolesInput!]! } "Edit-input for a User. Every field optional, at least ONE required; supplied fields replace. orgRoles replaces wholesale when supplied; at most 100 entries, one per org, each with 1..100 roles, duplicates refused; every referenced org + role must be in-tenant AND active (CONFLICT/REF_STATE). accountId is NOT editable (the binding is the user identity)." input EditUserInput { caption: String "The full desired assignment set (wholesale replacement — strips every assignment)." orgRoles: [UserOrgRolesInput!] } "A brand — an optional product building block: who brands the product, orthogonal to the Manufacturer (who built it) and the Vendor (who sold it); whatever the group wants — NOT the simple brand text property on the org group / org. The first catalog construct: a simple product references 0..1 brand at the spine; per-org enablement (OrgBrand) arrives; consumer-facing assets are Decorations." type Brand { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like BR-… — stable for the record’s life." sysId: String! "The kind of record — always `Brand` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Brand parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String "Optional description; consumer-facing content is Decorations, a later slice." description: String } "One page of the brands listing — the records + the opaque resume cursor." type BrandPage { "The page's records." items: [Brand!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a Brand." input NewBrandInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Brand'; when supplied it must be non-blank." caption: String code: String description: String } "Edit-input for a Brand. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved; consumer-facing assets (logos, localized copy) are Decorations, a later slice — never fields here." input EditBrandInput { caption: String code: String description: String } "A season — a merchandising-calendar building block; an instance, not a recurring pattern. Per-org enablement (OrgSeason) arrives; Product to Season references at the spine." type Season { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like SN-… — stable for the record’s life." sysId: String! "The kind of record — always `Season` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Season parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "Optional mutable merchant reference code, e.g.; uniqueness NOT enforced." code: String startAt: String "Optional selling-window end; startAt ≤ endAt when both present." endAt: String } "One page of the seasons listing — the records + the opaque resume cursor." type SeasonPage { "The page's records." items: [Season!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a Season." input NewSeasonInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Season'; when supplied it must be non-blank." caption: String code: String "Optional selling-window start (UTC ISO-8601)." startAt: String "Optional selling-window end (UTC ISO-8601); startAt ≤ endAt." endAt: String } "Edit-input for a Season. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. A one-sided window edit is validated against the stored other side: startAt ≤ endAt must hold on the merged record." input EditSeasonInput { caption: String code: String startAt: String endAt: String } "A tag — a group-defined label for catalog nodes: the cross-cutting, unstructured axis, distinct from categories (hierarchical navigation), options (variant-driving), and characteristics (validated values). Strict: no free-string tags — a tag must exist as a construct before use (typo-proof; rename-safe via caption). Attachment = Tag reference sets on Styles and Products (variants excluded), arriving with the spine; TWO_STATE — no inactive (a label is usable or gone)." type Tag { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like TG-… — stable for the record’s life." sysId: String! "The kind of record — always `Tag` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active or doomed." status: String! "The parent org group; for a Tag parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the tags listing — the records + the opaque resume cursor." type TagPage { "The page's records." items: [Tag!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a Tag." input NewTagInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Tag'; when supplied it must be non-blank." caption: String code: String } "Edit-input for a Tag. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. A rename is safe by design." input EditTagInput { caption: String code: String } "A characteristic value type: string | number | date | pattern." enum CharacteristicValueType { string number date pattern } "The validation grammar (pattern, length) — the value-validation rules a characteristic imposes; pattern is an ECMAScript regex source." type CharacteristicGrammar { pattern: String minLength: Int maxLength: Int } "A characteristic — a master-list entry for validated product values (serial-number, warranty period, …): value type + validation grammar + optional unit; distinct from Tags (unstructured labels), Categories (navigation), and Options (variant-driving). Canned + custom: system-shipped immutable templates are copied via copyCannedCharacteristic; group-defined customs are created directly — references always point at group-owned constructs, never templates. TWO_STATE — no inactive (a master-list entry is usable or gone)." type Characteristic { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like CH-… — stable for the record’s life." sysId: String! "The kind of record — always `Characteristic` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active or doomed." status: String! "The parent org group; for a Characteristic parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The value type (canned registry) — set at creation, immutable thereafter." valueType: CharacteristicValueType! "Optional validation grammar; required (with pattern) on a pattern-typed characteristic; refused on number/date (strict)." grammar: CharacteristicGrammar "Optional canned-UoM unit code; absent = dimensionless." unit: String "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the characteristics listing — the records + the opaque resume cursor." type CharacteristicPage { "The page's records." items: [Characteristic!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Grammar input — >=1 field when supplied; bounds ordered (minLength <= maxLength); pattern must compile." input CharacteristicGrammarInput { pattern: String minLength: Int maxLength: Int } "Create-input for a Characteristic. Strict invariants: pattern-type requires a compiling grammar.pattern; number/date take NO grammar; unit only on number, naming a canned UoM." input NewCharacteristicInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Characteristic'; when supplied it must be non-blank." caption: String "The value type — immutable after birth." valueType: CharacteristicValueType! grammar: CharacteristicGrammarInput "A canned-UoM unit code (number-typed characteristics only)." unit: String code: String } "Edit-input for a Characteristic. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. valueType is NOT editable; a supplied grammar/unit is validated against the stored valueType on the merged record." input EditCharacteristicInput { caption: String code: String grammar: CharacteristicGrammarInput unit: String } "A UoM dimension class: count | mass | volume | length | area | time." enum UomDimensionClass { count mass volume length area time } "A custom unit of measure — a group-defined unit that must declare its dimension class + its conversion factor to the class base unit (strict: convertible by construction, e.g. Bolt = 25 m). The canned UoM registry (cannedUoms — the locked classes + maintained conversions) is registry data, not constructs; pack relationships (1 case = 12 each) are NOT UoM conversions. Referenced UoMs cannot be doomed." type CustomUom { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like UM-… — stable for the record’s life." sysId: String! "The kind of record — always `CustomUom` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a CustomUom parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The declared dimension class — set at creation, immutable thereafter." dimensionClass: UomDimensionClass! "The conversion factor to the class base unit (count=each · mass=kg · volume=l · length=m · area=m2 · time=day); > 0, finite." factorToBase: Float! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the customUoms listing — the records + the opaque resume cursor." type CustomUomPage { "The page's records." items: [CustomUom!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a CustomUom." input NewCustomUomInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Custom UoM'; when supplied it must be non-blank." caption: String "The dimension class — immutable after birth." dimensionClass: UomDimensionClass! "The conversion factor to the class base unit; > 0, finite." factorToBase: Float! code: String } "Edit-input for a CustomUom. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. dimensionClass is NOT editable; factorToBase IS editable (a value, not an identity — its consuming slices add the reference gates)." input EditCustomUomInput { caption: String code: String factorToBase: Float } "One format rule — how this manufacturer formats characteristic X; the grammar vocabulary is the CharacteristicGrammar, reused verbatim." type ManufacturerFormatEntry { "The formatted Characteristic's id." characteristicId: ID! grammar: CharacteristicGrammar! } "A manufacturer — who built the product: orthogonal to the Brand (who brands it) and the Vendor (who sold it to the merchant); the vendor-manufacturer linkage is never structural — it materializes per purchase. Carries the default ISO origin country and the characteristic format map. Per-org enablement (OrgManufacturer selection, strictly required before any org reference) arrives." type Manufacturer { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like MF-… — stable for the record’s life." sysId: String! "The kind of record — always `Manufacturer` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Manufacturer parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "Optional default ISO 3166-1 alpha-2 origin country; finer granularity is Product-level (future)." origin: String "The characteristic format map (<=64 entries, unique per characteristic); absent = no format rules." characteristicFormats: [ManufacturerFormatEntry!] "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the manufacturers listing — the records + the opaque resume cursor." type ManufacturerPage { "The page's records." items: [Manufacturer!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } input ManufacturerFormatEntryInput { characteristicId: ID! grammar: CharacteristicGrammarInput! } "Create-input for a Manufacturer." input NewManufacturerInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Manufacturer'; when supplied it must be non-blank." caption: String code: String "ISO 3166-1 alpha-2 (uppercase)." origin: String characteristicFormats: [ManufacturerFormatEntryInput!] } "Edit-input for a Manufacturer. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. A supplied characteristicFormats list replaces wholesale (the Role-descriptors precedent; releases every format rule) and is re-gated per entry exactly like create." input EditManufacturerInput { caption: String code: String "ISO 3166-1 alpha-2 (uppercase)." origin: String characteristicFormats: [ManufacturerFormatEntryInput!] } "A vendor — who sold to the merchant: the shared supplier master (group pool), orthogonal to the Manufacturer (who built it). Deliberately thin: contact data is; the org-specific commercial payload (account#, terms, purchasing currency) IS the OrgVendor relationship (the enablement — no purchasing without an active one), arriving. The first procurement-domain construct." type Vendor { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like VN-… — stable for the record’s life." sysId: String! "The kind of record — always `Vendor` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Vendor parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "Create-input for a Vendor." input NewVendorInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Vendor'; when supplied it must be non-blank." caption: String code: String } "Edit-input for a Vendor. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved." input EditVendorInput { caption: String code: String } "A category — ONE recursive construct for the whole navigation spectrum (3 flat categories or a 6-level hierarchy; no fixed Department/Subcategory types). inactive = hidden from navigation, still reportable." type Category { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like CT-… — stable for the record’s life." sysId: String! "The kind of record — always `Category` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Category parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The chain always terminates at a root (cycles kit-rejected at write)." treeParent: ID merchandiseDivisionId: ID "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the categories listing — the records + the opaque resume cursor." type CategoryPage { "The page's records." items: [Category!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a Category." input NewCategoryInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Category'; when supplied it must be non-blank." caption: String code: String treeParent: ID merchandiseDivisionId: ID } "Edit-input for a Category. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. treeParent and merchandiseDivisionId additionally accept an explicit null to clear." input EditCategoryInput { caption: String code: String treeParent: ID merchandiseDivisionId: ID } "A division type: merchandise | geographic | channel. Canned + AT-extensible — a new axis kind is added by the platform, never merchant-defined." enum DivisionType { merchandise geographic channel } "Membership is 0..1 per type per member. Per-org enablement (OrgDivision) arrives; availability semantics (zero geo refs = available everywhere) compose at the Product/assortment slices." type Division { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like DV-… — stable for the record’s life." sysId: String! "The kind of record — always `Division` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Division parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The grouping axis kind — set at creation, immutable thereafter." divisionType: DivisionType! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the divisions listing — the records + the opaque resume cursor." type DivisionPage { "The page's records." items: [Division!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a Division." input NewDivisionInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Division'; when supplied it must be non-blank." caption: String "The grouping axis kind — immutable after birth." divisionType: DivisionType! code: String } "Edit-input for a Division. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. divisionType is NOT editable. A merchandise Division still pointed at by a non-doomed root Category refuses deactivate AND doom; release is implicit — clear or re-point the category pointer (zero Division writes)." input EditDivisionInput { caption: String code: String } "An option-group type: color | size | custom. Canned — a new kind is added by the platform, never merchant-defined." enum OptionGroupType { color size custom } "An option group — the pick-source for option dimensions (a size run, a brand color palette), typed from the canned registry (color/size drive the spine tier defaults; custom groups feed descriptive attributes that never explode variants). Holds ordered OptionValue children (their parent). NO org selection ever. Referenced BY Style schemes at the spine." type OptionGroup { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like OP-… — stable for the record’s life." sysId: String! "The kind of record — always `OptionGroup` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for an OptionGroup parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The pick-source kind — set at creation, immutable thereafter." optionGroupType: OptionGroupType! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String "The dimension default SizeRun: the run a style over this group fills its matrix with when it names none of its own; the run must be active and over this group; set by update only (a run must exist first), explicit-null-clearable; absent = no default." defaultSizeRunId: ID } "One page of the optionGroups listing — the records + the opaque resume cursor." type OptionGroupPage { "The page's records." items: [OptionGroup!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for an OptionGroup." input NewOptionGroupInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Option group'; when supplied it must be non-blank." caption: String "The pick-source kind — immutable after birth." optionGroupType: OptionGroupType! code: String } "Edit-input for a OptionGroup. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved — except defaultSizeRunId, which additionally accepts an explicit null to clear. optionGroupType is NOT editable. A group with active OptionValue children refuses deactivate; one with NON-doomed children refuses doom (CONFLICT/REFERENCED naming the blockers — bottom-up, children first)." input EditOptionGroupInput { caption: String code: String "The NEW default SizeRun, or explicit null to clear; omitted = unchanged." defaultSizeRunId: ID } "An option value — one member of an OptionGroup pick-source (a size cell, a color name), ordered via ordinal (lower = earlier in the pick list; ties break by id). Parent = its OptionGroup. Consumed by the spine (scheme tiers pick values into Product/Variant cells)." type OptionValue { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like OV-… — stable for the record’s life." sysId: String! "The kind of record — always `OptionValue` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent OptionGroup; for an OptionValue parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The pick-list position. Always present (defaults to 0 at create); mutable — reordering is an ordinary edit." ordinal: Int! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the optionValues listing — the records + the opaque resume cursor." type OptionValuePage { "The page's records." items: [OptionValue!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for an OptionValue." input NewOptionValueInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Option value'; when supplied it must be non-blank." caption: String "The parent OptionGroup id." optionGroupId: ID! "Optional pick-list position (0..1000000) — defaults to 0." ordinal: Int code: String } "Edit-input for a OptionValue. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. Reordering is exactly this edit (a supplied ordinal replaces). The parent-group ref is NOT editable (a value never moves between pick-sources — recreate instead)." input EditOptionValueInput { caption: String ordinal: Int code: String } "An attachable owner type: the constructs a Decoration may attach to at this slice. Grows per slice (Category, OptionValue, Style/Product join at their consuming slices)." enum AttachableType { Brand Season Style Product OptionValue Collection } "A decoration — the ONE purposed, localized, ordered carrier for consumer-facing content, attached to an owning construct (the decoration carries the attachment; owner records never churn). Purpose comes from the canned registry; locale is canonical BCP-47 (the org-default-locale floor is a resolution-time read rule, later slice); ordinal orders same-purpose content (lower = more important). Decorations are freely doomable (nothing references them); the owner doom is blocked by attached non-doomed decorations. inactive = draft/unpublished (content staging)." type Decoration { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like DC-… — stable for the record’s life." sysId: String! "The kind of record — always `Decoration` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Decoration parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The canned purpose key. Server-validated (the hyphenated canned keys are not enum-safe); immutable after birth." purpose: String! "The content locale — canonical BCP-47 core shape (en, en-US, fr-CA, zh-Hans-CN); case-canonical, strict. Mutable." locale: String! "The importance position among same-(owner,purpose,locale) decorations. Always present (defaults to 0 at create); mutable." ordinal: Int! "The inline text content. Mutable, replace-only." text: String! "The owning construct type. Immutable after birth." attachedToType: AttachableType! "The owning construct id. Immutable after birth (moving content = recreate)." attachedToId: ID! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the decorations listing — the records + the opaque resume cursor." type DecorationPage { "The page's records." items: [Decoration!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a Decoration." input NewDecorationInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Decoration'; when supplied it must be non-blank." caption: String "The canned purpose key. Immutable after birth." purpose: String! "The content locale — canonical BCP-47 core shape (case-canonical, strict)." locale: String! "Optional importance position (0..1000000; lower = more important) — defaults to 0." ordinal: Int "The inline text content (1..4096 chars)." text: String! "The owning construct type (the attachable allowlist)." attachedToType: AttachableType! attachedToId: ID! code: String } "Edit-input for a Decoration. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. purpose / attachedToType / attachedToId are NOT editable; locale / ordinal / text / code / caption are ordinary replace-only edits." input EditDecorationInput { caption: String locale: String ordinal: Int text: String code: String } "An OrgManufacturer selection — the per-org enablement of a group Manufacturer: selection strictly required before any org reference, including purchase lines (the gate). Parent = the organization (not the family root). Freely deactivatable/doomable; a NON-doomed selection blocks the master Manufacturer doom only." type OrgManufacturer { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like EM-… — stable for the record’s life." sysId: String! "The kind of record — always `OrgManufacturer` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent Organization; for a selection parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The selected group Manufacturer — set at creation, immutable thereafter." manufacturerId: ID! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the orgManufacturers listing — the records + the opaque resume cursor." type OrgManufacturerPage { "The page's records." items: [OrgManufacturer!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for an OrgManufacturer selection." input NewOrgManufacturerInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Org Manufacturer'; when supplied it must be non-blank." caption: String "The parent Organization id — rides the header." organizationId: ID! "The group Manufacturer this selection enables — immutable after birth." manufacturerId: ID! code: String } "Edit-input for a OrgManufacturer. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. manufacturerId is NOT editable, nor is the parent-org ref (the header)." input EditOrgManufacturerInput { caption: String code: String } "An OrgBrand selection — the per-org enablement of a group Brand (the strict-selection pattern: no org-scoped Brand reference without an active selection). Parent = the organization (not the family root). Freely deactivatable/doomable; a NON-doomed selection blocks the master Brand doom only." type OrgBrand { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like EB-… — stable for the record’s life." sysId: String! "The kind of record — always `OrgBrand` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent Organization; for a selection parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The selected group Brand — set at creation, immutable thereafter." brandId: ID! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the orgBrands listing — the records + the opaque resume cursor." type OrgBrandPage { "The page's records." items: [OrgBrand!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for an OrgBrand selection." input NewOrgBrandInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Org Brand'; when supplied it must be non-blank." caption: String "The parent Organization id — rides the header." organizationId: ID! "The group Brand this selection enables — immutable after birth." brandId: ID! code: String } "Edit-input for a OrgBrand. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. brandId is NOT editable, nor is the parent-org ref (the header)." input EditOrgBrandInput { caption: String code: String } "An OrgSeason selection — the per-org enablement of a group Season (the strict-selection pattern). Parent = the organization (not the family root). Freely deactivatable/doomable; a NON-doomed selection blocks the master Season doom only." type OrgSeason { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like ES-… — stable for the record’s life." sysId: String! "The kind of record — always `OrgSeason` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent Organization; for a selection parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The selected group Season — set at creation, immutable thereafter." seasonId: ID! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the orgSeasons listing — the records + the opaque resume cursor." type OrgSeasonPage { "The page's records." items: [OrgSeason!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for an OrgSeason selection." input NewOrgSeasonInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Org Season'; when supplied it must be non-blank." caption: String "The parent Organization id — rides the header." organizationId: ID! "The group Season this selection enables — immutable after birth." seasonId: ID! code: String } "Edit-input for a OrgSeason. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. seasonId is NOT editable, nor is the parent-org ref (the header)." input EditOrgSeasonInput { caption: String code: String } "An OrgDivision selection — the per-org enablement of a group Division, divisionType-AGNOSTIC. Parent = the organization (not the family root). Freely deactivatable/doomable; a NON-doomed selection blocks the master Division doom only." type OrgDivision { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like ED-… — stable for the record’s life." sysId: String! "The kind of record — always `OrgDivision` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent Organization; for a selection parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The selected group Division — set at creation, immutable thereafter." divisionId: ID! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the orgDivisions listing — the records + the opaque resume cursor." type OrgDivisionPage { "The page's records." items: [OrgDivision!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for an OrgDivision selection." input NewOrgDivisionInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Org Division'; when supplied it must be non-blank." caption: String "The parent Organization id — rides the header." organizationId: ID! "The group Division this selection enables — immutable after birth." divisionId: ID! code: String } "Edit-input for a OrgDivision. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. divisionId is NOT editable, nor is the parent-org ref (the header)." input EditOrgDivisionInput { caption: String code: String } "An OrgVendor — the per-org purchasing enablement of a group Vendor: the trio (accountNumber / terms free-text notes / purchasingCurrency [strict ISO-4217 shape]) + the commercial payload. Parent = the organization (not the family root). Deactivate stays free (pausing the enablement); doom is blocked by live OrgVendorItems; a NON-doomed enablement blocks the master Vendor doom. Money reuses the MoneyEntry SDL (declared on the Product entry)." type OrgVendor { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like EV-… — stable for the record’s life." sysId: String! "The kind of record — always `OrgVendor` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent Organization; for an OrgVendor parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The selected group Vendor — set at creation, immutable thereafter." vendorId: ID! "The org account number with the vendor; optional + editable." accountNumber: String "Free-text terms notes." terms: String "The purchasing currency — a platform-registry code inside the organization's allowed set." purchasingCurrency: String "The canned payment terms; a non-canned token is VALIDATION/INVALID. Optional + editable." paymentTerms: String "The canned Incoterms-2020 delivery term; a non-canned code is VALIDATION/INVALID. Optional + editable." incotermCode: String "The vendor's default lead time in days (1..730; the OrgVendorItem may override per item); optional + editable." leadTimeDays: Int "The default ship-to LogicalFacility; optional + editable." defaultShipToLogicalFacilityId: ID "The billing Contact pointer; optional + editable." billToContactId: ID "The return-to-vendor target Contact pointer; optional + editable." returnsToContactId: ID "The order minimum — currency-matched to purchasingCurrency; optional + editable." orderMinimum: MoneyEntry "The free-freight threshold — currency-matched like orderMinimum; optional + editable." freeFreightThreshold: MoneyEntry "Require an OrgVendorItem per PO line. Absent (null) on pre- records means false; new records always carry it. Editable." requireCatalogItem: Boolean "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the orgVendors listing — the records + the opaque resume cursor." type OrgVendorPage { "The page's records." items: [OrgVendor!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for an OrgVendor. Every commercial field is optional (the enablement stays creatable thin); orderMinimum/freeFreightThreshold require purchasingCurrency in the same payload with a matching currency; requireCatalogItem is stamped false when omitted." input NewOrgVendorInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Org Vendor'; when supplied it must be non-blank." caption: String "The parent Organization id — rides the header." organizationId: ID! "The group Vendor this enablement names — immutable after birth." vendorId: ID! accountNumber: String terms: String "A platform-registry code inside the organization's allowed set." purchasingCurrency: String "The canned payment-terms token (net-30 · 2-10-net-30 · cod · prepaid)." paymentTerms: String "The canned Incoterms-2020 code (EXW · FCA · CPT · CIP · DAP · DPU · DDP · FAS · FOB · CFR · CIF)." incotermCode: String leadTimeDays: Int defaultShipToLogicalFacilityId: ID billToContactId: ID returnsToContactId: ID "Requires purchasingCurrency in the same payload, with a matching currency." orderMinimum: MoneyEntryInput "Requires purchasingCurrency in the same payload, with a matching currency." freeFreightThreshold: MoneyEntryInput "Defaulted false when omitted." requireCatalogItem: Boolean code: String } "Edit-input for a OrgVendor. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved — except the three pointer fields (defaultShipToLogicalFacilityId/billToContactId/returnsToContactId), which additionally accept an explicit null to clear. vendorId is NOT editable, nor is the parent-org ref (the header)." input EditOrgVendorInput { caption: String code: String accountNumber: String terms: String "A platform-registry code inside the organization's allowed set." purchasingCurrency: String "The canned payment-terms token (net-30 · 2-10-net-30 · cod · prepaid)." paymentTerms: String "The canned Incoterms-2020 code (EXW · FCA · CPT · CIP · DAP · DPU · DDP · FAS · FOB · CFR · CIF)." incotermCode: String leadTimeDays: Int "Supply a LogicalFacility id to re-point, or explicit null to clear the default." defaultShipToLogicalFacilityId: ID "Supply a Contact id to re-point (active-gated), or explicit null to clear it." billToContactId: ID "Supply a Contact id to re-point (active-gated), or explicit null to clear it." returnsToContactId: ID orderMinimum: MoneyEntryInput freeFreightThreshold: MoneyEntryInput requireCatalogItem: Boolean } "A style type: simple | service | kit | bundle. Canned — a new kind is added by the platform, never merchant-defined. All four create everywhere since the component slice: kit/bundle variants bear per-variant VariantComponent BOMs (kit assembles simple components only; bundle groups simple | service | kit)." enum StyleType { simple service kit bundle } "The TaxCategory canned registry. AT-maintained, additive-only; the merchant-custom extension is a named deferral. Declared here (the first catalog consumer — the MoneyEntry-on-Product precedent); Style classification, TaxRate cells, and ExemptionCertificate scopes all reference it." enum TaxCategory { standard food_grocery prepared_food childrens_clothing clothing prescription_drug medical_device digital_good service } "A scheme tier: product | variant (realizes Variants — the size default)." enum SchemeTier { product variant } "One ordered scheme dimension: the pick-source OptionGroup + the resolved spine tier." type StyleSchemeEntry { optionGroupId: ID! tier: SchemeTier! } "One category placement: the leaf Category + the optional primary designation (at most 1 primary per style)." type StylePlacementEntry { categoryId: ID! primary: Boolean } "One characteristic value: the Characteristic + this style value for it." type StyleCharacteristicEntry { characteristicId: ID! value: String! } "styleType comes from the canned registry and is immutable. The scheme is frozen once any Product exists. Org availability = the OrgStyle selection; zero dimensions = the corner-store single-cell case." type Style { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like ST-… — stable for the record’s life." sysId: String! "The kind of record — always `Style` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Style parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The style kind — set at creation, immutable thereafter." styleType: StyleType! "The ordered option-space dimensions. Every stored entry carries its resolved tier; absent/empty = zero dimensions. Frozen once any Product exists." scheme: [StyleSchemeEntry!] "The optional 0..1 Brand — editable, explicit-null-clearable; absent = unbranded." brandId: ID "The optional 0..1 SizeRun this style fills its matrix with: the run must be active and over a group IN the scheme; editable, explicit-null-clearable (the brandId CG-a shape); absent = each dimension falls to its group default run, if any. The matrix read (styleStockMatrix) carries the resolved run per axis." sizeRunId: ID "The Season memberships — wholesale-replace list; absent = none." seasonIds: [ID!] "The category placements; wholesale-replace; absent = unplaced." categoryPlacements: [StylePlacementEntry!] "The Tag set — wholesale-replace list; absent = untagged." tagIds: [ID!] "The characteristic values; wholesale-replace; absent = none." characteristicEntries: [StyleCharacteristicEntry!] "Optional mutable merchant reference code; uniqueness NOT enforced." code: String "The tax classification — absent = standard. Editable. The flagged Product-level override stays deferred." taxCategory: TaxCategory } "One page of the styles listing — the records + the opaque resume cursor." type StylePage { "The page's records." items: [Style!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Scheme-dimension input — tier may be omitted for color/size groups (defaulted product/variant respectively); a custom-typed group requires an explicit tier." input StyleSchemeEntryInput { "The id of the option group that shapes the style variants." optionGroupId: ID! "How the option group ranks in the style scheme — the primary group leads the matrix, the secondary follows." tier: SchemeTier } "Category-placement input — the target must be an in-tenant, active, leaf Category." input StylePlacementEntryInput { "The id of a category the style is placed in." categoryId: ID! "Whether this is the style main category — the one it is filed under; only one placement is primary." primary: Boolean } "Characteristic-value input — the target must be in-tenant + active; the value must fit its valueType/grammar." input StyleCharacteristicEntryInput { "The id of the characteristic this entry records." characteristicId: ID! "The characteristic value for the style — it must fit the characteristic format rule." value: String! } "Create-input for a Style." input NewStyleInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Style'; when supplied it must be non-blank." caption: String "The style kind — immutable after birth; all four types accepted." styleType: StyleType! "The ordered option dimensions (at most 8, unique groups; tier defaulted for color/size, required for custom)." scheme: [StyleSchemeEntryInput!] brandId: ID sizeRunId: ID "Season memberships (at most 32, unique) — each tenant-scoped + active." seasonIds: [ID!] "Category placements (at most 32, unique, at most 1 primary) — each target tenant-scoped + active + a leaf." categoryPlacements: [StylePlacementEntryInput!] "The Tag set (at most 64, unique) — each tenant-scoped + active." tagIds: [ID!] "Characteristic values (at most 64, unique per characteristic) — each target tenant-scoped + active; values validated per valueType/grammar." characteristicEntries: [StyleCharacteristicEntryInput!] code: String "The tax classification — absent = standard." taxCategory: TaxCategory } "Edit-input for a Style. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. brandId and sizeRunId additionally accept an explicit null to clear; every supplied list replaces wholesale, re-gated per entry exactly like create. styleType is NOT editable. A supplied scheme is frozen-gated: once the style has any Product it is refused CONFLICT/REFERENCED naming them." input EditStyleInput { caption: String code: String "The replacement scheme (wholesale) — refused once any Product exists." scheme: [StyleSchemeEntryInput!] "The NEW Brand pointer, or explicit null to clear; omitted = unchanged." brandId: ID "The NEW SizeRun pointer, or explicit null to clear; omitted = unchanged." sizeRunId: ID "The replacement season set (wholesale; empty releases)." seasonIds: [ID!] "The replacement placements (wholesale; empty releases)." categoryPlacements: [StylePlacementEntryInput!] "The replacement tag set (wholesale; empty releases)." tagIds: [ID!] "The replacement characteristic values (wholesale; empty releases)." characteristicEntries: [StyleCharacteristicEntryInput!] "The classification — revert = set 'standard' (absent means standard; no null-clear)." taxCategory: TaxCategory } "One declared segment dimension: a scheme dimension + the OptionValues this product claims for it (unique, at most 256)." type ProductSegmentEntry { optionGroupId: ID! optionValueIds: [ID!]! } "One money-map entry: a platform-registry currency code + a strict decimal-STRING amount (never a float; stored and compared verbatim; no arithmetic)." type MoneyEntry { currency: String! amount: String! } "Parent = its Style (NOT the family root — the spine containment). The declared segment constrains any subset of the scheme dimensions (omitted dims unconstrained; empty = the whole style); declared sibling overlap is allowed — disjointness is enforced at the cell. Money amounts are strict decimal strings; rrp is required with at least one entry and floor-gated under live selections." type Product { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like PD-… — stable for the record’s life." sysId: String! "The kind of record — always `Product` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent Style; for a Product parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The declared segment — per-dimension claimed values; absent/empty = the whole style. Wholesale-replace; edits may not orphan existing variants (CONFLICT/REFERENCED naming them)." segment: [ProductSegmentEntry!] "The RRP money map. Wholesale-replace; floor-gated under live selections." rrp: [MoneyEntry!]! "The optional MSRP money map; wholesale-replace; absent = none." msrp: [MoneyEntry!] "The Tag set — wholesale-replace list; absent = untagged." tagIds: [ID!] "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the products listing — the records + the opaque resume cursor." type ProductPage { "The page's records." items: [Product!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Segment-dimension input — the dimension must be IN the parent style scheme; every value must belong to that dimension group and be active." input ProductSegmentEntryInput { "The id of the option group this product narrows." optionGroupId: ID! "The ids of the option values this product covers within the group — 1 to 256." optionValueIds: [ID!]! } "Money-entry input — currency: a platform-registry code (three uppercase letters, one of the 48 the platform computes in) inside the organization's allowed set — or the group's union for a group-level record; amount: a strict decimal string (at most 12 integer digits, at most 4 fraction digits, no leading zeros)." input MoneyEntryInput { "The currency — a three-letter code from the registry." currency: String! "The amount in that currency as a decimal string, such as 19.99." amount: String! } "Create-input for a Product." input NewProductInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Product'; when supplied it must be non-blank." caption: String "The parent Style id." styleId: ID! "The declared segment (omit or empty = the whole style; unique dimensions; values in-scheme + of-the-group + active)." segment: [ProductSegmentEntryInput!] "The RRP map — required, at least 1 entry." rrp: [MoneyEntryInput!]! "The optional MSRP map." msrp: [MoneyEntryInput!] "The Tag set (at most 64, unique) — each tenant-scoped + active." tagIds: [ID!] code: String } "Edit-input for a Product. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. The parent-style ref is NOT editable (the header — recreate instead). A supplied segment replaces wholesale and may not orphan: every existing non-doomed variant coordinate must remain inside the new segment. A supplied rrp replaces wholesale but must keep at least 1 entry and — under live OrgStyle selections — must still cover every selecting org defaultCurrency; msrp/tagIds replace wholesale." input EditProductInput { caption: String code: String "The replacement segment (wholesale) — no-orphan-gated against existing variants." segment: [ProductSegmentEntryInput!] "The replacement RRP map (wholesale; at least 1 entry; floor-gated)." rrp: [MoneyEntryInput!] "The replacement MSRP map (wholesale; empty releases)." msrp: [MoneyEntryInput!] "The replacement tag set (wholesale; empty releases)." tagIds: [ID!] } "A stock-UoM kind: canned (a platform UoM code like each) | custom (an in-tenant CustomUom)." enum StockUomKind { canned custom } "One coordinate entry: a scheme dimension + the ONE OptionValue this cell realizes for it." type VariantCoordinateEntry { optionGroupId: ID! optionValueId: ID! } "One manufacturer part number — that manufacturer's token for this variant (their part number, not our SKU)." type ManufacturerPartNumber { manufacturerId: ID! partNumber: String! } "A variant — the spine leaf, the sellable cell: one complete coordinate of its Style option space (every scheme dimension exactly once) and the SKU bearer (IdentifierEntry lands; inventory). Parent = its Product (NOT the family root). The coordinate is immutable at birth — a cell IS its coordinate; re-coordinate = recreate. Cell disjointness is the ratified: a per-(style × cell) uniqueness marker minted in the create transaction — a live duplicate is CONFLICT/IDENTITY_TAKEN naming the holding variant AND its product; a doomed holder is taken over. The stock-UoM pair (stockUomKind, stockUomRef) defaults (canned, each) and is immutable." type Variant { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like VR-… — stable for the record’s life." sysId: String! "The kind of record — always `Variant` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent Product; for a Variant parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The complete cell coordinate — every scheme dimension exactly once, stored in scheme order; empty = the zero-dimension cell. Immutable at birth." coordinate: [VariantCoordinateEntry!]! "The stock-UoM kind; immutable at birth, paired with stockUomRef." stockUomKind: StockUomKind! "The stock-UoM ref — a canned UoM code (each, …) or a CustomUom id per the kind; immutable at birth." stockUomRef: String! "The manufacturer part-number map; absent when none. Mutable — a supplied list replaces wholesale." manufacturerPartNumbers: [ManufacturerPartNumber!] "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the variants listing — the records + the opaque resume cursor." type VariantPage { "The page's records." items: [Variant!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Coordinate-entry input — order-insensitive; the full coordinate must name every scheme dimension exactly once with an active value of that group, inside the product segment where constrained." input VariantCoordinateEntryInput { "The id of the option group this coordinate answers." optionGroupId: ID! "The id of the value the variant takes in that group." optionValueId: ID! } input ManufacturerPartNumberInput { "The id of the manufacturer whose part number this is." manufacturerId: ID! "The manufacturer own part number for the variant, 1 to 128 characters." partNumber: String! } "Create-input for a Variant. The (style × cell) marker is minted IN the create transaction — a live duplicate is CONFLICT/IDENTITY_TAKEN naming holder + holderProduct; a doomed holder is taken over (the ratified)." input NewVariantInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Variant'; when supplied it must be non-blank." caption: String "The parent Product id." productId: ID! "The cell coordinate (omit for a zero-dimension style; must realize every scheme dimension exactly once)." coordinate: [VariantCoordinateEntryInput!] "The stock-UoM kind — defaults to canned; immutable after birth." stockUomKind: StockUomKind "The stock-UoM ref — defaults to each; a canned code, or a CustomUom id for kind custom; immutable after birth." stockUomRef: String "The manufacturer part-number map — each manufacturer server-gated in-tenant + active; at most 8, unique per manufacturer." manufacturerPartNumbers: [ManufacturerPartNumberInput!] code: String } "Edit-input for a Variant. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. The coordinate AND the stock-UoM pair are NOT editable, nor is the parent-product ref (the header). Caption/code are ordinary edits; a supplied manufacturerPartNumbers list replaces the stored map wholesale." input EditVariantInput { caption: String code: String "The replacement part-number map (wholesale; at most 8, unique per manufacturer; each manufacturer re-gated)." manufacturerPartNumbers: [ManufacturerPartNumberInput!] } "An OrgStyle selection — the per-org enablement of a group Style: selection strictly required before the org ranges/sells it. Parent = the organization (not the family root). NO domain payload (per-org assortment/pricing enrichments arrive additively at their own slices). Freely deactivatable/doomable; a NON-doomed selection blocks the master Style doom only. Creating one is floor-gated: the org must have a defaultCurrency and every non-doomed Product of the style must price it." type OrgStyle { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like EY-… — stable for the record’s life." sysId: String! "The kind of record — always `OrgStyle` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent Organization; for a selection parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The selected group Style — set at creation, immutable thereafter." styleId: ID! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the orgStyles listing — the records + the opaque resume cursor." type OrgStylePage { "The page's records." items: [OrgStyle!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for an OrgStyle selection." input NewOrgStyleInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Org Style'; when supplied it must be non-blank." caption: String "The parent Organization id — rides the header." organizationId: ID! "The group Style this selection enables — immutable after birth." styleId: ID! code: String } "Edit-input for a OrgStyle. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. styleId is NOT editable, nor is the parent-org ref (the header)." input EditOrgStyleInput { caption: String code: String } "A product relation — a typed, directed, ranked suggestion edge between two Products (alternative | replacement | accessory | upsell | cross-sell — canned, AT-extensible). Parent = the source Product (relations die with their source); the target is gate-protected from doom while suggested. Directed by design — symmetric intent = create both directions. Relation identity (source x target x relationType) is unique (a live duplicate is CONFLICT/IDENTITY_TAKEN naming the holder; a doomed one is taken over). Variant-level matching is derived at read time — a later read-side slice." type ProductRelation { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like PR-… — stable for the record’s life." sysId: String! "The kind of record — always `ProductRelation` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent source Product; for a ProductRelation parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The suggested target Product — set at creation, immutable thereafter." targetProductId: ID! "The canned relation type — set at creation, immutable thereafter." relationType: String! "The suggestion rank. Mutable — reordering is an ordinary edit." ordinal: Int! } "One page of the productRelations listing — the records + the opaque resume cursor." type ProductRelationPage { "The page's records." items: [ProductRelation!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a ProductRelation." input NewProductRelationInput { "Optional: when omitted the per-type default applies — the relation type (a relation carries no merchant code); when supplied it must be non-blank." caption: String "The source Product id." sourceProductId: ID! "The target Product id — immutable after birth; self-relation refused." targetProductId: ID! "The canned relation type — immutable after birth; unknown kinds refused by the named gate." relationType: String! "The suggestion rank (lower = first; 0..1000000) — defaulted to 0 when omitted." ordinal: Int } "Edit-input for a ProductRelation. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. targetProductId and relationType are NOT editable." input EditProductRelationInput { caption: String "The replacement suggestion rank (lower = first; 0..1000000)." ordinal: Int } "A collection type: static (curated member records) | dynamic (predicate-driven, evaluation deferred). Canned — chosen at birth, immutable." enum CollectionType { static dynamic } "The dynamic-collection price axis — inclusive bounds over ONE currency of the Product rrp map; strict decimal strings (the money grammar), compared verbatim (no float ever)." type CollectionPriceBound { currency: String! min: String max: String } "One dynamic-collection characteristic match: the Characteristic + the matched value. Multiple entries per characteristic = OR within the axis." type CollectionCharacteristicPredicate { characteristicId: ID! value: String! } "The dynamic-collection predicate. Semantics: AND across supplied axes, OR within an axis, categoryIds match subtrees, exclusions subtract, pins union first. At least one axis is required." type CollectionPredicate { "Category refs — subtree semantics at evaluation (at most 32, unique)." categoryIds: [ID!] "Tag refs (at most 64, unique)." tagIds: [ID!] "Brand refs (at most 32, unique)." brandIds: [ID!] "Season refs (at most 32, unique)." seasonIds: [ID!] "Division refs (at most 32, unique)." divisionIds: [ID!] "The price axis — bounds over ONE currency." price: CollectionPriceBound "The characteristic axis (at most 64, unique pairs)." characteristics: [CollectionCharacteristicPredicate!] } "A collection — a consumer-facing curated or rule-driven grouping of Products (gift guides, seasonal edits). collectionType is canned + immutable at birth: static = curated CollectionMember child records; dynamic = membership derived from the stored predicate. Member records on a dynamic collection are its pins (manual-pins-first). inactive = staged/unpublished. NO per-org selection construct exists; decorations are first-class." type Collection { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like CL-… — stable for the record’s life." sysId: String! "The kind of record — always `Collection` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Collection parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The canned collection kind — set at creation, immutable thereafter." collectionType: CollectionType! "The dynamic predicate. AND across supplied axes, OR within an axis; categoryIds match subtrees; evaluation is the deferred slice." predicate: CollectionPredicate "Manual exclusions; wholesale-replace (an empty list releases); write-time-validated Product refs." excludedProductIds: [ID!] "The canned sort mode. Dynamic only; stamped newest at create when omitted." sortMode: String "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the collections listing — the records + the opaque resume cursor." type CollectionPage { "The page's records." items: [Collection!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Price-axis input — at least one bound; min must not exceed max (decimal-string comparison, no float)." input CollectionPriceBoundInput { "The currency the bound is measured in — a three-letter code from the registry." currency: String! "The lowest price a product may have, as a decimal string in that currency. Optional." min: String "The highest price a product may have, as a decimal string in that currency — not below min. Optional." max: String } "Characteristic-match input — the target must be in-tenant + active; the value must fit its valueType/grammar." input CollectionCharacteristicPredicateInput { "The id of the characteristic the rule tests — in-tenant and active." characteristicId: ID! "The value a product must have for that characteristic — it must fit the characteristic format rule." value: String! } "The predicate input." input CollectionPredicateInput { "The ids of categories whose products match, each with its subcategories — unique, in-tenant and active." categoryIds: [ID!] "The ids of tags whose products match — unique, in-tenant and active." tagIds: [ID!] "The ids of brands whose products match — unique, in-tenant and active." brandIds: [ID!] "The ids of seasons whose products match — unique, in-tenant and active." seasonIds: [ID!] "The ids of divisions whose products match — unique, in-tenant and active." divisionIds: [ID!] "A price bound products must fall within — a currency with a minimum, a maximum, or both." price: CollectionPriceBoundInput "Characteristic values a product must have — one entry per characteristic." characteristics: [CollectionCharacteristicPredicateInput!] } "Create-input for a Collection." input NewCollectionInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Collection'; when supplied it must be non-blank." caption: String "The canned collection kind — immutable after birth." collectionType: CollectionType! "The predicate — required on dynamic (≥1 axis), refused on static (the named gate)." predicate: CollectionPredicateInput "Manual exclusions (at most 256, unique) — dynamic only; each tenant-scoped + active." excludedProductIds: [ID!] "The canned sort mode (newest | price-asc | price-desc | manual-pins-first) — dynamic only; defaulted newest." sortMode: String code: String } "Edit-input for a Collection. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. A supplied predicate replaces wholesale (it can never be cleared — a dynamic collection always carries one) and is re-gated per ref exactly like create; excludedProductIds replaces wholesale (an empty list releases); sortMode replaces (never cleared — it has a birth default). collectionType is NOT editable (immutable at birth). The dynamic-only fields are refused on a static collection." input EditCollectionInput { caption: String code: String "The replacement predicate (wholesale; ≥1 axis) — dynamic collections only." predicate: CollectionPredicateInput "The replacement exclusion list (wholesale; an empty list releases) — dynamic only." excludedProductIds: [ID!] "The replacement sort mode (canned) — dynamic only." sortMode: String } "A collection member — ONE curated membership edge: a Product with a display ordinal inside a Collection. Parent = the Collection (members die with it). On a static collection the members ARE the membership; on a dynamic one they are the pins. Membership (collection x product) is unique (a live duplicate is CONFLICT/IDENTITY_TAKEN naming the holder); remove = doom (TWO_STATE — history preserved); re-adding mints a NEW record via marker takeover." type CollectionMember { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like CM-… — stable for the record’s life." sysId: String! "The kind of record — always `CollectionMember` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active or doomed." status: String! "The parent Collection; for a CollectionMember parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The member Product — set at creation, immutable thereafter." productId: ID! "The display order. Mutable — reordering is an ordinary edit." ordinal: Int! } "One page of the collectionMembers listing — the records + the opaque resume cursor." type CollectionMemberPage { "The page's records." items: [CollectionMember!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a CollectionMember." input NewCollectionMemberInput { "Optional: when omitted the per-type default applies — the constant 'CollectionMember' (a membership edge carries no merchant code); when supplied it must be non-blank." caption: String "The owning Collection id." collectionId: ID! "The member Product id — immutable after birth." productId: ID! "The display order (lower = first; 0..1000000) — defaulted to 0 when omitted." ordinal: Int } "Edit-input for a CollectionMember. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. productId is NOT editable." input EditCollectionMemberInput { caption: String "The replacement display order (lower = first; 0..1000000)." ordinal: Int } "A variant component — ONE bill-of-materials edge: quantity units of a component Variant inside a kit/bundle host Variant. Parent = the host Variant (components die with it). The coupling matrix gates creation: a kit assembles simple component variants only; a bundle groups simple | service | kit (never bundles — acyclic BY type). Composition (host x component) is unique (a live duplicate is CONFLICT/IDENTITY_TAKEN naming the holder); remove = doom (TWO_STATE — history preserved); re-adding mints a NEW record via marker takeover. Build/break stock semantics + assembly-mode policy evaluation are consumers of this stored shape." type VariantComponent { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like VC-… — stable for the record’s life." sysId: String! "The kind of record — always `VariantComponent` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active or doomed." status: String! "The parent host Variant; for a VariantComponent parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The component Variant — set at creation, immutable thereafter." componentVariantId: ID! "Whole units of the component per ONE host unit (1..1000000). Mutable — the quantity change is an ordinary edit." quantity: Int! } "One page of the variantComponents listing — the records + the opaque resume cursor." type VariantComponentPage { "The page's records." items: [VariantComponent!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a VariantComponent." input NewVariantComponentInput { "Optional: when omitted the per-type default applies — the constant 'VariantComponent' (a composition edge carries no merchant code); when supplied it must be non-blank." caption: String "The host (kit/bundle) Variant id." variantId: ID! "The component Variant id — immutable after birth; self-composition refused." componentVariantId: ID! "Whole units per ONE host unit (1..1000000) — defaulted to 1 when omitted." quantity: Int } "Edit-input for a VariantComponent. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. componentVariantId is NOT editable." input EditVariantComponentInput { caption: String "The replacement quantity (whole units per ONE host unit; 1..1000000)." quantity: Int } "An inventory item: ONE per (Variant x LogicalFacility), carrying the cached bucket balances + the weighted-moving-average cost. Parent = the Variant; the other junction leg is the immutable logicalFacilityId. The junction (variant x LF) is unique (a live duplicate is CONFLICT/IDENTITY_TAKEN naming the holder). styleType is birth-stamped from the spine (immutable upstream): simple/kit IIs are stocked; service/bundle IIs are stockless price-carriers refusing quantity movements. Buckets are signed decimal strings moved only by the movement ops; available = on_hand − reserved, always derived, never stored. Doom requires every bucket exactly zero (CONFLICT/REFERENCED naming the non-zero buckets); deactivate is free and reversible. onOrderQty is a sixth field, NOT a bucket: the open quantity of the issued purchase orders for this junction, maintained by the purchase-order walks + the receipt post — never by movements, never inside available; a pre-walk row reads 0; the audit/repair pair (inventoryOnOrderAudit / repairInventoryOnOrder) stamps the derived truth over drift." type InventoryItem { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like IV-… — stable for the record’s life." sysId: String! "The kind of record — always `InventoryItem` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent Variant; for an InventoryItem parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The LogicalFacility leg of the junction — set at creation, immutable thereafter." logicalFacilityId: ID! "The birth-stamped spine styleType: simple | service | kit | bundle; service/bundle IIs are stockless price-carriers." styleType: String! "The control class (canned: non-controlled | lot-controlled | serially-controlled — server-validated, the DC-d shape). Mutable — an ordinary edit." controlClass: String! "The cached on_hand balance — a signed decimal string; moves only via movements." onHandQty: String! "The cached reserved claim overlay." reservedQty: String! "The cached in_transit balance (the transfer saga — zero until that slice)." inTransitQty: String! "The cached damaged balance." damagedQty: String! "The cached held balance (reason-coded via the movement entries)." heldQty: String! "On order — the issued purchase orders’ open quantity for this item: maintained by the purchase-order walks (+ at issue/approve, − at cancel, − the open remainder at close_short) and the receipt post (− the arriving quantity); NOT part of available; every decrement clamps at 0. A pre-walk row reads 0; the audit/repair pair (inventoryOnOrderAudit / repairInventoryOnOrder) stamps the derived truth over any drift." onOrderQty: String! "Derived, never stored: on_hand − reserved, computed at read time (exact decimal-string arithmetic)." availableQty: String! "The weighted-moving-average unit cost. Absent until the first costed receive." wmaCost: MoneyEntry } "One page of the inventoryItems listing — the records + the opaque resume cursor." type InventoryItemPage { "The page's records." items: [InventoryItem!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "Create-input for an InventoryItem." input NewInventoryItemInput { "Optional: when omitted the per-type default applies — the junction coordinate ` @ `; when supplied it must be non-blank." caption: String "The stock-bearing Variant id." variantId: ID! "The LogicalFacility id (the other junction leg) — immutable after birth." logicalFacilityId: ID! "The control class (non-controlled | lot-controlled | serially-controlled) — defaulted to non-controlled when omitted." controlClass: String } "Edit-input for a InventoryItem. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. logicalFacilityId and styleType are NOT editable (immutable junction identity/birth stamp); the buckets and wmaCost are NOT here AT all — they move only via the movement transactions." input EditInventoryItemInput { caption: String "The replacement control class (non-controlled | lot-controlled | serially-controlled — server-validated)." controlClass: String } "A sale price: ONE effective-dated price window in the parent InventoryItem schedule — the dated record-set IS the full price history. Windows are half-open [startAt, endAt) with endAt always present (far-future = the standing price); past the last endAt with no successor the item is NOT for sale. Inserts are splice-normalized: a start falling strictly inside the immediately-preceding window auto-TRIMS that predecessor endAt to the new start (the ONE sanctioned in-place mutation — revisioned + evented); overlap with any other record refuses CONFLICT/PRICE_WINDOW_OVERLAP naming the blockers. No past starts. The schedule currency is fixed by the first record; a mismatch is refused named. Doom cancels a not-yet-effective future record only. startAt/endAt/price are wire-IMMUTABLE." type SalePrice { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like SP-… — stable for the record’s life." sysId: String! "The kind of record — always `SalePrice` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active or doomed." status: String! "The parent InventoryItem; for a SalePrice parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The window start (inclusive; UTC ISO-8601) — set at birth, immutable thereafter." startAt: String! "The window end. Moves only via the system splice trim when a successor starts inside this window." endAt: String! "The selling price for the window. Immutable — supersede to change." price: MoneyEntry! "The MarkdownPlan whose schedule fan-out wrote this window." markdownPlanId: ID "The 0-based step within the stamping plan's cadence." markdownStepIndex: Int } "One page of the salePrices listing — the records + the opaque resume cursor." type SalePricePage { "The page's records." items: [SalePrice!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a SalePrice." input NewSalePriceInput { "Optional: when omitted the per-type default applies — the window coordinate ` from `; when supplied it must be non-blank." caption: String "The InventoryItem id." inventoryItemId: ID! "The window start (inclusive; UTC ISO-8601). Optional — absent = effective NOW; explicit values must be >= the server now." startAt: String "The window end (exclusive; UTC ISO-8601). Always required; must be strictly after startAt." endAt: String! "The selling price — the currency must match the schedule fixed currency." price: MoneyEntryInput! } "Edit-input for a SalePrice. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. startAt, endAt and price are NOT editable." input EditSalePriceInput { caption: String } "One embedded Transfer line." type TransferLine { "1-based position (create input order) — the receipt/resolution addressing key." lineNo: Int! "The source InventoryItem id (variant x source LF)." inventoryItemId: ID! "The destination InventoryItem id (same variant x destination LF) — server-resolved at create (IV-b: the junction must already exist; movements never auto-vivify)." destinationInventoryItemId: ID! "The variant both junctions share (provenance — server-resolved at create)." variantId: ID! "The quantity to move (decimal string, stock UoM, strictly positive)." quantity: String! "The carried unit cost — birth-stamped at ship from the source WMA; absent until then, and absent forever on an un-costed source book." unitCost: MoneyEntry "Rollup: quantity shipped (a light transfer stamps it at its one completing step)." shippedQty: String! "Rollup: quantity landed at the destination (on_hand + held together)." receivedQty: String! "Rollup: the held subset of receivedQty." heldQty: String! "Rollup: residual quantity disposed via resolve." resolvedQty: String! "Rollup: declared surplus booked at receive. Outside receivedQty by design — the over-receipt outstanding math stays pure." unplannedQty: String "The originating TransferRequest — present iff this Transfer was born by an acceptance." transferRequestId: ID "The originating request line number (1-based on that doc) — travels with transferRequestId." requestLineNo: Int } "A stock transfer: ONE shipment event moving stock between two LogicalFacilities of the same org group (the never-cross-group law IS the tenancy boundary; the source and destination orgs may differ = intercompany, attribution stamped at birth). Light weight (same physical location — birth-derived from the lf-pf-pfl spine) completes in the ONE submit step (no reserve, no in_transit). Cancel is pre-ship only; cancelled is the ONE doomed terminal (lists filter it); completed/closed are immutable non-doomed history — a write there refuses CONFLICT/IMMUTABLE." type Transfer { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like TF-… — stable for the record’s life." sysId: String! "The kind of record — always `Transfer` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of draft, pending_send_approval, ready, in_transit, pending_receive_approval, partially_received, received, in_dispute, completed, closed or cancelled." status: String! "The parent source LogicalFacility; for a Transfer parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The destination LogicalFacility (pointer ref; never the parent — a same-LF pair is a relocation, refused at birth: relocateStock is the doc-less sibling)." destinationLogicalFacilityId: ID! "The transfer weight — light (same PFL: immediate handoff, no in_transit) or shipped (the full saga). Birth-derived from the live lf-pf-pfl spine and immutable." weight: String! "The source LF owning org. Immutable." sourceOrganizationId: ID! "The destination LF owning org (spine-derived at birth; == sourceOrganizationId for intra-org moves). Immutable." destinationOrganizationId: ID! "The expected arrival instant. Lands at ship, absent before." expectedArrivalAt: String "Carrier / tracking references. Land at ship, absent before." carrierRefs: [String!] "The embedded lines." lines: [TransferLine!]! } "One page of the transfers listing — the records + the opaque resume cursor." type TransferPage { "The page's records." items: [Transfer!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Edit-input for a Transfer. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. A write while the doc rests in an immutable terminal (completed / closed / cancelled) refuses CONFLICT/IMMUTABLE." input EditTransferInput { caption: String } "One embedded TransferRequest line." type TransferRequestLine { "1-based position (create input order) — the accept/reject addressing key." lineNo: Int! "The requested variant." variantId: ID! "The requesting-lf InventoryItem junction (variant x requesting LF) — server-resolved + stamped at create." destinationInventoryItemId: ID! "The requested quantity (decimal string, stock UoM, strictly positive)." quantity: String! "Rollup: total accepted quantity across live allocations." allocatedQty: String! "Rollup: total shipped by linked Transfers (stamped in the linked ship transaction)." shippedQty: String! "Rollup: total received at the requesting LF (on_hand + held together; stamped in the linked receive transaction)." receivedQty: String! "Derived: requested minus received — never stored (the availableQty stance)." outstandingQty: String! "The acceptance ledger." allocations: [TransferRequestAllocation!]! "The decline markers." declines: [TransferRequestDecline!]! "The special_order demand line this TR line sources." orderLineRef: SpecialOrderLineRef } "One allocation row: the record of ONE acceptance = ONE linked Transfer born ready at the accepting source. The reservation itself is transfer-owned — the request never holds claims." type TransferRequestAllocation { "The accepting source LogicalFacility." sourceLogicalFacilityId: ID! "The source InventoryItem." sourceInventoryItemId: ID! "The linked Transfer born by this acceptance." transferId: ID! "The quantity this acceptance allocated (== the born Transfer line quantity)." allocatedQty: String! } "One decline marker." type TransferRequestDecline { "The declining source LogicalFacility." sourceLogicalFacilityId: ID! "Optional free-text reason." reason: String } "The canned request priorities." enum TransferRequestPriority { low normal high urgent } "A stock transfer request: a requesting LF asks variants x quantities of the group (open sourcing) or of ONE targeted source LF. Lines are embedded, variant-keyed + birth-fixed (max 24 — TR-o); cancelled is the ONE doomed terminal (lists filter it); fulfilled/closed_short are immutable non-doomed history — a write there refuses CONFLICT/IMMUTABLE." type TransferRequest { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like TR-… — stable for the record’s life." sysId: String! "The kind of record — always `TransferRequest` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of draft, submitted, open, fulfilled, closed_short or cancelled." status: String! "The parent requesting LogicalFacility; for a TransferRequest parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The requesting LF owning org (spine-derived at birth — the attribution symmetry, demand side; sources attribute themselves on the born Transfers). Immutable." requestingOrganizationId: ID! "The targeted source LF; absent = open to the group. Only the target may accept/reject a targeted request. Birth-fixed." targetLogicalFacilityId: ID "The needed-by instant. Birth-fixed." neededBy: String "The canned request priority. Birth-fixed." priority: TransferRequestPriority "The embedded lines." lines: [TransferRequestLine!]! } "One page of the transferRequests listing — the records + the opaque resume cursor." type TransferRequestPage { "The page's records." items: [TransferRequest!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Edit-input for a TransferRequest. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. The requesting/target LFs, the demand metadata (neededBy / priority) and the lines are birth-fixed; the rollups + allocation rows mutate only via accept / linked-Transfer steps. A write while the doc rests in an immutable terminal (fulfilled / closed_short / cancelled) refuses CONFLICT/IMMUTABLE." input EditTransferRequestInput { caption: String } "The canned count types." enum CountType { physical cycle spot } "The scope selector: at most ONE location axis (whole-LF when both arrays are absent | zones | bins) plus the optional control-class II filter; the join-walk attribute filters (category/division/tag/brand) are the.2 catalogued extension." type CountScope { "Count these zones' bins." zoneIds: [ID!] "Count exactly these bins." binIds: [ID!] "Restrict the resolved IIs to ONE control class (non-controlled | lot-controlled | serially-controlled — the II attribute filter)." controlClass: String } "One resolved count line: a StockRecord shard (binId present, lotCode per the shard) or the derived un-binned pool line (binId absent; whole-LF scope only). Blind-by-shape: while the doc is counting, snapshotQty/expectedAtCapture/variance read null — the counter sees what to count, never the expected; the full detail projects once the doc leaves counting (the store + archive always carry it)." type CountLine { "1-based position (resolution order at start) — the capture addressing key." lineNo: Int! "The counted InventoryItem (the (variant x LF) junction)." inventoryItemId: ID! "The record shard's bin — absent = the un-binned pool line." binId: ID "The record shard's lot." lotCode: String "The line's on_hand at start. Null while counting (blind-by-shape)." snapshotQty: String "The captured physical quantity. Null until captured." countedQty: String "The line's live on_hand point-read at capture. Null while counting (blind-by-shape)." expectedAtCapture: String "When the capture landed. Null until captured." capturedAt: String "Derived: countedQty − expectedAtCapture; null while counting and on uncaptured lines." variance: String } "A stock count: recorded stock vs physically-present stock at one LF, posting count_correct variance deltas. Counts count ON_HAND presence only (condition rides reclass). posted is immutable non-doomed history (recount = a NEW linked count); cancelled is the ONE doomed terminal (lists filter it). Blind-by-shape while counting: line reads omit snapshot/expected/variance." type Count { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like IC-… — stable for the record’s life." sysId: String! "The kind of record — always `Count` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of draft, counting, pending_review, posted or cancelled." status: String! "The parent counted LogicalFacility; for a Count parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The counted LF owning org. Immutable." organizationId: ID! "The canned count type. Birth-fixed." countType: CountType! "The scope selector." scope: CountScope! "The posted count this one re-counts." recountOfCountId: ID "The resolved lines." lines: [CountLine!]! } "One page of the counts listing — the records + the opaque resume cursor." type CountPage { "The page's records." items: [Count!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Edit-input for a Count. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. A write while the doc rests in an immutable terminal (posted / cancelled) refuses CONFLICT/IMMUTABLE." input EditCountInput { caption: String } "A Contact's person block: a required name + optional title and reach lists." type ContactPerson { name: String! title: String "RFC-shape email addresses, each at most 254 characters (non-empty when present, at most 8)." emails: [String!] "Free-shape bounded phone numbers (non-empty when present, at most 8)." phones: [String!] } "A Contact's inline address block: free-form lines (1..4) + the universally-present fields (the PostalAddress strictness stance)." type ContactAddress { lines: [String!]! city: String! "State / province / prefecture — optional (not universal across countries)." region: String postalCode: String "ISO 3166-1 alpha-2 country code (uppercase)." countryCode: String! } "A contact — the unified, reusable contact-info master: one group-scoped record holding an optional person block and/or an optional inline address block (at-least-one-of — an empty contact is refused at the boundary), attached to hosts via role-tagged ContactAssignments. Group-scoped like a Brand (parent = the org group). Carries external-party + functional addresses only — the PhysicalFacilityLocation stays the sole physical-address holder for OUR facilities. Deactivate AND doom are both blocked by live (active) assignments." type Contact { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like CO-… — stable for the record’s life." sysId: String! "The kind of record — always `Contact` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Contact parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The optional person block; absent on an address-only contact." person: ContactPerson "The optional inline address block; absent on a person-only contact." address: ContactAddress "Free-text notes (at most 4096 chars); absent when none." notes: String } "Person-block input for a Contact — a supplied block replaces the stored one wholesale." input ContactPersonInput { name: String! title: String emails: [String!] phones: [String!] } "Address-block input for a Contact — a supplied block replaces the stored one wholesale." input ContactAddressInput { lines: [String!]! city: String! region: String postalCode: String "ISO 3166-1 alpha-2 country code (uppercase)." countryCode: String! } "Create-input for a Contact. Substance rule: at least one of person/address is required — an empty contact is VALIDATION/INVALID." input NewContactInput { "Optional: when omitted the per-type default applies — the person's name when given, else 'Contact'; when supplied it must be non-blank." caption: String person: ContactPersonInput address: ContactAddressInput notes: String } "Edit-input for a Contact. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved: a supplied person/address block replaces the stored one wholesale, so the birth substance rule can never be edited away. The full payload is mutable." input EditContactInput { caption: String "The replacement person block (wholesale)." person: ContactPersonInput "The replacement address block (wholesale)." address: ContactAddressInput notes: String } "The ContactAssignment host classes." enum ContactAssignmentHostType { organization_group organization logical_facility vendor corporate_customer } "A contact assignment — ONE role-tagged attachment of a Contact to a host construct (org group / organization / logical facility / vendor / corporate customer). Parent = the host (the CollectionMember stance — hostId rides the header parentId). The (contact, host, role) triple is unique (a live duplicate is CONFLICT/IDENTITY_TAKEN naming the holder); remove = doom (TWO_STATE — history preserved); re-assigning mints a NEW record via marker takeover. Role to host applicability is registry data. At most 48 live assignments per host." type ContactAssignment { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like CA-… — stable for the record’s life." sysId: String! "The kind of record — always `ContactAssignment` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active or doomed." status: String! "The parent host construct; parentId === rootId only when the host IS the group." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The assigned Contact — set at creation, immutable thereafter (a different link is a NEW assignment)." contactId: ID! "The host's construct class — the parent-slot discriminator; immutable at birth." hostType: ContactAssignmentHostType! "The role this contact plays at the host — the canned + AT-extensible ContactRole registry (primary · owner · manager · billing-AP · accounts-receivable · purchasing-buyer · sales-rep · shipping-logistics · returns · support · technical · emergency); immutable at birth." role: String! } "Create-input for a ContactAssignment." input NewContactAssignmentInput { "Optional: when omitted the per-type default applies — the role's registry caption (e.g. 'Billing (AP)'); when supplied it must be non-blank." caption: String "The host construct id." hostId: ID! hostType: ContactAssignmentHostType! "The assigned Contact id — immutable after birth." contactId: ID! "The ContactRole token (canned registry — a non-canned or non-applicable role is VALIDATION/INVALID)." role: String! } "Edit-input for a ContactAssignment. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. Caption only — every link field (contactId/hostType/role, and the host parent on the header) is immutable at birth." input EditContactAssignmentInput { caption: String } "The canned warranty provider set." enum WarrantyProvider { manufacturer vendor } "Warranty terms — the warranty policy template: provider + duration + coverage, attached to exactly one of a Product or a Manufacturer (the manufacturer-attached row IS the reusable template). Group-scoped like a Brand (parent = the org group). The attachment is the template's identity — immutable at birth (re-attach = recreate); the policy payload stays mutable (the future warranty instance snapshots terms at sale, so a template edit never rewrites issued warranties). The warranty instance construct is NOT here." type WarrantyTerms { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like WT-… — stable for the record’s life." sysId: String! "The kind of record — always `WarrantyTerms` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a WarrantyTerms parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "WHO honors the warranty. Mutable." provider: WarrantyProvider! "The coverage duration in days from the (future) sale date (1..36500). Mutable." durationDays: Int! "Free-text coverage description (at most 8192 chars); absent when none. Mutable." coverage: String "The Product attachment leg. Immutable at birth." productId: ID "The Manufacturer attachment leg (the reusable-template form). Immutable at birth." manufacturerId: ID } "Create-input for a WarrantyTerms." input NewWarrantyTermsInput { "Optional: when omitted the per-type default applies — the policy coordinate ('Warranty d ()'); when supplied it must be non-blank." caption: String provider: WarrantyProvider! "The coverage duration in days (1..36500)." durationDays: Int! coverage: String "The Product attachment leg (exactly-one-of)." productId: ID "The Manufacturer attachment leg (exactly-one-of)." manufacturerId: ID } "Edit-input for a WarrantyTerms. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. The policy payload (provider/durationDays/coverage) is editable; the attachment (productId/manufacturerId) is NOT." input EditWarrantyTermsInput { caption: String provider: WarrantyProvider "The replacement duration in days (1..36500)." durationDays: Int coverage: String } "A Warranty — the warranty instance: one sold order line under one WarrantyTerms template. Born by the platform when the sale completes (paid AND delivered) for every variant line whose product carries an active product-attached template or whose variant names a manufacturer carrying an active manufacturer-attached template (one warranty per matching template); never created on the wire. The policy is snapshotted at birth (provider · durationDays → expiresAt = startsAt + durationDays), so later template edits never rewrite an issued warranty. `active → expired` is the scheduler’s over expiresAt; `active → claimed` is fileClaimWarranty (a warranty_claim CsCase linked both ways). The serial number is optional and stamped through updateWarranty. Listings keep expired warranties as coverage history (the settled-payment class — a status filter narrows to active); every warranty stays reachable by id from the order line’s warrantyIds." type Warranty { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like WR-… — stable for the record’s life." sysId: String! "The kind of record — always `Warranty` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, claimed or expired." status: String! "The sold Order; rootId = the org group; parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The selling Organization (copied from the Order at birth)." organizationId: ID! "The sold line — the Order’s 1-based lineNo (frozen at placed; the cross-document addressing key)." orderLineNo: Int! "The sold Variant (the line’s variantId)." variantId: ID! "The Variant’s Product (resolved at birth)." productId: ID! "The WarrantyTerms template the warranty was issued under (a pointer — the policy is snapshotted on the record)." warrantyTermsId: ID! "WHO honors the warranty — snapshotted from the terms at birth (the claim’s routing)." provider: WarrantyProvider! "The coverage duration in days — snapshotted from the terms at birth." durationDays: Int! "The covered units — the line’s quantity at birth (the inventory decimal-string quantity shape)." quantity: String! "The coverage start — the sale’s completion instant (UTC ISO-8601)." startsAt: String! "The coverage end = startsAt + durationDays days (UTC ISO-8601); the scheduler sweeps active → expired on it." expiresAt: String! "The registered Consumer the order was for (from the Order’s customer capture, when present) — the customer-scoped listing axis." consumerId: ID "The unit’s serial number — optional; stamped through updateWarranty (at most 128 characters)." serialNumber: String "The warranty_claim CsCase the claim linked (stamped by fileClaimWarranty; present from claimed onward)." caseId: ID } "One page of the warranties listing — the records + the opaque resume cursor." type WarrantyPage { "The page's records." items: [Warranty!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Edit-input for a Warranty. Every field optional, at least ONE required; supplied fields replace The ONE edit is the serial-number stamp (typed at the counter or later; re-stampable — every value stays in the history); everything else is the platform’s snapshot or a transition stamp." input EditWarrantyInput { "The unit’s serial number (1..128 characters)." serialNumber: String! } "An org vendor item — the (OrgVendor × Variant) junction: this org buys this variant from this enabled vendor, carrying the vendor's part number / list cost / MOQ / lead time. Parent = the OrgVendor (the InventoryItem junction stance). The (orgVendor × variant) pair is unique (a live duplicate is CONFLICT/IDENTITY_TAKEN naming the holder; a doomed holder is taken over). OVIs are optional by default. Live OVIs block the parent OrgVendor's doom AND the Variant's doom; OrgVendor deactivate stays free. Money reuses the MoneyEntry SDL (declared on the Product entry)." type OrgVendorItem { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like EI-… — stable for the record’s life." sysId: String! "The kind of record — always `OrgVendorItem` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent OrgVendor; for an OrgVendorItem parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The Variant leg of the junction — set at creation, immutable thereafter (re-point = doom + create)." variantId: ID! "The vendor'S part number for this variant (their token, not our SKU; at most 128 chars); optional + editable." vendorPartNumber: String "The vendor's list cost — the currency must match the parent OrgVendor's purchasingCurrency. The cost per pack when purchasePackId is present; optional + editable." listCost: MoneyEntry "The minimum order quantity — STOCK-UoM units, or packs when purchasePackId is present; optional + editable." moq: Int "The per-item lead time in days (1..730) — overrides the OrgVendor default when present; optional + editable." leadTimeDays: Int "The vendor PurchasePack denomination for this junction. Must package this junction variant (tenant + active + variant-coherence gated at every set); an edit supplying it while listCost/moq are stored re-supplies them in the same payload (the flip coupling); NO clearing semantic — un-denominating = doom + re-create. Optional + editable." purchasePackId: ID } "One page of the orgVendorItems listing — the records + the opaque resume cursor." type OrgVendorItemPage { "The page's records." items: [OrgVendorItem!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for an OrgVendorItem." input NewOrgVendorItemInput { "Optional: when omitted the per-type default applies — the vendor's part number when given, else 'Org Vendor Item'; when supplied it must be non-blank." caption: String "The owning OrgVendor id." orgVendorId: ID! "The Variant this vendor supplies — immutable after birth." variantId: ID! vendorPartNumber: String "The vendor's list cost — the currency must match the parent OrgVendor's purchasingCurrency; the cost per pack when purchasePackId is supplied." listCost: MoneyEntryInput moq: Int leadTimeDays: Int "The vendor PurchasePack denomination — tenant + active + must package variantId." purchasePackId: ID } "Edit-input for a OrgVendorItem. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. variantId is NOT editable (immutable junction identity — re-point = doom + create; the uniqueness marker never swaps), nor is the parent OrgVendor ref (the header). The commercial payload is editable; a supplied listCost re-gates against the parent purchasingCurrency; a supplied purchasePackId re-gates (tenant + active + variant-coherence) AND requires stored listCost/moq re-supplied in the same payload." input EditOrgVendorItemInput { caption: String vendorPartNumber: String "The replacement list cost (currency must match the parent purchasingCurrency; per pack when the junction is pack-denominated)." listCost: MoneyEntryInput moq: Int leadTimeDays: Int "The replacement pack denomination — re-gated; stored listCost/moq must ride the same payload (the flip coupling)." purchasePackId: ID } "One embedded PurchaseOrder line." type PurchaseOrderLine { "1-based position (input order) — the receipt addressing key (poLineNo)." lineNo: Int! "The ordered variant (active-gated; stockless service/bundle styles refuse — stock cannot be received into a stockless junction)." variantId: ID! "The receiving LogicalFacility (must belong to the buying org) — defaulted from the OrgVendor defaultShipToLogicalFacilityId when omitted at create." logicalFacilityId: ID! "The ordered quantity (decimal string, stock UoM, strictly positive)." quantity: String! "The merchandise unit cost — required effective; in the PO snapshot currency. The landed share joins at receipt post, NOT here." unitCost: MoneyEntry! "Optional per-line manufacturer." manufacturerId: ID "Optional expected-arrival instant (UTC ISO-8601) — defaulted create-date + (OVI?? OrgVendor) leadTimeDays when either declares one." expectedArrivalAt: String "Rollup: total received across posted receipts." receivedQty: String! "Derived: ordered minus received — never stored (the TR outstandingQty stance); the outstanding on partially_received IS the backorder." outstandingQty: String! "The pack-ENTRY audit capture: the pack whose immutable unitsPerPack derived quantity (quantity == packQuantity x unitsPerPack, forever)." purchasePackId: ID "The entered pack count (present iff purchasePackId is)." packQuantity: Int "The special_order demand line this PO line backorders." orderLineRef: SpecialOrderLineRef } "The in-flight on-order walk of a large purchase order: present while status is issuing / cancelling / closing; the header IS the truth — the cursor and the chunk's stamps commit together, chunk by chunk, so a replayed step continues from the cursor." type PurchaseOrderWalk { "Which walk: issue (+ on order; from draft or pending_approval) · cancel (− on order; from issued) · close_short (− the open remainder; from partially_received)." kind: String! "The lineNo the next chunk starts at — lines below it are stamped (cursor − 1 of lineCount landed)." cursor: Int! "Chunks committed so far (the inline first chunk counts)." chunks: Int! "The order's line count when the walk started — the progress denominator." lineCount: Int! "When the walk started (UTC ISO-8601)." startedAt: String! executionArn: String "Set when a step failed past its retries — the order is honestly stuck; re-run the same verb to resume." stalledAt: String "The stall cause (cut to 512 characters) — present with stalledAt." problem: String } "A purchase order: an org orders variants x quantities x receiving LFs from ONE enabled vendor (the OrgVendor enablement — immutable at birth). Lines live in their OWN rows since and stay draft-editable wholesale; currency is the OrgVendor purchasingCurrency snapshot; received/closed_short are immutable non-doomed history; cancelled is the ONE doomed terminal (lists filter it). Re-running the same verb resumes a stalled walk; on a healthy in-flight order it refuses CONFLICT/IN_PROGRESS naming the progress." type PurchaseOrder { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like PO-… — stable for the record’s life." sysId: String! "The kind of record — always `PurchaseOrder` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of draft, pending_approval, issued, acknowledged, partially_received, issuing, cancelling, closing, received, closed_short or cancelled." status: String! "The parent buying Organization; for a PurchaseOrder parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The supplying OrgVendor enablement — immutable at birth (re-vendor = cancel + new); active-gated at create AND re-checked at issue." orgVendorId: ID! "The PO currency — a snapshot of the OrgVendor purchasingCurrency at create. Every Money on the family (line costs, landed components, invoice amounts, credits) must match it; the rate framework is the named FX trigger." currency: String! "Optional canned payment terms — snapshot defaulted from the OrgVendor at create, per-PO overridable." paymentTerms: String "Optional canned Incoterms 2020 rule — snapshot defaulted from the OrgVendor at create, per-PO overridable." incotermCode: String "Optional vendor-side order/quote reference (their token — a bounded free string, max 64)." vendorReference: String "Optional free-text notes (max 4096)." notes: String "Rollup: the live line rows on this order (0..1000) — maintained in the same transaction as every line mutation. Always <= nextLineNo - 1: removed numbers are never reused." lineCount: Int! "Rollup: the lines still outstanding (receivedQty < quantity)." openLineCount: Int! "The monotonic next lineNo this order will assign (born 1; +1 per minted line; a removed number is never reused, so the poLineNo addressing on Receipt + VendorInvoice stays unambiguous forever). Ceiling 1000 + 1 = the assignment exhausted." nextLineNo: Int! "Rollup: sigma (quantity x unitCost) over the live lines, in the PO snapshot currency — the vendor orderMinimum gate at issue reads this instead of summing lines. Landed components are NOT in it (they join at receipt post)." merchandiseTotal: MoneyEntry! "the ONE receipt mid-post against this order: set by a posting receipt’s first in-flight chunk, cleared by its last (the same transaction). A second receipt’s post refuses CONFLICT/IN_PROGRESS naming it, and close_short waits on it (policy:no_receipt_in_flight). Null when no receipt is walking." receivingReceiptId: ID "The whole line set, read from the line rows in lineNo order and bounded by the 1000-line ceiling. To page, filter or sort them — or to read a big order without hydrating every line — use the purchaseOrderLines query." lines: [PurchaseOrderLine!]! "The in-flight on-order walk: present exactly while status is issuing / cancelling / closing — a large order whose stock stamps did not fit ONE transaction is written a chunk at a time, and this carries where it stands (kind · cursor = the next line to stamp, so cursor − 1 of lineCount landed · chunks so far · lineCount · startedAt · the machine executionArn once started · stalledAt + problem when a step failed past its retries). Null on every other status; cleared by the last chunk in the same transaction that lands the terminal. Re-run the same verb (issue / approve / cancel / close_short) to resume a stalled walk; on a healthy one it refuses CONFLICT/IN_PROGRESS naming the progress." walk: PurchaseOrderWalk } "One page of the purchaseOrders listing — the records + the opaque resume cursor." type PurchaseOrderPage { "The page's records." items: [PurchaseOrder!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "One caller-supplied PurchaseOrder line." input PurchaseOrderLineInput { "The variant to order — tenant-scoped + active; OVI-gated when the OrgVendor sets requireCatalogItem (a missing live OVI refuses named)." variantId: ID! "The receiving LF — optional (defaults from the OrgVendor defaultShipToLogicalFacilityId); must belong to the buying org." logicalFacilityId: ID "The ordered quantity (decimal string, strictly positive); below the OVI effective moq refuses named. Unit entry — exactly ONE of {quantity, the pack pair} per line." quantity: String "The merchandise unit cost — optional; required effective after resolution; must match the PO snapshot currency." unitCost: MoneyEntryInput "Optional per-line manufacturer." manufacturerId: ID "Optional expected-arrival instant (UTC ISO-8601; defaults from lead time when either level declares one)." expectedArrivalAt: String "Pack entry: the pack to enter in — tenant + active + must package this line variant; the stored quantity derives as packQuantity x unitsPerPack. Comes as a pair with packQuantity." purchasePackId: ID "The pack count (1..999999) — present iff purchasePackId is." packQuantity: Int orderLineRef: SpecialOrderLineRefInput } "Edit-input for a PurchaseOrder. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. Draft-only wholesale: header fields + a full line replace while draft (no per-line patching); the orgVendorId and the currency snapshot are birth-fixed (re-vendor = cancel + new); a live post-draft doc refuses CONFLICT/REF_STATE naming the required draft state (amend = cancel / close_short + a new PO); a write in an immutable terminal (received / closed_short / cancelled) refuses CONFLICT/IMMUTABLE." input EditPurchaseOrderInput { caption: String paymentTerms: String incotermCode: String vendorReference: String notes: String "The wholesale line replacement (draft-only) — same shape, defaults and gates as create; the whole set, up to 1000.: it persists as a diff by the natural (variantId x logicalFacilityId) key — an unchanged line costs no write, a kept line keeps its lineNo, a new key mints at nextLineNo, an absent key deletes (a line carrying orderLineRef refuses CONFLICT/REFERENCED); a delta past 90 line actions refuses VALIDATION/INVALID naming the budget and the three line ops." lines: [PurchaseOrderLineInput!] } "The canned arrival dispositions." enum ReceiptDisposition { accept hold damage } "The canned landed-cost component types." enum LandedCostComponentType { freight customs_duty tariff insurance handling brokerage } "The allocation bases." enum LandedCostAllocationBasis { quantity value } "One landed-cost component (estimate at the Receipt; actual at the.3 VendorInvoice): a typed amount spread across the document's lines by its basis (allocateProportionally — exact conservation, remainder in line order)." type LandedCostComponent { "The canned component type." componentType: LandedCostComponentType! "The component amount — house Money in the PO snapshot currency." amount: MoneyEntry! "How the amount spreads across lines: quantity (per received unit) or value (per merchandise value)." basis: LandedCostAllocationBasis! } "One Receipt line." type ReceiptLine { "1-based, assigned at mint from the header nextLineNo — a removed number is never reused." lineNo: Int! "The PO line being received (1-based on the parent PO)." poLineNo: Int! "The quantity arriving NOW (strictly positive; cumulative across posted receipts <= ordered — over-receipt refuses at post)." quantityReceived: String! "The canned arrival routing." disposition: ReceiptDisposition! "The canned held reason — required iff disposition is hold (the law, strict both ways)." heldReason: String "Optional landing bin (binned receive stamps the StockRecord shard in the same transaction; omitted = the un-binned pool)." binId: ID "The pack-ENTRY audit capture: the pack whose immutable unitsPerPack derived quantityReceived; may differ from the PO line's pack." purchasePackId: ID "The entered pack count (present iff purchasePackId is)." packQuantity: Int "Port-stamped at post (absent while draft): the merchandise unit cost — the PO line's unitCost at post (the merchandise half of the split; the audit +.3 true-up record)." merchandiseUnitCost: MoneyEntry "Port-stamped at post (absent while draft): the effective landed unit cost (merchandise + the allocated estimate share per unit, half-up 4 dp — the display figure; the WMA re-weight uses the exact conserved value, never this re-rounded number)." landedUnitCost: MoneyEntry } "The in-flight post walk of a large receipt: present while status is posting; the header IS the truth — the cursor and the chunk's stock stamps commit together, chunk by chunk, so a replayed step continues from the cursor." type ReceiptWalk { "Which walk: post (the lines landing in stock; from draft)." kind: String! "The lineNo the next chunk starts at — lines below it are booked (cursor − 1 of lineCount landed)." cursor: Int! "Chunks committed so far (the inline first chunk counts)." chunks: Int! "The receipt's line count when the walk started — the progress denominator." lineCount: Int! "When the walk started (UTC ISO-8601)." startedAt: String! executionArn: String "Set when a step failed past its retries — the receipt is honestly stuck; re-run post to resume." stalledAt: String "The stall cause (cut to 512 characters) — present with stalledAt." problem: String } "Over-receipt refuses CONFLICT/THREE_WAY_MATCH; under-receipt is partial, first-class — the next receipt is a NEW doc. posted is the immutable NON-doomed fact (corrections are compensating movements, never edits); cancelled is the doomed terminal (lists filter it). Re-running post resumes a stalled walk; on a healthy in-flight receipt it refuses CONFLICT/IN_PROGRESS naming the progress; one receipt posts against a purchase order at a time (its receivingReceiptId)." type Receipt { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like RC-… — stable for the record’s life." sysId: String! "The kind of record — always `Receipt` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of draft, posting, posted or cancelled." status: String! "The parent PurchaseOrder; for a Receipt parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The receiving LogicalFacility — immutable at birth (the Transfer LF-pair stance; wrong LF = cancel + recreate); must be named by >=1 parent-PO line; active-re-checked at post (the SL-b use-time stance)." logicalFacilityId: ID! "The buying org — spine-stamped from the parent PO at birth (the attribution symmetry)." organizationId: ID! "Rollup: the live line rows on this receipt (0..1000) — maintained in the same transaction as every line mutation. Always <= nextLineNo - 1: removed numbers are never reused." lineCount: Int! "The monotonic next lineNo this receipt will assign (born 1; +1 per minted line; a removed number is never reused). Ceiling 1000 + 1 = the assignment exhausted." nextLineNo: Int! "The lines — child rows (rcptline#) read lazily as a whole. Page them with receiptLines; edit wholesale (the diff rule) or through addReceiptLines · updateReceiptLine · removeReceiptLines while draft. Fixed at post — the chunk that books a line stamps its merchandiseUnitCost / landedUnitCost on the row." lines: [ReceiptLine!]! "The landed-cost estimate components — allocated into the receive unit cost at post via allocateProportionally (exact conservation); trued up at VI capture." landedComponents: [LandedCostComponent!] "The post walk in flight: present exactly while status is posting — kind post · cursor = the next lineNo to land in stock (cursor − 1 of lineCount landed) · chunks so far · lineCount · startedAt · the machine executionArn once started · stalledAt + problem when a step failed past its retries. Null on every other status; cleared by the last chunk in the same transaction that lands posted. Re-run post to resume a stalled walk; on a healthy one it refuses CONFLICT/IN_PROGRESS naming the progress." walk: ReceiptWalk } "One page of the receipts listing — the records + the opaque resume cursor." type ReceiptPage { "The page's records." items: [Receipt!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "One caller-supplied Receipt line." input ReceiptLineInput { "The PO line being received (1-based on the parent PO; must name a line destined to this receipt's LF)." poLineNo: Int! "The quantity arriving NOW (decimal string, strictly positive). Unit entry — exactly ONE of {quantityReceived, the pack pair} per line." quantityReceived: String "The canned arrival routing (accept / hold / damage)." disposition: ReceiptDisposition! "The canned held reason — required iff disposition is hold (strict both ways)." heldReason: String "Optional landing bin." binId: ID "Pack entry: the pack the arrival is counted in — tenant + active + must package the addressed PO line's variant; quantityReceived derives as packQuantity x unitsPerPack. Comes as a pair with packQuantity." purchasePackId: ID "The pack count (1..999999) — present iff purchasePackId is." packQuantity: Int } "One caller-supplied landed-cost estimate component." input LandedCostComponentInput { "The kind of extra cost on the shipment — freight, duty, brokerage, insurance and the like." componentType: LandedCostComponentType! "The cost as a money amount with its currency." amount: MoneyEntryInput! "How the cost spreads across the lines — by value, by quantity, by weight, or evenly." basis: LandedCostAllocationBasis! } "Edit-input for a Receipt. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. Draft-only wholesale (the family stance): caption + a full line replace + a full component replace while draft; the parent PO and the LF are birth-fixed (wrong LF = cancel + recreate — the Transfer pair precedent); a live post-draft doc refuses CONFLICT/REF_STATE naming the required draft state; a write in an immutable terminal (posted / cancelled) refuses CONFLICT/IMMUTABLE." input EditReceiptInput { caption: String "The wholesale line replacement (draft-only) — same shape and gates as create; the whole set, up to 1000.: it persists as a diff by the natural (poLineNo x disposition) key — an unchanged line costs no write, a kept line keeps its lineNo and createdAt, a new key mints at nextLineNo, an absent key deletes; a delta past 90 line actions refuses VALIDATION/INVALID naming the budget and the three line ops." lines: [ReceiptLineInput!] "The wholesale component replacement (draft-only); an empty array clears the estimates." landedComponents: [LandedCostComponentInput!] } "The canned RTV return reasons: defective / wrong_item typically cite a PO; overstock / recall are the PO-less class." enum RtvReason { defective overstock recall wrong_item } "One embedded Rtv line." type RtvLine { "1-based position (input order at create)." lineNo: Int! "The variant being returned." variantId: ID! "The (variant x ship-from LF) InventoryItem junction — server-resolved + stamped at create (TR-f; must exist + be active)." inventoryItemId: ID! "The quantity to return (decimal string, stock UoM, strictly positive)." quantity: String! "The canned return reason." reason: RtvReason! "The bucket this line ships from (on_hand / damaged / held — the -mutable trio; reserved / in_transit are never RTV-shippable)." sourceBucket: StockBucket! "Optional source bin (binned relief stamps the StockRecord shard in the same transaction; omitted = the un-binned pool)." binId: ID } "A return-to-vendor: goods ship back to an enabled vendor for credit. Parent = the OrgVendor. Lifecycle: draft compose (wholesale edits) - approve - ship fires the first rtv movements - record_credit closes it. Lines are embedded, each shipping from on_hand / damaged / held (the -mutable trio); cancel is pre-ship only; credited is the immutable NON-doomed close; cancelled is the ONE doomed terminal (lists filter it)." type Rtv { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like RV-… — stable for the record’s life." sysId: String! "The kind of record — always `Rtv` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of draft, approved, shipped, credited or cancelled." status: String! "The parent OrgVendor enablement; for an Rtv parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The returning org — spine-stamped from the parent OrgVendor at birth (the attribution symmetry)." organizationId: ID! "The optional originating PurchaseOrder (defective/wrong-item returns cite their PO; overstock/recall may not). Must belong to the same OrgVendor and be past-issue when named." purchaseOrderId: ID "The LF the return ships from — immutable at birth (the Transfer pair stance); SL-b: active-gated at create, re-checked at ship." shipFromLogicalFacilityId: ID! "Optional expected vendor credit (in the vendor purchasingCurrency) — when absent, ship stamps the default: the sum of line quantity x current WMA over the relieved books." expectedCredit: MoneyEntry "The credit the vendor actually issued — stamped by record_credit (absent until credited)." actualCredit: MoneyEntry "True when a mismatched credit was explicitly acknowledged at record_credit." creditVarianceAcknowledged: Boolean "The resolved returns-destination Contact — stamped at ship (the OrgVendor returnsToContactId?? the vendor host single live returns-role assignment; neither resolvable refuses named)." resolvedReturnsContactId: ID "The embedded lines — draft-editable wholesale; junctions server-resolved + stamped at create (TR-f: the (variant x ship-from LF) InventoryItem must exist)." lines: [RtvLine!]! } "One page of the rtvs listing — the records + the opaque resume cursor." type RtvPage { "The page's records." items: [Rtv!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "One caller-supplied Rtv line (create + wholesale draft edit — lineNo assigned and the junction resolved 1..N in input order by the server)." input RtvLineInput { "The variant to return — its (variant x ship-from LF) junction must exist and be active (IV-b; an RTV of a variant never stocked at the LF is meaningless)." variantId: ID! "The quantity to return (decimal string, strictly positive)." quantity: String! "The canned return reason." reason: RtvReason! "The bucket to ship from — optional, defaults to on_hand; on_hand / damaged / held only (reserved / in_transit refuse at the boundary)." sourceBucket: StockBucket "Optional source bin." binId: ID } "Edit-input for a Rtv. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. Draft-only wholesale (the family stance): caption + expectedCredit + a full line replace while draft; the OrgVendor, the PO ref, and the ship-from LF are birth-fixed (re-point = cancel + recreate — the Transfer pair precedent); a live post-draft doc refuses CONFLICT/REF_STATE naming the required draft state; a write in an immutable terminal (credited / cancelled) refuses CONFLICT/IMMUTABLE." input EditRtvInput { caption: String "The expected vendor credit replacement (draft-only; in the vendor purchasingCurrency)." expectedCredit: MoneyEntryInput "The wholesale line replacement (draft-only) — same shape, resolution and gates as create; lineNo reassigned 1..N in input order." lines: [RtvLineInput!] } "The capture-stamped match outcome." enum VendorInvoiceMatchStatus { matched flagged } "The capture-time match axes." enum VendorInvoiceMatchAxis { quantity unit_cost } "One capture-STAMPED match discrepancy (port-written at capture; the expected/actual values are decimal/Money-amount strings stored verbatim)." type VendorInvoiceMatchFlag { "The PO line the discrepancy is on." poLineNo: Int! "The axis that missed." axis: VendorInvoiceMatchAxis! "The PO-side value." expected: String! "The invoiced value." actual: String! } "One embedded merchandise match line." type VendorInvoiceMatchLine { "1-based position (input order)." lineNo: Int! "The PO line this invoice line bills (1-based on the parent PO)." poLineNo: Int! "The invoiced quantity (strictly positive)." quantity: String! "The invoiced unit cost — house Money in the PO currency." unitCost: MoneyEntry! } "A captured vendor bill: the 3-way match and the landed-cost true-up run from it at capture. NOT a payables subledger. Parent = the PO (the match is per-PO; N invoices per PO are legal — partial-shipment invoicing); invoiceOrgVendorId MAY differ from the PO vendor: ONE construct covers merchandise invoices (match lines) AND cost bills (landed actual components) — either or both, never neither. Capture stamps matchStatus matched|flagged at tolerance zero and posts the landed true-up. The (invoiceOrgVendor x normalized invoice number) uniq pair is the double-pay gate (CONFLICT/IDENTITY_TAKEN naming the holder; a cancelled holder is taken over). captured is the immutable fact (corrections are compensating entries, never un-capture); cancelled is the doomed terminal (lists filter it)." type VendorInvoice { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like VI-… — stable for the record’s life." sysId: String! "The kind of record — always `VendorInvoice` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of draft, captured or cancelled." status: String! "The parent PurchaseOrder; for a VendorInvoice parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The billing OrgVendor — may differ from the PO vendor (a carrier/broker billing against this PO); defaults to the PO vendor at create. Immutable at birth (the marker leg)." invoiceOrgVendorId: ID! "The vendor own invoice number (their token, RAW spelling, max 64; the trim+case-fold normalized leg rides the uniq pair marker — the double-pay gate). Immutable at birth." invoiceNumber: String! "The vendor invoice date (UTC ISO-8601 — their paper date, not our capture instant)." invoiceDate: String! "The merchandise match lines (<=24, one per PO line) — at-least-one-of with actualComponents (the Contact substance stance)." matchLines: [VendorInvoiceMatchLine!] "The landed-cost actual components (<=8, amounts in the PO currency) — trued-up at capture against the posted receipts estimates of the same component type (first capture of a type consumes its estimates; later bills of that type add compensating deltas)." actualComponents: [LandedCostComponent!] "Optional vendor-stated grand total (informational — the lines/components are the match facts); in the PO currency." total: MoneyEntry "Optional free-text notes (max 4096)." notes: String "Capture-stamped match outcome (absent while draft): flagged never blocked the capture — it IS the approval queue until." matchStatus: VendorInvoiceMatchStatus "Capture-stamped discrepancies (first-8 named; port-written, never caller data)." matchFlags: [VendorInvoiceMatchFlag!] } "One page of the vendorInvoices listing — the records + the opaque resume cursor." type VendorInvoicePage { "The page's records." items: [VendorInvoice!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "One caller-supplied match line." input VendorInvoiceMatchLineInput { "The PO line this invoice line bills (must exist on the parent PO)." poLineNo: Int! "The invoiced quantity (decimal string, strictly positive)." quantity: String! "The invoiced unit cost — house Money in the PO currency." unitCost: MoneyEntryInput! } "Edit-input for a VendorInvoice. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. Draft-only wholesale: date/lines/components/total/notes + caption while draft; the PO parent, the billing vendor, and the invoice number are birth-fixed (the marker identity — re-key = cancel + recreate, the marker takeover covers the same number); a write in an immutable terminal (captured / cancelled) refuses CONFLICT/IMMUTABLE." input EditVendorInvoiceInput { caption: String invoiceDate: String "The wholesale match-line replacement (draft-only); an empty array clears the merchandise lines — substance re-checked against the effective components." matchLines: [VendorInvoiceMatchLineInput!] "The wholesale component replacement (draft-only); an empty array clears the cost bill — substance re-checked against the effective match lines." actualComponents: [LandedCostComponentInput!] total: MoneyEntryInput notes: String } "A purchase pack — a purchasing/handling packaging definition ON a variant (case of 24, pallet of 480): NOT a UoM conversion; a pack is packaging metadata + a line-ENTRY breakdown step (PO/Receipt lines entered in packs resolve to stock units at entry: packQuantity x unitsPerPack). Parent = the variant (0..N packs per variant). unitsPerPack is immutable at birth, which keeps every stored document line reconstructible forever. The code is a dup-gated label. Live packs block the parent Variant doom (the children law); live OrgVendorItems naming a pack block ITS doom; deactivate stays free everywhere (an inactive pack refuses NEW line entry while its unitsPerPack keeps denominating stored terms)." type PurchasePack { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like PK-… — stable for the record’s life." sysId: String! "The kind of record — always `PurchasePack` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent Variant; for a PurchasePack parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The pack label (at most 64 chars) — dup-gated among live siblings on the same variant; editable (re-gated)." code: String! "Stock units per pack in the variant stock UoM (strictly positive decimal, 4 dp — covers weight-UoM variants). Immutable at birth." unitsPerPack: String! "Optional pack GTIN — GTIN-14/ITF-14 validated; optional + editable." packGtin: String "Optional nominal pack weight in kilograms; optional + editable." nominalWeightKg: String "Optional outer length in centimeters; optional + editable." lengthCm: String "Optional outer width in centimeters (the dims trio); optional + editable." widthCm: String "Optional outer height in centimeters (the dims trio); optional + editable." heightCm: String } "Create-input for a PurchasePack." input NewPurchasePackInput { "Optional: when omitted the per-type default applies — the pack code; when supplied it must be non-blank." caption: String "The variant this pack packages." variantId: ID! code: String! "Stock units per pack (strictly positive decimal) — immutable after birth." unitsPerPack: String! packGtin: String nominalWeightKg: String lengthCm: String widthCm: String heightCm: String } "Edit-input for a PurchasePack. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. unitsPerPack is NOT editable, nor is the parent Variant ref (the header). A supplied code re-runs the sibling dup-gate; every edit re-gates the parent Variant active (the OVI parent-enablement stance); the dims trio comes all-or-none." input EditPurchasePackInput { caption: String "The replacement label — re-runs the sibling dup-gate (naming a live holder refuses)." code: String packGtin: String nominalWeightKg: String lengthCm: String widthCm: String heightCm: String } "The canned ABC classes." enum AbcClass { A B C } "The buy-vs-transfer-and-backfill thresholds — ONE sparse parameter block; a supplied block sets at least one threshold." type ReplenishmentBuyVsTransfer { "Projected-stockout horizon (days) that makes a deficit urgent (velocity-dependent)." urgencyHorizonDays: Int "The farthest donor considered for an urgent transfer (km — the lf-pf-pfl geodistance chain)." maxTransferDistanceKm: Int "A donor must hold at least this much genuine excess before it donates (stock units)." minDonorExcessUnits: String } "A replenishment config — ONE cell of the multi-axis planning parameter matrix: a set of axes naming a scope (absent = all — the sparse matrix; Location = organizationId XOR logicalFacilityId · Merchandise = categoryId XOR styleId · seasonId · brandId, each singular) + a sparse block of parameters (at least one — the substance rule). Group-scoped like a Brand (parent = the org group). The axes are the cell identity — immutable at birth (re-target = create + doom); parameter values stay editable (nothing clears — removing a parameter = doom + create). the collision rule: an active sibling with the same normalized axis tuple AND an intersecting SET-parameter set refuses CONFLICT/IDENTITY_TAKEN naming the holder + the intersecting parameters (same-tuple disjoint-parameter cells are legal — per-parameter semantics; an inactive cell neither resolves nor collides, so reactivate re-runs the gate). Specificity (the.2 per-parameter resolution): count of set axes, then the locked axis order Location > Merchandise > Season > Brand. A NON-doomed cell blocks its axis targets dooms (LF/Organization/Category/Style/Season/Brand); deactivate stays free." type ReplenishmentConfig { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like RP-… — stable for the record’s life." sysId: String! "The kind of record — always `ReplenishmentConfig` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a ReplenishmentConfig parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The Location axis, org level (XOR logicalFacilityId; absent = group-wide). Immutable at birth." organizationId: ID "The Location axis, LF level (XOR organizationId). Immutable at birth." logicalFacilityId: ID "The Merchandise axis, category level (XOR styleId; matches the subtree). Immutable at birth." categoryId: ID "The Merchandise axis, style level (XOR categoryId; outranks ANY category depth). Immutable at birth." styleId: ID "The Season axis (absent = all seasons). Immutable at birth." seasonId: ID "The Brand axis (absent = all brands). Immutable at birth." brandId: ID "The master switch for the.2 replenishment suggester over this scope. Editable." replenishEnabled: Boolean "The band floor (stock units, the 12-digit/4-dp quantity grammar); minUnits must not exceed maxUnits. Editable." minUnits: String "The band ceiling (stock units). Editable." maxUnits: String "Velocity-consuming days-of-supply target. Editable." daysOfSupplyTarget: Int "Fixed safety stock (stock units) — a service-level method is the named registry-extensible successor. Editable." safetyStockUnits: String "The force reorder-multiple override (stock units, strictly positive) — default = the pack/MOQ derivation. Editable." reorderMultipleUnits: String "Review cadence (1..3650) — a parameter consumed by derived reads; nothing fires by itself. Editable." reviewCadenceDays: Int "Pin this scope to an ABC class regardless of the computed cut lines. Editable." abcClassOverride: AbcClass "The buy-vs-transfer-and-backfill thresholds. Editable." buyVsTransfer: ReplenishmentBuyVsTransfer "Stock a donor never gives up (stock units) — the genuine-excess floor. Editable." reserveFloorUnits: String "May this scope donate excess at all. Editable." transferableExcess: Boolean "The fair-share weight for the.2 allocation suggester (1..10000). Editable." allocationWeight: Int } "The buyVsTransfer input twin — at least one threshold when supplied." input ReplenishmentBuyVsTransferInput { urgencyHorizonDays: Int maxTransferDistanceKm: Int minDonorExcessUnits: String } "Create-input for a ReplenishmentConfig." input NewReplenishmentConfigInput { "Optional: when omitted the per-type default applies — the set-axis coordinate ('Replenishment ()'; 'Replenishment (group-wide)' when none); when supplied it must be non-blank." caption: String "The Location axis, org level (at most one Location leg)." organizationId: ID "The Location axis, LF level (at most one Location leg)." logicalFacilityId: ID "The Merchandise axis, category level (at most one Merchandise leg)." categoryId: ID "The Merchandise axis, style level (at most one Merchandise leg)." styleId: ID seasonId: ID brandId: ID replenishEnabled: Boolean minUnits: String maxUnits: String daysOfSupplyTarget: Int safetyStockUnits: String reorderMultipleUnits: String reviewCadenceDays: Int abcClassOverride: AbcClass buyVsTransfer: ReplenishmentBuyVsTransferInput reserveFloorUnits: String transferableExcess: Boolean allocationWeight: Int } "Edit-input for a ReplenishmentConfig. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved." input EditReplenishmentConfigInput { caption: String replenishEnabled: Boolean minUnits: String maxUnits: String daysOfSupplyTarget: Int safetyStockUnits: String reorderMultipleUnits: String reviewCadenceDays: Int abcClassOverride: AbcClass buyVsTransfer: ReplenishmentBuyVsTransferInput reserveFloorUnits: String transferableExcess: Boolean allocationWeight: Int } "The canned TransferLane modes. Inactive lane = absent, not never — a standing prohibition must stay active never." enum TransferLaneMode { never always ranked } "The canned TransferLane weight classes — light out-ranks shipped at equal distance." enum TransferLaneWeightClass { light shipped } "Group-scoped like a Brand (parent = the org group). The matrix is sparse + the geo seed is virtual: an absent pair ranks by geodistance (LF→PF→PFL.geo) AT read — no seeder materializes derivable rows; overriding the default = creating the specific lane. The pair is immutable at birth (re-route = create + doom; src == dest refused) and unique per group (the ordered-pair marker — a live duplicate is CONFLICT/IDENTITY_TAKEN naming the holder; a doomed holder is taken over). rank is required iff mode is ranked and refused otherwise (strict both ways; a mode moving OFF ranked drops the stored rank — the merged-record law). Inactive = absent, not never: deactivating returns the pair to the sparse geodistance default — a standing prohibition must stay active never. A NON-doomed lane blocks both its LFs dooms; deactivate stays free. Money reuses the MoneyEntry SDL (declared on the Product entry)." type TransferLane { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like TL-… — stable for the record’s life." sysId: String! "The kind of record — always `TransferLane` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a TransferLane parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The donor LF of this directed lane. Immutable at birth (the pair is the lane identity + its uniqueness marker)." sourceLfId: ID! "The receiving LF of this directed lane. Immutable at birth." destinationLfId: ID! "The lane mode. Editable (the merged rank ⊕ mode law re-runs)." mode: TransferLaneMode! "The explicit ordering (1..10000, lower first) — required iff mode is ranked, refused otherwise (strict both ways)." rank: Int "Optional typical lane transit time in days (1..730; informational + engine provenance). Editable." typicalLeadTimeDays: Int "Optional weight class — light out-ranks shipped at equal distance. Editable." weightClass: TransferLaneWeightClass "Optional per-transfer cost hint — house Money, NO currency gate. Editable." costHint: MoneyEntry } "Create-input for a TransferLane." input NewTransferLaneInput { "Optional: when omitted the per-type default applies — the mode coordinate ('Transfer lane ()'); when supplied it must be non-blank." caption: String "The donor LF (the directed pair is immutable after birth)." sourceLfId: ID! "The receiving LF (must differ from sourceLfId)." destinationLfId: ID! mode: TransferLaneMode! "Required iff mode is ranked, refused otherwise." rank: Int typicalLeadTimeDays: Int weightClass: TransferLaneWeightClass costHint: MoneyEntryInput } "Edit-input for a TransferLane. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. The pair (sourceLfId/destinationLfId) is NOT editable. mode/rank edit under the merged-record rank ⊕ mode law: merged mode ranked requires a rank (stored or supplied); merged mode NOT ranked drops the stored rank and refuses a supplied one." input EditTransferLaneInput { caption: String mode: TransferLaneMode "The replacement ordering — legal only when the merged mode is ranked." rank: Int typicalLeadTimeDays: Int weightClass: TransferLaneWeightClass costHint: MoneyEntryInput } "The jurisdiction levels (generated from the contracts TAX_JURISDICTION_LEVELS SoT — anti-drift; the declaration order is the depth rank). Canned — extensible by the platform, never merchant-defined." enum TaxJurisdictionLevel { country state_province county city special_district } "The tax regimes (generated from the contracts TAX_REGIMES SoT): sales_tax rates stack across the nested chain; vat_gst is a single (usually inclusive) rate. HST = a combined-rate row (the TaxRate combined flag); GST+PST = two stacked rows." enum TaxRegime { sales_tax vat_gst } "A tax jurisdiction — ONE node of OUR canonical jurisdiction tree (roots = countries; full local depth for the US). Shared-canonical, ruled: AT builds and maintains this data centrally; merchants reference it (TaxRegistration nexus, ExemptionCertificate scopes, the calc) and never edit it — the wire is read-only (writes are kit-channel: the US+CA seed slice). The tree is the mutable treeParent pointer; regime/countryCode/currencyCode ride the country root only (descendants inherit by walk-up)." type TaxJurisdiction { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like TJ-… — the same for everyone, shared reference data." sysId: String! "The kind of record — always `TaxJurisdiction` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! parentId: ID "The id of the record this one is listed under — a country root names itself; a rate names its owning jurisdiction. Shared reference data carries no organization group here." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The depth class — a child sits strictly deeper than its tree parent (skips legal: cities under states). Immutable." level: TaxJurisdictionLevel! "The mutable tree pointer — absent ⟺ a country root. Moves stay in-country." treeParent: ID "Country roots only: sales_tax (rates stack down the chain) | vat_gst (single rate). Descendants inherit by walk-up." regime: TaxRegime "Country roots only: ISO 3166-1 alpha-2 (uppercase) — also the one-live-tree-per-country global uniqueness marker value." countryCode: String "Country roots only: ISO 4217 (uppercase) — the currency TaxRate thresholds are minor units of." currencyCode: String "Optional official geography code (ISO 3166-2 region / FIPS county / place code …) — seed-pipeline provenance; NOT an identity key." code: String } "One page of the taxJurisdictions listing — the records + the opaque resume cursor." type TaxJurisdictionPage { "The page's records." items: [TaxJurisdiction!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "The jurisdiction×category rule outcomes (generated from the contracts TAX_TREATMENTS SoT): taxable | reduced | zero_rated | exempt — zero_rated and exempt both price at 0 (the distinction is real: zero-rated supplies keep input credits) and may be threshold-conditional." enum TaxTreatment { taxable reduced zero_rated exempt } "A tax rate cell — ONE effective-dated (jurisdiction × category × window) cell of OUR canonical rate tables, carrying both the rule outcome (treatment) AND the rate (integer parts-per-million — 6.625% = 66250). Shared-canonical + read-only on the wire. A DATED_SCHEDULE: half-open [startAt, endAt) windows, splice-normalized PER (jurisdiction × category) sub-schedule — the record set IS the full rate history; supersede, never rewrite. exempt/zero_rated cells price at 0 (zero_rated keeps input credits — the distinction feeds remittance). compound = tax-on-tax; combined = the HST marker (this rate replaces the ancestor stack). An optional threshold scopes the rule to unit prices strictly below it (minor units of the country currency — the BC childrens-clothing shape)." type TaxRate { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like TX-… — the same for everyone, shared reference data." sysId: String! "The kind of record — always `TaxRate` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active or doomed." status: String! "The owning TaxJurisdiction; for a TaxRate parentId === rootId — always present." parentId: ID! "The id of the record this one is listed under — a country root names itself; a rate names its owning jurisdiction. Shared reference data carries no organization group here." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The taxed category. One sub-schedule per (jurisdiction × category). Immutable." category: TaxCategory! "The rule outcome. Immutable — supersede to change." treatment: TaxTreatment! "The rate in integer parts-per-million (0..1000000; 6.625% = 66250). 0 ⟺ zero_rated/exempt. Immutable." ratePpm: Int! "Tax-on-tax: applies over the base plus prior stacked tax. Immutable." compound: Boolean! "The HST marker: this rate replaces the ancestor-chain stack. Immutable." combined: Boolean! "Optional: the rule applies to unit prices strictly below this (minor units of the jurisdiction country currency); at-or-above falls through to the node standard-category cell. Immutable." thresholdMinorUnits: Int "The window start (inclusive; UTC ISO-8601). Immutable." startAt: String! "The window end (exclusive; UTC ISO-8601; always present — far-future = the standing rate). Moves only via the system splice trim." endAt: String! } "One page of the taxRates listing — the records + the opaque resume cursor." type TaxRatePage { "The page's records." items: [TaxRate!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "A tax registration — the org's nexus declaration for ONE jurisdiction: tax computes only where the org holds an active registration (the calc gate). The operational semantics: active = the org collects there · inactive = a lapsed/suspended registration (resumable) · doomed = deregistered. ONE live registration per (org × jurisdiction) — the pair marker; the pair is immutable at birth (re-register = create + doom). jurisdictionId refs the shared canonical tree. Physical-nexus seeding from PFLs and economic-nexus tracking are spec-deferred." type TaxRegistration { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like TN-… — stable for the record’s life." sysId: String! "The kind of record — always `TaxRegistration` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The registering Organization; for a TaxRegistration parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The registered TaxJurisdiction. Immutable at birth (the pair is the identity + its uniqueness marker)." jurisdictionId: ID! "Optional permit/registration number issued by the jurisdiction. Editable (corrections are real)." registrationNumber: String "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the taxRegistrations listing — the records + the opaque resume cursor." type TaxRegistrationPage { "The page's records." items: [TaxRegistration!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a TaxRegistration." input NewTaxRegistrationInput { "Optional: when omitted the per-type default applies — the jurisdiction coordinate ('Registration: '); when supplied it must be non-blank." caption: String "The registering Organization (the containment parent) — tenant-scoped + active." organizationId: ID! "The registered TaxJurisdiction (shared-canonical: exists + active; NOT tenant-scoped). The pair is immutable after birth." jurisdictionId: ID! registrationNumber: String code: String } "Edit-input for a TaxRegistration. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. The pair (organizationId/jurisdictionId) is NOT editable." input EditTaxRegistrationInput { caption: String "The corrected permit number (corrections are real)." registrationNumber: String code: String } "The exemption-certificate kinds." enum ExemptionCertType { resale nonprofit government diplomatic other } "A tax-exemption certificate — a captured legal document: a valid in-scope cert zeroes tax at sale for its covered jurisdictions/categories. Parent = the org group, fixed at birth. Capture is inline. The capture is immutable except caption/code/docRef — correct anything else by revoking and re-capturing. active → expired is scheduled; revoke and doom are the caller ops." type ExemptionCertificate { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like XC-… — stable for the record’s life." sysId: String! "The kind of record — always `ExemptionCertificate` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, expired, revoked or doomed." status: String! "The parent org group; for an ExemptionCertificate parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The certificate kind. Immutable at capture." certType: ExemptionCertType! "The issuer's certificate number. Immutable at capture." certificateNumber: String! "The holder as captured inline. Immutable at capture." holderName: String! "The covered jurisdictions — shared-canonical refs, each exists+active at capture. Immutable." jurisdictionIds: [ID!]! "The covered categories — absent = all categories (the blanket-cert shape). Immutable." categoryIds: [TaxCategory!] "Optional expiry (UTC ISO-8601) — absent = non-expiring. The scheduler arms active→expired on it; the at-USE check is the calc's. Immutable." expiresAt: String "Optional document reference (a blob pointer/URI — upload machinery is NOT this slice). Editable (the paper gets scanned later)." docRef: String "The holder linkage: the OrgCustomer this cert belongs to. Set-time gated (in-tenant, NON-doomed); editable — re-linkable (the ONE exception to capture immutability; the capture-doc parent stays the group). A NON-doomed cert blocks its holder's doom." orgCustomerId: ID "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the exemptionCertificates listing — the records + the opaque resume cursor." type ExemptionCertificatePage { "The page's records." items: [ExemptionCertificate!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input to capture an ExemptionCertificate." input NewExemptionCertificateInput { "Optional: when omitted the per-type default applies — the capture coordinate (' cert — '); when supplied it must be non-blank." caption: String certType: ExemptionCertType! "The issuer's certificate number (non-blank; strict)." certificateNumber: String! "The certificate holder, captured inline (customer-linked)." holderName: String! "The covered jurisdictions (1..25; shared-canonical refs — each exists + active)." jurisdictionIds: [ID!]! "The covered categories — absent = all (the blanket-cert shape); supplied lists are non-empty." categoryIds: [TaxCategory!] "Optional expiry (UTC ISO-8601) — absent = non-expiring." expiresAt: String docRef: String "The holder OrgCustomer — in-tenant + NON-doomed at set." orgCustomerId: ID code: String } "Edit-input for a ExemptionCertificate. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. A captured legal document is otherwise immutable: certType/certificateNumber/holderName/jurisdictionIds/categoryIds/expiresAt are NOT editable — correct by revoking and re-capturing. orgCustomerId is the ONE ref exception." input EditExemptionCertificateInput { caption: String "The document reference (the paper gets scanned/re-referenced later)." docRef: String "The holder OrgCustomer — re-linkable; in-tenant + NON-doomed at set." orgCustomerId: ID code: String } "The Order selling channels." enum OrderChannel { pos ecom } "The orderType birth discriminator (generated from ORDER_TYPE_VALUES — anti-drift)." enum OrderType { sale draft quote layaway special_order } "The special_order per-line sourcing paths: transfer links a TransferRequest line · backorder links a PurchaseOrder line · buyer_request is the declared-dormant arm." enum OrderLineSourcingType { transfer backorder buyer_request } "The special_order demand-line address a sourcing doc line carries." type SpecialOrderLineRef { "The special_order Order." orderId: ID! "The 1-based order line." orderLineNo: Int! } input SpecialOrderLineRefInput { "The special_order Order id (tenant-scoped)." orderId: ID! "The 1-based order line to source." orderLineNo: Int! } "The per-line fulfillment methods." enum OrderFulfillmentMethod { carryout ship pickup_curbside pickup_instore deliver_later special_order } "The discount sources in the fixed application order (generated from SALE_DISCOUNT_SOURCES — anti-drift)." enum SaleDiscountSource { manual coupon promo loyalty employee } "A discount entry kind — an absolute minor-unit amount or an integer-ppm percentage (10% = 100000)." enum SaleDiscountKind { amount percent } "How a line tax figure came to be: computed = the pipeline ran; nexus_none = no active registration on the origin chain (zero tax is the correct outcome); exempt = a valid ExemptionCertificate applied; instrument_sale = a stored-value issuance line — the proceeds are a liability; tax applies at redemption." enum OrderTaxBasis { computed nexus_none exempt instrument_sale } "The inline customer capture — at least one inline field OR the corporate ref." type OrderCustomer { name: String email: String phone: String "The captured CorporateCustomer." corporateCustomerId: ID "The purchasing-buyer Contact on that customer's host." buyerContactId: ID "The captured Consumer." consumerId: ID "When the customer's personal details on this record were erased under a privacy request — the name then reads 'Erased customer' and the email, phone and delivery address are gone; absent on a record never erased." deidentifiedAt: String } "The document-level ship-to destination: ONE address shape for the Order AND the Fulfillment's ship stamp; complete by construction (a partial address is never stored)." type OrderShipTo { name: String! "The street address (1..3 lines)." addressLines: [String!]! city: String! region: String postalCode: String "ISO 3166-1 alpha-2, uppercase." countryCode: String! phone: String } "The selected fulfillment option snapshot: the rate card / pickup choice as picked; method ∈ ORDER_FULFILLMENT_OPTION_METHODS (the agent channel's offer vocabulary)." type OrderFulfillmentOption { method: String! "The channel's option id the platform echoed (a shipping card slug · pickup_instore · pickup_curbside)." optionId: String! caption: String! "The fee in the order currency's minor units (0 = free shipping · every pickup)." feeMinor: Int! handlingDays: Int minDays: Int maxDays: Int "The pickup location (one of the channel's pickup LogicalFacilities) — pickup methods only." pickupLogicalFacilityId: ID } "The agent checkout's buyer names as the platform gave them (beside the customer block's joined name)." type OrderAgentCheckoutBuyer { firstName: String lastName: String } "The platform-captured consent decisions — a purpose present = asserted; absent = the channel default speaks." type OrderAgentCheckoutConsent { marketing: Boolean analytics: Boolean preferences: Boolean sale_or_sharing: Boolean } "The agent checkout block: present ⟺ this Order is a UCP checkout session." type OrderAgentCheckout { agentChannelId: ID! "The platform that opened it (its UCP profile URL) — absent on a staff test drive." platformProfileUrl: String "The platform's own shipping-destination id, echoed on the checkout." shipToId: String buyer: OrderAgentCheckoutBuyer consent: OrderAgentCheckoutConsent "The pending sale mark: the sale this checkout's complete minted before the card hold settled; present ⟺ a completion is in flight (the checkout reads complete_in_progress)." pendingSaleId: ID "The instrument the platform submitted at complete: its instrument id · the handler id · the type — on the minted sale only; never a credential." instrument: OrderAgentCheckoutInstrument } "The platform's instrument as submitted at complete: ids and type only — the processor truth (brand · last four) lives on the Payment." type OrderAgentCheckoutInstrument { id: String! handlerId: String! type: String! } "One pre-tax discount — amount XOR percent per kind; the audit reason is required. Engine emissions carry their ref and an engine-stamped reason; they are absolute amount entries computed to replay verbatim in the pipeline." type OrderDiscount { kind: SaleDiscountKind! source: SaleDiscountSource! "The absolute reduction in minor units (present ⟺ kind amount)." amountMinor: Int "The percentage in integer ppm (present ⟺ kind percent)." percentPpm: Int reason: String! "The emitting Promotion — present ⟺ source promo." promotionId: ID "The carrying Coupon — present ⟺ source coupon (engine-stamped; never caller input)." couponId: ID "The redeeming LoyaltyMember — present ⟺ source loyalty." loyaltyMemberId: ID "The verified employee User — present ⟺ source employee." employeeUserId: ID } "The loyalty attach. redeemPoints absent = attach-for-EARN-only; present = the redemption request the position-4 evaluation converts to source=loyalty line entries. Sale-profile only; re-validated on every engine run and at place (commit truth)." type OrderLoyalty { "The attached LoyaltyMember — tenant/program/currency-gated at the seam." memberId: ID! "The redemption request in points (≤ the member balance — CONFLICT/INSUFFICIENT_POINTS names live figures)." redeemPoints: Int } "The employee-discount attach. The position-5 evaluation converts it to source=employee line entries; the percent is caller-supplied v1 under the live discount.apply authority gate. Every orderType may carry it (the coupon posture); the User re-validates fresh at place." type OrderEmployee { "The verified employee User." userId: ID! "The discount percent in integer ppm ((0, 1000000] — the SaleDiscount grammar; 20% = 200000).)" percentPpm: Int! } "One commission-attribution slot." type OrderCommissionAgent { agentUserId: ID! splitWeightPpm: Int! } "The open_item non-catalog payload — no variant, no stock movement; category explicit." type OrderOpenItem { description: String! taxCategory: TaxCategory! } "The stored_value entry payload: selling/reloading a StoredValueInstrument AS a line (proceeds = a liability; NO stock movement, NOT engine-matched, tax basis instrument_sale — the untaxed-issuance law; the explicit taxCategory stays inert until a jurisdiction override). Arms resolve at place (commit truth): instrumentId absent ⇒ the place mints (born active + issue; the consumed code drops from the stored line); present + staged inactive ⇒ activates + issues; present + active reloadable gift_card ⇒ reloads (CONFLICT/NOT_RELOADABLE otherwise). store_credit lines refuse (never purchasable); sale-profile only; quantity ≡ 1; carryout only; never discounted." type OrderStoredValue { instrumentType: StoredValueInstrumentType! "The targeted/minted instrument — place stamps it on the mint arm." instrumentId: ID "The normalized merchant-issued code on a PRE-place mint line (consumed + dropped when the place stamps instrumentId)." code: String "The explicit tax category (the open_item law) — inert under basis instrument_sale until." taxCategory: TaxCategory! } "One computed tax component captured on the line." type OrderLineTaxComponent { taxRateId: ID! jurisdictionId: ID! "The governing cell category — discloses whether the line category ruled or the standard fallback did." category: TaxCategory! treatment: TaxTreatment! ratePpm: Int! compound: Boolean! combined: Boolean! taxMinor: Int! } "The line tax slot — basis disclosed." type OrderLineTax { basis: OrderTaxBasis! taxMinor: Int! components: [OrderLineTaxComponent!]! "Present ⟺ basis exempt — the applied ExemptionCertificate (arms the doom guard)." exemptCertificateId: ID } "One embedded Order line — lineNo frozen at placed; money audit server-stamped per write." type OrderLine { "1-based input position — the cross-document addressing key once placed." lineNo: Int! "The sold variant." variantId: ID "The resolved (variant × LF) InventoryItem — present ⟺ variantId (price capture + reserve junction)." inventoryItemId: ID "The SalePrice record whose window governed the capture — present ⟺ variantId (audit provenance)." salePriceId: ID openItem: OrderOpenItem "The stored-value payload." storedValue: OrderStoredValue "The resolved tax category — the variant→product→style walk answer, or the open-item/stored-value explicit one." taxCategory: TaxCategory! "Positive decimal-string quantity (the stock-UoM grammar; open items unit-counted)." quantity: String! "The captured unit sale price in minor units." capturedUnitPriceMinor: Int! discounts: [OrderDiscount!]! fulfillmentMethod: OrderFulfillmentMethod! nonReturnable: Boolean finalSale: Boolean restockingFeePpm: Int requiresApprovalToSell: Boolean commissionAgents: [OrderCommissionAgent!] referralCode: String "The live reservation claim stamped by the ecom place — the release entries + the terminal status are the history." reservedQty: String invoicedQty: String returnedQty: String "Carryout lines claim at the paid-completion delivery." fulfillmentClaimedQty: String fulfilledQty: String "The cumulative relieved quantity: stamped by the sell-relief lane in ITS transaction (absent = 0)." relievedQty: String "Ref-only — the order-side link; each warranty's parentId is this order and its orderLineNo this line." warrantyIds: [ID!] "The sourcing path this special_order line rides." sourcingType: OrderLineSourcingType "The linked sourcing document (transfer → the TransferRequest; backorder → the PurchaseOrder) — re-stamped only when the linked doc is dead (the re-link retry lane)." sourcingDocId: ID "The 1-based line on that doc." sourcingDocLineNo: Int "The cumulative arrived quantity: stamped by the arrival follow-ups (receiveTransfer / the Receipt post) in their per-order transactions; on_hand landings only; the line is arrived when arrivedQty ≥ quantity (absent = 0)." arrivedQty: String "The per-unit COGS snapshot at relief." cogsUnitCost: MoneyEntry "Step-1 base = round(quantity × capturedUnitPriceMinor), half away from zero." baseMinor: Int! "Σ applied line discounts (step 2)." lineDiscountMinor: Int! "This line largest-remainder share of the order-level discounts (exact — no lost minor units)." orderDiscountShareMinor: Int! "base − line discounts − order share (floored at zero) — the taxable base." taxableBaseMinor: Int! "taxableBase + exclusive-regime tax; pre-place = taxableBase." lineTotalMinor: Int! "The tax slot — pipeline-written at place; absent while the cart is open/held." tax: OrderLineTax } "The canned tender types. cash + external_card + foreign_cash + card are live; the others refuse VALIDATION/UNSUPPORTED naming their arrival (gift/store-credit → · on_account →); merchant custom tenders = a named deferral." enum TenderType { cash card gift_card gift_certificate store_credit on_account foreign_cash external_card } "The external_card capture — a card authorized on a third-party pinpad (Worldpay/etc.), recorded by entering the result; NO Stripe Payment, NO processor call." type TenderExternalCard { "The card brand/type (Visa/MC/…) — required." brand: String! "Optional last four digits." last4: String "Optional device/terminal reference." deviceRef: String "The auth/approval number — required." authNumber: String! } "The foreign-cash capture: the foreign side of the conversion (physical cash collected, in ITS currency) + the exact composed buy rate applied; the row-level figures stay settlement-currency." type TenderFx { "The tendered foreign currency." currency: String! "The physical foreign cash handed over, in its minor units (before change — the drawer's per-currency holding)." collectedMinor: Int! "The winning FxRate record consumed." rateId: ID! "The composed effective BUY rate applied, integer micro to-per-from." rateMicro: Int! "The accumulated adjustment fee withheld from the credit, settlement-currency minor units." feeMinor: Int } "Posted only by applyTender, refundTender, and the refund writers (refundReturn/posReturn method=cash) — each in ONE transaction with the Order rollup stamp (+ the drawer entries for cash)." type Tender { id: ID! type: String! "The derived display caption — tenderType + currency + signed applied minor; never editable." caption: String! status: String! "The parent Order." parentId: ID! rootId: ID! "The canned tender type." tenderType: TenderType! "Signed minor units applied toward the order balance — positive = payment, negative = a refund tender." appliedMinor: Int! "The settlement currency — the order currency snapshot." currency: String! "Cash, positive tenders: the physical cash handed over (before change, tip included)." collectedMinor: Int "Cash: the physical change handed back (the change_given drawer lane)." changeMinor: Int "The tip captured at tender." tipMinor: Int "The cash-rounding ledger note (settling cash tenders): roundedDue − exactDue — the sale total never changes." roundingDeltaMinor: Int "The pinpad capture (external_card tenders only)." externalCard: TenderExternalCard "The foreign-cash capture." fx: TenderFx "The Payment this card tender was spawned by." paymentId: ID "The StoredValueInstrument this tender drew from or credited." instrumentId: ID "The OrgCustomer house account this tender charged or credited." orgCustomerId: ID "The Return this refund tender settles." returnId: ID "The drawer session a cash tender settled to/paid out of." tillSessionId: ID "The caller's reason (required on refund tenders)." reason: String "Provenance document refs (bounded free strings)." refs: [String!] createdAt: String! updatedAt: String! revision: ID! revisionNum: Int! } type Order { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like SO-… — stable for the record’s life." sysId: String! "The kind of record — always `Order` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of open, held, placed, completed, voided, abandoned, cancelled, draft, sent, accepted, expired, accruing, paid_in_full, defaulted, sourcing or ready. The orderType profile selects which of these states this record can reach." status: String! "pos → the selling LogicalFacility; ecom → the Organization — fixed at birth by origin, never reparented; rootId = the org group either way." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The selling Organization — immutable at birth; active-gated at create." organizationId: ID! "The selling channel — immutable; decides the parent + the reserve arm." channel: OrderChannel! "All four profiles buildable: sale + draft/quote + layaway + special_order." orderType: OrderType! "The draft/quote validity window end — required on quote, optional on draft, absent elsewhere; accept past it refuses CONFLICT/EXPIRED (the at-USE gate); once set the scheduler strand fires the draft|sent → expired rows on schedule." validUntil: String "The layaway term end: the instant the scheduler fires placed|accruing → defaulted. Optional (absent ⇒ no scheduled default), layaway-only, future-dated, editable while live (a termEndsAt-ONLY edit stays legal at placed|accruing — the term is schedule, not content)." termEndsAt: String "The conversion ref — the placed sale Order this draft/quote minted at accept; accepted-state only." convertedOrderId: ID "The conversion back-ref — the draft/quote this sale was converted from (stamped at the mint birth); sale-profile only." sourceDocumentId: ID "The reorder provenance ref — the sale-profile source Order this order was reordered from; sale-profile only. Distinct from sourceDocumentId: conversion consumes its doc, a reorder consumes nothing." reorderOfOrderId: ID "The selling/fulfilling LF — pricing capture + the ecom reserve ride its InventoryItems (per-line sourcing =)." logicalFacilityId: ID! "The order currency — the org defaultCurrency snapshot, fixed at create." currency: String! "Optional inline customer capture." customer: OrderCustomer "The document-level ship-to destination: stamped by the agent checkout when a complete shipping address arrives (the Fulfillment's shipTo at ship is the same shape); absent otherwise." shipTo: OrderShipTo "The selected fulfillment option snapshot + its fee: the channel's rate card or pickup choice as picked (words · fee in minor units · transit days · the pickup location); the fee is a separate quote line — the accept adds it to the sale." fulfillmentOption: OrderFulfillmentOption "The agent checkout block: present ⟺ this Order is a UCP checkout session — the AgentChannel · the platform profile URL (absent on a staff test drive) · the platform's destination id · the buyer names as given · the captured consent decisions." agentCheckout: OrderAgentCheckout "Optional ExemptionCertificate ref — at-USE validity gated at place." exemptionCertificateId: ID "Order-level pre-tax discounts — allocated to lines pro-rata by discounted subtotal, largest remainder (exact)." discounts: [OrderDiscount!]! "The payment rollup — stamped from net tendered vs total at every tender post." paymentState: String! "The fulfillment rollup — born unfulfilled; transitioned by the events." fulfillmentState: String! "The recognition rollup — born deferred (deposits-until-delivery); conversion = the delivery events." recognitionState: String! "The origin jurisdiction captured at place; absent pre-place or when the PFL is unclassified (the disclosed nexus-none arm)." taxJurisdictionId: ID "Σ line bases in minor units." subtotalMinor: Int! "Everything taken off pre-tax (line discounts + the order-level reduction), minor units." discountTotalMinor: Int! "Σ line tax in minor units — 0 until place; inside the captured prices under an inclusive (vat_gst) regime (disclosed, not double-counted)." taxTotalMinor: Int! "The order total in minor units — exclusive regimes add tax; inclusive regimes carry it inside the captured prices." totalMinor: Int! "The fulfillment fee folded into the money at commit: the agent checkout's selected option fee restated as a money rollup on the minted sale (totalMinor = Σ line totals + this + its tax); absent on drafts and on every non-agent sale." fulfillmentFeeMinor: Int "The tax on the fulfillment fee (taxed as a standard good at the origin — the lean), inside taxTotalMinor; present ⟺ fulfillmentFeeMinor." fulfillmentFeeTaxMinor: Int "Σ signed applied minor over the order tenders; absent = no tender yet. balance due = totalMinor − this." tenderedNetMinor: Int "Σ tips captured at tender; absent = none." tipTotalMinor: Int "The Payment attempts spawned by card tenders; absent = none." paymentIds: [ID!] "The Refund attempts spawned by refundReturn(original_tender); absent = none." refundIds: [ID!] "The Disputes webhook-born against this order’s payments; absent = none." disputeIds: [ID!] "The Invoices issued from this order. The bounded order→invoice enumeration the settlement/recognition attribution reads; absent = none." invoiceIds: [ID!] "The Coupons attached to this order. A trigger coupon's promotion evaluates only while attached; place re-validates every member and refuses a non-applied one. Absent = none." couponIds: [ID!] "The loyalty attach. Earn commits at place on the final post-ALL-step-2-reductions discounted taxable base; the redemption emits source=loyalty line entries at position 4. Sale-profile only; absent = none." loyalty: OrderLoyalty "The employee-discount attach. The position-5 evaluation emits source=employee line entries (the last pre-tax reduction); every orderType may carry it (the coupon posture — a pure reduction mints nothing); the User re-validates fresh at place. Absent = none." employee: OrderEmployee "The special_order_sourcing Saga stamped at launch; special_order-profile only." sourcingSagaId: ID "The commission custody stamp: the distinct union of attributed agents + manager-on-all holders whose entries minted — the deterministic clawback walk-list (the resolvedInventoryItemIds custody class)." commissionAgentUserIds: [ID!] "The affiliate custody stamp: the attributed Affiliate — the clawback walk key (entries ride affledger#)." affiliateId: ID "The embedded lines (0..45 — an empty open cart is legal, place refuses it); lineNo frozen at placed." lines: [OrderLine!]! } "One page of the orders listing — the records + the opaque resume cursor." type OrderPage { "The page's records." items: [Order!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "The inline customer capture — at least one inline field OR a customer ref." input OrderCustomerInput { "The customer name. Optional." name: String "The customer email. Optional." email: String "The customer phone number. Optional." phone: String "The CorporateCustomer REF — resolves in-tenant; the (order-org × cc) OrgCustomer must exist and be active (CONFLICT/REF_STATE names the missing/paused enablement)." corporateCustomerId: ID "The buyer Contact — requires corporateCustomerId; must hold a live purchasing-buyer assignment on that customer's host (role-EXACT)." buyerContactId: ID "The Consumer REF: resolves in-tenant + active (a suspended/erased consumer refuses CONFLICT/REF_STATE); mutually exclusive with corporateCustomerId; place/accept re-validate fresh; the consumer's priceGroupId supersedes the member carrier at pricing." consumerId: ID } "One pre-tax discount entry — amountMinor ⟺ kind amount, percentPpm ⟺ kind percent; reason required. Only source manual is accepted from callers. Engine refs (promotionId/couponId) are output-only — never accepted here." input OrderDiscountInput { kind: SaleDiscountKind! source: SaleDiscountSource! amountMinor: Int percentPpm: Int reason: String! } input OrderCommissionAgentInput { agentUserId: ID! splitWeightPpm: Int! } "The open_item entry payload — description + explicit tax category + explicit unit price (house Money; the currency must match the order currency)." input OrderOpenItemInput { description: String! taxCategory: TaxCategory! unitPrice: MoneyEntryInput! } "The stored_value entry payload: the instrument type/target + the explicit tax category + the load amount as the unit price. instrumentId names an existing instrument (staged-activate / reload); code rides the mint arm only (normalized + grammar-gated at add; omitted = system-minted at place). store_credit refuses (never purchasable); quantity ≡ 1; never discounted; carryout only; sale-profile only." input OrderStoredValueInput { instrumentType: StoredValueInstrumentType! instrumentId: ID code: String taxCategory: TaxCategory! unitPrice: MoneyEntryInput! } "One caller line — variantId XOR openItem XOR storedValue; variant lines price from the (variant × LF) schedule at add-time (a lapsed/unpriced item refuses CONFLICT/REF_STATE); quantity strictly positive." input OrderLineInput { variantId: ID openItem: OrderOpenItemInput storedValue: OrderStoredValueInput quantity: String! discounts: [OrderDiscountInput!] "Omitted ⇒ channel default (pos → carryout, ecom → ship)." fulfillmentMethod: OrderFulfillmentMethod nonReturnable: Boolean finalSale: Boolean restockingFeePpm: Int requiresApprovalToSell: Boolean commissionAgents: [OrderCommissionAgentInput!] referralCode: String } "Create-input to open an Order — a sale/layaway/special_order is born open (the cart IS the open state); a draft/quote is born draft. The org + LF are gated live (active, same group, the LF belongs to the org); the currency snapshots the org defaultCurrency; lines MAY be empty (the ecom cart-birth shape). All four orderType profiles are accepted; a special_order line is variant-keyed with fulfillmentMethod=special_order. validUntil is required on quote (future instant), optional on draft, forbidden elsewhere." input NewOrderInput { "Optional: when omitted the per-type default applies — the channel + line count (pos order 2 lines); when supplied it must be non-blank." caption: String "The selling Organization — tenant-scoped + active." organizationId: ID! channel: OrderChannel! "All four profiles accepted; special_order lines are variant-keyed + method-coupled." orderType: OrderType! "The draft/quote validity window end — required iff quote, optional on draft, forbidden elsewhere; must be future at create." validUntil: String "The layaway term end: optional on layaway (absent ⇒ no scheduled default), forbidden elsewhere; must be future at create." termEndsAt: String "The selling/fulfilling LF — active + belongs to the selling org." logicalFacilityId: ID! customer: OrderCustomerInput "Optional cert ref — same-group + active at attach; at-USE validity re-gated at place." exemptionCertificateId: ID "Order-level pre-tax discounts (manual only)." discounts: [OrderDiscountInput!] "The lines (0..45)." lines: [OrderLineInput!]! } "Edit-input for a Order. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. Live-edit-state only: a sale edits while open (held is parked — resume first; post-place content is frozen, the amendment window a strict-OFF hook); a draft/quote edits while draft OR sent. A supplied lines array replaces wholesale and re-runs the full price capture at the edit instant." input EditOrderInput { caption: String customer: OrderCustomerInput exemptionCertificateId: ID discounts: [OrderDiscountInput!] "Re-set the draft/quote validity window." validUntil: String "Re-set the layaway term end. A termEndsAt-ONLY edit stays legal while placed|accruing (the term is schedule, not content)." termEndsAt: String "The wholesale line replacement (live-edit-state only) — same shape + refinements as create; MAY be emptied (a cleared cart)." lines: [OrderLineInput!] } "How the invoiced order priced its tax — captured once at issue: exclusive = sales_tax adds on top; inclusive = vat_gst lives inside the captured prices." enum InvoiceTaxMode { exclusive inclusive } "One immutable Invoice line — the issue-time snapshot of ONE order line's captured facts for the invoiced quantity; money figures are exact cumulative-telescoping shares (a full invoicing sums to the order line exactly, per component)." type InvoiceLine { "1-based position within this invoice." lineNo: Int! "The invoiced order line's frozen lineNo — the (orderId, orderLineNo) cross-document coordinate." orderLineNo: Int! "The sold variant (copied — XOR openItemDescription)." variantId: ID "The open-item description (copied — XOR variantId)." openItemDescription: String "The order line's resolved tax category." taxCategory: TaxCategory! "The invoiced quantity (positive decimal string; ≤ the un-invoiced remainder at issue)." quantity: String! "The captured unit sale price in minor units (copied verbatim — a per-unit fact)." capturedUnitPriceMinor: Int! "Derived: taxableBase + lineDiscount + orderDiscountShare (the identity holds by construction)." baseMinor: Int! lineDiscountMinor: Int! orderDiscountShareMinor: Int! "This invoice's telescoping share of the order line's taxable base — the note-delta axis." taxableBaseMinor: Int! "Derived mode-aware: exclusive ⇒ taxableBase + tax; inclusive ⇒ taxableBase (tax inside)." lineTotalMinor: Int! "The tax snapshot — the order line's slot with each component's taxMinor telescoping-prorated (rates/refs verbatim)." tax: OrderLineTax! "The cumulative signed note deltas addressed to this line (absent = 0; CreditNotes subtract, DebitNotes add) — stamped by note issue/void, never caller data." notedBaseDeltaMinor: Int } "A sales Invoice — the billing/revenue-recognition document generated from an Order: an immutable line snapshot at issue (captured prices/discounts/tax copy, telescoping-prorated exactly for the 1..N partial model — a full invoicing sums to the order figures exactly). One order → one-or-many invoices. Born issued by the bespoke issueInvoice op; corrections are NEW CreditNote/DebitNote documents, never an edit — no update surface exists. The GAAP recognition trail is reports-only; the three rollup vectors are animated derived read-models." type Invoice { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like IN-… — stable for the record’s life." sysId: String! "The kind of record — always `Invoice` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of issued, closed or voided." status: String! "The order's parent — the LF or org; for an Invoice parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The invoiced Order." orderId: ID! "The selling Organization (copied from the Order at issue — attribution)." organizationId: ID! "The order currency." currency: String! "The pricing mode captured at issue — exclusive (sales_tax adds on top) or inclusive (vat_gst inside the captured prices); the note recompute reads this." taxMode: InvoiceTaxMode! "The order's inline customer capture, copied at issue." customer: OrderCustomer "The order's captured origin jurisdiction, copied at issue." taxJurisdictionId: ID "The payment rollup, animated: unpaid → partial → paid — FIFO-by-issue money coverage derived from the Order’s net tenders (closed invoices pin first; a refund walks an issued invoice back honestly — the newest invoice regresses first)." paymentState: String! "The fulfillment rollup, animated: unfulfilled → partial → fulfilled — per-line FIFO delivery allocation over the Order’s fulfilledQty stamps." fulfillmentState: String! "The recognition rollup, animated: deferred → partial → recognized — the deposits-until-delivery conversion; mirrors the fulfillment allocation until fiscal/service chunks diverge them. recognized + paid flips the invoice closed." recognitionState: String! "Σ snapshot-line bases in minor units (exact telescoping shares)." subtotalMinor: Int! "Σ snapshot-line discount shares (line + order-level), minor units." discountTotalMinor: Int! "Σ snapshot-line tax in minor units (inside the captured figures under inclusive taxMode — disclosed, not double-counted)." taxTotalMinor: Int! "The invoiced total in minor units (mode-aware line totals summed)." totalMinor: Int! "The immutable snapshot lines (1..45); the notedBaseDeltaMinor rollups are the ONE post-issue stamp lane." lines: [InvoiceLine!]! } "One page of the invoices listing — the records + the opaque resume cursor." type InvoicePage { "The page's records." items: [Invoice!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "One recomputed tax component on a note delta line — rate/refs copy the invoice line's captured component verbatim (no re-sourcing); taxMinor is signed (mirrors the base delta's sign). Shared by CreditNote and DebitNote." type NoteDeltaTaxComponent { taxRateId: ID! jurisdictionId: ID! category: TaxCategory! treatment: TaxTreatment! ratePpm: Int! compound: Boolean! combined: Boolean! "Signed — CreditNote components ≤ 0, DebitNote components ≥ 0." taxMinor: Int! } "One stored note delta line — the signed correction addressed to ONE invoice line (CreditNote strictly negative, DebitNote strictly positive; the sign lives on the document). Shared by both note constructs." type NoteDeltaLine { "1-based position within this note." lineNo: Int! "The corrected invoice line (1-based on the superseded Invoice)." invoiceLineNo: Int! "The invoice line's order coordinate (copied — the Order → Invoice → note audit chain)." orderLineNo: Int! "The invoice line's tax category (copied — the recompute coordinate)." taxCategory: TaxCategory! "The signed base delta on the taxableBase axis." baseDeltaMinor: Int! "The signed recomputed tax delta = Σ components (computeNoteDeltaTax over the captured components)." taxDeltaMinor: Int! taxComponents: [NoteDeltaTaxComponent!]! "The signed line total delta — exclusive ⇒ base + tax; inclusive ⇒ base (tax inside)." totalDeltaMinor: Int! } "A CreditNote — the reducing corrective document for an issued, immutable Invoice: a NEW document carrying the signed delta (every figure strictly negative — the sign lives on the document), never an edit. The tax delta recomputes over the invoice line's captured components (a correction re-prices the same fact, not a new sourcing) — a full credit mirrors the original figures exactly. Over-credit refuses per line strict (taxableBase + Σ prior signed deltas ≥ 0). NO inventory movement — a goods-back is a Return. AR effects =; fiscalization seq/sig = (named deferrals)." type CreditNote { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like CR-… — stable for the record’s life." sysId: String! "The kind of record — always `CreditNote` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of issued, closed or voided." status: String! "The corrected Invoice's parent — the LF or org: an order-context sibling of the invoice it corrects (the invoiceId ref binds); for a CreditNote parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The superseded Invoice." invoiceId: ID! "The invoiced Order (copied from the invoice — the document-graph audit chain)." orderId: ID! "The selling Organization (copied — attribution)." organizationId: ID! "The invoice currency (copied — deltas re-price the same fact in the same currency)." currency: String! "The required audit reason." reason: String! "The settlement rollup — born unsettled (the / writers widen it; dormant)." settlementState: String! "Σ line base deltas (signed — strictly negative here)." baseDeltaTotalMinor: Int! "Σ line tax deltas (signed — the recompute mirror)." taxDeltaTotalMinor: Int! "Σ line total deltas (signed) — the note's net effect on what the customer owes." totalDeltaMinor: Int! "The signed delta lines (1..45; every base delta strictly negative — the reducing arm)." lines: [NoteDeltaLine!]! } "One page of the creditNotes listing — the records + the opaque resume cursor." type CreditNotePage { "The page's records." items: [CreditNote!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "A DebitNote — the increasing corrective twin of the CreditNote (customer owes more — an undercharge correction, post-billing freight, an upward price adjustment): identical lifecycle + delta mechanics, opposite sign (every figure strictly positive). The tax delta recomputes over the invoice line's captured components; NO over-credit ceiling (an increase raises the invoice's remaining net — the CreditNote guard reads the raised headroom via the same cumulative stamps). NO inventory movement. Reuses the CreditNote's NoteDeltaLine/NoteDeltaTaxComponent SDL types (the /VendorInvoice entry-order precedent)." type DebitNote { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like DN-… — stable for the record’s life." sysId: String! "The kind of record — always `DebitNote` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of issued, closed or voided." status: String! "The corrected Invoice's parent — the LF or org: an order-context sibling (the invoiceId ref binds); for a DebitNote parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The superseded Invoice." invoiceId: ID! "The invoiced Order (copied from the invoice — the document-graph audit chain)." orderId: ID! "The selling Organization (copied — attribution)." organizationId: ID! "The invoice currency (copied — deltas re-price the same fact in the same currency)." currency: String! "The required audit reason." reason: String! "The settlement rollup — born unsettled (the / writers widen it; dormant)." settlementState: String! "Σ line base deltas (signed — strictly positive here)." baseDeltaTotalMinor: Int! "Σ line tax deltas (signed — the recompute mirror)." taxDeltaTotalMinor: Int! "Σ line total deltas (signed) — the note's net effect on what the customer owes." totalDeltaMinor: Int! "The signed delta lines (1..45; every base delta strictly positive — the increasing arm)." lines: [NoteDeltaLine!]! } "One page of the debitNotes listing — the records + the opaque resume cursor." type DebitNotePage { "The page's records." items: [DebitNote!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "The canned saga process kinds." enum SagaType { checkout transfer po_receipt special_order_sourcing fiscalization_clearance } "One saga participant ref — a construct this saga's steps touch; constructType is the type name so the id resolves without guessing the family." type SagaParticipant { constructType: String! id: ID! } "One compensation-log line — appended while the saga is compensating (audit trail; the failed terminal's last line records why compensation could not complete)." type SagaCompensationEntry { "The action instant (UTC ISO-8601)." at: String! "What the compensating step did (or why compensation failed)." action: String! } "A Saga — the cross-boundary / multi-step mutation record-of-truth: each step advances status AND commits its effect in ONE transaction; the record IS the durable state machine. Isolation = the semantic lock. System-minted end to end: the wire is read-only (no create/edit/transition mutations exist — lifecycle is kit-channel; the first live records mint with the first genuinely multi-step process, checkout). failed is the terminal — compensation itself could not complete; recovery is a NEW linked saga, never a resurrection." type Saga { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like SG-… — stable for the record’s life." sysId: String! "The kind of record — always `Saga` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of pending, running, compensating, completed, compensated or failed." status: String! "The parent org group; for a Saga parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The canned process kind. Immutable at birth." sagaType: SagaType! "The aggregate the semantic lock isolates — e.g. the Order under checkout. Immutable at birth." lockAggregateId: ID! "The construct refs this saga's steps touch (1..32, distinct). Immutable at birth." participants: [SagaParticipant!]! "The compensation audit log (born empty; appends while compensating, ≤ 64 — the failed terminal's last line records why). Server data, never caller-writable." compensationLog: [SagaCompensationEntry!]! "Null on SF-less sagas and the degraded lane. The ops/reconcile handle." sfExecutionArn: String "The live WaitForTaskToken callback token. Present ⟺ the execution is paused at the external wait; kit-stamped." taskToken: String } "One page of the sagas listing — the records + the opaque resume cursor." type SagaPage { "The page's records." items: [Saga!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "The per-line receive dispositions: restock → on_hand (resellable) · inspect → held · damaged → damaged · scrap → write-off." enum ReturnDisposition { restock inspect damaged scrap } "The refund routing methods. Recording only — mechanics //." enum ReturnRefundMethod { original_tender cash store_credit } "One receive-time disposition split on a return line." type ReturnLineDisposition { disposition: ReturnDisposition! "The quantity under this code (positive decimal string, the line stock UoM)." quantity: String! "The disposition reason — required for non-restock codes." reason: String } "One Return line — the request-time identity copy of ONE order line's returned quantity + the receive-time stamps (disposition cover · the telescoping refund money over the order line's captured figures · the restocking fee). Stamps are server-written, never caller data." type ReturnLine { "1-based position within this return." lineNo: Int! "The returned order line's frozen lineNo — the (orderId, orderLineNo) cross-document coordinate." orderLineNo: Int! "The sold variant (copied — XOR openItemDescription)." variantId: ID "The open-item description (copied — stockless: no disposition, no movement; refund-only)." openItemDescription: String "The order line's resolved tax category." taxCategory: TaxCategory! "The returned quantity." quantity: String! "The request-time reason (why the customer returns)." reason: String "The receive-time disposition cover (absent until received; always absent on stockless lines)." dispositions: [ReturnLineDisposition!] "Receive-stamped: this return's telescoping share of the order line's lineTotalMinor." paidShareMinor: Int "Receive-stamped: halfAway(paidShare × the order line's captured restockingFeePpm / 1e6); absent when the line captured no fee flag." restockingFeeMinor: Int "Receive-stamped: paidShare − restockingFee, floored at 0 — this line's refund." refundMinor: Int "Receive-stamped: the order line's tax slot with each component's taxMinor telescoping-prorated (rates/refs verbatim) — the remittance-reversal report source." tax: OrderLineTax } "The refund routing record — stamped by refundReturn/posReturn." type ReturnRefund { method: ReturnRefundMethod! "Optional external reference (a processor id / credit-slip number)." reference: String "The drawer session a cash refund paid out of." tillSessionId: ID "The Refund children the original_tender processor walk committed for this return." refundIds: [ID!] "The store_credit instrument this refund minted." mintedInstrumentId: ID } "A sales Return / RMA — the customer→merchant goods-back document. References the original Order (+ optionally one of its Invoices); returns whole units of order lines; receive posts per-line disposition legs at the receiving LF and stamps the telescoping refund money; refund records the routing (tender mechanics; store-credit issuance)." type Return { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like RT-… — stable for the record’s life." sysId: String! "The kind of record — always `Return` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of requested, approved, received, refunded, closed, cancelled or rejected." status: String! "The processing/receiving LogicalFacility; rootId = the org group; parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The returned Order." orderId: ID! "Optional Invoice ref (receipted returns) — belongs to orderId, gated at create." invoiceId: ID "The selling Organization (copied from the Order at create — attribution)." organizationId: ID! "The order currency." currency: String! "The order's inline customer capture, copied at create (identity on the RMA — audit)." customer: OrderCustomer "Receive-stamped: Σ line refundMinor — the total owed back (absent until received)." refundTotalMinor: Int "Refund-stamped: the routing record." refund: ReturnRefund "The return lines (1..45); each refs an order line by its frozen lineNo." lines: [ReturnLine!]! } "One page of the returns listing — the records + the opaque resume cursor." type ReturnPage { "The page's records." items: [Return!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "One caller line at create / wholesale replace — (orderLineNo, quantity[, reason]); distinct orderLineNos; positive quantities. Lines flagged nonReturnable/finalSale refuse CONFLICT/NOT_RETURNABLE naming the flag." input ReturnLineInput { "The order line being returned — its line number on the order." orderLineNo: Int! "How many units are coming back — a positive decimal string, at most what the line sold." quantity: String! "Why these units are coming back, up to 256 characters. Optional." reason: String } "Create-input to request a Return. The org (active) + the receiving LF (active, same spine) + the order (same-group, ∈ {placed, completed}) + the optional invoice (belongs to the order) are gated live; nonReturnable/finalSale lines refuse CONFLICT/NOT_RETURNABLE; the returnable remainder pre-checks at create." input NewReturnInput { "Optional: when omitted the per-type default applies — the order sysId + line count (return of SO-… 2 lines); when supplied it must be non-blank." caption: String "The Order being returned against — same-group; ∈ {placed, completed} (CONFLICT/REF_STATE else)." orderId: ID! "Optional Invoice ref — same-group + must belong to the order (the receipted-return audit edge)." invoiceId: ID "The processing/receiving LF — becomes the parent." logicalFacilityId: ID! "The returned lines (1..45, distinct orderLineNos)." lines: [ReturnLineInput!]! } "Edit-input for a Return. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. Requested-only: after approve the request is fixed (receive binds dispositions); a supplied lines array replaces wholesale and re-runs the create refinements + eligibility gates." input EditReturnInput { caption: String "The wholesale line replacement (requested-only) — same shape + refinements as create." lines: [ReturnLineInput!] } "A Register — a POS terminal / till position at a LogicalFacility: the logical till identity TillSessions parent to. The operational lifecycle verbatim. The gate: a live TillSession (open/suspended/counting) blocks deactivate AND doom, CONFLICT/REFERENCED naming it; terminal sessions never block." type Register { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like RG-… — stable for the record’s life." sysId: String! "The kind of record — always `Register` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent LogicalFacility; rootId = the org group; parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the registers listing — the records + the opaque resume cursor." type RegisterPage { "The page's records." items: [Register!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a Register." input NewRegisterInput { "Optional: when omitted the per-type default applies — the LF coordinate ('register at '); when supplied it must be non-blank." caption: String "The parent LogicalFacility (the till position's home) — tenant-scoped + active. Immutable after birth." logicalFacilityId: ID! code: String } "Edit-input for a Register. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. The parent LF is NOT editable." input EditRegisterInput { caption: String code: String } "One per-currency drawer figure. Non-negative on float/counted; signed on drawerTotals/overShort." type DrawerAmount { currency: String! amountMinor: Int! } "The 9 canned drawer entry types. recordCashEntry accepts the manual subset only (paid_in | paid_out | drop | pickup); float_in/count_adjust are open/close-posted; cash_sale/cash_refund/change_given post only through the tender writers." enum CashEntryType { float_in cash_sale cash_refund paid_in paid_out drop pickup change_given count_adjust } "The FX capture: the entry's own currency/amountMinor ARE the foreign holding; this block adds the exact rate applied + the settlement value booked at the till rate — the left operand of the future realized-gain/loss computation (the banking/drop realization = a later slice). Rides the foreign cash_sale entry only." type CashEntryFx { "The winning FxRate record consumed." rateId: ID! "The composed effective buy rate applied, integer micro to-per-from." rateMicro: Int! "The settlement (org default) currency the sale booked in." settledCurrency: String! "The settlement-currency minor units this foreign holding booked at (converted − fees)." settledMinor: Int! } "ONE posted cash-drawer ledger fact: the sign is the direction (positive = cash into the drawer)." type CashEntry { id: ID! type: String! "The derived display caption — entryType + currency + signed minor; never editable." caption: String! "The state: active | doomed (doomed = voided, reserved for a future void-family flow)." status: String! "The parent TillSession." parentId: ID! rootId: ID! "The canned entry type." entryType: CashEntryType! "The entry currency." currency: String! "The signed minor-unit amount — the sign IS the drawer direction." amountMinor: Int! "The reason — required on the manual ops; auto-generated on float_in/count_adjust." reason: String "The GL expense/income category — rides paid_in/paid_out only." glCategory: String "Provenance document refs (bounded free strings — typed refs land with their writers)." refs: [String!] "The FX capture." fx: CashEntryFx "Present (true) exactly when this entry drove its currency's drawer total negative." overdrawn: Boolean createdAt: String! updatedAt: String! revision: ID! revisionNum: Int! } "A TillSession — the cash-drawer session at a Register: opened by a User with a counted starting float, tracking float / expected / counted / over-short through the immutable CashEntry ledger. ONE live session per register. Expected cash = the drawerTotals cache, stamped in the same transaction as every entry post. The shift IS this doc; X/Z report artifacts are the reports family." type TillSession { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like TS-… — stable for the record’s life." sysId: String! "The kind of record — always `TillSession` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of open, suspended, counting, closed or abandoned." status: String! "The parent Register; rootId = the org group; parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The opening User, server-stamped from the principal." openedBy: ID! "The declared opening float, verbatim." float: [DrawerAmount!]! "The per-currency running drawer totals. Expected cash = this list." drawerTotals: [DrawerAmount!]! "Close-stamped: the counted drawer, verbatim." counted: [DrawerAmount!] "Close-stamped: counted − expected per currency (negative = short, positive = over; each non-zero figure posted a count_adjust entry)." overShort: [DrawerAmount!] "The terminal instant (stamped at close AND abandon — the shift period's end)." closedAt: String "The no_sale audit trail — drawer-opened-without-sale count; absent = none." noSaleCount: Int "The most recent no-sale instant (rides every noSale stamp)." lastNoSaleAt: String } "One page of the tillSessions listing — the records + the opaque resume cursor." type TillSessionPage { "The page's records." items: [TillSession!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "One per-currency figure." input DrawerAmountInput { currency: String! amountMinor: Int! } "An ApprovalRequest — the real-time, human-approver, in-session authorization of one POS action exceeding the requester's authority (distinct from the async ChangeRequest). The blocked action stays blocked until resolved; short TTL. The request binds a fingerprint (action, targetId[, valueMinor]) + the requester: on approval, retrying the identical gated call finds + consumes the approval by fingerprint. Never self-approve (AUTHZ/SELF_APPROVAL); an under-ranked approver is AUTHZ/INSUFFICIENT." type ApprovalRequest { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like AR-… — stable for the record’s life." sysId: String! "The kind of record — always `ApprovalRequest` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of pending, approved, denied, expired or cancelled." status: String! "deterministic parent: the open TillSession when the action runs in a till session, else the LF; rootId = the org group regardless." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The gated action: discount.apply · price.override · void.line · void.transaction · return.approve · sale.restricted_item · no_sale · oversell · refund.routing_exception · credit.over_limit · order.below_minimum. Live: discount.apply · void.transaction · return.approve · no_sale · refund.routing_exception · credit.over_limit · order.below_minimum; the rest refuse VALIDATION/UNSUPPORTED naming their arrival." action: String! "The target construct type — derived from the action, stored for the fingerprint." targetType: String! "The blocked action's target construct." targetId: ID! "The bound value when the action carries one — discount.apply binds the discount Σ, exact-matched at consumption; absent for whole-target actions." valueMinor: Int "The requesting User." requestedBy: ID! "The required approver tier; the approver's resolved tier rank must be ≥ this tier's rank (AUTHZ/INSUFFICIENT below it)." requiredTier: RoleTemplateKey! "Why the requester needs the override." reason: String! "The live-window end (createdAt + the 900s TTL, ISO-8601): approve/deny/consume past it refuse CONFLICT/EXPIRED and the request lazily expires." expiresAt: String! "Decision-stamped: the approving/denying User." decidedBy: ID "Decision-stamped: the decision instant (ISO-8601)." decidedAt: String "Decision-stamped: the approver/denier's stated reason (optional — the transition template)." decisionReason: String } "One page of the approvalRequests listing — the records + the opaque resume cursor." type ApprovalRequestPage { "The page's records." items: [ApprovalRequest!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "The effective resolved rate for one (fromCurrency → org default) pair at one instant: the winning most-specific record's identity + window, with the composed figures (adjustment chains folded in, fees accumulated)." type FxResolution { "The winning (most-specific covering) FxRate record — the rate-on-every-event ref target." rateId: ID! "The winning record's level (group | org | lf)." level: String! fromCurrency: String! toCurrency: String! "The composed effective buy rate, integer micro to-per-from." buyRateMicro: Int! "The composed effective sell rate, integer micro to-per-from." sellRateMicro: Int! "The accumulated adjustment fees along the chain, TO-currency minor units (0 = none)." feeMinor: Int! "The winning record's window." startAt: String! endAt: String! } "An FX rate window: ONE effective-dated conversion rate record in the tenant schedule, resolved group (default) → org → LF most-specific-wins at every conversion event. Modes: absolute (explicit buy/sell integer-micro rates — the only group-level mode) · adjust (± ppm over the next-less-specific effective rate, both directions, optional fee) · par (1:1). Doom cancels a not-yet-effective future record only (CONFLICT/IMMUTABLE otherwise — supersede instead). The window/pair/mode/rate fields are wire-IMMUTABLE (the edit surface is caption only). Consumed by the foreign_cash tender lane at the BUY side." type FxRate { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like FX-… — stable for the record’s life." sysId: String! "The kind of record — always `FxRate` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active or doomed." status: String! "The level anchor: the org group itself (group level — parentId === rootId), an Organization, or a LogicalFacility." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The resolution level this record binds. Stored explicit, validated against the real parent at create; immutable." level: String! "The from (tendered/foreign) currency — a platform-registry code inside the anchor organization's allowed set. Immutable — supersede to change." fromCurrency: String! "The TO (settlement) currency — the org default currency at resolution; a platform-registry code inside the anchor organization's allowed set. Immutable." toCurrency: String! "The record mode. Immutable." mode: String! "Absolute only: the rate WE buy the from-currency at, integer micro to-per-from. Immutable." buyRateMicro: Int "Absolute only: the rate WE sell the from-currency at, integer micro to-per-from. Immutable." sellRateMicro: Int "Adjust only: the signed ± ppm applied to both directions (buy AND sell) of the next-less-specific effective rate. Immutable." adjustPpm: Int "Adjust only, optional: a fee in TO-currency minor units, reducing the credited amount at conversion. Immutable." feeMinor: Int "The window start (inclusive; UTC ISO-8601) — set at birth (absent in the create input = effective NOW, server-stamped), immutable thereafter." startAt: String! "The window end (exclusive; UTC ISO-8601; always present — far-future = the standing rate). Moves only via the system splice trim." endAt: String! } "One page of the fxRates listing — the records + the opaque resume cursor." type FxRatePage { "The page's records." items: [FxRate!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for an FxRate." input NewFxRateInput { "Optional: when omitted the per-type default applies — the window coordinate `/ from `; when supplied it must be non-blank." caption: String organizationId: ID logicalFacilityId: ID "The from (tendered/foreign) currency — a platform-registry code inside the anchor organization's allowed set." fromCurrency: String! "The TO (settlement) currency — a platform-registry code inside the anchor organization's allowed set; must differ from fromCurrency." toCurrency: String! "absolute (buy+sell required) | adjust (adjustPpm required, feeMinor optional; org/LF only) | par (no rate fields; org/LF only)." mode: String! "Absolute only — integer micro to-per-from (1.25 = 1250000)." buyRateMicro: Int "Absolute only — integer micro to-per-from." sellRateMicro: Int "Adjust only — signed, non-zero, ±500000 (±50%)." adjustPpm: Int "Adjust only, optional — TO-currency minor units, reducing the credited amount." feeMinor: Int "The window start (inclusive; UTC ISO-8601). Optional — absent = effective NOW (server-stamped); explicit values must be >= the server now (no past starts)." startAt: String "The window end (exclusive; UTC ISO-8601). Always required (far-future = the standing rate); must be strictly after startAt." endAt: String! } "Edit-input for a FxRate. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. The window/pair/mode/rate fields are NOT editable." input EditFxRateInput { caption: String } "The DOC-shaped delivery lanes: ship (carrier; ship = delivered) · pickup_curbside / pickup_instore (BOPIS — stage then handover). carryout never creates a Fulfillment (the till lane); a deliver_later/special_order line capture may fulfill via ANY lane; dropship is the named deferral." enum FulfillmentMethod { ship pickup_curbside pickup_instore } "One Fulfillment line — the create-time identity copy of ONE order line's claimed quantity (partial + split legal: the binding remainder gate reads the Order's own fulfillmentClaimedQty stamp). Lines are immutable at birth — re-scope = cancel + create." type FulfillmentLine { "1-based position within this fulfillment." lineNo: Int! "The fulfilled order line's frozen lineNo — the (orderId, orderLineNo) cross-document coordinate." orderLineNo: Int! "The sold variant (copied — XOR openItemDescription; the pick/pack identity)." variantId: ID "The open-item description (copied — stockless: delivery stamps, no stock movement)." openItemDescription: String "The claimed quantity (positive decimal string; ≤ the order line's unclaimed remainder at create)." quantity: String! } "The inline ship-to snapshot. Required effective at ship for method=ship; refused on pickup docs." type FulfillmentShipTo { name: String! "The street address (1..3 lines)." addressLines: [String!]! city: String! "The region / state / province (optional — not every country subdivides)." region: String postalCode: String "ISO-3166-1 alpha-2, uppercase." countryCode: String! phone: String } "A Fulfillment — groups order lines fulfilled together by ONE method from one LF: pick → pack → ship-or-stage → deliver. Ship = delivered; delivery relieves stock through the sell-relief lane (release of the ecom reserve rides it), stamps the order line fulfilledQty rollups, and recomputes both delivery vectors; the completion evaluator flips a paid-and-delivered order to completed. After `pack` the record IS the Packing-List node (packedAt + the immutable lines; the FF-… sysId is the document number). Carryout lines never ride a Fulfillment (the paid-completion till lane); dropship + ship-from-other-store are the named /Transfer-composition deferrals." type Fulfillment { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like FF-… — stable for the record’s life." sysId: String! "The kind of record — always `Fulfillment` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of pending, picking, packed, shipped, ready_for_pickup, fulfilled or cancelled." status: String! "The fulfilling LogicalFacility; rootId = the org group; parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The fulfilled Order." orderId: ID! "The selling Organization (copied from the Order at create — attribution)." organizationId: ID! "The delivery lane — decides the packed→[shipped | ready_for_pickup] conditional edge." method: FulfillmentMethod! "The inline ship-to snapshot (method=ship — captured at create or at ship; the ship payload wins as the label truth)." shipTo: FulfillmentShipTo "Ship-stamped carrier capture." carrierName: String "Ship-stamped tracking reference capture." trackingRef: String "Pack-stamped: the Packing-List instant." packedAt: String "The claimed lines (1..45); each refs an order line by its frozen lineNo." lines: [FulfillmentLine!]! } "One page of the fulfillments listing — the records + the opaque resume cursor." type FulfillmentPage { "The page's records." items: [Fulfillment!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "One caller line at create — (orderLineNo, quantity); distinct orderLineNos; positive quantities; quantity ≤ the line's unclaimed remainder (quantity − fulfillmentClaimedQty, the binding port gate). Lines whose captured method is incompatible with the doc lane refuse VALIDATION/INVALID naming the pair (carryout lines never join — the till lane delivers them)." input FulfillmentLineInput { "The order line being fulfilled — its line number on the order." orderLineNo: Int! "How many units this fulfilment covers — a positive decimal string, at most what the line still owes." quantity: String! } "The inline ship-to capture (method=ship only — strict both ways; suppliable at create or at ship, the ship payload replacing as the label truth)." input FulfillmentShipToInput { name: String! addressLines: [String!]! city: String! region: String postalCode: String countryCode: String! phone: String } "Create-input for a Fulfillment." input NewFulfillmentInput { "Optional: when omitted the per-type default applies — the method + order coordinate (ship fulfillment of SO-… 2 lines); when supplied it must be non-blank." caption: String "The Order being fulfilled — same-group; placed + sale (CONFLICT/REF_STATE else)." orderId: ID! "The delivery lane (ship | pickup_curbside | pickup_instore)." method: FulfillmentMethod! "The inline ship-to (method=ship only — may also arrive at ship; strict both ways)." shipTo: FulfillmentShipToInput "The claimed lines (1..45, distinct orderLineNos)." lines: [FulfillmentLineInput!]! } "A Payment — a processor-backed payment (the integrated processing mode), spawned by a card Tender. Aligned to the deposit→recognition model: authorize = the hold = deposit at tender; capture = recognized at delivery — POS carry-out collapses authorize+capture by arriving at delivery in the same request, never by skipping states. Record-first/processor-after: minted created before any processor call; the StripePort attempt fires post-commit; state flips ride the ACK/webhook path; 32 attempts bound each order (the Order.paymentIds cap). PCI-min: the PAN never touches AT/stack — the record holds the opaque tokenized methodRef + processor refs + at most brand/last4. The StripePort is faked at 7.7a (deterministic, keyless); the live adapter + webhook ingress are 7.7b." type Payment { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like PY-… — stable for the record’s life." sysId: String! "The kind of record — always `Payment` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of created, authorized, captured, succeeded, failed, cancelled or voided." status: String! "The Order this payment settles; rootId = the org group; parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The selling Organization." organizationId: ID! "The amount applied toward the order balance in minor units (positive — the spawning tender appliedMinor twin)." amountMinor: Int! "The tip portion charged ON top of amountMinor." tipMinor: Int "The settlement currency — the order currency snapshot." currency: String! "The opaque tokenized payment method presented (Stripe pm_… class — never a PAN; the raw-card shape refuses at the boundary)." methodRef: String! "The spawned Tender row — stamped with the authorize flip (present from authorized onward)." tenderId: ID "The Connect account this payment routes direct on. Null = the platform account. Capture/cancel/refund thread this stamp — immutable payment history." stripeAccountRef: String "The orchestrating checkout Saga: its WaitForTaskToken owns the capture instant. Null = the inline capture lanes own this payment (the bulkhead)." sagaId: ID "The processor PaymentIntent ref — stamped from the authorize ACK (present from authorized onward)." intentRef: ID "The processor charge ref — stamped from the capture ACK (present from captured onward)." chargeRef: ID "The card brand as the processor reported it (PCI-min — never caller-typed)." brand: String "The last four digits as the processor reported them." last4: String "The processor decline/failure reason (failed payments only)." declineReason: String } "One page of the payments listing — the records + the opaque resume cursor." type PaymentPage { "The page's records." items: [Payment!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "A Refund — a processor-executed money reversal against the original Payment. Never wire-created: it spawns inside refundReturn(original_tender) — and its posReturn collapse — record-first/processor-after: minted created before the StripePort.refund call; the settle/fail flips ride the ACK/webhook path; 64 attempts bound each order (the Order.refundIds cap). Allocation is LIFO over the order's refundable integrated payments (newest money first); over-capacity refuses CONFLICT/OVER_TENDERED; each committed refund posts a negative card Tender. An async processor failure composes the compensating-tender unwind + the refund_async_failed operational line." type Refund { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like RF-… — stable for the record’s life." sysId: String! "The kind of record — always `Refund` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of created, succeeded or failed." status: String! "The Payment whose settled money this reverses; the record also names its spawning Return (returnId) and the Order anchoring the money story (orderId); rootId = the org group; parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The selling Organization." organizationId: ID! "The Order anchoring the money story (the parent Payment’s own parent — the Order.refundIds bounded-append twin)." orderId: ID! "The Return this refund executes." returnId: ID! "The amount reversed in minor units." amountMinor: Int! "The settlement currency — the parent Payment’s currency verbatim." currency: String! "The Connect account context threaded from the parent Payment’s stamp. Null = the platform account." stripeAccountRef: String "The processor refund ref (re_…) — stamped with the settle/fail truth (required from succeeded; present on an async-failed refund, absent on a sync port refusal)." refundRef: ID "The processor failure reason (failed refunds only — sync port refusal or async processor truth)." failureReason: String } "One page of the refunds listing — the records + the opaque resume cursor." type RefundPage { "The page's records." items: [Refund!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "A Dispute — the Stripe chargeback lifecycle mirrored. Never wire-created: webhook-born from charge.dispute.created — the ingress resolves the parent Payment through the PI-metadata law, mints record-first (needs_response, deduped by a uniq reservation on disputeRef), appends Order.disputeIds (32 bound), and emits the payment_dispute_opened operational line (money-loss events are operator-mandatory). The processor holds the disputed funds while evidenceDueBy runs; won/lost land via charge.dispute.closed (an unanswered dispute closing lost rides the two-edge cascade needs_response→under_review→lost — the must-pass-under_review law); on lost the funds+fee reverse reports-only." type Dispute { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like DP-… — stable for the record’s life." sysId: String! "The kind of record — always `Dispute` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of needs_response, under_review, won, lost or accepted." status: String! "The Payment whose charge is disputed; the record also names the Order anchoring the money story (orderId); rootId = the org group; parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The selling Organization." organizationId: ID! "The Order anchoring the money story (the parent Payment’s own parent — the Order.disputeIds bounded-append twin)." orderId: ID! "The processor dispute ref (dp_…) — required always (webhook-born records carry their processor identity from birth; the uniq mint-dedup key)." disputeRef: ID! "The disputed amount in minor units (the processor’s figure verbatim — may differ from the payment on partial disputes)." amountMinor: Int! "The dispute currency — the processor’s figure verbatim." currency: String! "The processor dispute reason code verbatim." reason: String! "The processor’s evidence deadline (UTC ISO-8601) — operator-facing urgency; the processor enforces it." evidenceDueBy: String "The Connect account context threaded from the parent Payment’s stamp. Null = the platform account." stripeAccountRef: String "The evidence text submitted through the caller lane (stamped with the respond flip — the presence law; null on dashboard-side submissions and the accept path)." evidenceText: String } "One page of the disputes listing — the records + the opaque resume cursor." type DisputePage { "The page's records." items: [Dispute!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "The canned effect kinds. Five animate; free_gift + free_shipping are the named deferrals — schema-parseable, create-REFUSED (VALIDATION/UNSUPPORTED naming the kind) until their substrate (the line-add side-effect / the shipping charge) exists." enum PromotionEffectType { percent_off amount_off fixed_price buy_x_get_y bundle_combo free_gift free_shipping } "Where an effect's reduction lands: line = each matched line; order = ONE figure allocated largest-remainder across the matched lines only (unmatched lines' tax bases stay untouched)." enum PromotionEffectTarget { line order } "The buy_x_get_y get-item scope: same = rewards come from the same matched set (floor(units/(x+y))·y); different = from getProductScope (min(floor(buyUnits/x)·y, getUnits)); the benefit lands on the cheapest eligible units — deterministic." enum PromotionBogoScope { same different } "ONE bundle component: product OR category-SUBTREE refs (OR within) + the units per combo. Lines are claimed by the first component they match (array order — deterministic)." type PromotionBundleComponent { productIds: [ID!] categoryIds: [ID!] qty: Int! } "The canned effect — ONE flat render of the contracts discriminated union (the CollectionPredicate render pattern): kind selects the arm; each arm's fields are present on it and absent elsewhere. Percentages ride integer ppm (10% = 100000); amounts are integer minor units in the org default currency; effects only reduce — never uplift." type PromotionEffect { kind: PromotionEffectType! "percent_off: the ppm ((0, 1000000]).)" percentPpm: Int "amount_off: the absolute reduction (minor units)." amountMinor: Int "percent_off/amount_off: where the figure lands." target: PromotionEffectTarget "fixed_price: the target unit price — each matched line reduces so its running subtotal = unit × qty; already-below = no-op (line-only by construction)." unitPriceMinor: Int "buy_x_get_y: the buy quantity (X)." buyQty: Int "buy_x_get_y: the get quantity (Y) per reward group." getQty: Int getScope: PromotionBogoScope "buy_x_get_y getScope=different: the get-item scope (required iff different)." getProductScope: PromotionProductScope "buy_x_get_y: absent = free (100%); bundle_combo: the percent benefit (XOR benefitAmountMinor)." benefitPercentPpm: Int "bundle_combo: the amount benefit per combo (× the multiplier k; largest-remainder across participants; XOR benefitPercentPpm)." benefitAmountMinor: Int "bundle_combo: the components (2..8 — a single-component qty deal is buy_x_get_y/minQty)." components: [PromotionBundleComponent!] "free_gift: the gifted Variant." giftVariantId: ID "free_gift (deferred): the gift quantity." qty: Int } "Where a promotion applies: each axis absent = unrestricted; present = the order must match. priceGroupIds absent = customer-blind; present = the resolved group must be IN the list (an unresolved order matches NO group-scoped promotion). The remaining customer axes (loyalty-tier / employee / Segment) stay the named deferrals." type PromotionScope { channels: [OrderChannel!] logicalFacilityIds: [ID!] organizationIds: [ID!] "The CustomerPriceGroup eligibility axis." priceGroupIds: [ID!] } "What product lines match: the CollectionPredicate verbatim + manual inclusions (union) / exclusions (subtract; included∩excluded refused) + a direct Collection ref (membership resolved per cart line: static = member point-read; dynamic = pins-beat-exclusions then the collection's predicate; status-blind stored-ref matching, the EV-n law). Absent on the Promotion = ALL product lines; open_item lines never match." type PromotionProductScope { predicate: CollectionPredicate includedProductIds: [ID!] excludedProductIds: [ID!] collectionId: ID } "When a promotion fires: minQty = Σ scope-matched integer units; minSubtotalMinor = Σ matched lines' running subtotal at position 3 (after manual + coupon); required refs = ANY present in the cart (category = subtree). Tiered qty breaks = multiple promotions (the recorded simplification — minQty IS the threshold)." type PromotionCartConditions { minQty: Int minSubtotalMinor: Int requiredProductIds: [ID!] requiredCategoryIds: [ID!] } "A Promotion — the rule-based discount engine that emits source=promo line discount entries at the step-2 position 3 (after manual + coupon; the pipeline math was position-complete from birth — the build animates the dormant slot, the pattern). Resolution is strict no-stack. Emissions are absolute amount entries computed to replay verbatim in the pipeline; order-target effects pre-allocate largest-remainder over the matched lines only. Redemptions count per order in the place/accept transaction; a capped-out promotion silently stops firing. At most 128 active per org group." type Promotion { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like PM-… — stable for the record’s life." sysId: String! "The kind of record — always `Promotion` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Promotion parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The canned effect — wholesale-replace on edit; free_gift/free_shipping are the named deferrals (create-refused VALIDATION/UNSUPPORTED)." effect: PromotionEffect! "Where it fires." scope: PromotionScope "What product lines match." productScope: PromotionProductScope "When it fires." cartConditions: PromotionCartConditions "The half-open window start (UTC ISO-8601; kit-stamped NOW when omitted at create — the sale-price stamp law)." startAt: String! "The half-open window end — absent = evergreen (until deactivated); [startAt, endAt) is an evaluation gate." endAt: String "Deterministic resolution ordinal." priority: Int! "An exclusive promotion applies only to promo-free lines and permanently blocks its lines." exclusive: Boolean! "Merchant-authored stacking tag — two promotions stack on a line IFF they share this value; absent = never combines." combinableGroup: String "Per-promotion self-cap: Σ emission per line." maxDiscountPerLineMinor: Int "Per-promotion self-cap: Σ emission per order." maxDiscountPerOrderMinor: Int "Total-redemption cap." totalRedemptionsCap: Int "True ⇒ evaluates only while an attached, valid trigger Coupon references it — never auto-fires." couponGated: Boolean! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } input PromotionBundleComponentInput { "The ids of products that can fill this slot of the bundle — any one of them counts." productIds: [ID!] "The ids of categories that can fill this slot, each with its subcategories — any product in them counts." categoryIds: [ID!] "How many units fill this slot in one bundle — a whole number, at least 1." qty: Int! } input PromotionEffectInput { "What the promotion does — percent_off, amount_off, fixed_price, buy_x_get_y or bundle_combo; only that kind figures ride with it (free_gift and free_shipping are not yet available)." kind: PromotionEffectType! "For percent_off: the percent taken off, in parts per million — 100000 is 10 percent; above 0, up to 1000000." percentPpm: Int "For amount_off: the amount taken off, in the minor units of the organization currency." amountMinor: Int "For percent_off and amount_off: whether the reduction applies to each matched line or to the order as a whole." target: PromotionEffectTarget "For fixed_price: the price every matched unit sells at, in minor units." unitPriceMinor: Int "For buy_x_get_y: how many units a shopper buys to qualify — 1 to 1000." buyQty: Int "For buy_x_get_y: how many units the shopper gets — 1 to 1000." getQty: Int "For buy_x_get_y: whether the units the shopper gets are the same items bought, or items from the separate get product scope." getScope: PromotionBogoScope "For buy_x_get_y with a different get scope: the product lines the shopper may get." getProductScope: PromotionProductScopeInput "For buy_x_get_y or bundle_combo: the percent off the units the shopper gets, in parts per million — 500000 is 50 percent. Omitted on buy_x_get_y, they are free." benefitPercentPpm: Int "For bundle_combo: the amount off each bundle, in minor units — this or the benefit percent, never both." benefitAmountMinor: Int "For bundle_combo: what makes up one bundle — 2 to 8 slots, each a set of products or categories and how many units fill it." components: [PromotionBundleComponentInput!] "For free_gift: the id of the item variant given away. Not yet available." giftVariantId: ID "For free_gift: how many units are given — 1 to 1000. Not yet available." qty: Int } "The scope input — ≥1 axis with unique members; omit the field for unrestricted." input PromotionScopeInput { "The sales channels the promotion fires in. Omitted, every channel." channels: [OrderChannel!] "The ids of the locations the promotion fires at. Omitted, every location." logicalFacilityIds: [ID!] "The ids of the organizations the promotion fires in. Omitted, every organization in the group." organizationIds: [ID!] "The ids of the customer price groups the promotion applies to. Omitted, every shopper." priceGroupIds: [ID!] } "The product-scope input — ≥1 member (sane predicate, unique ids, included∩excluded refused); omit the field to match ALL product lines." input PromotionProductScopeInput { "A product rule that selects the matching lines — categories with their subcategories, tags, brands, seasons, divisions, a price bound, characteristic values." predicate: CollectionPredicateInput "The ids of products that always match, whatever the rule says." includedProductIds: [ID!] "The ids of products that never match, whatever the rule says — a product cannot be both included and excluded." excludedProductIds: [ID!] "The id of a collection whose members match." collectionId: ID } "The cart-conditions input — ≥1 member with unique ids." input PromotionCartConditionsInput { "The fewest matched units a cart must hold before the promotion fires — a whole number, at least 1. Optional." minQty: Int "The smallest matched subtotal a cart must reach before the promotion fires, in the minor units of the organization currency. Optional." minSubtotalMinor: Int "The ids of products that must be in the cart — any one of them suffices. Optional." requiredProductIds: [ID!] "The ids of categories that must be in the cart, each with its subcategories — any one of them suffices. Optional." requiredCategoryIds: [ID!] } "Create-input for a Promotion." input NewPromotionInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Promotion'; when supplied it must be non-blank." caption: String effect: PromotionEffectInput! scope: PromotionScopeInput productScope: PromotionProductScopeInput cartConditions: PromotionCartConditionsInput "The window start (UTC ISO-8601) — omitted ⇒ stamped NOW; a future instant is the advance-scheduling arm." startAt: String "The window end (half-open) — omitted ⇒ evergreen; must lie strictly after the (stamped) start." endAt: String "Resolution ordinal 0..1000000 — omitted ⇒ 100." priority: Int "Omitted ⇒ false; true refuses a combinableGroup." exclusive: Boolean combinableGroup: String maxDiscountPerLineMinor: Int maxDiscountPerOrderMinor: Int totalRedemptionsCap: Int "Omitted ⇒ false; true = fires only through an attached trigger Coupon." couponGated: Boolean code: String } "Edit-input for a Promotion. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved." input EditPromotionInput { caption: String code: String "Wholesale replacement — the deferred kinds refuse the same named gate." effect: PromotionEffectInput scope: PromotionScopeInput productScope: PromotionProductScopeInput cartConditions: PromotionCartConditionsInput startAt: String endAt: String priority: Int exclusive: Boolean combinableGroup: String maxDiscountPerLineMinor: Int maxDiscountPerOrderMinor: Int totalRedemptionsCap: Int couponGated: Boolean } "The canned flavors: trigger = the code unlocks a couponGated Promotion (the reduction lives there, source=promo position 3); discount = the code carries its own effect (source=coupon position 2 — before promotions; the one ratified cross-engine interaction: both coexist by default)." enum CouponFlavor { trigger discount } "The discount-flavor effect: kind ∈ {percent_off, amount_off} only. percent_off reduces each matched line by the ppm on its position-2 running subtotal; amount_off is ONE order-wide figure allocated largest-remainder across the matched lines. minSubtotalMinor gates on the Σ matched running subtotal (a miss = VALIDATION/COUPON_INELIGIBLE); productScope narrows the matched lines (absent = all product lines)." type CouponEffect { kind: PromotionEffectType! percentPpm: Int amountMinor: Int minSubtotalMinor: Int productScope: PromotionProductScope } "A Coupon — the code-gated entry to the discount engines: a normalized code (trim+uppercase, stored normalized-only, immutable at birth — re-code = a new coupon) that either unlocks a couponGated Promotion (trigger flavor — the reduction is source=promo at position 3) or carries its own simple effect (discount flavor — source=coupon at position 2, before promotions). Attach to an open order via applyOrderCoupon; redemption counts per order in the place transaction — a capped-out coupon refuses CONFLICT/COUPON_EXHAUSTED. Named deferrals: CouponBatch (unique single-use child codes) · per-customer caps." type Coupon { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like CP-… — stable for the record’s life." sysId: String! "The kind of record — always `Coupon` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Coupon parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The canned flavor — immutable at birth." flavor: CouponFlavor! code: String! "trigger flavor only: the unlocked couponGated Promotion (same-tenant + active at create) — immutable (re-point = a new coupon)." promotionId: ID "discount flavor only: the carried effect — wholesale-replace on edit (refused on trigger, the cross-flavor gate)." effect: CouponEffect "The half-open window start (kit-stamped NOW when omitted at create)." startAt: String! "The half-open window end — absent = evergreen; out-of-window redemption refuses CONFLICT/COUPON_EXPIRED." endAt: String "Total-use cap." totalUsesCap: Int } input CouponEffectInput { "What the coupon does — percent_off or amount_off; the other effect kinds are refused on a coupon." kind: PromotionEffectType! "For percent_off: the percent taken off each matched line, in parts per million — 100000 is 10 percent; above 0, up to 1000000." percentPpm: Int "For amount_off: one amount taken off the order and spread across the matched lines, in the minor units of the organization currency." amountMinor: Int "The smallest matched subtotal an order must reach before the coupon applies, in minor units. Optional." minSubtotalMinor: Int "The product lines the coupon applies to. Omitted, every product line." productScope: PromotionProductScopeInput } "Create-input for a Coupon." input NewCouponInput { "Optional: when omitted the per-type default applies — the normalized code (self-documenting — the code IS the identity); when supplied it must be non-blank." caption: String code: String! flavor: CouponFlavor! "Required iff trigger: the unlocked Promotion (tenant-scoped + active + couponGated — REF_STATE / VALIDATION/INVALID otherwise)." promotionId: ID "Required iff discount: the carried effect." effect: CouponEffectInput "The window start — omitted ⇒ stamped NOW." startAt: String "The window end (half-open) — omitted ⇒ evergreen." endAt: String totalUsesCap: Int } "Edit-input for a Coupon. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved." input EditCouponInput { caption: String "discount flavor only (VALIDATION/INVALID naming the field on trigger)." effect: CouponEffectInput startAt: String endAt: String totalUsesCap: Int } "The canned instrument types: gift_card = purchasable + reloadable-by-field + bearer · gift_certificate = fixed-amount, never reloadable · store_credit = refund/goodwill-born, customer-BOUND, never purchasable as a line." enum StoredValueInstrumentType { gift_card gift_certificate store_credit } "The canned ledger reasons: issue/reload/refund_reversal load value ON; redeem/expire draw value OFF; adjust/transfer are signed either way. expire/transfer have NO writer (registered-not-buildable — the /policy leg)." enum StoredValueEntryType { issue reload redeem refund_reversal adjust expire transfer } "ONE immutable stored-value balance fact: the signed amountMinor IS the balance direction; the parent instrument's balanceMinor was stamped in the same transaction. Corrections are NEW adjust entries, never edits." type StoredValueEntry { id: ID! "The parent StoredValueInstrument." parentId: ID! entryType: StoredValueEntryType! "The signed minor-unit amount — the sign is the balance direction (issue/reload/refund_reversal +, redeem −, adjust either)." amountMinor: Int! currency: String! "The reason text — required on adjust, optional narration otherwise." reason: String "The driving Order." orderId: ID "The driving Tender (the redeem/refund_reversal arms)." tenderId: ID "The driving Return (the store-credit mint + original-tender reversal arms)." returnId: ID caption: String! createdAt: String! } "A StoredValueInstrument — a balance-bearing money instrument: gift_card (purchasable, reloadable-by-field, bearer) · gift_certificate (fixed-amount) · store_credit (refund/goodwill-born, customer-BOUND, never purchasable as a line). Dual-birth: immediate active (the issue entry rides the create) or staged inactive printed stock (activated at sale via the Order line arm, or directly via activateStoredValueInstrument). Selling/reloading one is an Order line (untaxed — basis instrument_sale; engine-invisible); redeeming one is an applyTender step-5 internal tender; store credit from a return mints via refundReturn method=store_credit. Doom is gated by CONFLICT/BALANCE_OUTSTANDING while value remains (zero via reason-coded adjust first — no silent money destruction)." type StoredValueInstrument { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like SV-… — stable for the record’s life." sysId: String! "The kind of record — always `StoredValueInstrument` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive, depleted or doomed." status: String! "The parent org group; for a StoredValueInstrument parentId === rootId (group-scoped — any org in the group redeems it)." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The canned type — immutable at birth." instrumentType: StoredValueInstrumentType! "The normalized code (trim+uppercase; A–Z/0–9 start then A–Z/0–9/_/-, 4..64 — a money key needs collision room) — immutable at birth; burned at doom." code: String! "The reload law: true ⟺ a reloadable gift_card; forced false on certificate/credit (strict both ways)." reloadable: Boolean! "The cached ledger sum (minor units) — stamped in the same transaction as every StoredValueEntry; never negative; never directly editable (adjust/redeem/reload are the only balance surfaces)." balanceMinor: Int! "The instrument currency — the issuing org default stamped at birth." currency: String! "The inline customer binding." customer: OrderCustomer } "One page of the storedValueInstruments listing — the records + the opaque resume cursor." type StoredValueInstrumentPage { "The page's records." items: [StoredValueInstrument!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for the direct instrument lanes. Dual-birth by initialBalanceMinor: present = immediate active (the issue entry rides the create transaction; reason required — money is born); absent = staged inactive stock (code required — the plastic carries its number)." input NewStoredValueInstrumentInput { "Optional: when omitted the per-type default applies — the instrumentType + the normalized code; when supplied it must be non-blank." caption: String "The issuing org (in-tenant + active) — its defaultCurrency stamps the instrument." organizationId: ID! instrumentType: StoredValueInstrumentType! "The RAW code (1..64 pre-normalization) — required on the staged arm (printed stock carries its number); omitted on the immediate arm = system-minted." code: String "gift_card only; refused on certificate/credit (strict both ways)." reloadable: Boolean "Present = immediate-active birth loading this value (the issue entry rides the transaction); absent = staged inactive stock." initialBalanceMinor: Int "Required on store_credit; optional bearer-binding on gift instruments." customer: OrderCustomerInput "Required on the immediate-active arm." reason: String } "Edit-input for a StoredValueInstrument. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. instrumentType/code are immutable at birth; balanceMinor never edits (the ledger is the only balance surface — adjust/redeem/reload); reloadable edits on gift_card only (the cross-type gate names the field over the current record)." input EditStoredValueInstrumentInput { caption: String "gift_card only (VALIDATION/INVALID naming the field otherwise)." reloadable: Boolean "Replace the binding wholesale — a store_credit binding can be corrected, never cleared." customer: OrderCustomerInput } "A points to currency rate pair: directional by field — the earn rate reads \"earn points per perMinor of eligible spend\"; the redeem rate reads \"points convert to perMinor of discount value\". BigInt cross-multiply, floor once." type LoyaltyRate { points: Int! perMinor: Int! } "ONE category/product earn-multiplier row: lines whose product matches earn at multiplierPercent (100 = 1×, 200 = 2×); multiple matching rows take the MAX (never stack)." type LoyaltyEarnMultiplier { predicate: CollectionPredicate! multiplierPercent: Int! } "ONE time-boxed bonus-earn window: half-open [startAt, endAt), both bounds required; overlapping windows take the MAX." type LoyaltyBonusWindow { startAt: String! endAt: String! multiplierPercent: Int! } "ONE named tier: thresholdPoints is the qualification figure the future sweeper reads." type LoyaltyTier { name: String! thresholdPoints: Int! earnMultiplierPercent: Int! } "A LoyaltyProgram — the points engine's group-scoped rule master: members earn points on net merchandise spend (floor(base × earnRate.points ÷ earnRate.perMinor) — floor once at the order level over the final post-redemption discounted taxable bases, storedValue lines excluded) and redeem them as a pre-tax discount at the step-2 position 4. currency is explicit + immutable at birth. Earn multipliers compound multiplicatively across three families — tier × active bonus window × MAX — each family ≤ 8 rows. Org participation is the canned-pool selection (organizationIds absent = every org in the group). At most 8 active per org group. Doom is gated by non-doomed members (doom the members first); deactivate stays free. Tier assignment is a manual member edit v1; points expiry/transfer, redemption caps, ecom/non-sale loyalty and fraud velocity are the named deferrals." type LoyaltyProgram { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like LP-… — stable for the record’s life." sysId: String! "The kind of record — always `LoyaltyProgram` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a LoyaltyProgram parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The program earn/redeem currency — a platform-registry code inside the union of the group's organizations' allowed sets; explicit + immutable at birth." currency: String! "Earn `points` per `perMinor` of eligible spend." earnRate: LoyaltyRate! "`points` convert to `perMinor` of pre-tax discount value." redeemRate: LoyaltyRate! "Category/product earn multipliers — matching lines take the MAX row; compounds with tier × bonus." earnMultipliers: [LoyaltyEarnMultiplier!] "Time-boxed bonus-earn windows (≤ 8; both bounds required, half-open) — overlapping windows take the MAX; a program rule, deliberately NOT a promotion effect." bonusWindows: [LoyaltyBonusWindow!] "Named tiers (≤ 8; unique names) — config + benefit math ship v1; assignment is a manual member edit and auto-evaluation is the deferral." tiers: [LoyaltyTier!] "The canned-pool org selection — absent = every org in the group participates." organizationIds: [ID!] "The half-open window start (UTC ISO-8601; kit-stamped NOW when omitted at create) — immutable at birth (the history anchor)." startAt: String! "The half-open window end — absent = evergreen; [startAt, endAt) is an evaluation gate." endAt: String } "One page of the loyaltyPrograms listing — the records + the opaque resume cursor." type LoyaltyProgramPage { "The page's records." items: [LoyaltyProgram!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "The LoyaltyRate input twin." input LoyaltyRateInput { points: Int! perMinor: Int! } "The LoyaltyEarnMultiplier input twin — the predicate must be sane." input LoyaltyEarnMultiplierInput { "The product rule the multiplier applies to — at least one axis." predicate: CollectionPredicateInput! "The earn rate for matching products as a whole-number percent — 100 is the normal rate, 200 double; 1 to 10000." multiplierPercent: Int! } "The LoyaltyBonusWindow input twin — startAt strictly before endAt." input LoyaltyBonusWindowInput { "When the bonus window opens, as a UTC instant." startAt: String! "When the bonus window closes, as a UTC instant — after it opens." endAt: String! "The earn rate during the window as a whole-number percent — 100 is the normal rate, 200 double; 1 to 10000." multiplierPercent: Int! } "The LoyaltyTier input twin — names unique within the array." input LoyaltyTierInput { "What the tier is called." name: String! "The points a member needs to reach the tier — zero or more." thresholdPoints: Int! "The earn rate for members of the tier as a whole-number percent — 100 is the normal rate, 200 double; 1 to 10000." earnMultiplierPercent: Int! } "Create-input for a LoyaltyProgram." input NewLoyaltyProgramInput { "Optional: when omitted the per-type default applies — the phrase `loyalty program `; when supplied it must be non-blank." caption: String "Immutable at birth — the earn/redeem currency anchor; a platform-registry code inside the union of the group's organizations' allowed sets." currency: String! earnRate: LoyaltyRateInput! redeemRate: LoyaltyRateInput! earnMultipliers: [LoyaltyEarnMultiplierInput!] bonusWindows: [LoyaltyBonusWindowInput!] tiers: [LoyaltyTierInput!] "The canned-pool selection — absent = every org in the group." organizationIds: [ID!] "Omitted = kit-stamped NOW; immutable once born." startAt: String "Absent = evergreen; must lie strictly after the window start." endAt: String } "Edit-input for a LoyaltyProgram. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. currency and startAt are immutable at birth (the rate anchor + the history anchor); the resulting window must keep endAt strictly after the immutable startAt (the RC-h merged-edit law)." input EditLoyaltyProgramInput { caption: String earnRate: LoyaltyRateInput redeemRate: LoyaltyRateInput "Wholesale replace (the array-edit law)." earnMultipliers: [LoyaltyEarnMultiplierInput!] "Wholesale replace." bonusWindows: [LoyaltyBonusWindowInput!] "Wholesale replace — a renamed tier degrades assigned members to the base multiplier at evaluation." tiers: [LoyaltyTierInput!] "Wholesale replace of the canned pool." organizationIds: [ID!] endAt: String } "The member's inline customer identity." type LoyaltyCustomer { name: String "Required — the enrollment identity key (stored trim+lowercase-NORMALIZED)." email: String! phone: String } "The canned points-ledger reasons: earn/redeem_reversal load points ON; redeem/clawback/expire draw points OFF; adjust/transfer are signed either way. expire/transfer have NO writer (registered-not-buildable — the /policy leg)." enum LoyaltyPointsEntryType { earn redeem redeem_reversal adjust expire clawback transfer } "ONE per-line points share on an order/return-driven entry: the return-side clawback/restore arithmetic is exact per returned line, no pro-rata drift under multipliers." type LoyaltyEntryLineDetail { lineNo: Int! points: Int! } "ONE immutable points fact: the signed points figure IS the balance direction; the parent member's pointsBalance was stamped in the same transaction. Corrections are NEW adjust entries, never edits." type LoyaltyPointsEntry { id: ID! "The parent LoyaltyMember." parentId: ID! entryType: LoyaltyPointsEntryType! "The signed points figure — the sign is the balance direction (earn/redeem_reversal +, redeem/clawback/expire −, adjust either)." points: Int! "The reason text — required on adjust, optional narration otherwise." reason: String "The driving Order." orderId: ID "The driving Return (the return clawback/restore arms; return-driven entries carry both refs)." returnId: ID "The per-line split." lines: [LoyaltyEntryLineDetail!] caption: String! createdAt: String! } "A LoyaltyMember — ONE enrollment of ONE customer identity into ONE LoyaltyProgram (parentId = the program). Enrollment requires identity: the inline customer block with email required (trim+lowercase-normalized — anonymous/walk-in cannot earn); the (program × normalized email) uniq marker reserves IN the create transaction — a live holder refuses CONFLICT/MEMBER_EXISTS naming the holder (the email is never echoed), while a doomed member's identity re-enrolls fresh. pointsBalance is the cached LoyaltyPointsEntry ledger sum (PK=loyledger#), stamped in the same transaction as every entry, with every draw conditioned balance ≥ draw — points never go negative (CONFLICT/INSUFFICIENT_POINTS names live figures) and cap at 1000000000. Earn/redeem ride the Order place transaction; cancel claws back IN the cancel transaction (spent-below-earned refuses the cancel); returns claw earn + restore redemption exactly off the entries' per-line details in the refund flip transaction. adjustLoyaltyPoints is the only manual points surface. Doom is gated by CONFLICT/BALANCE_OUTSTANDING while points remain (zero via reason-coded adjust first); tier assignment is a manual edit v1." type LoyaltyMember { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like LM-… — stable for the record’s life." sysId: String! "The kind of record — always `LoyaltyMember` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent LoyaltyProgram — NOT the family root; rootId anchors the org group." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The enrollment identity." customer: LoyaltyCustomer! "The cached ledger sum — stamped in the same transaction as every LoyaltyPointsEntry; never negative; never directly editable (adjust/earn/redeem are the only points surfaces)." pointsBalance: Int! "The assigned tier name." currentTier: String "The assigned CustomerPriceGroup. / bind groups per their locks; the Consumer binding supersedes." priceGroupId: ID "The Consumer identity bridge. The coherence gate rides it: an order naming both a member and a consumer refuses when this bridge points at a different consumer; a consumer-named order resolves pricing from the consumer binding — this member carrier stands only on member-named-without-consumer orders." consumerId: ID } "One page of the loyaltyMembers listing — the records + the opaque resume cursor." type LoyaltyMemberPage { "The page's records." items: [LoyaltyMember!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "The LoyaltyCustomer input twin." input LoyaltyCustomerInput { name: String email: String! phone: String } "Enroll-input for a LoyaltyMember." input NewLoyaltyMemberInput { "Optional: when omitted the per-type default applies — the phrase `member `; when supplied it must be non-blank." caption: String "The LoyaltyProgram to enroll into — in-tenant + active." programId: ID! "The identity block — email required." customer: LoyaltyCustomerInput! "Optional initial tier name — must name a program tier." currentTier: String "Optional CustomerPriceGroup assignment." priceGroupId: ID "Optional Consumer bridge." consumerId: ID } "Edit-input for a LoyaltyMember. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. An email change migrates the (program × email) identity marker atomically with the update (people change emails — ≠ the immutable coupon/instrument codes); the new email held by ANY member — doomed included — refuses CONFLICT/MEMBER_EXISTS (an edit admits NO takeover; a doomed holder's identity re-enters via enroll). currentTier must name a program tier (≤ 60 chars); pointsBalance never edits (the ledger is the only points surface)." input EditLoyaltyMemberInput { caption: String "Replace the identity wholesale — an email change migrates the uniq marker atomically." customer: LoyaltyCustomerInput "The v1 manual tier assignment." currentTier: String "Re-assign the CustomerPriceGroup." priceGroupId: ID "Set/re-point the Consumer bridge." consumerId: ID } "A CustomerPriceGroup — the customer-classification / pricing-ELIGIBILITY axis (retail tiers: standard · member · vip · wholesale_lite — merchant-defined, the registry's roster is illustrative). An eligibility KEY, NOT a price store: the group carries NO rate fields — its benefits are expressed exclusively promotions scoped to it; the priceListId carrier is live while the group itself stays rate-field-FREE (the anti-price-plane guard's letter: the plane is the PriceList's, the group is the eligibility KEY + the carrier). The axis law: CustomerPriceGroup = pricing eligibility · Segment = marketing audience · CorporateCustomer = B2B identity — three distinct axes a customer may carry independently. Assignment v1 rides the LoyaltyMember carrier. Resolution degrades: anonymous / no member / no group / group non-ACTIVE-or-deselected ⇒ no eligibility — a lapsed group never kills a cart. Org participation is the canned-pool selection (≤ 32; absent = every org). At most 32 active per org group. Doom is gated by non-doomed LoyaltyMembers carrying the group; deactivate stays free (a paused group's scoped promotions simply stop matching). NO code/identity — no uniq marker (nothing bearer-resolvable rides a group)." type CustomerPriceGroup { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like PG-… — stable for the record’s life." sysId: String! "The kind of record — always `CustomerPriceGroup` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a CustomerPriceGroup parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The canned-pool org selection — absent = every org in the group participates." organizationIds: [ID!] "The group-base-pricing carrier: an unscoped PriceList whose entries feed the group plane at capture. Gated in-tenant + active + unscoped at set (a contract list on a tier would leak one customer's negotiated prices — CONFLICT/REF_STATE naming the scope). Optional + editable; a list dying later degrades at capture." priceListId: ID } "One page of the customerPriceGroups listing — the records + the opaque resume cursor." type CustomerPriceGroupPage { "The page's records." items: [CustomerPriceGroup!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a CustomerPriceGroup. Deliberately rate-field-FREE (the anti-price-plane guard — benefits ride group-scoped promotions; the plane rides the carried PriceList)." input NewCustomerPriceGroupInput { "Optional: when omitted the per-type default applies — none — the divergence: the caption IS the tier name, and an omitted caption refuses VALIDATION/INVALID at the boundary instead of defaulting; when supplied it must be non-blank." caption: String "The canned-pool selection — absent = every org in the group." organizationIds: [ID!] "The group-base-pricing carrier." priceListId: ID } "Edit-input for a CustomerPriceGroup. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved." input EditCustomerPriceGroupInput { "The tier name." caption: String "Wholesale replace of the canned pool." organizationIds: [ID!] "The carrier." priceListId: ID } "The canned step-move kinds." enum MarkdownMoveKind { percent_off amount_off to_fixed } "One cadence step — the stored twin of MarkdownStepInput." type MarkdownStep { startAt: String! move: MarkdownMove! endAt: String } "One step's move — kind + the matching branch field (the discriminated union flattened for the wire)." type MarkdownMove { kind: MarkdownMoveKind! percentPpm: Int amount: MoneyEntry } "A MarkdownPlan — the markdown cadence: a product scope + ≤ 8 ordered effective-dated steps (percent_off ppm-EXCLUSIVE · amount_off · to_fixed; startAt strictly increasing; the last step MAY carry endAt = the clearance-LAPSE arm, absent = the standing far-future window). the write rule: the schedule transition pre-computes the whole price ladder per targeted InventoryItem (base₀ = the record covering step-1's startAt, then each prior result — half-away rounding, every result > 0) and writes every future-dated SalePrice up-front through the existing per-record create (splice-gated, evented, plan/step-stamped; the first window per II trims the covering standing record; caps: ≤ 250 items · ≤ 500 writes). The prices then move by dated-window resolution alone — the scheduler fires only the plan's own status flips. The live splice law protects the cadence (an external overlapping write refuses CONFLICT/PRICE_WINDOW_OVERLAP naming the plan's records). Cancel dooms the not-yet-effective plan-stamped records only (effective windows are permanent price history; the step-1 trim is NOT restored). A markdown moves the step-1 base — promotions/loyalty/employee compose on top unchanged. Update is draft-only (amend-after-schedule = cancel + author anew). At most 32 open (draft+scheduled+active) per org group. Org participation is the canned-pool selection (≤ 32; absent = every org); logicalFacilityIds (≤ 32) restricts within the selected orgs' facilities (absent = all of them). NOT searchable (the document non-joiner stance — this born-paginated list is the discovery read); NO uniq marker." type MarkdownPlan { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like MD-… — stable for the record’s life." sysId: String! "The kind of record — always `MarkdownPlan` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of draft, scheduled, active, completed or cancelled." status: String! "The parent org group; for a MarkdownPlan parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "What the cadence re-prices. Required with ≥1 member — an absent markdown scope would read 'reprice the whole catalog' (the anti-sitewide divergence from promotions)." productScope: PromotionProductScope! "The canned-pool org selection — absent = every org in the group participates." organizationIds: [ID!] "The explicit LF restriction — absent = all LFs of the selected orgs." logicalFacilityIds: [ID!] "The plan currency — every scoped II's schedule currency must equal it at schedule time, and every money-bearing move carries it." currency: String! "The ordered cadence: startAt strictly increasing, ALL future at schedule time; intermediate windows chain to the next step's startAt; the last window ends at its explicit endAt (the lapse arm) or the standing 9999-12-31T00:00:00.000Z." steps: [MarkdownStep!]! "System-maintained: schedule stamps steps[0].startAt; the activate firing re-stamps steps[last].startAt; terminal statuses disarm the lane." nextDueAt: String "System-stamped at schedule: the resolved fan-out targets — the cancel doom-walk's bounded custody." resolvedInventoryItemIds: [ID!] } "One page of the markdownPlans listing — the records + the opaque resume cursor." type MarkdownPlanPage { "The page's records." items: [MarkdownPlan!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "One cadence step: an effective instant + a move. endAt is legal on the last step only (the clearance-LAPSE arm); intermediate windows chain to the next step's startAt." input MarkdownStepInput { "The step's effective instant (UTC ISO-8601) — strictly increasing across the plan; ALL future at schedule time." startAt: String! move: MarkdownMoveInput! "Last step only: the explicit window end (strictly after its own startAt) = the clearance-LAPSE arm; absent = the standing far-future window." endAt: String } "One step's move: percent_off carries percentPpm (exclusive (0, 1000000) — a 100% move is not a price); amount_off/to_fixed carry amount (the plan currency). Exactly the matching branch field must be supplied — the boundary refuses mismatches." input MarkdownMoveInput { "What the step does to the price — percent_off, amount_off or to_fixed; exactly that kind payload rides with it." kind: MarkdownMoveKind! "percent_off only: parts-per-million off the ladder price." percentPpm: Int "amount_off/to_fixed only: the money figure (must carry the plan currency)." amount: MoneyEntryInput } "Create-input for a MarkdownPlan. The all-future/base/splice/cap gates are the schedule transition's — a draft may be authored ahead of its own validity." input NewMarkdownPlanInput { "Optional: when omitted the per-type default applies — none — the divergence: a cadence has no natural default name, so an omitted caption refuses VALIDATION/INVALID at the boundary instead of defaulting; when supplied it must be non-blank." caption: String "The scope — required with ≥1 member." productScope: PromotionProductScopeInput! "The canned-pool selection — absent = every org in the group." organizationIds: [ID!] "The explicit LF restriction — absent = all LFs of the selected orgs." logicalFacilityIds: [ID!] "The plan currency — a platform-registry code inside the union of the group's organizations' allowed sets; every money-bearing move must carry it." currency: String! "1–8 ordered steps — startAt strictly increasing; endAt on the last step only." steps: [MarkdownStepInput!]! } "Edit-input for a MarkdownPlan. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. Draft-only: a scheduled/active plan refuses CONFLICT/REF_STATE naming the status (amend-after-schedule = cancel + author anew); terminals refuse CONFLICT/IMMUTABLE. The currency⇄moves law re-asserts on the merged plan (either half may arrive alone)." input EditMarkdownPlanInput { "The plan name." caption: String "Wholesale replace of the scope." productScope: PromotionProductScopeInput "Wholesale replace of the canned pool." organizationIds: [ID!] "Wholesale replace of the LF restriction." logicalFacilityIds: [ID!] "The plan currency — re-asserted against the (merged) steps; a platform-registry code inside the union of the group's organizations' allowed sets." currency: String "Wholesale replace of the cadence." steps: [MarkdownStepInput!] } "The canned commission rate types." enum CommissionRateType { percent_net percent_margin fixed_per_unit } "The commission earning formula: percent_net/percent_margin carry valuePpm (inclusive (0, 1000000]); fixed_per_unit carries amount (per unit, scale-4 quantity arithmetic; a currency-mismatched fixed rate is NON-matching for the line).)" type CommissionRate { type: CommissionRateType! valuePpm: Int amount: MoneyEntry } "The canned commission-ledger reasons: earn (+, minted at place) · clawback (−, the cancel/return reversal). NO adjust arm v1 (reports-only — a mis-configured rate is fixed forward on the config)." enum CommissionEntryType { earn clawback } "The entry classes: attributed = the line-slot splits · manager_on_all = the flagged-config holder additive (a manager who also rang the sale earns both — separate entries; a claw reverses per class)." enum CommissionEntryClass { attributed manager_on_all } "ONE per-line commission share." type CommissionEntryLineDetail { lineNo: Int! basisMinor: Int! splitWeightPpm: Int amountMinor: Int! } "ONE immutable commission fact: the signed minor-unit figure IS the payable direction; ONE entry per (agent × class × winning config × order). Corrections are NEW clawback entries, never edits; the configId is immutable provenance (history outlives a doomed config)." type CommissionEntry { id: ID! "The parent agent — rows ride commledger#." parentId: ID! entryType: CommissionEntryType! entryClass: CommissionEntryClass! "The signed payable figure (minor units — earn +, clawback −)." amountMinor: Int! currency: String! "The winning config." configId: ID "The driving Order." orderId: ID! "The driving Return (the return-clawback arm; return-driven entries carry both refs)." returnId: ID "The per-line split." lines: [CommissionEntryLineDetail!] caption: String! createdAt: String! } "One commissionEntryList page." type CommissionEntryPage { items: [CommissionEntry!]! "Resume cursor — absent on the last page (pass back verbatim as nextToken)." nextToken: String } "One payout-report row: the signed Σ per (subject × currency) over entries createdAt ∈ [from, to); late claws land in their own period as negative rows." type CommissionPayoutRow { "The agent User (commission report) or the Affiliate (affiliate report) the row aggregates." subjectId: ID! currency: String! earnedMinor: Int! clawedBackMinor: Int! "earnedMinor − clawedBackMinor — the signed payable." payableMinor: Int! entryCount: Int! } "One payout-report page." type CommissionPayoutRowPage { items: [CommissionPayoutRow!]! nextToken: String } "A CommissionConfig — ONE cell of the multi-axis commission matrix: the axes scope where it applies (each singular, absent = all, immutable at birth — re-target = create + doom): Agent (a Role the agent holds at the sale's org ⊕ a specific User) · Merchandise (Division ⊕ Category-SUBTREE ⊕ Style — a style outranks any category depth) · Location (Organization ⊕ LogicalFacility — **the Location axis IS the org scoping; this construct is NOT org-selected**) · Channel. The sparse parameters (≥1 required): rate (percent_net = the line's final post-position-5 discounted net · percent_margin = max(net − landed COGS, 0), COGS-absent ⇒ 0 · fixed_per_unit — a currency-mismatched fixed rate is NON-matching) + enabled (false at the winning cell suppresses the entry). At place, per (line × attributed agent): candidates = active cells matching every axis; the winner per parameter is the most specific (set-axis count, tie-break Agent ≻ Merchandise ≻ Location ≻ Channel). appliesToAllSalesInScope=true + Agent=Role is the manager-on-all override: every active holder of the Role at the sale's org earns additively (entryClass manager_on_all; bounded ≤ 32 holders — the write refuses over, the place mint skips over [the sale never blocks]). the collision rule: an active same-normalized-tuple sibling with an intersecting SET-parameter set refuses CONFLICT/IDENTITY_TAKEN naming the holder(s) + the intersection (create, param-GROWING edits, reactivate; same-tuple disjoint-parameter cells are legal — the flag rides IN the tuple, so flagged/unflagged never compete). At most 128 active per org group (the per-place resolution bound). NOT searchable (the config non-joiner stance — configs are axis-addressed, not name-found); NO uniq marker." type CommissionConfig { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like CG-… — stable for the record’s life." sysId: String! "The kind of record — always `CommissionConfig` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a CommissionConfig parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The manager-on-all flag: every active holder earns on every in-scope line, additively." appliesToAllSalesInScope: Boolean "Agent axis. Singular with agentUserId; absent both = all agents." agentRoleId: ID "Agent axis (User arm — the most specific agent level). Singular with agentRoleId." agentUserId: ID "Merchandise axis (Division arm). Singular with categoryId/styleId; absent all three = all merchandise." divisionId: ID "Merchandise axis (Category arm — subtree semantics; deeper beats shallower)." categoryId: ID "Merchandise axis (Style arm — the per-style override; outranks ANY category depth)." styleId: ID "Location axis (Organization arm) — THE org scoping. Singular with logicalFacilityId." organizationId: ID "Location axis (LogicalFacility arm — the most specific location level)." logicalFacilityId: ID "Channel axis — the live selling channels; absent = both." channel: OrderChannel "The earning formula (sparse — the most-specific SET cell wins the parameter; unresolved anywhere = NO entry, commission is config-opt-in)." rate: CommissionRate "The per-cell master switch (sparse) — false at the winning cell suppresses the entry." enabled: Boolean } "One page of the commissionConfigs listing — the records + the opaque resume cursor." type CommissionConfigPage { "The page's records." items: [CommissionConfig!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "The commission rate input — exactly the matching branch field must be supplied." input CommissionRateInput { "The rate kind — a percent of the discounted net, a percent of the margin above landed cost, or a fixed amount per unit; exactly that kind payload rides with it." type: CommissionRateType! "For the two percent kinds: the commission in parts per million — 50000 is 5 percent; above 0, up to 1000000." valuePpm: Int "For the fixed-per-unit kind: the commission per unit sold as a money amount with its currency — a line in another currency earns nothing." amount: MoneyEntryInput } "Create-input for a CommissionConfig." input NewCommissionConfigInput { "Optional: when omitted the per-type default applies — a readable axis summary; when supplied it must be non-blank." caption: String "The manager-on-all flag — literal true; requires agentRoleId (without agentUserId)." appliesToAllSalesInScope: Boolean "Agent axis (Role arm)." agentRoleId: ID "Agent axis (User arm)." agentUserId: ID "Merchandise axis (Division arm)." divisionId: ID "Merchandise axis (Category arm — subtree)." categoryId: ID "Merchandise axis (Style arm)." styleId: ID "Location axis (Organization arm)." organizationId: ID "Location axis (LogicalFacility arm)." logicalFacilityId: ID "Channel axis." channel: OrderChannel "The earning formula (≥1 of rate/enabled required — the substance rule)." rate: CommissionRateInput "The per-cell switch." enabled: Boolean } "Edit-input for a CommissionConfig. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. Params-only: a param-GROWING edit re-runs the tuple-collision gate over the merged set; the manager-holder bound re-asserts." input EditCommissionConfigInput { "The cell name." caption: String "The earning formula (a growing edit re-runs the collision gate)." rate: CommissionRateInput "The per-cell switch." enabled: Boolean } "One referral code: the normalized code + the optional informational coupon link (the discount rides the coupon machinery independently — a dead coupon never breaks attribution)." type AffiliateCode { code: String! couponId: ID } "The canned affiliate-ledger reasons: earn (+, ONE per placed attributed order) · clawback (−, the cancel/return reversal)." enum AffiliateEntryType { earn clawback } "ONE immutable affiliate fact: order-level (no per-line detail v1 — the product-scope predicate is a named deferral); basisMinor + ratePpm stamp the earn (self-auditing — the affiliate's rate is editable, the entry's snapshot is not)." type AffiliateEntry { id: ID! "The parent Affiliate — rows ride affledger#." parentId: ID! entryType: AffiliateEntryType! "The signed payable figure (minor units — earn +, clawback −)." amountMinor: Int! currency: String! "The order net the earn computed on (stamped on earn — self-auditing arithmetic)." basisMinor: Int "The rate snapshot (ppm — stamped on earn)." ratePpm: Int orderId: ID! returnId: ID caption: String! createdAt: String! } "One affiliateEntryList page." type AffiliateEntryPage { items: [AffiliateEntry!]! nextToken: String } "An Affiliate — the merchant's affiliate/influencer promoter, rewarded for driving retail sales. Org participation is the canned-pool selection (≤ 32; absent = every org). The referral and coupon namespaces are independent: couponId is an informational link (validated live, same-group) — registering the same string in both, linked, is the influencer pattern (use code for 10% off — the coupon discounts, the referral attributes). Cancel claws in full; returns claw pro-rata with the cumulative floor (the arm class); payouts are period reports. Searchable (the merchant-curated book is name-found — the law); at most 128 active per group." type Affiliate { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like AF-… — stable for the record’s life." sysId: String! "The kind of record — always `Affiliate` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for an Affiliate parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The canned-pool org selection — absent = every org in the group participates." organizationIds: [ID!] "The owned referral codes (≤ 8; stored normalized; each marker-reserved). Absent/empty = a code-less (idle) affiliate — legal." codes: [AffiliateCode!] "The flat earning rate" ratePpm: Int "The shopper link. Optional — a link, never an identity merge; flows byte-for-byte unchanged." consumerId: ID "The public influencer handle (trimmed 1..64). NOT unique." handle: String "The influencer bio (trimmed ≤2000)." bio: String "The social profile links (≤8 trimmed url-ish strings; wholesale-replace on edit — the codes-array class)." socialLinks: [String!] "The self-reported audience figure (≥0 — informational; verification)." audienceSize: Int "The content-niche descriptors." nicheTags: [String!] } "One page of the affiliates listing — the records + the opaque resume cursor." type AffiliatePage { "The page's records." items: [Affiliate!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } input AffiliateCodeInput { "The referral code shoppers enter — stored in capitals; a code another promoter already holds is refused." code: String! "The id of a coupon this code applies at checkout. Optional; validated live within the same group." couponId: ID } "Create-input for an Affiliate." input NewAffiliateInput { "Optional: when omitted the per-type default applies — none — the divergence: an external promoter has no derivable default name, so an omitted caption refuses VALIDATION/INVALID at the boundary instead of defaulting; when supplied it must be non-blank." caption: String "The canned-pool selection — absent = every org in the group." organizationIds: [ID!] codes: [AffiliateCodeInput!] "The flat order-net rate (ppm) — absent = tracking-only." ratePpm: Int "The shopper link — live-gated (in-tenant + NOT-doomed Consumer)." consumerId: ID "The public handle." handle: String "≤2000." bio: String "≤8 url-ish strings." socialLinks: [String!] "≥0 (informational)." audienceSize: Int "≤16 plain strings (NOT Tag refs)." nicheTags: [String!] } "Edit-input for a Affiliate. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved — except codes: a supplied codes list replaces wholesale." input EditAffiliateInput { "The promoter name." caption: String "Wholesale replace of the canned pool." organizationIds: [ID!] "Wholesale replacement — the marker migrate (empty array = release all)." codes: [AffiliateCodeInput!] "The flat order-net rate (ppm)." ratePpm: Int "The shopper link — live-gated at set." consumerId: ID handle: String bio: String "Wholesale replace." socialLinks: [String!] audienceSize: Int "Wholesale replace." nicheTags: [String!] } "A CorporateCustomer — WHO the merchant sells TO on business terms: the shared B2B customer master, the sell-side mirror of the Vendor supplier master. Group-parented + deliberately thin (caption = the trading name · legalName · taxId · code): contact data + buyers ride the Contact/ContactAssignment family (a CorporateCustomer is an assignment host — buyers are purchasing-buyer-role assignments); the org-specific commercial payload (terms · credit · price group · addresses) IS the OrgCustomer relationship (an active OrgCustomer = the B2B selling enablement — the OrgVendor mirror). Searchable (a customer book you can't search by name fails its purpose — the law). Doom is blocked by NON-doomed OrgCustomer selections and live hosted ContactAssignments; open orders naming the customer never block — order refs re-validate fresh at place. NOT an identity class (buyer auth/portal is); the customer hierarchy (parent company) is a named deferral." type CorporateCustomer { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like CU-… — stable for the record’s life." sysId: String! "The kind of record — always `CorporateCustomer` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a CorporateCustomer parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The registered legal name; optional + editable." legalName: String "The business tax identifier — a plain bounded string; jurisdictional format validation is deliberately later. Optional + editable." taxId: String "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the corporateCustomers listing — the records + the opaque resume cursor." type CorporateCustomerPage { "The page's records." items: [CorporateCustomer!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "Create-input for a CorporateCustomer." input NewCorporateCustomerInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Corporate Customer'; when supplied it must be non-blank." caption: String legalName: String taxId: String code: String } "Edit-input for a CorporateCustomer. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved." input EditCorporateCustomerInput { caption: String legalName: String taxId: String code: String } "The canned AR movement kinds: charge (+, the on_account tender + the DebitNote settle) · payment (−, arPay) · credit_memo (−, the Return original-tender arms + the CreditNote settle) · writeoff (−, arWriteoff — bad debt, reason required) · finance_charge." enum ArEntryType { charge payment credit_memo writeoff finance_charge } type ArEntry { id: ID! "The parent OrgCustomer (the house account — rows ride arledger#)." parentId: ID! entryType: ArEntryType! "The signed debt movement (minor units — charge +, payment/credit_memo/writeoff −)." amountMinor: Int! "Always the enablement's arCurrency." currency: String! "When this debt falls due — required on charge/finance_charge (stamped at post from the enablement's paymentTerms: net variants = post + 30 days), absent on reducing kinds (the aging coordinate rides charges only)." dueAt: String "Required on writeoff; optional narration otherwise (a cheque reference)." reason: String "The driving Order." orderId: ID "The driving Tender (the charge + refund-reversal arms)." tenderId: ID "The driving Return (the original-tender credit_memo arm)." returnId: ID "The settled CreditNote." creditNoteId: ID "The settled DebitNote (the AR lane)." debitNoteId: ID caption: String! createdAt: String! } "One arLedger page." type ArEntryPage { items: [ArEntry!]! "Resume cursor — absent on the last page (pass back verbatim as nextToken)." nextToken: String } "One arAging bucket row." type ArAgingBucket { "The bucket token (the AR_AGING_BUCKETS roster)." bucket: String! "Open charges landing in this bucket (the frontier head counts at its cached partial)." count: Int! "Σ outstanding minor units in this bucket." totalMinor: Int! } "The arAging report." type ArAgingReport { orgCustomerId: ID! "The report instant (server-stamped UTC ISO-8601 — the raw-UTC day-math anchor)." asOf: String! "The enablement's AR currency — absent when no AR history exists." arCurrency: String "The cached balance (Σ buckets == this — the two-way derivation)." arBalanceMinor: Int! "The 5 fixed buckets, roster order (zero rows included — a report row is a coordinate, not a fact)." buckets: [ArAgingBucket!]! } "An OrgCustomer — the per-org selling enablement of a group CorporateCustomer, the sell-side mirror of the OrgVendor: an active OrgCustomer IS the B2B selling enablement (no B2B terms without one). Parent = the organization (not the family root); the selection IS the (org × corporateCustomer) edge — ≤1 live per pair via the uniq pair marker minted IN the create transaction. Terms payload: accountNumber · canned paymentTerms · creditLimit/orderMinimum house Money on the sell-side currency rule · the customerPriceGroupId carrier · billToContactId/shipToContactId (non-doomed + a live ContactAssignment on this customer's host — sell-side counterparty addresses need host-membership integrity, the disclosed OrgVendor divergence). Deactivate free (selling paused); doom structurally unblocked except live holder ExemptionCertificates. The priceListId carrier is live. MOQ/case enforcement is." type OrgCustomer { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like EC-… — stable for the record’s life." sysId: String! "The kind of record — always `OrgCustomer` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent Organization; for an OrgCustomer parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The selected group CorporateCustomer — set at creation, immutable thereafter." corporateCustomerId: ID! "Our account/reference number in the customer'S AP system; optional + editable." accountNumber: String "The canned payment terms; a non-canned token is VALIDATION/INVALID. NO free-text twin. Optional + editable." paymentTerms: String "The credit limit. House Money on the sell-side currency law: must match the org's defaultCurrency at set. Optional + editable." creditLimit: MoneyEntry "The order minimum. Same currency law. Optional + editable." orderMinimum: MoneyEntry "The CustomerPriceGroup carrier. Optional + editable." customerPriceGroupId: ID "The PriceList carrier: the contract plane feed — a cc-named order resolves its step-1 base from this list first. Gated in-tenant + active at set; a scoped (contract) list must name this OrgCustomer (CONFLICT/REF_STATE naming the scope holder). Optional + editable; a list dying later degrades at capture." priceListId: ID "The default bill-to Contact — non-doomed + a live assignment on this customer's host. Optional + editable." billToContactId: ID "The default ship-to Contact — the same host-membership gate. Optional + editable." shipToContactId: ID "Optional mutable merchant reference code; uniqueness NOT enforced." code: String "The cached AR ledger sum in minor units. System-maintained: read-only, refused on input (the commissionAgentUserIds custody class — the New/Edit inputs exclude it BY shape). Absent ⇒ 0, no AR history yet." arBalanceMinor: Int "The AR currency — system-stamped at the first AREntry, immutable thereafter: every subsequent AR act gates against it, so an org defaultCurrency flip can never blend the cache. Read-only, refused on input." arCurrency: String } "One page of the orgCustomers listing — the records + the opaque resume cursor." type OrgCustomerPage { "The page's records." items: [OrgCustomer!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "Create-input for an OrgCustomer. Every terms field is optional (the enablement stays creatable thin); creditLimit/orderMinimum must match the org's defaultCurrency (an org with NO defaultCurrency cannot store OrgCustomer money — CONFLICT/REF_STATE naming the absence, the order-create precedent); customerPriceGroupId gates in-tenant + active; priceListId gates in-tenant + active + the scope law; billTo/shipTo gate non-doomed + host-membership. the AR custody fields (arBalanceMinor/arCurrency) are system-maintained and NOT creatable." input NewOrgCustomerInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Org Customer'; when supplied it must be non-blank." caption: String "The parent Organization id — rides the header." organizationId: ID! "The group CorporateCustomer this enablement names — immutable after birth." corporateCustomerId: ID! accountNumber: String "The canned payment-terms token (net-30 · 2-10-net-30 · cod · prepaid)." paymentTerms: String "Must match the org's defaultCurrency." creditLimit: MoneyEntryInput "Same currency law." orderMinimum: MoneyEntryInput customerPriceGroupId: ID "The contract/book carrier." priceListId: ID billToContactId: ID shipToContactId: ID code: String } "Edit-input for a OrgCustomer. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. corporateCustomerId is NOT editable, nor is the parent-org ref (the header). The full terms payload is editable; the carrier/pointer gates re-run at each set; a supplied money field re-gates against the org's live defaultCurrency (the sell-side currency law)." input EditOrgCustomerInput { caption: String code: String accountNumber: String "The canned payment-terms token (net-30 · 2-10-net-30 · cod · prepaid)." paymentTerms: String creditLimit: MoneyEntryInput orderMinimum: MoneyEntryInput customerPriceGroupId: ID "The contract/book carrier." priceListId: ID billToContactId: ID shipToContactId: ID } "A PriceList — a named alternate base-price plane (a 'price book'): the pipeline STEP-1 base for eligible customers, resolved at line capture ContractPrice → assigned PriceList → SalePrice and snapshotted immutable at capture. ≠ step-2 discounts (promos/coupons/loyalty/employee compute OFF the captured base); ≠ markdowns. The contract scope: orgCustomerId? — the lock's ContractPrice IS a PriceList scoped to ONE OrgCustomer, NOT a third construct: set at create, immutable thereafter (the Edit shape excludes it — author a new list); a scoped list requires both window bounds. The effective window [startAt, endAt) is half-open and optional-per-side on an unscoped list (absent = boundless); non-ACTIVE / out-of-window / org-unselected ⇒ the whole plane falls through silently at capture. Entries are child PriceListEntry dated windows (≤ 500 live per list); carrier law: a scoped list may be carried only by its scoped OrgCustomer's priceListId, a CustomerPriceGroup carries unscoped lists only. Org participation is the canned-pool selection (≤ 32; absent = every org); at most 32 active per org group (the create/reactivate gate). Searchable (the book law — the Promotion/LP/CPG/Affiliate operational-master class). Doom ← non-doomed OrgCustomer/CustomerPriceGroup carriers (the third carrier-gated doom family); its OWN entries never block (they die with the plane at purge). NO uniq marker (captions are non-unique; nothing bearer-resolvable)." type PriceList { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like PB-… — stable for the record’s life." sysId: String! "The kind of record — always `PriceList` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a PriceList parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The canned-pool org selection — absent = every org in the group; an org outside the pool makes the plane fall through at capture." organizationIds: [ID!] "The effective-window start (inclusive; UTC ISO-8601) — absent = boundless below. Editable (a term renegotiation is an ordinary revision — the entries are the immutable price facts); required on a scoped (contract) list." startAt: String "The effective-window end (exclusive; UTC ISO-8601) — absent = boundless above. Editable; required on a scoped list (the contract term)." endAt: String "The contract scope: the ONE OrgCustomer this list is negotiated for. Set at create, immutable; absent = a general (assignable) list." orgCustomerId: ID } "One page of the priceLists listing — the records + the opaque resume cursor." type PriceListPage { "The page's records." items: [PriceList!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a PriceList." input NewPriceListInput { "Optional: when omitted the per-type default applies — none — the CustomerPriceGroup divergence: the caption IS the book name, and an omitted caption refuses VALIDATION/INVALID at the boundary instead of defaulting; when supplied it must be non-blank." caption: String "The canned-pool selection — absent = every org in the group." organizationIds: [ID!] "The effective-window start (inclusive) — required with endAt on a scoped list (the contract term)." startAt: String "The effective-window end (exclusive)." endAt: String "The contract scope — the ONE OrgCustomer this list is negotiated for (in-tenant + active; immutable after birth). Absent = a general list." orgCustomerId: ID } "Edit-input for a PriceList. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. orgCustomerId is NOT editable; window edits re-run the pairwise law at the boundary and the merged-doc cross-check kit-side (either half alone re-validates against the stored other — a scoped list can never shed its term)." input EditPriceListInput { "The book name." caption: String "Wholesale replace of the canned pool." organizationIds: [ID!] "The effective-window start — the window/scope law re-runs on the merged doc." startAt: String "The effective-window end — same law." endAt: String } "The single-axis target kinds." enum PriceListEntryTargetKind { variant category brand division } "The entry-value kinds." enum PriceListEntryValueKind { fixed percent_off_rrp cost_plus } "The single-axis merch target: kind selects the arm; exactly that arm's ref is present. category matches the subtree rooted at the target." type PriceListEntryTarget { kind: PriceListEntryTargetKind! "variant: the exact sellable item." variantId: ID "category: the subtree root (deepest matching node wins within a list)." categoryId: ID "brand: the style's brand." brandId: ID "division: the merchandise division (derived from the category roots)." divisionId: ID } "The entry value: fixed (a house MoneyEntry) · percent_off_rrp (percentPpm, exclusive (0,1000000) — 100% off is not a price; off the Product rrp entry in the order currency) · cost_plus (marginPpm, exclusive (0,10000000) — over the II wmaCost). Rounding half-away-from-zero; non-applicability falls through at capture." type PriceListEntryValue { kind: PriceListEntryValueKind! "fixed: the window price (the strict decimal-string money grammar)." price: MoneyEntry "percent_off_rrp: the ppm off RRP ((0, 1000000))." percentPpm: Int "cost_plus: the ppm margin over wmaCost ((0, 10000000))." marginPpm: Int } "A PriceListEntry — ONE effective-dated price window per (list × single-axis merch target): the fourth DATED_SCHEDULE family (SalePrice → TaxRate → FxRate → this). List-parented (parentId = the PriceList ≠ rootId — the schedule dies with its list at purge). Windows are half-open [startAt, endAt) with endAt always present (far-future = the standing price); no past starts; absent startAt = effective NOW (server-stamped). Inserts are splice-normalized per (list × targetKind × targetId) — classifySplice verbatim: a start falling strictly inside the immediately-preceding window auto-TRIMS it (the ONE sanctioned in-place mutation — revisioned + evented); overlap with any other record refuses CONFLICT/LIST_PRICE_WINDOW_OVERLAP naming the blockers (the family's OWN error row — the errors registry's ratified minting law). ≤1 effective entry per key at any instant BY the splice invariant — no uniqueness marker. Doom cancels a not-yet-effective future record only (an effective/lapsed record is immutable price history — CONFLICT/IMMUTABLE; supersede it). The target is a flag-discriminated single-axis ref: variant | category | brand | division — category matches the subtree rooted at the target (deepest node wins); immutable with the window. The value: fixed (house MoneyEntry) · percent_off_rrp (ppm off the Product's rrp entry in the order currency) · cost_plus (ppm over the II's system-maintained wmaCost) — rounding half-away-from-zero; at capture a currency mismatch / absent basis / result ≤ 0 / unconvertible value falls through to the next plane; immutable with the window (a renegotiated price is a NEW window — price history is fact). The edit surface is caption only. ≤ 500 live entries per list (the create gate). NOT searchable (the SalePrice schedule-row class — reached via its list)." type PriceListEntry { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like PE-… — stable for the record’s life." sysId: String! "The kind of record — always `PriceListEntry` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active or doomed." status: String! "The parent PriceList; for a PriceListEntry parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The window start (inclusive; UTC ISO-8601) — set at birth (absent in the create input = effective NOW, server-stamped), immutable thereafter." startAt: String! "The window end (exclusive; UTC ISO-8601; always present — far-future = the standing price). Moves only via the system splice trim when a successor starts inside this window." endAt: String! "The single-axis merch target — immutable with the window (re-target = a new entry)." target: PriceListEntryTarget! "The value — immutable with the window (a renegotiated price is a NEW window; price history is fact)." value: PriceListEntryValue! } "One page of the priceListEntries listing — the records + the opaque resume cursor." type PriceListEntryPage { "The page's records." items: [PriceListEntry!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "The single-axis target input: kind + exactly that arm's ref." input PriceListEntryTargetInput { "What the price targets — a variant, a category, a brand or a division; exactly that kind id rides with it." kind: PriceListEntryTargetKind! "For the variant kind: the id of the item variant priced." variantId: ID "For the category kind: the id of the category priced — every product in it." categoryId: ID "For the brand kind: the id of the brand priced — every product of it." brandId: ID "For the division kind: the id of the division priced — every product in it." divisionId: ID } "The entry-value input: kind + exactly that arm's payload." input PriceListEntryValueInput { "How the price is set — a fixed money price, a percent off the product RRP, or a margin above cost; exactly that kind payload rides with it." kind: PriceListEntryValueKind! "For fixed: the exact selling price with its currency." price: MoneyEntryInput "For percent_off_rrp: the percent taken off the RRP, in parts per million — 100000 is 10 percent; above 0, below 1000000." percentPpm: Int "For cost_plus: the percent added above cost, in parts per million — 400000 is 40 percent; above 0, below 10000000." marginPpm: Int } "Create-input for a PriceListEntry." input NewPriceListEntryInput { "Optional: when omitted the per-type default applies — the window coordinate `# from `; when supplied it must be non-blank." caption: String "The PriceList id." priceListId: ID! target: PriceListEntryTargetInput! "The value." value: PriceListEntryValueInput! "The window start (inclusive). Optional — absent = effective NOW (server-stamped); explicit values must be >= the server now (no past starts)." startAt: String "The window end (exclusive). Always required (far-future = the standing price); must be strictly after startAt." endAt: String! } "Edit-input for a PriceListEntry. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. startAt, endAt, target and value are NOT editable (wire-IMMUTABLE window facts, the SalePrice class — supersede with a new window or doom a future record and re-create; the system splice trim is the ONE sanctioned endAt move)." input EditPriceListEntryInput { caption: String } "One inline address-book entry." type ConsumerAddress { line1: String! line2: String city: String! "State / province / prefecture — optional (not universal across countries)." region: String postalCode: String "ISO 3166-1 alpha-2 country code (uppercase)." countryCode: String! "The book role: usable for shipping, billing, or both." addressType: String! "This entry is the book's default ship-to (at most ONE per book; requires a shipping-capable addressType)." isDefaultShipping: Boolean "This entry is the book's default bill-to (at most ONE per book; requires a billing-capable addressType)." isDefaultBilling: Boolean } "A Consumer — the B2C shopper identity: WHO shops, as a per-merchant-group person (parentId === rootId — NOT a global identity; federated cross-merchant identity is the lock's flagged-not-now). B2C-SIMPLE inline: the normalized login email + displayName + bounded phones + the inline address book (≤16; shipping/billing roles + at most ONE default per side). the identity-marker rule: the (group × normalized email) uniq marker among live holders is the login index — a live/suspended holder refuses CONFLICT/IDENTITY_TAKEN; on erase (doom) the identifiers burn within the group. Credentials never ride this record; self-service rides the consumer session channel (consumerRegister/consumerLogin + the CONSUMER_SESSION_OPERATIONS roster); staff manage via this face. Searchable (the customer-book law). priceGroupId = the binding — the supersede carrier: a consumer-named order resolves eligibility here, present-or-absent, NO member fall-through." type Consumer { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like CN-… — stable for the record’s life." sysId: String! "The kind of record — always `Consumer` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, suspended or doomed." status: String! "The parent org group; for a Consumer parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The login identity — stored normalized; the (group × email) uniq marker rides it." email: String! "The shopper display name; absent ⇒ the caption carries the identity line (the normalized email)." displayName: String "Contact phones — bounded (≤4); may be empty. A supplied list replaces wholesale on edit." phones: [String!]! "The inline B2C address book — bounded (≤16); at most ONE default per side across the book; a supplied book replaces wholesale on edit." addresses: [ConsumerAddress!]! "The CustomerPriceGroup binding. Gated in-tenant + active at set; a group dying after assignment degrades at evaluation (never a cart-killing throw). Optional + editable." priceGroupId: ID "The Tag attachment set — wholesale-replace list, empty releases; absent = untagged. Staff custody (the priceGroupId law): each ref gated in-tenant + active; a tag with live wearers cannot be doomed. The segment tag axis reads it." tagIds: [ID!] "Preferred locale — canonical BCP-47 core; the i18n resolution consumes it." locale: String "Display-only currency preference — a platform-registry code inside the union of the group's organizations' allowed sets: render prices in this currency where a conversion exists. Never an evaluation input — carts/orders/documents stay org-currency." displayCurrency: String "Date-only yyyy-mm-dd, calendar-real, ≥ 1900-01-01; the not-in-the-future half rides the KIT write gate. Drives the age-restricted-sale gate when that builds (data-only now — the named deferral) + the birthday registries." dateOfBirth: String "Contact-cadence preference among consented channels — immediate | daily | weekly | monthly." commsFrequency: String "Message-format preference — plain | rich (canned v1 registry)." commsFormat: String "Comms topic interests ('about what') — ≤ 16, each trimmed 1..64; a supplied list replaces wholesale on edit (the book law)." commsTopics: [String!] "General interest tags — ≤ 16, each trimmed 1..64; a supplied list replaces wholesale on edit." interests: [String!] "The preferred store/LF: gated in-tenant + active LF at write; an LF dying later degrades at read — never a profile-killing throw." preferredLogicalFacilityId: ID } "One page of the consumers listing — the records + the opaque resume cursor." type ConsumerPage { "The page's records." items: [Consumer!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "Address-book entry input for a Consumer — a supplied book replaces the stored one wholesale (the Role-descriptors list-is-the-payload semantic)." input ConsumerAddressInput { "Street address, first line." line1: String! "Second address line — apartment, suite or floor. Optional." line2: String "City or town." city: String! "State, province or prefecture. Optional." region: String "Postal or ZIP code. Optional." postalCode: String "ISO 3166-1 alpha-2 country code (uppercase)." countryCode: String! "shipping | billing | both." addressType: String! "Whether orders ship to this address unless another is chosen — at most one per shopper, on an address used for shipping." isDefaultShipping: Boolean "Whether bills go to this address unless another is chosen — at most one per shopper, on an address used for billing." isDefaultBilling: Boolean } "Create-input for a Consumer. NO password field — credentials never ride a construct shape: a staff-created Consumer is born without self-service; resetConsumerPassword arms it. Self-registration (consumerRegister) shares this shape + a password argument." input NewConsumerInput { "Optional: when omitted the per-type default applies — the display name when given, else the normalized email (the identity line); when supplied it must be non-blank." caption: String email: String! displayName: String phones: [String!] addresses: [ConsumerAddressInput!] "Gated in-tenant + active at set. Staff-only: the self-register lane (consumerRegister) refuses it." priceGroupId: ID "The Tag attachment set (at most 64, unique) — each ref gated in-tenant + active. Staff-only: consumerRegister refuses it (the priceGroupId law)." tagIds: [ID!] "Preferred locale — canonical BCP-47 core; the i18n resolution consumes it." locale: String "Display-only currency preference — a platform-registry code inside the union of the group's organizations' allowed sets: render prices in this currency where a conversion exists. Never an evaluation input — carts/orders/documents stay org-currency." displayCurrency: String "Date-only yyyy-mm-dd, calendar-real, ≥ 1900-01-01; the not-in-the-future half rides the KIT write gate. Drives the age-restricted-sale gate when that builds (data-only now — the named deferral) + the birthday registries." dateOfBirth: String "Contact-cadence preference among consented channels — immediate | daily | weekly | monthly." commsFrequency: String "Message-format preference — plain | rich (canned v1 registry)." commsFormat: String "Comms topic interests ('about what') — ≤ 16, each trimmed 1..64; a supplied list replaces wholesale on edit (the book law)." commsTopics: [String!] "General interest tags — ≤ 16, each trimmed 1..64; a supplied list replaces wholesale on edit." interests: [String!] "The preferred store/LF: gated in-tenant + active LF at write; an LF dying later degrades at read — never a profile-killing throw." preferredLogicalFacilityId: ID } "Edit-input for a Consumer. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved; phones/addresses replace wholesale when supplied; an email edit is the identity-marker release/reserve swap (a live/suspended/doomed holder of the NEW value refuses CONFLICT/IDENTITY_TAKEN — the burn law; the OLD value releases). Serves both the staff updateConsumer and the self-service updateMyConsumer (the same EditConsumer shape)." input EditConsumerInput { caption: String email: String displayName: String phones: [String!] addresses: [ConsumerAddressInput!] priceGroupId: ID "The replacement tag set (wholesale; empty releases; at most 64, unique; each ref in-tenant + active). Staff-only: updateMyConsumer refuses it (the priceGroupId law)." tagIds: [ID!] "Preferred locale — canonical BCP-47 core; the i18n resolution consumes it." locale: String "Display-only currency preference — a platform-registry code inside the union of the group's organizations' allowed sets: render prices in this currency where a conversion exists. Never an evaluation input — carts/orders/documents stay org-currency." displayCurrency: String "Date-only yyyy-mm-dd, calendar-real, ≥ 1900-01-01; the not-in-the-future half rides the KIT write gate. Drives the age-restricted-sale gate when that builds (data-only now — the named deferral) + the birthday registries." dateOfBirth: String "Contact-cadence preference among consented channels — immediate | daily | weekly | monthly." commsFrequency: String "Message-format preference — plain | rich (canned v1 registry)." commsFormat: String "Comms topic interests ('about what') — ≤ 16, each trimmed 1..64; a supplied list replaces wholesale on edit (the book law)." commsTopics: [String!] "General interest tags — ≤ 16, each trimmed 1..64; a supplied list replaces wholesale on edit." interests: [String!] "The preferred store/LF: gated in-tenant + active LF at write; an LF dying later degrades at read — never a profile-killing throw." preferredLogicalFacilityId: ID } "The canned consent-purpose template keys." enum ConsentPurposeTemplateKey { marketing_email marketing_sms marketing_push analytics personalization data_sharing } "One canned consent-purpose template: usable via copyCannedConsentPurpose → an ordinary editable group ConsentPurpose (fork semantics — a copy never auto-revs)." type CannedConsentPurpose { key: ConsentPurposeTemplateKey! "The code the copy is born with (== the key; the merchant may re-code the copy — it is an ordinary row)." code: String! caption: String! "What the processing activity IS — the registry's human line (rows carry no description; captions + decorations do display duty)." description: String! "opt_in | opt_out — ALL six ship opt_in." consentModel: String! "The registry data version (port-stamped onto copies as templateVersion)." version: Int! } "A ConsentPurpose — the merchant-definable registry of what consent can be requested for. Canned + custom as the role model works: the 6 canned baselines are code-virtual versioned templates (cannedConsentPurposes lists them; copyCannedConsentPurpose materializes an ordinary editable group row — bootstrap materializes zero). Per-channel marketing granularity = distinct purposes (GDPR consent is specific, never bundled). consentModel ∈ {opt_in, opt_out} — opt_in: an absent record ⇒ denied (GDPR) · opt_out: an absent record ⇒ allowed until withdrawn (CCPA Do-Not-Sell) — immutable after birth. The code is the mutable machine handle — unique among non-doomed per group via the consentPurposeCode uniq marker (the organizationCode class: edit = release/reserve swap; doom releases [reissuable]; inactive holds; a collision refuses CONFLICT/IDENTITY_TAKEN). Doom is gated by the everReferenced write-once stamp; deactivate is ungated. NOT searchable (config, not a book); NO description field (captions + decorations do display duty)." type ConsentPurpose { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like PP-… — stable for the record’s life." sysId: String! "The kind of record — always `ConsentPurpose` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a ConsentPurpose parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The machine-portable handle (^[a-z][a-z0-9_]{1,63}$; stored normalized trim+lowercase) — future comms/segments address purposes BY code. Uniq among non-doomed per group (the consentPurposeCode marker: edit swaps, doom releases, inactive holds; CONFLICT/IDENTITY_TAKEN on collision)." code: String! "opt_in | opt_out — the two consent regimes on ONE mechanism. Immutable after birth — EditConsentPurposeInput deliberately omits it." consentModel: String! "Provenance: the canned template this purpose was copied from (copyCannedConsentPurpose); port-stamped, never caller-suppliable; absent on from-scratch purposes. A copy never auto-revs when the registry does (fork semantics)." templateKey: String "The canned-registry version the copy was compiled from (the templateKey twin; fork semantics)." templateVersion: Int "The write-once first-decision stamp: set true inside the first decide transaction against this purpose, never touched again. Present ⇒ doom refuses CONFLICT/REFERENCED; absent ⇒ virgin, dooms freely. Never caller-suppliable." everReferenced: Boolean } "One page of the consentPurposes listing — the records + the opaque resume cursor." type ConsentPurposePage { "The page's records." items: [ConsentPurpose!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "Create-input for a from-scratch ConsentPurpose. The canned lane is copyCannedConsentPurpose — NOT this shape." input NewConsentPurposeInput { "Optional: when omitted the per-type default applies — none — the CPG divergence: the caption IS the processing activity's display name, and an omitted caption refuses VALIDATION/INVALID at the boundary instead of defaulting; when supplied it must be non-blank." caption: String code: String! "opt_in | opt_out — immutable after birth. guidance: opt_in IS the strict deny-by-default regime (all 6 canned baselines ship it)." consentModel: String! } "Edit-input for a ConsentPurpose. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved; a code edit is the consentPurposeCode marker release/reserve swap (a non-doomed holder of the NEW code refuses CONFLICT/IDENTITY_TAKEN; the OLD code releases). consentModel is NOT here — immutable after birth; templateKey/templateVersion are port-stamped provenance, never editable (the Role law)." input EditConsentPurposeInput { "The processing activity's display name." caption: String "The machine handle — the marker swap rides the update transaction." code: String } "One myConsents row: the active purpose's identity + regime, the caller's OWN decision state (absent = undecided — the purpose appears with the model default), and the resolved effective verdict." type MyConsentRow { purposeId: ID! "The purpose's machine handle." code: String! caption: String! "opt_in | opt_out — decides the undecided default (opt_in ⇒ denied · opt_out ⇒ allowed; the GDPR+CCPA mechanism)." consentModel: String! "The caller's OWN record state (granted | withdrawn) — absent ⇒ no decision ever captured (the sparse law)." myStatus: String "The resolved verdict — allowed | denied (the pure resolveEffectiveConsent truth table over live reads: consumer doomed ⇒ denied · purpose retired ⇒ denied · granted ⇒ allowed · withdrawn ⇒ denied · absent ⇒ the model default)." effective: String! "The policy version of the latest decision; absent ⟺ undecided." policyVersion: String "When the latest decision (or re-consent revision) was captured; absent ⟺ undecided." decidedAt: String } "One page of the myConsents view." type MyConsentRowPage { items: [MyConsentRow!]! "Present ⇒ more may remain (pass back verbatim as nextToken); null ⇒ the view is complete. Opaque + tenant-bound." nextToken: String } "A ConsentRecord — the proof-of-decision per (Consumer × Purpose): consumer-parented (parentId = the Consumer id — the LoyaltyMember construct-parented class), family document, sparse. The permanent (consumer × purpose) uniq pair marker is both the singleton guarantee AND the O(1) lookup (never released, never taken over; purge reaps). NO update op — the only writes are the 4 decide ops (grantConsent/withdrawConsent staff · grantMyConsent/withdrawMyConsent consumer) + the system doom; a same-decision re-capture is a capture-context revision under a new policyVersion. Capture context ∈ {policyVersion, captureSurface ∈ [storefront, pos, back_office, cli, import], captureLocale?} reflects the latest decision. Effective consent = resolveEffectiveConsent (the myConsents view): consumer doomed ⇒ denied · purpose inactive/doomed ⇒ denied · granted ⇒ allowed · withdrawn/doomed ⇒ denied · absent ⇒ opt_in? Denied: allowed. Audit rides existing machinery — NO bespoke ledger. NOT searchable." type ConsentRecord { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like CD-… — stable for the record’s life." sysId: String! "The kind of record — always `ConsentRecord` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of granted, withdrawn or doomed." status: String! "The parent consumer; rootId = the org group. NOT the family root." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The ConsentPurpose this decision is FOR. Immutable at birth; the (parentId × purposeId) pair is singleton via the consentPair uniq marker." purposeId: ID! "The consent-notice/policy version presented at the latest decision. Re-consent under a NEW version with the same decision = the route-3 capture-context revision." policyVersion: String! "Where the latest decision was captured — storefront | pos | back_office | cli | import (canned v1 registry; 's banner vocabulary). The consumer channel is server-fixed storefront (a consumer session cannot claim an in-store capture); the staff lane requires one explicitly." captureSurface: String! "The locale presented at the latest decision; absent ⇒ not recorded." captureLocale: String } "One page of the consentRecords listing — the records + the opaque resume cursor." type ConsentRecordPage { "The page's records." items: [ConsentRecord!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "The typed CS-case resolution: return → an Return · goodwill_credit → an StoredValueInstrument (the store_credit direct lane) · replacement_order → an Order · info_only → ref-less." type CaseResolution { "return | goodwill_credit | replacement_order | info_only" kind: String! "The resolving construct (kind-typed; absent on info_only — the per-kind ref law, validated in-tenant at set)." refId: ID } "The support-billing fact on a case: covered = a coverage source stood, nothing charged · charged = the per-incident charge minted, named here. The decision + attestedAt are write-once; billingChargeId follows the live collection." type CaseSupportBilling { "The root attestation instant (write-once)." attestedAt: String! "covered | charged — the coverage decision at attestation (write-once; a plan bought later never retro-covers)." decision: String! "The support_incident BillingCharge that stands (present iff charged; re-pointed by a re-collection — every attempt remains visible in billingCharges)." billingChargeId: ID "What covered it — plan (a standing handholding plan) | onboarding (the wallet's complimentary first-90-days window). Present iff covered (write-once — the trail on the row)." coveredBy: String "The worded standing: the merchant sentence for this fact, server-composed at read (the Segment.refreshProblem worded-wire class): covered → the covered words · charged → the standing charge's live status worded (in flight / collected / failed — re-collection pending) · an unreadable/foreign charge degrades to the bare billed words (honest, never a leak). Reaches only the staff lanes by construction — the consumer lanes redact the whole block." standing: String! } "The transitionCsCase op vocabulary." enum CsCaseTransitionOp { "open → in_progress." start "in_progress → pending_customer (waiting on the customer; a consumer reply auto-resumes — the addMyCaseMessage engine fires resume in the same commit)." await_customer "pending_customer → in_progress (the customer responded / staff resumes)." resume "in_progress → escalated (a higher support tier takes it)." escalate "escalated → in_progress (back to the working lane)." de_escalate "in_progress → resolved — requires the resolution block present on the case." resolve "resolved → in_progress (the proposed resolution did not stick — before close; after close, reopen = a NEW linked case)." reopen_unresolved "resolved → closed." close "open|in_progress → cancelled." cancel } "caseType ∈ {return_request, refund_inquiry, product_issue, complaint, general_inquiry, warranty_claim, shipping_issue, order_change, other}. NO description field. origin is server-stamped by lane. Refs are ref-ONLY. consumerId/linkedFromCaseId/origin are immutable at birth (rulings / — the edit face omits them; the casebook derived-index row a consumer-ref'd case mints in its create txn is thereby write-once). resolve requires the typed resolution block present. priority/assignedTo/slaDueAt are manual. The cs event domain's first live producer. NOT searchable (the book law covers WHO, not interactions)." type CsCase { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like CS-… — stable for the record’s life." sysId: String! "The kind of record — always `CsCase` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of open, in_progress, pending_customer, escalated, resolved, closed or cancelled." status: String! "The parent org group; for a CsCase parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "return_request | refund_inquiry | product_issue | complaint | general_inquiry | warranty_claim | shipping_issue | order_change | other — the canned registry (AT-extensible, never merchant free-form). Mutable via update." caseType: String! "low | normal | high | urgent — kit-stamped 'normal' when the caller names none; manual." priority: String! "storefront | staff — where the case originated, server-stamped by lane. Immutable." origin: String! "The registered Consumer this case is FOR (absent = a guest case). Immutable at birth. Ref-only: consumer erase does NOT cascade here." consumerId: ID "The acted-upon Organization — ref-only, in-tenant + non-doomed at set." organizationId: ID "The disputed/acted-upon Order — ref-only (@375: no doom arm grows on it)." orderId: ID "The related Appointment — ref-only." appointmentId: ID "The related Return — ref-only." returnId: ID "The related Fulfillment — ref-only." fulfillmentId: ID "The related Payment — ref-only." paymentId: ID "The Warranty a claim was filed against — stamped by fileClaimWarranty in the same transaction as the warranty’s claimed flip; never caller-typed. Ref-only." warrantyId: ID "The closed case this one reopens. Immutable at birth; the reopen provenance edge." linkedFromCaseId: ID "The assigned agent — an User (in-tenant + active at set); teams/queues = (deferral 1)." assignedTo: ID "The SLA due instant (ISO-8601) — manual; / populates by policy." slaDueAt: String "The typed resolution block — set via update before resolve fires." resolution: CaseResolution "The support-billing fact. Staff lanes only: the consumer lanes (myCase/myCases) redact it structurally." supportBilling: CaseSupportBilling } "One page of the csCases listing — the records + the opaque resume cursor." type CsCasePage { "The page's records." items: [CsCase!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "Resolution input — staged via updateCsCase before the resolve transition; info_only carries NO refId, every other kind requires one (in-tenant + non-doomed, kind-typed)." input CaseResolutionInput { "return | goodwill_credit | replacement_order | info_only" kind: String! refId: ID } "The optional opening message on the staff create: appended in the same transaction as the case." input CsCaseInitialMessageInput { "The message body (1..4096)." body: String! "customer_visible | internal_note — the staff author's choice." visibility: String! } "Create-input for a CsCase. Refs validate in-tenant + non-doomed; linkedFromCaseId validates closed-only; assignedTo validates in-tenant + active. The optional initialMessage appends in the same transaction. The consumer lane is openMyCase — NOT this shape." input NewCsCaseInput { "Optional: when omitted the per-type default applies — none — the CPG divergence: the caption IS the subject line, and an omitted caption refuses VALIDATION/INVALID at the boundary instead of defaulting; when supplied it must be non-blank." caption: String "return_request | refund_inquiry | product_issue | complaint | general_inquiry | warranty_claim | shipping_issue | order_change | other — the canned registry validates." caseType: String! "Defaults 'normal' when omitted." priority: String "The registered Consumer this case is FOR (omit = a guest case). Immutable at birth — a consumer-ref’d case mints its write-once casebook index row in the create transaction." consumerId: ID organizationId: ID orderId: ID appointmentId: ID returnId: ID fulfillmentId: ID paymentId: ID "The closed case this one reopens. Immutable." linkedFromCaseId: ID "In-tenant + active User at set." assignedTo: ID "ISO-8601 instant — manual." slaDueAt: String "Optional opening message — appends in the same transaction." initialMessage: CsCaseInitialMessageInput } "Edit-input for a CsCase. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. consumerId/linkedFromCaseId/origin are NOT here — immutable at birth (rulings //); status moves only via transitionCsCase. Setting resolution here is the staged half of the resolve gate." input EditCsCaseInput { "The subject line." caption: String "Registry-validated." caseType: String priority: String organizationId: ID orderId: ID appointmentId: ID returnId: ID fulfillmentId: ID paymentId: ID "In-tenant + active User at set." assignedTo: ID slaDueAt: String "The typed resolution block — per-kind ref law validated in-tenant at set." resolution: CaseResolutionInput } "The registry's inline ship-to override." type RegistryShipTo { line1: String! line2: String city: String! "State / province / prefecture — optional (not universal across countries)." region: String postalCode: String "ISO 3166-1 alpha-2 country code (uppercase)." countryCode: String! } "A GiftRegistry — ONE consumer-OWNED curated product list with purchase tracking: structurally a cousin of the Collection but consumer-owned + purchase-tracked. ownerConsumerId is a registered Consumer, immutable at birth. registryType ∈ {wedding, baby, birthday, anniversary, holiday, wishlist, custom}. privacy ∈ {public | unlisted | private}, default 'private'; the cross-consumer read lanes that consume the gate are the storefront wave — until then privacy is enforced structurally (the consumer lane is owner-only). eventDate optional — present ⇒ arms the scheduled active → expired. Forbidden: active → doomed (close or let expire first). Ceilings: 16 active registries/consumer · 200 active items/registry. NOT searchable (consumer-owned, reached via its owner — the book law covers WHO, not their lists)." type GiftRegistry { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like GR-… — stable for the record’s life." sysId: String! "The kind of record — always `GiftRegistry` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, closed, expired or doomed." status: String! "The parent org group; for a GiftRegistry parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The owning registered Consumer. Immutable at birth." ownerConsumerId: ID! "wedding | baby | birthday | anniversary | holiday | wishlist | custom — the canned registry (AT-extensible, never merchant free-form). Mutable via update." registryType: String! "public | unlisted | private — born 'private' when the caller names none. Structurally dormant until gives it a cross-consumer reader." privacy: String! "The event instant (ISO-8601, a full instant — the slaDueAt convention). Present ⇒ arms the scheduled expiry." eventDate: String "The registry-specific ship-to override." shipTo: RegistryShipTo } "One page of the giftRegistries listing — the records + the opaque resume cursor." type GiftRegistryPage { "The page's records." items: [GiftRegistry!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "Ship-to input for a GiftRegistry — a supplied block replaces the stored one wholesale." input RegistryShipToInput { line1: String! line2: String city: String! region: String postalCode: String "ISO 3166-1 alpha-2 country code (uppercase)." countryCode: String! } "Create-input for a GiftRegistry. consumerId names the owner; the active-registries ceiling gates kit-side. The consumer lane is createMyGiftRegistry — NOT this shape (the principal stamps as owner there)." input NewGiftRegistryInput { "Optional: when omitted the per-type default applies — none — the CsCase divergence: the caption IS the registry name, and an omitted caption refuses VALIDATION/INVALID at the boundary instead of defaulting; when supplied it must be non-blank." caption: String "wedding | baby | birthday | anniversary | holiday | wishlist | custom — the canned registry validates." registryType: String! "The owning registered Consumer. Immutable at birth." consumerId: ID! "Defaults 'private' when omitted." privacy: String "ISO-8601 instant — present ⇒ arms the scheduled expiry." eventDate: String "The inline ship-to override." shipTo: RegistryShipToInput } "Edit-input for a GiftRegistry. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. ownerConsumerId is NOT here — immutable at birth; status moves only via close/doom (+ the scheduled expiry). privacy and eventDate stay editable while the registry lives — an eventDate edit re-arms/disarms the scheduled due on the same write (the heal-on-write law)." input EditGiftRegistryInput { "The registry name." caption: String "Registry-validated (a mislabel is routine correction)." registryType: String privacy: String "Re-arms/disarms the scheduled expiry on write." eventDate: String "Replaces wholesale." shipTo: RegistryShipToInput } "The transitionReview op vocabulary." enum ReviewTransitionOp { "pending → approved." approve "approved → published." publish "pending → rejected." reject "published → removed · approved → removed." remove } "A Review — ONE consumer product review: authorConsumerId × targetProductId both immutable at birth. rating 1–5 (integer). verifiedPurchase is server-stamped, never client-asserted. rejected/removed are both doomed terminals (lists filter them; the marker frees by takeover). The staff face is moderation-ONLY. Consumer erase does NOT cascade. Display/rendering = (deferral 4); the aggregate rating read-model = (deferral 5); photos/Q&A/votes/replies = ratified-out. NOT searchable (reached via its target — authorial content, not a master book)." type Review { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like RE-… — stable for the record’s life." sysId: String! "The kind of record — always `Review` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of pending, approved, published, rejected or removed." status: String! "The parent org group; for a Review parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The authoring registered Consumer. Immutable at birth." authorConsumerId: ID! "The reviewed Product. Immutable at birth (the marker identity; re-target = a NEW review after removal)." targetProductId: ID! "1–5 (integer — no halves at v1)." rating: Int! "The review headline (1..200)." title: String! "The review narrative (1..8192)." body: String! "Server-stamped. Author edits supplying orderId re-derive it." verifiedPurchase: Boolean! "The proving Order — present IFF verifiedPurchase (the stamp carries its provenance)." verifiedByOrderId: ID } "One page of the reviews listing — the records + the opaque resume cursor." type ReviewPage { "The page's records." items: [Review!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "The / auto-top-off configuration: balance < thresholdTokens → auto-purchase amountUsdCents of tokens via the stored method, unless the month's cumulative auto-spend would exceed budgetCapUsdCents — then stop + warn (never charges past the merchant's budget). The firing engine is the billing charger's top-off arm." type AutoTopOffConfig { enabled: Boolean! "Fire when the balance drops below this (tokens)." thresholdTokens: Int! "The fixed $$ amount each fire purchases (USD cents)." amountUsdCents: Int! "The month's auto-spend ceiling (USD cents) — reached ⇒ stop + warn." budgetCapUsdCents: Int! "The DAY's auto-spend ceiling. Null = the month cap alone governs." dailyCapUsdCents: Int } "The stored off-session method's wire-readable facts. The three fields live and die together (attach stamps, detach removes whole)." type BillingMethodFacts { "The card network (visa | mastercard | …) — the processor's word." brand: String! "The card's last four digits." last4: String! "When the method attached (UTC ISO)." attachedAt: String! } "A TokenAccount — **the ONE-per-GROUP token wallet / platform billing unit**. The wallet is a group-scoped singleton enforced by the tokenAccountSingleton uniq marker minted IN the create txn. **Wallet existence IS the metering arm**: no wallet ⇒ the group is unbilled (the dvlp posture); opening one arms the rater. balance = Σ TokenEntry amounts exactly, cached in the same transaction as every ledger append — signed. The auto-top-off block is config this slice (the firing engine + stored-method custody = the rater leg, deferral 5); its budget cap is a lazy month-keyed counter. Platform billing is USD-only. NOT searchable (platform-internal — never merchant search content). Template class A16_BILLING (platform billing ≠ floor work — owner/manager/assoc_mgr; hand-derived v23)." type TokenAccount { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like TA-… — stable for the record’s life." sysId: String! "The kind of record — always `TokenAccount` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a TokenAccount parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The cached token balance = Σ TokenEntry amounts exactly — signed. Never caller-writable — moves only with ledger appends." balance: Int! "The low-balance warning threshold (tokens) — absent ⇒ the warning arm is unarmed (the eventDate optional-arm class). The warning ladder is events + readable state now." lowBalanceThreshold: Int "The daily-burn alert threshold in kernels/day. Absent ⇒ unarmed. Owner-set like lowBalanceThreshold; day rows over it read as breaches on the costs face." dailyBurnThresholdKernels: Int "The auto-top-off block — absent ⇒ never fires. Config this slice; the firing engine + stored-method custody ride the rater leg. Cap reached ⇒ stop + warn." autoTopOff: AutoTopOffConfig "The auto-top-off cap window's yyyy-mm month key — server-stamped at fire time." autoTopOffMonth: String "The month's cumulative auto-top-off spend — server-stamped at fire; compared against the cap before each fire." autoTopOffSpentUsdCents: Int "The auto-top-off DAY window's yyyy-mm-dd key." autoTopOffDay: String "The DAY's cumulative auto-top-off spend." autoTopOffSpentDayUsdCents: Int "Which stored card the in-flight top-off charged — primary | backup." autoTopOffPendingMethod: String "The UTC day the primary card last webhook-failed a top-off." autoTopOffPrimaryFailedDay: String "The backup twin — both stamps reading today = the cards-failing emergency (nothing fires; the loud lane speaks each tick)." autoTopOffBackupFailedDay: String "The backup method's readable facts. The charger's top-off falls back to it when the primary declines; stamped by attachTokenAccountBackupBillingMethod, removed whole by its detach." backupBillingMethod: BillingMethodFacts "Computed at read: the group's total kernel consumption over the last 7 UTC days, summed off the rater's total day lanes (the usageReport engine — exact integers). 0 on a quiet week; null only on the filtered listing lane (vitals ride the plain reads)." burn7dKernels: Int "Computed at read: the balance scaled to kernels (balance is whole internal tokens — ×1,000,000) ÷ the 7-day daily kernel burn — how many days the balance lasts at the current rate. Null when the burn is 0 (no rate exists to project) or on the filtered listing lane." runwayDays: Float "The sub-token usage accrual in µtokens, 0…999,999. Server-stamped — no face carries it; absent = 0. Read-exposed for transparency." microTokenCarry: Int "When the current low-balance episode began. The readable half of the warning ladder — the at.billing.token_account.low_balance.v1 event is its evented twin." lowBalanceSince: String "The stored off-session method's readable facts. Present ⟺ custody is armed (the charger's top-off + base-fee arms both require it); stamped by attachTokenAccountBillingMethod, removed whole by detach." billingMethod: BillingMethodFacts "The in-flight auto-top-off TokenPurchase. Absent = no fire in flight." autoTopOffPendingPurchaseId: ID "When the current capped episode began. Absent/null = not capped." topOffCappedSince: String "The latest UTC yyyy-mm period the base fee settled for. Absent = never collected." baseFeePaidMonth: String "The live included-allowance month, UTC yyyy-mm. Server-stamped by the base-fee settle; absent/null = no allowance ever minted, or the plain-read vitals lane was skipped (the burn7dKernels listing-lane class)." includedMonth: String "What the live allowance month minted. Present ⟺ includedMonth is." includedGranted: Int "What the live allowance month has NOT yet drawn. The banked balance = balance − this figure while the month lives. Present ⟺ includedMonth is." includedRemaining: Int "Your group’s spendable referral-earnings credit: Σ your AffiliateAccrual entries exactly. When it covers your monthly base fee the cycle credit-settles automatically (no card charge — bill-netting first, the ruled settlement order). Absent/null = never earned a cent, or the filtered listing lane (the burn7dKernels class)." affiliateCreditCents: Int "Σ kernels in transfer-FROZEN blocks: your true spendable room = balance − this figure (the exhaustion gate reads it; the transfer face’s pre-submit warning derives from it). Absent/null = nothing frozen, or the filtered listing lane." frozenKernels: Int "The latest UTC yyyy-mm-dd day a storage snapshot emitted for this wallet. Absent = never snapshotted." storageSnapshotDay: String "Platform billing currency — 'USD' by law." currency: String! } "One page of the tokenAccounts listing — the records + the opaque resume cursor." type TokenAccountPage { "The page's records." items: [TokenAccount!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Auto-top-off input for a TokenAccount" input AutoTopOffConfigInput { "Whether the wallet tops itself up when the balance falls below the threshold." enabled: Boolean! "The balance, in millions of kernels, that triggers a top-up when the wallet falls below it — zero or more." thresholdTokens: Int! "How much each top-up buys, in USD cents — 2500 is 25.00 USD. At least 500, the first price step (5.00 USD), and at most 2500000, the single-purchase cap." amountUsdCents: Int! "The most the top-ups may spend in a calendar month, in USD cents — at least one top-up amount." budgetCapUsdCents: Int! "the optional per-day ceiling — must cover ≥ one amountUsdCents fire and ≤ the month cap (the coherence refines)." dailyCapUsdCents: Int } "Create-input for the group's TokenAccount." input NewTokenAccountInput { "Optional: when omitted the per-type default applies — 'group token wallet' (the wallet is functional infrastructure, not a named artifact); when supplied it must be non-blank." caption: String "≥ 0 — arms the low-balance warning." lowBalanceThreshold: Int "≥ 1 — arms the daily-burn alert." dailyBurnThresholdKernels: Int "The auto-top-off config (the firing engine = the rater leg)." autoTopOff: AutoTopOffConfigInput } "Edit-input for a TokenAccount. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. balance and the cap counters are never caller-writable (balance moves only with ledger appends; the counters are server-stamped at auto-top-off fire); currency is fixed USD. A supplied autoTopOff block replaces the stored one wholesale." input EditTokenAccountInput { "The wallet's display caption." caption: String "≥ 0." lowBalanceThreshold: Int "≥ 1." dailyBurnThresholdKernels: Int "Replaces wholesale." autoTopOff: AutoTopOffConfigInput } "A TokenPurchase — buying platform tokens with real money: $ → tokens at the volume tier (tier_1 | tier_2 | tier_3 | tier_4 — server-computed, never client-asserted), loaded into the group's TokenAccount as a purchase TokenEntry when the webhook settles. **AT/stack charging the merchant** — the platform account's OWN PaymentIntent. **non-refundable**. The birth op mints the test PaymentIntent api-side with the load-bearing metadata {at_kind, tokenPurchaseId, rootId}. The real-money gate = classification × Stripe mode. Purchase-abandon reconciliation beyond canceled = deferral 14a. NOT searchable. Template class A16_BILLING (hand-derived v23)." type TokenPurchase { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like TP-… — stable for the record’s life." sysId: String! "The kind of record — always `TokenPurchase` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of created, succeeded or failed." status: String! "The parent TokenAccount; rootId = the org group; parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The charge magnitude, USD cents. 500..2500000." usdAmountCents: Int! "The server-computed token load at the volume tier." tokensPurchased: Int! "tier_1 | tier_2 | tier_3 | tier_4 — the tier that priced it (replayability with rateCardVersion)." volumeTierCode: String! "The rate-card/tier config version in force at birth." rateCardVersion: Int! "The platform Stripe PaymentIntent." stripePaymentIntentId: String! "When the webhook settled it (stamped at succeeded/failed; absent while created)." settledAt: String } "One page of the tokenPurchases listing — the records + the opaque resume cursor." type TokenPurchasePage { "The page's records." items: [TokenPurchase!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a TokenPurchase. Below the tier-1 floor there is no price → VALIDATION refuses." input NewTokenPurchaseInput { "Optional: when omitted the per-type default applies — 'token purchase $' (derived from the USD amount at birth); when supplied it must be non-blank." caption: String "500..2500000 (the tier-1 floor is the minimum purchase)." usdAmountCents: Int! } "A BillingCharge — the money rail's non-token platform fee: AT/stack charging the merchant the platform fee. **The API face is fully suppressed** — {create:false, update:false, transitions:false}, a NEW suppression combination: the wire surface is the 2 generated reads, the merchant's transparency lane. NOT searchable. Template class A16_BILLING (hand-derived v24)." type BillingCharge { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like BC-… — stable for the record’s life." sysId: String! "The kind of record — always `BillingCharge` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of created, succeeded or failed." status: String! "The parent TokenAccount (the custody anchor — charges ride the wallet's stored method); rootId = the org group; parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "base_fee | support_plan | support_incident — what the fee is." chargeKind: String! "The fee magnitude, USD cents — resolved from config at mint; the stamp IS the replay record (the amount in force when the cycle fired)." usdAmountCents: Int! "The billing period this charge covers (UTC yyyy-mm) — the charge-once coordinate (the uniq marker rides group × kind × month)." periodMonth: String! "The platform off-session Stripe PaymentIntent." stripePaymentIntentId: String! "When the webhook settled it (stamped at succeeded/failed; absent while created)." settledAt: String } "One page of the billingCharges listing — the records + the opaque resume cursor." type BillingChargePage { "The page's records." items: [BillingCharge!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "One ref-ONLY bound to a live domain construct." type TaskConstructRef { "The referenced construct's declared type (verified against the live record at write)." type: String! "The referenced construct's id." id: ID! } "The transitionTask op vocabulary." enum TaskTransitionOp { "open → in_progress." start "in_progress → open (back to the inbox — the working-lane retreat; occ-only)." unstart "open|in_progress|postponed → completed." complete "open|in_progress|postponed → cancelled." cancel "postponed → open." unpostpone } "The CsCase chassis reused: caption required (the subject line) + its OWN description field (≤8192 — the task's brief; the conversation is the generic Note thread at note#, addNote/notes). priority ∈ {low, normal, high, urgent} (its OWN canned registry — kit-stamped 'normal' when unnamed). createdBy is server-stamped (immutable); reportTo names WHO the work reports to. Assignment is multi: assigneeUserIds ≤8 + teamIds ≤4 (in-tenant + active at set) — each holds a write-once taskbook inbox row while the task lives (terminal transitions remove user/team rows in the same txn: the inbox self-prunes, bounded by open work). labelIds ≤16 (TaskLabel — the work vocabulary). constructRefs ≤16 {type,id} bind live domain constructs ref-only (the CsCase @375 law: validated in-tenant + non-doomed at write, NO doom arms grow, a purged target renders as a tombstone; each holds a taskbook#REF row while the task is non-doomed — the tasksByConstruct lane). dueAt: overdue = computed at read (dueAt < now ∧ live; + the dueBefore filter) — NO sweep lane in v1. 'blocked' is deliberately NOT a state — it is a label (no machine consequence in v1). Searchable by caption. The ops event domain (at.ops.task.* — the facility→ops neighborhood)." type Task { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like TK-… — stable for the record’s life." sysId: String! "The kind of record — always `Task` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of open, in_progress, postponed, completed or cancelled." status: String! "The parent org group; for a Task parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The task's own brief. Absent = caption-only." description: String "low | normal | high | urgent — kit-stamped 'normal' when the caller names none (its OWN registry — the CS shape, deliberately not shared)." priority: String! "WHO opened the task — server-stamped from the acting principal; immutable. Null exactly when systemOrigin is set." createdBy: ID "Which platform lane minted the task when NO human did. Never caller-suppliable — absent from create/edit inputs by law; immutable at birth; null on every human-created task." systemOrigin: String "WHO the work reports to — an User (in-tenant + active at set); the notification lane = the deferral." reportTo: ID "The assigned workers." assigneeUserIds: [ID!]! "The assigned Teams (≤4, distinct; in-tenant + active at set; each holds a taskbook#team inbox row while the task lives)." teamIds: [ID!]! "The work labels (≤16, distinct; in-tenant + active TaskLabels at set)." labelIds: [ID!]! "The expected-completion instant (ISO-8601) — overdue is computed at read (dueAt < now ∧ live), never stored." dueAt: String "Computed at read via the ONE isTaskOverdue home." overdue: Boolean! "The bound domain constructs (≤16, distinct by (type,id) — ref-only per the CsCase @375 law: no doom arms grow; a purged target renders as a tombstone)." constructRefs: [TaskConstructRef!]! "The completed task this one reopens. Immutable at birth; the reopen provenance edge." linkedFromTaskId: ID "The boomerang instant: while status=postponed the scheduled-due sweep fires postponed→open AT this instant (re-minting the user/team inbox rows); after the return it stays as honest history (the armed law reads status). Never on the edit face; a re-park restamps it." returnAt: String "Server-stamped, immutable, all-three-or-none with the anchor pair; null on hand-created tasks." originNoteId: ID "The origin note's annotated construct type (the /comments face's anchor — the come-back link is /comments//)." originAnchorType: String "The origin note's annotated construct id (the polymorphic arm — the sibling names the type; the ApprovalRequest targetType precedent)." originAnchorId: ID } "One page of the tasks listing — the records + the opaque resume cursor." type TaskPage { "The page's records." items: [Task!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Construct-ref input." input TaskConstructRefInput { "The kind of record the task refers to, such as Order or Product." type: String! "The id of that record." id: ID! } "Create-input for a Task. Assignees/teams/labels validate in-tenant + active; refs validate in-tenant + non-doomed; linkedFromTaskId validates completed-only. The taskbook inbox rows for the birth sets mint in the same transaction." input NewTaskInput { "Optional: when omitted the per-type default applies — none — the CsCase divergence class: the caption IS the task title, and an omitted caption refuses VALIDATION/INVALID at the boundary instead of defaulting; when supplied it must be non-blank." caption: String "The task's brief (≤8192)." description: String "Defaults 'normal' when omitted." priority: String "In-tenant + active User at set." reportTo: ID "≤8 distinct in-tenant active Users; omit = unassigned (the inbox open state)." assigneeUserIds: [ID!] "≤4 distinct in-tenant active Teams." teamIds: [ID!] "≤16 distinct in-tenant active TaskLabels." labelIds: [ID!] "ISO-8601 instant." dueAt: String "≤16 distinct (type,id) refs — in-tenant + non-doomed at write (ref-only)." constructRefs: [TaskConstructRefInput!] "The completed task this one reopens. Immutable." linkedFromTaskId: ID } "Edit-input for a Task. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. The id-set fields replace their sets. createdBy/linkedFromTaskId are NOT here — immutable at birth; status moves only via transitionTask; a terminal task refuses every edit (CONFLICT/IMMUTABLE)." input EditTaskInput { "The task title." caption: String "≤8192." description: String priority: String "In-tenant + active User at set." reportTo: ID "Replaces the assignee set (the book rows follow in the same txn)." assigneeUserIds: [ID!] "Replaces the team set." teamIds: [ID!] "Replaces the label set." labelIds: [ID!] dueAt: String "Replaces the ref set (the REF book rows follow)." constructRefs: [TaskConstructRefInput!] } "A Team — a named group Users inside ONE org group. Built domain-neutral by ruling: Tasks v1 is merely the first consumer (task teamIds + the taskbook#team inbox lane, teamTasks); the CS routing/queues build consumes it later without reshaping (the CsCase assignedTo doc's own deferral resolves construct-side here). memberUserIds is a bounded distinct set; leadUserId must be a member. Searchable by caption. The identity event domain (at.identity.team.* — teams group identity-domain principals)." type Team { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like TM-… — stable for the record’s life." sysId: String! "The kind of record — always `Team` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Team parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The member Users (≤100, distinct; in-tenant + active at set)." memberUserIds: [ID!]! "The team lead — must be a member; absent = no designated lead." leadUserId: ID } "One page of the teams listing — the records + the opaque resume cursor." type TeamPage { "The page's records." items: [Team!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a Team. Members validate in-tenant + active; the lead must be among the supplied members." input NewTeamInput { "Optional: when omitted the per-type default applies — none — the CsCase divergence class: the caption IS the team name, and an omitted caption refuses VALIDATION/INVALID at the boundary instead of defaulting; when supplied it must be non-blank." caption: String "≤100 distinct in-tenant active Users; omit = an empty team (named before staffed)." memberUserIds: [ID!] "Must be among the supplied members." leadUserId: ID } "Edit-input for a Team. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. memberUserIds replaces the set (revalidated whole); the lead-∈-members law re-checks against the post-edit set (an edit that orphans the standing lead refuses — clear or move the lead in the same edit). status moves only via the transition ops." input EditTeamInput { "The team name." caption: String "Replaces the member set." memberUserIds: [ID!] "Must be a member of the post-edit set." leadUserId: ID } "A TaskLabel — the work vocabulary: a group-defined label attached to Tasks by reference (labelIds). Deliberately its OWN master, NOT a reuse of the catalog Tag — catalog vocabulary (what we sell) and work vocabulary (how we operate) must not blend, and dooming a work label must never referential-gate against catalog nodes. The Tag shape otherwise (caption + optional #rrggbb color; free-string labels stay unrepresentable — typo-proof, rename-safe via caption). NOT searchable (supporting vocabulary — the Decoration SB-d class; reached via the tasks list filter, never name-found). The ops event domain (at.ops.task_label.*)." type TaskLabel { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like LB-… — stable for the record’s life." sysId: String! "The kind of record — always `TaskLabel` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a TaskLabel parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "Optional display color (#rrggbb, lowercase-normalized); absent ⇒ the surface default chip." color: String } "One page of the taskLabels listing — the records + the opaque resume cursor." type TaskLabelPage { "The page's records." items: [TaskLabel!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a TaskLabel." input NewTaskLabelInput { "Optional: when omitted the per-type default applies — none — the CsCase divergence class: the caption IS the label text, and an omitted caption refuses VALIDATION/INVALID at the boundary instead of defaulting; when supplied it must be non-blank." caption: String "#rrggbb hex (lowercase)." color: String } "Edit-input for a TaskLabel. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. status moves only via the transition ops." input EditTaskLabelInput { "The label text." caption: String "#rrggbb hex (lowercase)." color: String } "A device hardware class: the 4 native POS surfaces + the in-Office browser POS + the Pi legacy-peripheral bridge. Canned + AT-extensible — added by the platform, never merchant-defined." enum DeviceType { pos_native_ios_phone pos_native_ipad pos_native_android_phone pos_native_android_tablet pos_browser pi_bridge } "A Device — the physical hardware identity (native POS apps, the in-Office browser POS, the Pi legacy-peripheral bridge), kept separate from the logical Register it serves: the pairing ref is one-way Device→Register (0..1, re-pairable — registerId lives here, never on the Register). Born pending_pairing via the bespoke enrollDevice (the pairing code returns once, TTL 15 min); completePairingDevice (public — the code IS the auth) flips it active and returns the device credential once. active ⇄ suspended is the kill-switch pair; dooms from active/suspended gate on the paired Register's open TillSession. At POS the real principal is composite (decision E): device session (where/trust) + user session (WHO/authority) — the auth seam. NOT searchable (infrastructure — the Register non-joiner stance)." type Device { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like DE-… — stable for the record’s life." sysId: String! "The kind of record — always `Device` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of pending_pairing, active, suspended or doomed." status: String! "The parent LogicalFacility; rootId = the org group; parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The canned hardware class — set at enrollment, immutable." deviceType: DeviceType! "The 0..1 one-way Register pairing. Moves only via pairDeviceToRegister/unpairDevice — never via update." registerId: ID "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the devices listing — the records + the opaque resume cursor." type DevicePage { "The page's records." items: [Device!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Edit-input for a Device. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. deviceType and the parent LF are immutable at birth; registerId moves only via pairDeviceToRegister/unpairDevice (an evented operational act, never a field edit); status moves only via the transition ops." input EditDeviceInput { caption: String code: String } "A peripheral class. The scale serves catch-weight; the card_reader is the Stripe Terminal hook." enum DevicePeripheralType { barcode_scanner receipt_printer label_printer display_pole cash_drawer card_reader scale } "A peripheral connection mode: native USB/Bluetooth, the Pi legacy gateway, Chrome WebUSB, or network." enum DevicePeripheralConnection { native_usb native_bluetooth pi_bridge webusb network } "One preset peripheral model." type PeripheralModel { "The stable registry key a DevicePeripheral’s model references." model: String! "The display name (the peripheral’s natural default caption)." caption: String! peripheralType: DevicePeripheralType! "The connection modes this model supports — a DevicePeripheral must use one of these." connections: [DevicePeripheralConnection!]! } "A DevicePeripheral — the hardware a Device owns: barcode scanners, receipt/label printers, display poles, cash drawers, card readers, and scales. The model must name the AT-maintained preset registry; peripheralType + model are immutable at birth (swapped hardware = a new peripheral), connection is mutable (re-cabling is an edit). NOT searchable (hardware config — reached via its owning Device)." type DevicePeripheral { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like PH-… — stable for the record’s life." sysId: String! "The kind of record — always `DevicePeripheral` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent Device; rootId = the org group; parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The canned peripheral class — set at creation, immutable." peripheralType: DevicePeripheralType! "The preset-registry model key — set at creation, immutable." model: String! "How this unit attaches — mutable; must stay within the model’s supported set (kit-gated)." connection: DevicePeripheralConnection! "The Stripe Terminal reader this unit registered as: present exactly on card_reader+network peripherals (stamped at birth); immutable. A tmr_ reference of at most 128 characters — it rides record-first into Payment.methodRef." readerRef: String } "One page of the devicePeripherals listing — the records + the opaque resume cursor." type DevicePeripheralPage { "The page's records." items: [DevicePeripheral!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a DevicePeripheral." input NewDevicePeripheralInput { "Optional: when omitted the per-type default applies — the preset model's display name ('Zebra DS2208'); when supplied it must be non-blank." caption: String "The owning Device — tenant-scoped + non-doomed. Immutable after birth." deviceId: ID! "Immutable after birth." peripheralType: DevicePeripheralType! "A preset-registry key (cannedPeripheralModels) whose peripheralType matches. Immutable after birth." model: String! "One of the model’s supported modes." connection: DevicePeripheralConnection! "The reader-displayed Stripe registration code — required iff card_reader+network (the smart reader registers at birth, on the org’s connected account), refused otherwise (strict both ways). Consumed by Stripe — never stored." registrationCode: String } "Edit-input for a DevicePeripheral. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. peripheralType/model and the parent Device are immutable at birth (swapped hardware = a new peripheral); a connection edit re-validates against the stored model’s supported set in the kit; status moves only via the transition ops." input EditDevicePeripheralInput { caption: String "One of the model’s supported modes (kit-gated)." connection: DevicePeripheralConnection } "An ApiKey — the third-party / programmatic access credential. Issued only by an org-group-level owner (the platform's live ownership gate — the minting actor is a User whose Account holds group ownership); parent = the minting User. Reach derives live from the minter's current ownerships — the key works on exactly the group's orgs where the minter is also currently an org owner; ownership loss/re-grant is never a transition (re-grant revives a not-doomed key). Descriptors ride the Roles grammar (allow/disallow, default-deny, disallow-wins), immutable at birth; mandatory expiry ≤ 12 months (the scheduler fires active → expired — a distinct doomed terminal). The secret shows once at mintApiKey, hash-only at rest, and is presented only to exchangeApiKey → a 24 h-absolute no-idle API session. NOT searchable; the reads are gated." type ApiKey { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like AK-… — stable for the record’s life." sysId: String! "The kind of record — always `ApiKey` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, expired or doomed." status: String! "The parent = the minting User; rootId = the org group; parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The allow/disallow descriptor set — set at minting, immutable." descriptors: [RoleDescriptor!]! "The mandatory expiry instant; the scheduler fires active → expired at this date." expiresAt: String! } "One page of the apiKeys listing — the records + the opaque resume cursor." type ApiKeyPage { "The page's records." items: [ApiKey!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Edit-input for a ApiKey. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. Caption only: descriptors + expiresAt are immutable at birth; status moves only via doomApiKey / the scheduled expiry." input EditApiKeyInput { caption: String } "One author-time step mark." type ScratchpadStepMark { "The mark vocabulary: UNKNOWN_OPERATION | NOT_CREATE_CLASS | INVALID_JSON | INPUT_TOO_LONG | INPUT_INVALID | BAD_STEP_REF." code: String! message: String! } "One plan step. input is the operation's input-argument JSON as text (the revisions recordJson carrier class — no generic JSON scalar exists); realizedId + bornType stamp together once realization executes this step (the forward provenance — realizedInto; the Task {type,id} row shape)." type ScratchpadPlanStep { seq: Int! operation: String! input: String! mark: ScratchpadStepMark realizedId: ID bornType: String } "The transitionScratchpad op vocabulary." enum ScratchpadTransitionOp { "draft → ready." ready "ready → draft." reopen "ready → approved." approve "draft → abandoned · ready → abandoned · approved → abandoned · realization_failed → abandoned." abandon } "A Scratchpad: collects intent (free text now; wizard answers/imports/suggestions/consultations mint through their own entrances later) until it holds a plan — ordered {operation, input} steps in wire vocabulary (≤24; creates-only v1: each operation must be a live create-class registry mutation) — and, once a human approves, realizes the plan into born constructs through the ordinary ops under the realizing caller's OWN session and capability (the hardened-Aldric law: the spine holds zero special authority; AI is just one plan author, and the spine never knows the difference). User-parented (the collector owns the walk), group-rooted. Invalid steps are marked, never repaired; a marked plan can be ready for human eyes but can never be approved. Approval pins the plan revision (the approved plan IS the executed plan); realization is idempotent + convergent-resume and every step's born cause narrates the scratchpad. The ops event domain (at.ops.scratchpad.*)." type Scratchpad { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like SD-… — stable for the record’s life." sysId: String! "The kind of record — always `Scratchpad` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of draft, ready, approved, realizing, realized, realization_failed or abandoned." status: String! "The collecting User; parentId ≠ rootId by construction (the org group is the root)." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "Where the plan came from (wizard | freeform | import | suggestion | consultation) — stamped at the entrance (freeform v1), never caller-editable." origin: String! "The collected free-text intent (≤8192; absent = nothing collected yet)." intent: String "The ordered plan (seq === position, server-assigned; empty until setScratchpadPlan; marks are the author-time verdicts, verbatim)." plan: [ScratchpadPlanStep!]! "Bumps on every setScratchpadPlan — the approval pin's subject." planRevision: Int! "Stamped by approve (= planRevision at approval) — realization refuses on drift." approvedPlanRevision: Int "The step currently executing (progress-honest; a resume finding it set with no realized id refuses auto-resume — the ambiguity fence)." inFlightSeq: Int "The last realization fault, superseded by a successful retry (the ChangeRequest realizationFault class)." realizationFault: String "Where a consultation-born plan came from: the conversation (with originTurnSeq, the Aldric turn that drafted it) — the way back; absent on every other entrance and on rows born before it was kept." originConsultationId: ID "The turn number of the Aldric reply that drafted a consultation-born plan (rides with originConsultationId, never alone)." originTurnSeq: Int "Where a suggestion-born plan came from: the suggestion the take minted it from — the way back; absent on every other entrance and on rows born before it was kept." originSuggestionId: ID } "One page of the scratchpads listing — the records + the opaque resume cursor." type ScratchpadPage { "The page's records." items: [Scratchpad!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "One authored plan step." input ScratchpadPlanStepInput { "A live create-class registry mutation name (create — creates only v1, strict)." operation: String! "The operation's input-argument JSON as text (≤4096 chars)." input: String! } "Create-input for a Scratchpad. the caption IS the scratchpad name and is required at the boundary." input NewScratchpadInput { "Optional: when omitted the per-type default applies — none — the CsCase divergence class: the caption IS the scratchpad name, and an omitted caption refuses VALIDATION/INVALID at the boundary instead of defaulting; when supplied it must be non-blank." caption: String "The collected free-text intent (≤8192); omit = named before collected." intent: String } "Edit-input for a Scratchpad. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved; explicit null clears intent. Caption/intent edit freely in every live state — realizing and the terminal states refuse CONFLICT/IMMUTABLE mechanically; the plan moves only via setScratchpadPlan (draft-only — the review hold freezes it). status moves only via the transition ops." input EditScratchpadInput { "The scratchpad name." caption: String "The collected intent; explicit null clears." intent: String } "One drafted plan step." type SuggestionPlanStep { operation: String! input: String! } "A Suggestion: a declared skill's detector minted this offer from bounded live reads: the WHY in merchant words, the evidence refs (exactly what it looked at), a drafted plan in wire vocabulary, and an expiry. System-minted end to end (authorless — no create/edit surface exists; refreshSuggestions is the only entrance). the offer rule: a caller sees only suggestions whose drafted plan their own capability could realize — the list filters, the get answers null, and take/decline enforce the same predicate (preview ≡ enforcement). Taking mints a Scratchpad through the live spine (origin suggestion; the plan lands via the setScratchpadPlan validate/mark path verbatim — stale steps arrive marked, never repaired); declining stores the learning reason on the record. Every suggestion drills down to the SuggestionSchema that produced it. The ops event domain (at.ops.suggestion.*)." type Suggestion { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like SU-… — stable for the record’s life." sysId: String! "The kind of record — always `Suggestion` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of open, taken, declined, expired or superseded." status: String! "The Organization whose desk holds the offer; rootId = the org group." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The declared skill that produced this offer." skill: String! "The per-org schema registration that generated it." schemaId: ID! "WHY, in merchant words (≤2000)." why: String! "Exactly what the detector looked at (the Task {type, id} structured-ref shape reused — ≤16)." evidenceRefs: [TaskConstructRef!]! "The drafted plan in wire vocabulary." draftedPlan: [SuggestionPlanStep!]! "The (skill × subject) identity (≤256) — the refresh dedup law: an identical open twin skips the mint; changed content supersedes and mints fresh." dedupKey: String! "The offer's lapse instant (mint + 7 days, ISO-8601): the sweep expires it, and a take/decline past it refuses CONFLICT/EXPIRED lazily expiring on the touch." expiresAt: String! "Take-stamped (with the taken flip — one fact): the Scratchpad the take minted through the live spine; the provenance forward." takenScratchpadId: ID "Decline-stamped (with the declined flip): the stored learning judgment." declineReason: String } "One page of the suggestions listing — the records + the opaque resume cursor." type SuggestionPage { "The page's records." items: [Suggestion!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "The transitionSuggestionSchema op vocabulary." enum SuggestionSchemaTransitionOp { "active → parked." park "parked → active." reactivate "parked → doomed." doom } "A SuggestionSchema: ONE row per (Organization × declared skill), ensure-minted lazily at the first desk refresh (authorless; the (org × skill) uniqueness marker makes the ensure race-proof). Parking it stops the generator for the org (‘we no longer run these’ — reactivatable, owner-gated A2_STRUCTURE); dooming is the deliberate permanent kill (parked-first; refused CONFLICT/REFERENCED while open suggestions still cite it; a doomed schema never re-ensures). Every Suggestion's schemaId drills down here — provenance to the generator. The skill's declared words/watches/drafts live in the contracts SUGGESTION_SKILL_REGISTRY. The ops event domain (at.ops.suggestion_schema.*)." type SuggestionSchema { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like SS-… — stable for the record’s life." sysId: String! "The kind of record — always `SuggestionSchema` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, parked or doomed." status: String! "The Organization the registration governs; rootId = the org group." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The declared skill this row registers (low_stock | aging_approvals | stock_imbalance — the caption carries the skill's merchant words)." skill: String! } "One page of the suggestionSchemas listing — the records + the opaque resume cursor." type SuggestionSchemaPage { "The page's records." items: [SuggestionSchema!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "One drafted step on a turn." type ConsultationPlanStep { operation: String! input: String! mark: ScratchpadStepMark } "One transcript turn (the CaseMessage thread class — sysId-less, immutable once spoken except the set-once takenScratchpadId stamp). seq is the conversation ordinal (0-based, server-assigned); createdAt is the transcript timestamp." type ConsultationTurn { id: ID! seq: Int! role: String! body: String! materialIds: [ID!] draftedPlan: [ConsultationPlanStep!] "The plan's own name in merchant words (Aldric turns carrying a drafted plan; ≤ 160 characters) — the scratchpad a take mints wears it." draftedPlanTitle: String takenScratchpadId: ID "The client-minted turn key the ask carried (user turns only; 16–128 printable characters) — a re-send carrying the same key answers this turn and its reply instead of asking again." turnKey: String createdAt: String! } "The askConsultation result — the updated record + the two turns the ask appended (the question as spoken, the reply as drafted-and-marked)." type AskConsultationResult { consultation: Consultation! turns: [ConsultationTurn!]! } "The transitionConsultation op vocabulary." enum ConsultationTransitionOp { "open → archived." archive "archived → open." reopen "open → discarded · archived → discarded." discard } "A Consultation: the verbatim transcript is the record (bounded turn rows — read via consultationTurns) and the memory is the stored rolling summary ON this record — auditable, purgeable, merchant-visible, never hidden model state. Each ask composes the summary + the last 12 turns verbatim + the asked materials' stored extractions (extract-then-compose — raw content is read exactly once, at material confirm). Aldric may attach a drafted plan to a reply; taking a drafted plan (takeConsultationPlan) mints a Scratchpad through the live spine (origin consultation) and the walk proceeds under the taker's own capability (the hardened-Aldric law — the chat holds zero mutation authority). Outgrowing the 200-turn transcript refuses honestly naming the cure: a follow-on consultation linked via followOnOfId (never silent middle-loss). User-parented (the consulter owns the chat), group-rooted. The ops event domain (at.ops.consultation.*)." type Consultation { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like CI-… — stable for the record’s life." sysId: String! "The kind of record — always `Consultation` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of open, archived or discarded." status: String! "The consulting User; parentId ≠ rootId by construction (the org group is the root)." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The transcript length." turnCount: Int! "The stored rolling summary." summary: String "Turns below this seq live inside the summary; turns from it onward compose verbatim into each ask." summarizedThroughSeq: Int! "The outgrowth link — the consultation this one continues." followOnOfId: ID "System-stamped at birth, at every ask and at reopen = the last activity + 30 days — the scheduler archives the conversation at this instant if it is still open; a parked row keeps its last stamp as history." idleArchiveAt: String "System-stamped when the conversation archives (by you or by the idle sweep) = the archive instant + 90 days — the scheduler moves the transcript to the archive bucket at this instant if the conversation is still archived; reopen removes it; a tiered row carries none." turnsTierAt: String "Present (`archive`) once the transcript has moved to the archive bucket after 90 days archived — consultationTurns still reads it whole (the tier is transparent); taking a drafted plan then needs a reopen first; reopen brings the rows back and clears this. Absent while the rows are hot." turnsTier: String } "One page of the consultations listing — the records + the opaque resume cursor." type ConsultationPage { "The page's records." items: [Consultation!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a Consultation. followOnOfId must name an in-tenant Consultation." input NewConsultationInput { "Optional: when omitted the per-type default applies — none — the Scratchpad divergence class: the caption IS the consultation name, and an omitted caption refuses VALIDATION/INVALID at the boundary instead of defaulting; when supplied it must be non-blank." caption: String "The consultation this one continues (in-tenant gated; optional)." followOnOfId: ID } "Edit-input for a Consultation. Every field optional, at least ONE required; supplied fields replace — the caption only (the transcript, summary, and counters are engine-owned facts that never move by edit); open only (archived and discarded refuse CONFLICT/IMMUTABLE mechanically — reopen first)." input EditConsultationInput { "The consultation name." caption: String } "A WebhookSubscription — the documented non-GraphQL edge OUT (mirrors the inbound Stripe webhook edge): the merchant registers an https target URL + a filtered set event names, and the delivery lane POSTs hmac-signed thin payloads at-least-once with retries/backoff/DLQ. The payload names {id, event, occurredAt, construct{type,id}, revision, subscriptionId} — the receiver dedupes on id and reads the record through this same API with its ApiKey (no fat payloads, no parallel surface). Signing mirrors the Stripe scheme (almondtill-signature: t=,v1=. under the secret>); the secret shows once at create/rotate and lives in the non-streamed credential store, never on the record. Group-parented (parentId === rootId); born active; 20 consecutive delivery failures fire the automatic active → suspended flip; reactivate serves both inactive → active and suspended → active (fix the endpoint, then reactivate; missed events do NOT replay — re-sync via the API). Owner-gated end to end (the mintApiKey posture); NOT searchable (integration config — reached via the owner-gated list)." type WebhookSubscription { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like WH-… — stable for the record’s life." sysId: String! "The kind of record — always `WebhookSubscription` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive, suspended or doomed." status: String! "The parent = the org group; parentId === rootId always (the Affiliate class — deliveries span the whole group’s orgs)." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The https delivery endpoint (the egress law: https only, no credentials, no explicit port, no IP-literal/localhost/private-suffix hosts; ≤512 chars). Mutable via update — fixing the endpoint is the suspended-repair flow." targetUrl: String! "The event-name filter set (1..64, deduped) — each name must be in the derived deliverable universe (transition success events + at...create.ok.v1 birth names over the whole construct catalog)." eventTypes: [String!]! "Consecutive delivery-attempt failures (the deliverer’s counter — reset by the first success after failures; never written on steady-state success). At 20 the automatic suspend fires." consecutiveFailures: Int! "The last failed delivery attempt’s instant (failure-path-only; stands as history after recovery until the next failure overwrites)." lastFailureAt: String "The last failure’s short token — an HTTP status (http_500) or a fetch-error class (timeout, network); never a response body." lastFailureCode: String "Stamped by the automatic suspend flip; cleared by reactivate." suspendedAt: String "The last signing-secret rotation’s instant; null until the first rotation." secretRotatedAt: String "The owning Plugin: this subscription is part of that plugin’s declared event feed; immutable at birth (a re-bind = a new subscription); an un-doomed bound subscription blocks the plugin’s doom." pluginId: ID } "Edit-input for a WebhookSubscription. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved." input EditWebhookSubscriptionInput { caption: String targetUrl: String eventTypes: [String!] } "A Plugin — a third-party extension's declaration record on the canned-pool selection pattern: the group registers the plugin once, each org enables it via an OrgPlugin selection. Extensions run out-of-process on the developer's own infrastructure — never in-process here. The record declares what the integration IS: the least-privilege descriptor scopes (the ApiKey grammar, allow-only — the contract the merchant mints a key against; descriptive at v1, the marketplace's automated mint-flow consumes it later), an optional bound ApiKey identity (validated live in-group at write; informational v1), and its event feed — which rides real WebhookSubscription rows carrying pluginId (never a mirrored field). uiSlots is deliberately absent until the office slot system exists. ≤64 per group; doom is gate-protected: a non-doomed OrgPlugin selection OR an un-doomed bound WebhookSubscription blocks it. NOT searchable (integration config)." type Plugin { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like PN-… — stable for the record’s life." sysId: String! "The kind of record — always `Plugin` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent = the org group (the selection-master law); parentId === rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The developer/publisher display name (informational — the marketplace listing byline seed)." developerName: String "The developer homepage (https by shape; informational — NOT a delivery target: the egress law lives on WebhookSubscription.targetUrl alone)." homepageUrl: String "The declared least-privilege scope set (the ApiKey grammar rows, allow-only, deduped; 0..800 — a webhook-only plugin legally declares none). Descriptive v1; editable BY design (a declaration carries no authority — the disclosed ApiKey-immutability contrast)." requiredScopes: [RoleDescriptor!]! "The bound ApiKey identity (optional; validated live in-group at write)." apiKeyId: ID } "One page of the plugins listing — the records + the opaque resume cursor." type PluginPage { "The page's records." items: [Plugin!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "Create-input for a Plugin declaration." input NewPluginInput { "Optional: when omitted the per-type default applies — 'plugin by ' when given, else 'plugin'; when supplied it must be non-blank." caption: String developerName: String homepageUrl: String "The declared allow-only scope set; omitted = none (a webhook-only plugin)." requiredScopes: [RoleDescriptorInput!] apiKeyId: ID } "Edit-input for a Plugin. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved." input EditPluginInput { caption: String developerName: String homepageUrl: String requiredScopes: [RoleDescriptorInput!] apiKeyId: ID } "An OrgPlugin selection — the per-org enablement of a group Plugin. Parent = the organization (not the family root). Freely deactivatable/doomable; a NON-doomed selection blocks the master Plugin doom only. CONFLICT/UNSELECTED is reserved for future org-scoped plugin references (none exist v1 — the enablement itself is the v1 product)." type OrgPlugin { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like EP-… — stable for the record’s life." sysId: String! "The kind of record — always `OrgPlugin` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent Organization; for a selection parentId!== rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The selected group Plugin — set at creation, immutable thereafter." pluginId: ID! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the orgPlugins listing — the records + the opaque resume cursor." type OrgPluginPage { "The page's records." items: [OrgPlugin!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "Create-input for an OrgPlugin selection." input NewOrgPluginInput { "Optional: when omitted the per-type default applies — the merchant code when given, else 'Org Plugin'; when supplied it must be non-blank." caption: String "The parent Organization id — rides the header." organizationId: ID! "The group Plugin this selection enables — immutable after birth." pluginId: ID! code: String } "Edit-input for a OrgPlugin. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. pluginId is NOT editable, nor is the parent-org ref (the header)." input EditOrgPluginInput { caption: String code: String } "Delivery is pull only v1: list runs via feedSubscriptionRuns, then mint a short-lived presigned download with mintFeedRunDownload — the BI tool authenticates as its OWN ApiKey session and there are zero stored credentials (the presigned ticket IS the custody; a push feed-ready event is a named growth). The per-org weld: organizationId names the ONE exported org (in-group live-gated); org-parented dataset rows filter to it, group-parented catalog masters (Style/Product) export whole — the shared catalog IS each org's catalog. Group-parented (parentId === rootId); born active with nextDueAt = the birth instant (the next hourly tick runs it); at most 10 active feeds per group (the webhook cap class); 5 consecutive failed runs fire the automatic active → suspended flip; reactivate serves both inactive → active and suspended → active (fix the feed via update, then reactivate; no catch-up runs — the next run is the next cadence step). Runs prune to the newest 8 per feed (bounded custody). Owner-gated end to end (the mintApiKey posture — data-OUT is exfiltration-adjacent); NOT searchable (integration config — reached via the owner-gated list)." type FeedSubscription { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like FD-… — stable for the record’s life." sysId: String! "The kind of record — always `FeedSubscription` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive, suspended or doomed." status: String! "The parent = the org group; parentId === rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The per-org weld: the ONE org this feed exports — must be an in-group live Organization (gated at create AND edit); org-parented dataset rows filter to it; group-parented catalog masters export whole (the shared catalog IS each org’s catalog)." organizationId: ID! "What exports — one canned construct type. Mutable (routing, not authority)." dataset: String! "How often — daily · weekly · monthly. nextDueAt steps by the cadence from each RUN instant (a late run does not compound); a cadence edit applies from the next run (the stored due stands)." cadence: String! "The file serialization — jsonl (one stored record per line, storage attrs stripped; lossless, the default posture) or csv (the flat scalar fields, header = the union; nested fields omitted — the disclosed lossy trade for flat masters)." format: String! "When the next run is due (stored — the hourly sweeper compares against it, never re-derives from history; birth = the create instant, so the first tick runs it)." nextDueAt: String! "The last successful run’s instant (null until the first success)." lastRunAt: String "The last successful run’s object key under the group’s feeds/ prefix (the newest pull coordinate; feedSubscriptionRuns lists the retained window)." lastRunKey: String "Consecutive failed runs (the exporter’s counter — reset by the first success after failures). At 5 the automatic suspend fires." consecutiveFailures: Int! "The last failed run’s instant (failure-path-only; stands as history after recovery until the next failure overwrites)." lastFailureAt: String "The last failure’s short named token (rows_over_cap · serialize_fault · s3_fault); never row data." lastFailureCode: String "Stamped by the automatic suspend flip; cleared by reactivate." suspendedAt: String } "Edit-input for a FeedSubscription. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. caption/organizationId/dataset/cadence/format are all mutable (a re-pointed feed is normal lifecycle — the WebhookSubscription routing-not-authority contrast; suspended rows stay editable — fix the feed, then reactivate; organizationId re-gates in-group live)." input EditFeedSubscriptionInput { caption: String organizationId: ID dataset: String cadence: String format: String } "A FraudAlert — the merchant triage register over the derived fraud-signal layer: a signal crossing a policy threshold raises an alert naming the signal family (void_no_sale · return_refund_abuse · discount_override_abuse · override_pattern · cash_over_short · dispute_chargeback), the normalized score (0..100) vs the crossed threshold, the implicated staff principal and/or facility, the scoring window, and the triggering records. Signals, not enforcement: the / authority layer enforces; an alert only records and asks. System-raised end to end — no create surface exists; the merchant triages: acknowledge (open → acknowledged — investigating; disarms the age-out), then confirm (a kept immutable finding — terminal but NOT doomed) or dismiss (a false positive — the reason is required). Untriaged alerts age out after 30 days. Triage identity/notes are the revision causes (History + the org-bus render actor + reason + instant — never duplicated fields). NOT searchable (sensitive review data — reached via the A17_FRAUD-gated paginated listing, never name-found); the listing pages newest-first and drops doomed (dismissed/expired) per the - law while confirmed findings stay listed." type FraudAlert { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like FA-… — stable for the record’s life." sysId: String! "The kind of record — always `FraudAlert` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of open, acknowledged, confirmed, dismissed or expired." status: String! "The parent = the org group; parentId === rootId always (the WebhookSubscription class — the register is group custody)." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "Which derived-signal family fired." signalKind: String! "The scorer's normalized score for the window (0..100)." score: Int! "The policy bound the score crossed." threshold: Int! "The scorer's bounded human explanation (≤500) — never raw event data." reason: String! "The scoring window — a UTC month (yyyy-mm) or day (yyyy-mm-dd); the scorer picks the grain per signal kind." periodKey: String! "The implicated staff principal; in-group-gated at raise, ANY status (the review judges past conduct); null when the signal implicates a facility/period only." implicatedUserId: ID "The implicated facility (scored per LF); in-group-gated at raise; null when the signal implicates a person/period only." logicalFacilityId: ID "The triggering records (≤20 — the Task {type, id} structured-ref shape reused, the Suggestion evidenceRefs precedent): advisory evidence the scorer derived from the lake; nothing gates on them, a purged target renders as a tombstone." constructRefs: [TaskConstructRef!]! "When an untriaged (open) alert ages out." expiresAt: String! } "One page of the fraudAlerts listing — the records + the opaque resume cursor." type FraudAlertPage { "The page's records." items: [FraudAlert!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "A PrivacyRequest — the GDPR/CCPA request register: every data-subject request received (erasure · access · portability · rectification · opt_out) is recorded with full provenance — the regime (gdpr · ccpa), the arrival channel, the received instant, and the subject. The ladder: verify (the identity gate — v1 the verifier's assertion, the proof narrative on the revision cause) → start → fulfill; reject serves received AND verified (ONE op, two edges — the reason is required: a refused privacy request states its grounds). The FULFILLMENT mechanics stay the existing ops — the register records and links, it never executes. NOT searchable (a compliance register holding subject PII — the gated paginated listing); the listing pages newest-first; rejected drops per page as doomed while fulfilled records stay listed." type PrivacyRequest { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like PV-… — stable for the record’s life." sysId: String! "The kind of record — always `PrivacyRequest` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of received, verified, in_progress, fulfilled or rejected." status: String! "The parent = the org group; parentId === rootId always (the FraudAlert class — the register is group custody)." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "Which data-subject right. Immutable at birth (a changed ask is a fresh request)." requestType: String! "Which regime (gdpr · ccpa — EU/CA first, extensible deliberately). Immutable at birth." regime: String! "HOW it arrived (email · phone · in_store · web · mail). Immutable at birth." channel: String! "When it arrived (may predate the recording; omitted at create ⇒ the create instant, stamped engine-side)." receivedAt: String! "The known subject; null for inline/guest subjects." consumerId: ID "The inline/guest subject handle (the requester's stated email/name, ≤200) — one of the three subject forms (at least one names the subject)." subjectRef: String "The guest sale whose buyer asks: an in-group agent sale proven at create by its receipt token (the buyer's own capability — compared in constant time, never stored); deidentifyOrder demands a verified or in-progress request naming the order; null for the other subject forms. Immutable." subjectOrderId: ID "The fulfillment evidence (≤20 — the {type, id} structured-ref shape reused): empty at birth, stamped by fulfillPrivacyRequest (the de-identified Consumer, the export target, the rectified records); advisory + tombstone-tolerant." affectedRefs: [TaskConstructRef!]! } "One page of the privacyRequests listing — the records + the opaque resume cursor." type PrivacyRequestPage { "The page's records." items: [PrivacyRequest!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "Create-input for a PrivacyRequest. The subject names via consumerId (in-group, ANY status — the register records reality) OR subjectRef (the inline handle) OR subjectOrderId + receiptToken — at least one; receivedAt omitted ⇒ the create instant." input NewPrivacyRequestInput { "Optional: when omitted the per-type default applies — ' request ()' — the right + the regime name the request; when supplied it must be non-blank." caption: String "erasure · access · portability · rectification · opt_out." requestType: String! "gdpr · ccpa." regime: String! "email · phone · in_store · web · mail." channel: String! "Optional ISO arrival instant; omitted ⇒ now." receivedAt: String "The known subject — an in-group live Consumer (gated)." consumerId: ID "The inline/guest subject handle — one of the three subject forms." subjectRef: String "The guest sale the requester bought as — paired with receiptToken; a missing order, a draft, another business's order or a wrong token all answer ONE NOT_FOUND/CONSTRUCT." subjectOrderId: ID "The sale's 22-character receipt token off the buyer's permalink — verified constant-time at create and then dropped: never stored, never logged." receiptToken: String } "The effective resolved policy value for one (scope × key) at one instant: the winning nearest-ancestor record's identity + window, or the registry-default floor (source = default, record fields null). Resolution never misses." type PolicyResolution { "The registry key resolved." key: String! "The effective value." valueInt: Int! "Where the answer came from: record (a covering window won) | default (the registry floor)." source: String! "The winning PolicyValueRecord — null when source = default." recordId: ID "The winning record's level (org | lf) — null when source = default." level: String "The winning record's window — null when source = default." startAt: String endAt: String } "A PolicyValueRecord — ONE effective-dated value window in the tenant policy schedule, resolved LF → org → the registry default nearest-ancestor-with-value at every read. Keys are registry-defined. Doom cancels a not-yet-effective future record only (CONFLICT/IMMUTABLE otherwise — supersede instead). The window/key/value fields are wire-IMMUTABLE (the edit surface is caption only). The catalog ladder's zone rung is a named registry growth — no v1 key legally scopes there." type PolicyValueRecord { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like PC-… — stable for the record’s life." sysId: String! "The kind of record — always `PolicyValueRecord` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active or doomed." status: String! "The scope anchor: an Organization or a LogicalFacility — validated live at create; rootId = the org group." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The resolution level this record binds. Stored explicit, validated against the real parent at create; immutable." level: String! "The registry key. Immutable — a different key is a different sub-schedule." key: String! "The value (INT — the no-floats discipline; registry-bounded per key: the v1 thresholds take 1..100). Immutable — supersede with a new window." valueInt: Int! "The window start (inclusive; UTC ISO-8601) — set at birth (absent in the create input = effective NOW, server-stamped), immutable thereafter." startAt: String! "The window end (exclusive; UTC ISO-8601; always present — far-future = the standing value). Moves only via the system splice trim." endAt: String! } "One page of the policyValues listing — the records + the opaque resume cursor." type PolicyValueRecordPage { "The page's records." items: [PolicyValueRecord!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "Create-input for a PolicyValueRecord." input NewPolicyValueRecordInput { "Optional: when omitted the per-type default applies — the window coordinate ` = from `; when supplied it must be non-blank." caption: String organizationId: ID logicalFacilityId: ID "The registry key — an unknown key refuses naming the roster." key: String! "The value — INT, registry-bounded per key (the v1 thresholds take 1..100)." valueInt: Int! "The window start (inclusive; UTC ISO-8601). Optional — absent = effective NOW (server-stamped); explicit values must be >= the server now (no past starts)." startAt: String "The window end (exclusive; UTC ISO-8601). Always required (far-future = the standing value); must be strictly after startAt." endAt: String! } "Edit-input for a PolicyValueRecord. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. The window/key/value fields are NOT editable." input EditPolicyValueRecordInput { caption: String } "A CouponBatch: a Coupon-parented batch of unique single-use child codes (the campaign lane). Each child code is a KEY to the parent coupon's terms — the parent's flavor/window/cap/eligibility verdicts run unchanged at attach and the parent's redeem counter counts every use; the child adds exactly ONE law: it redeems once (the stamp rides the place transaction conditioned — a lost race between two carts refuses the second placement). Minted whole in ONE transaction (≤48 codes — the ceiling IS the transaction bound; bigger campaigns mint more batches) via the bespoke createCouponBatch; the codes are server-generated (- — unguessable, never caller-supplied), take the same org-group code-namespace uniq marker parent codes use, and are listable via couponBatchCodes (campaign codes are distribution artifacts, not secrets). Dooming the batch voids its unredeemed children (attach refuses naming the batch) while redeemed history stands; a clawed-back child (a cancelled order) is redeemable again — the customer's code survives a voided sale." type CouponBatch { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like CB-… — stable for the record’s life." sysId: String! "The kind of record — always `CouponBatch` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active or doomed." status: String! "The parent Coupon whose terms every child unlocks — immutable at birth (re-parent = a new batch); parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The normalized prefix every child code carries (`-`) — immutable at birth." codePrefix: String! "The minted child count (1..48 — the one-transaction bound); immutable (the batch is born whole)." codeCount: Int! } "One page of the couponBatches listing — the records + the opaque resume cursor." type CouponBatchPage { "The page's records." items: [CouponBatch!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "The segment kinds (immutable at birth) — static = explicit membership via the member ops; dynamic = membership derived from the stored predicate (refreshSegment re-materializes)." enum SegmentType { static dynamic } "The loyalty-tier axis — the program named (a group can run several); tier names from that program's declared ladder, OR within the list." type SegmentLoyaltyTierAxis { programId: ID! tierNames: [String!]! } "The purchase axis' monetary floor." type SegmentPurchaseMonetaryFloor { currency: String! minorUnits: Int! } "The purchase-history RFM axis: the supplied inner facts AND-compose; each optional, at least one present; a consumer who never completed a purchase never matches. v1 figures are completions-only gross." type SegmentPurchaseAxis { "Last completed purchase within the past N days of the refresh clock (1..3650; instant math — N × 24 h)." recencyWithinDays: Int "Lifetime completed-order count at least N (1..1,000,000)." frequencyAtLeast: Int "Lifetime completed spend in the named currency at least the floor." monetaryAtLeast: SegmentPurchaseMonetaryFloor } "The dynamic-membership rule — AND across supplied axes, OR within an axis; a consumer missing an axis' fact never matches it; exclusions subtract after matching. All seven ratified axes are live." type SegmentPredicate { "Match ANY listed interest against the consumer's interests (trim+case-fold equality)." interests: [String!] "Match an active loyalty membership of the named program at ANY listed tier." loyaltyTier: SegmentLoyaltyTierAxis "Match a granted consent for ANY listed purpose (withdrawn never matches)." consentPurposeIds: [ID!] "Match the consumer's preferred store (favorite LogicalFacility) in the list." preferredLogicalFacilityIds: [ID!] "Match a birthday (month-day of dateOfBirth) within the next N days of the refresh clock (1..366; today counts; Feb-29 celebrates Mar-1 in non-leap years)." birthdayWithinDays: Int "Match purchase history (RFM — the completions-fed stats read-model): the inner facts AND-compose; a consumer with no completed purchase never matches." purchase: SegmentPurchaseAxis "Match a consumer carrying ANY listed Tag (the staff-curated attachment set on the Consumer); an untagged consumer never matches." tagIds: [ID!] } "A Segment: a merchant-authored consumer grouping for marketing. segmentType is immutable at birth — static (explicit membership: batched adds/removes of ≤48 consumers per call, the one-transaction law; the pair key dedupes structurally) or dynamic (membership derived from the stored predicate — the member ops refuse; edit the predicate/exclusions and call refreshSegment to re-materialize; evaluatedAt shows the staleness honestly, refreshProblem words a queued refresh that could not complete, and a scheduled sweep re-refreshes stale active dynamics ~daily). memberCount meters live membership (bounded ≤100000 — the add/refresh refuses past it naming the figure). Marketing-only-over-consented is the consuming lane's law when campaigns/exports arrive — the definition stores membership only. NOT searchable (a membership register); inactive = staging (membership edits stay legal while building)." type Segment { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like SE-… — stable for the record’s life." sysId: String! "The kind of record — always `Segment` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Segment parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "static | dynamic — immutable at birth (a different kind is a NEW segment)." segmentType: SegmentType! "The live membership meter (the counter twin of the member rows); absent = never added." memberCount: Int "The dynamic rule (dynamic-only; AND across supplied axes, OR within one) — membership re-materializes at refreshSegment." predicate: SegmentPredicate "Manual exclusions (dynamic-only; at most 256, unique, write-time-validated Consumer refs) — subtracted after matching at every refresh." excludedConsumerIds: [ID!] "The last refresh instant (dynamic-only; absent = never refreshed — honest staleness)." evaluatedAt: String "The async lane’s honest-failure word: why the last queued refresh could not complete (figures named); cleared by any successful refresh; absent = clean." refreshProblem: String } "One page of the segments listing — the records + the opaque resume cursor." type SegmentPage { "The page's records." items: [Segment!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "The loyalty-tier axis input — tierNames must be tiers the named program declares (unknown names refuse teaching the ladder)." input SegmentLoyaltyTierAxisInput { "The id of the loyalty program whose tier the shopper must hold." programId: ID! "The tiers that match within that program — 1 to 8 names; a member of any of them matches." tierNames: [String!]! } "The monetary floor input — currency + integer minor units, both required (the floor rides whole or not at all)." input SegmentPurchaseMonetaryFloorInput { "The currency the spending floor is measured in — a three-letter code from the registry." currency: String! "The spending floor in the minor units of that currency — 50000 is 500.00 in a two-decimal currency." minorUnits: Int! } "The purchase-history RFM axis input — each inner fact optional, ≥1 present; the facts AND-compose." input SegmentPurchaseAxisInput { "Shoppers who completed a purchase within this many days — 1 to 3650. Optional." recencyWithinDays: Int "Shoppers with at least this many completed orders — a whole number, at least 1. Optional." frequencyAtLeast: Int "Shoppers who have spent at least this much — a currency and an amount. Optional." monetaryAtLeast: SegmentPurchaseMonetaryFloorInput } "The dynamic rule input — ≥1 axis, unique members per list; every ref in-tenant + active at write." input SegmentPredicateInput { "Interests a shopper has declared — 1 to 16; a shopper with any of them matches." interests: [String!] "A loyalty program and the tiers within it a shopper must hold." loyaltyTier: SegmentLoyaltyTierAxisInput "The ids of consent purposes the shopper must have granted — any one of them matches." consentPurposeIds: [ID!] "The ids of locations the shopper prefers — any one of them matches." preferredLogicalFacilityIds: [ID!] "Shoppers whose birthday falls within this many days — 1 to 366." birthdayWithinDays: Int "Purchase facts a shopper must meet — recency, frequency and spending; each stands alone and all supplied must hold." purchase: SegmentPurchaseAxisInput "The tag axis (at most 16, unique) — each ref in-tenant + active at write." tagIds: [ID!] } input NewSegmentInput { "Optional: when omitted the per-type default applies — the type word (e.g. `static segment`); when supplied it must be non-blank." caption: String "static | dynamic — immutable at birth." segmentType: SegmentType! "Required on dynamic, refused on static." predicate: SegmentPredicateInput "Dynamic-only manual exclusions (≤256 unique in-tenant consumers)." excludedConsumerIds: [ID!] } "Edit-input for a Segment. Every field optional, at least ONE required; supplied fields replace segmentType is immutable at birth. On dynamic: predicate replaces wholesale (never clearable) and excludedConsumerIds replaces wholesale (releases) — the membership re-materializes at the next refreshSegment; both refuse on static (the cross-type law). Static membership moves via addSegmentMembers/removeSegmentMembers." input EditSegmentInput { caption: String "Wholesale replacement (dynamic-only)." predicate: SegmentPredicateInput "Wholesale replacement (dynamic-only; releases)." excludedConsumerIds: [ID!] } "The v1 canned metric roster." enum DashboardMetric { sales_today sales_week orders_open sell_through_30d inventory_value low_stock_count cs_open_cases review_average loyalty_signups_30d fraud_alerts_open units_by_day_30d sales_by_day_30d transactions_by_day_30d returns_by_day_30d tender_mix_30d sales_by_organization_30d org_census api_calls_month ai_calls_month storage_mib } "One widget row — a canned metric at a unique layout ordinal." type DashboardWidget { metricKey: DashboardMetric! ordinal: Int! } "A Dashboard: a merchant-authored canned-metric widget layout. widgets = 1..20 ordered rows, each naming ONE canned metric (the v1 roster: sales_today · sales_week · orders_open · sell_through_30d · inventory_value · low_stock_count · cs_open_cases · review_average · loyalty_signups_30d · fraud_alerts_open · units_by_day_30d · sales_by_day_30d · transactions_by_day_30d · returns_by_day_30d · tender_mix_30d · sales_by_organization_30d · org_census · api_calls_month · ai_calls_month · storage_mib); ordinals unique; wholesale-replace on edit. NOT searchable." type Dashboard { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like DA-… — stable for the record’s life." sysId: String! "The kind of record — always `Dashboard` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Dashboard parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The ordered canned-metric layout — wholesale-replace on edit (the CouponEffect class); ordinals unique." widgets: [DashboardWidget!]! "Is this the org group’s landing dashboard? At most ONE active dashboard carries true; set through setDashboardLanding alone (create/update refuse the field); deactivating or dooming the landing clears it. Filterable: `landing is true` finds it." landing: Boolean! } "One page of the dashboards listing — the records + the opaque resume cursor." type DashboardPage { "The page's records." items: [Dashboard!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "One widget row input — metricKey ∈ the canned roster; ordinals unique within the dashboard." input DashboardWidgetInput { "The figure this tile shows — one of the dashboard metrics." metricKey: DashboardMetric! "Where the tile sits on the dashboard — 0 first, then 1, 2 and so on, up to 19; each position used once." ordinal: Int! } input NewDashboardInput { "Optional: when omitted the per-type default applies — the widget count (e.g. `dashboard ×4`); when supplied it must be non-blank." caption: String "The initial layout (1..20; ordinals unique)." widgets: [DashboardWidgetInput!]! } "Edit-input for a Dashboard. Every field optional, at least ONE required; supplied fields replace widgets replace wholesale when supplied (the CouponEffect class — never merged); caption and/or widgets, at least one." input EditDashboardInput { caption: String "Wholesale replacement when supplied." widgets: [DashboardWidgetInput!] } "A Report: a saved report of ONE of two kinds. A built definition: a validated ReportSpec (the reportRun grammar verbatim: a plan + columns, or a plan + groupBy/measures, an optional sort) kept as JSON text (specJson, at most 12288 characters). A saved run of a ready-made report: the catalogue key (catalogKey — see reportCatalog) with the parameters as named (paramsJson, at most 1024 characters — the period unresolved, so a saved “this month” is each run's month and “me” is whoever runs it). Both carry their words (at most 4096 characters) and the family the rows are made of (terminalFamily); exactly one kind, never both, never neither. A Report stores NO result: every run executes as the runner under the runner's own rights through reportRun(reportId) (rows on screen, now) or startExportJob(reportId, format) (a file, in the background — a saved run exports only where its report is a list); a built spec is re-validated at every run (a roster that moved since the save refuses in the teaching voice — edit the spec), a saved run's parameters are re-bound at every run (a retired report or parameters that no longer bind refuse naming the record — edit its params); only an active report runs. The definition is the question, never an answer. NOT searchable." type Report { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like RO-… — stable for the record’s life." sysId: String! "The kind of record — always `Report` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Report parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "A built definition's validated ReportSpec as JSON text (the planJson idiom — the receiver parses; at most 12288 characters); replaced wholesale by updateReport(spec) and re-validated at every run. Null on a saved run of a ready-made report." specJson: String "A saved run’s ready-made report — the catalogue key (reportCatalog lists them), fixed at birth; null on a built definition." catalogKey: String "A saved run's parameters as JSON text (the ReportParamsInput fields as named — the period unresolved; at most 1024 characters); replaced wholesale by updateReport(params) and re-bound at every run; null on a built definition." paramsJson: String "The report in words (describeReport for a built definition; the ready-made report's title with its saved choices for a saved run; at most 4096 characters — cut with a trailing … past it) — derived at write; what the list shows before anything runs." words: String! "The family the rows or groups are made of (a built definition: the plan’s last hop’s family, or the start’s; a saved run: the family the ready-made report answers) — derived at write, never caller-supplied." terminalFamily: String! "What the report is for — a sentence or three (at most 512 characters); optional, set-only." description: String } "One page of the reports listing — the records + the opaque resume cursor." type ReportPage { "The page's records." items: [Report!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "ONE kind: either spec — validated through the report gate (validateReport — the plan gate, then the columns / groupBy / measures / sort arms against the terminal family’s roster) — or catalogKey + params. Both or neither answers VALIDATION in words." input NewReportInput { "Optional: when omitted the per-type default applies — the terminal family (e.g. `Order report`) for a built definition; the ready-made report’s title for a saved run; when supplied it must be non-blank." caption: String "A built definition — the reportRun grammar verbatim (a plan + columns, or a plan + groupBy/measures, an optional sort); validated now, run later as whoever runs it. Exactly one of spec or catalogKey." spec: ReportSpecInput "A saved run — the ready-made report’s key (reportCatalog lists them); the caller must be able to run it. Exactly one of spec or catalogKey." catalogKey: String "A saved run’s parameters as named (the reportRun catalogue grammar: period · lens · person · record · axis · status · option · facility) — rides with catalogKey alone; bound against the report now and at every run; absent parameters take the report’s own defaults. A page cursor (nextToken) never saves — the save refuses it, VALIDATION." params: ReportParamsInput "What the report is for (at most 512 characters)." description: String } "Edit-input for a Report. Every field optional, at least ONE required; supplied fields replace spec replaces wholesale when supplied (never merged) and re-derives words + terminalFamily — on a built definition alone; params replaces a saved run’s parameters wholesale (re-bound now; words re-derive) — on a saved run alone; caption, description, spec and/or params — at least one." input EditReportInput { caption: String "What the report is for (at most 512 characters); set-only." description: String "Wholesale replacement when supplied — validated by the report gate; words + terminalFamily re-derive. A built definition alone." spec: ReportSpecInput "Wholesale replacement of a saved run’s parameters when supplied — bound against its ready-made report now; the words re-derive. A saved run alone." params: ReportParamsInput } "A Collaborator — the strictly-scoped non-account access identity: the User-adjacent never-owner identity for externally-originated parties (outside accountant/bookkeeper, agency, consultant, an integration partner's human operator, a scoped helper) granted limited access to ONE org group without being a merchant Account. Group-scoped like the Consumer (parentId === rootId — per-group NOT global; the same firm at two merchant groups = two records; federated identity is the lock's flagged-not-now). The three distinctions from A user: (1) no merchant Account (its own identity + credential + session class) · (2) no ownership ever (owners are Account-only structural links — there is no Collaborator state in which ownership is permitted) · (3) externally-originated (invited, not part of the merchant's principal hierarchy). Access = strictly the Roles-per-org mechanism Users ride. the identity-marker rule (the Consumer burn class): the (group × normalized email) uniq marker IS the login index — a live/inactive holder refuses CONFLICT/IDENTITY_TAKEN; on erase (doom) the identifiers burn within the group. Self-service rides the collaborator session channel (collaboratorLogin + descriptor-gated ops); staff manage via this face. Searchable (the book law)." type Collaborator { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like CX-… — stable for the record’s life." sysId: String! "The kind of record — always `Collaborator` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a Collaborator parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The login identity — stored normalized; the (group × email) uniq marker rides it." email: String! "The external party's display name; absent ⇒ the caption carries the identity line (the normalized email). NO further profile block — data minimization." displayName: String orgRoles: [UserOrgRoles!]! } "One page of the collaborators listing — the records + the opaque resume cursor." type CollaboratorPage { "The page's records." items: [Collaborator!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "Create-input for a Collaborator. orgRoles is required but MAY be empty; refs validated strict." input NewCollaboratorInput { "Optional: when omitted the per-type default applies — the display name when given, else the normalized email (the identity line); when supplied it must be non-blank." caption: String email: String! displayName: String "The initial role-assignment set; may be empty (no org access yet)." orgRoles: [UserOrgRolesInput!]! } "Edit-input for a Collaborator. Every field optional, at least ONE required; supplied fields replace. orgRoles replaces wholesale when supplied (the EditUser list-is-the-payload semantic; supplying strips every assignment — live sessions keep their self plane but every descriptor-gated op refuses at the next call); every referenced org + role must be in-tenant AND active (CONFLICT/REF_STATE). An email edit is the identity-marker release/reserve swap under the burn law (a live/inactive/doomed holder of the NEW value refuses CONFLICT/IDENTITY_TAKEN; the OLD value releases)." input EditCollaboratorInput { caption: String email: String displayName: String "The full desired assignment set (wholesale replacement — strips every assignment)." orgRoles: [UserOrgRolesInput!] } "A bookable-resource kind." enum SchedulableResourceType { staff station equipment } "A weekday name (working-hours rows — self-documenting names, never magic ints)." enum Weekday { mon tue wed thu fri sat sun } "One weekly working-hours window — naive wall-clock minutes at the facility (the estate carries no timezone; advisory v1 — no gate consumes it). closeMinute is exclusive (1440 = midnight-end); multiple windows per weekday = split shifts." type WorkingHoursWindow { weekday: Weekday! "Opening minute-of-day (0..1439)." openMinute: Int! "Closing minute-of-day, exclusive (1..1440); must exceed openMinute." closeMinute: Int! } "A SchedulableResource — a bookable entity at a LogicalFacility: the staff member / station / equipment Appointments book against. capacity = concurrent bookings (default 1); the confirm gate checks capacity only. workingHours are advisory v1 — naive wall-clock weekly windows: the availability read returns them, NO gate consumes them. The operational lifecycle verbatim. The gate: a reserved booking (a confirmed/in_progress Appointment) blocks deactivate AND doom, CONFLICT/REFERENCED naming the appointments; requested Appointments deliberately do NOT block (they refuse honestly at confirm via the active re-read)." type SchedulableResource { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like SR-… — stable for the record’s life." sysId: String! "The kind of record — always `SchedulableResource` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent LogicalFacility; rootId = the org group; parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The canned resource kind — set at creation, immutable (re-kind = create + doom)." resourceType: SchedulableResourceType! "The optional staff link — staff-kind resources only; in-tenant + active at set; editable (re-staffing is operational reality); null = no link." userId: ID "Concurrent-booking capacity (1..100; default 1) — the confirm gate refuses CONFLICT/DOUBLE_BOOKED at this ceiling unless the appointment.overbook_allowed policy admits." capacity: Int! "The weekly working-hours calendar (≤28 windows; split shifts legal; empty = none declared) — advisory v1: naive wall-clock minutes at the facility, returned by the availability read, consumed by NO gate." workingHours: [WorkingHoursWindow!]! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the schedulableResources listing — the records + the opaque resume cursor." type SchedulableResourcePage { "The page's records." items: [SchedulableResource!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "One weekly working-hours window — openMinute < closeMinute (VALIDATION/INVALID otherwise); at most 28 windows per resource." input WorkingHoursWindowInput { "The day of the week the window is open." weekday: Weekday! "When the window opens, as minutes from midnight — 0 to 1439." openMinute: Int! "When the window closes, as minutes from midnight — 1 to 1440, after the opening minute." closeMinute: Int! } "Create-input for a SchedulableResource. userId is legal on staff resources only (in-tenant + active — CONFLICT/REF_STATE else); capacity defaults to 1; workingHours defaults to." input NewSchedulableResourceInput { "Optional: when omitted the per-type default applies — the kind + LF coordinate ('staff at '); when supplied it must be non-blank." caption: String "The parent LogicalFacility (the booking site) — tenant-scoped + active. Immutable after birth." logicalFacilityId: ID! "The canned kind — immutable at birth." resourceType: SchedulableResourceType! "The optional staff link — staff-kind only (refused otherwise); in-tenant + active." userId: ID "Concurrent-booking capacity (1..100); omitted = 1." capacity: Int "The weekly advisory calendar; omitted =." workingHours: [WorkingHoursWindowInput!] code: String } "Edit-input for a SchedulableResource. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved except userId, where null explicitly clears the staff link (the EditPlugin.apiKeyId nullish-clear law). The parent LF and resourceType are immutable at birth (re-home/re-kind = create + doom). A supplied workingHours array replaces wholesale." input EditSchedulableResourceInput { caption: String "Set (staff-kind only — CONFLICT/REF_STATE else) or null-CLEAR the staff link." userId: ID "1..100 — raising/lowering re-gates nothing retroactively (existing reservations stand; the ceiling applies at future confirms)." capacity: Int "The wholesale replacement (strips every window)." workingHours: [WorkingHoursWindowInput!] code: String } "A booking purpose: a service-type product sale, or an order pickup." enum AppointmentPurpose { service pickup } "An Appointment — a booking of 1..8 SchedulableResources at an LF for a time window: a service-type product sale OR an order pickup (purpose pickup — orderId required, the order being collected). The ratified lifecycle verbatim: confirm reserves capacity (the resbook calendar rows; the gate is capacity-only — CONFLICT/DOUBLE_BOOKED unless the appointment.overbook_allowed policy admits); no_show fires from the scheduler only (noShowAt = startAt + the appointment.no_show_window_minutes policy, stamped at confirm — NO caller op); rescheduled = a doomed terminal superseded by the linked successor (born requested — ITS confirm re-runs the capacity gate); completed may link an order for billing (the complete-time orderId — auto-minting a line is a named growth). durationMinutes ≤ 1440 (24h — the overlap-lookback bound). The create-time gates: appointment.lead_time_minutes + appointment.max_advance_days." type Appointment { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like AP-… — stable for the record’s life." sysId: String! "The kind of record — always `Appointment` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of requested, confirmed, in_progress, completed, no_show, cancelled or rescheduled." status: String! "The parent LogicalFacility; rootId = the org group; parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The LF’s Organization — server-stamped at create." organizationId: ID! "The booking purpose (service | pickup) — immutable at birth (re-purpose = cancel + rebook)." purpose: AppointmentPurpose! "The service-type product variant sold: required on service, forbidden on pickup." variantId: ID "The linked Order: required on pickup (the order being collected); optional on service (sold-together at create/update, or book-then-bill at complete)." orderId: ID "The booked SchedulableResources (1..8, distinct; each in-tenant + active + at the same LF as the parent)." resourceIds: [ID!]! "The window start — a UTC ISO-8601 instant (the estate carries no timezone; working hours are advisory)." startAt: String! "The window length in minutes (1..1440 — the 24h cap IS the overlap-query lookback bound)." durationMinutes: Int! "The polymorphic customer capture (the Order block verbatim — inline fields + the corporateCustomerId/consumerId ref arms); optional (a pickup’s customer is the order’s)." customer: OrderCustomer "System-stamped at confirm = startAt + the resolved appointment.no_show_window_minutes — the scheduler marks no_show at this instant if the appointment is still confirmed." noShowAt: String "System-stamped by reschedule on the superseded terminal — the linked successor." successorAppointmentId: ID "System-stamped on a reschedule-born successor — the appointment it supersedes." predecessorAppointmentId: ID } "One page of the appointments listing — the records + the opaque resume cursor." type AppointmentPage { "The page's records." items: [Appointment!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for an Appointment. The create gates: startAt ≥ now + appointment.lead_time_minutes AND ≤ now + appointment.max_advance_days (VALIDATION/INVALID naming the key)." input NewAppointmentInput { "Optional: when omitted the per-type default applies — the purpose + LF coordinate ('service appointment at '); when supplied it must be non-blank." caption: String "The parent LogicalFacility (the booking site) — tenant-scoped + active. Immutable after birth." logicalFacilityId: ID! "Immutable at birth." purpose: AppointmentPurpose! "Required on service (a service-type variant); forbidden on pickup." variantId: ID "Required on pickup; optional on service (the sold-together pattern)." orderId: ID "The resources to book (1..8, distinct)." resourceIds: [ID!]! "The UTC start instant." startAt: String! "1..1440." durationMinutes: Int! "Optional — the Order customer-capture grammar verbatim." customer: OrderCustomerInput } "Edit-input for a Appointment. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. The state ladder: requested accepts every field; confirmed/in_progress accept only caption/customer/orderId — window or resource moves on a confirmed booking are a reschedule (the capacity-gate-dodge designed out); terminals refuse CONFLICT/IMMUTABLE. The parent LF and purpose are immutable at birth." input EditAppointmentInput { caption: String "requested-only; service purpose only — the walk re-gates." variantId: ID "The link (any live state; a doomed-class order refuses REF_STATE)." orderId: ID "requested-only; wholesale replacement — in-tenant + active + same-LF re-gated." resourceIds: [ID!] "requested-only; the lead/advance gates re-run." startAt: String "requested-only." durationMinutes: Int "Replaces the block when supplied." customer: OrderCustomerInput } "A Storefront — the ecom DTC publish-config document: which selling facility the site sells from, which canned theme renders it, which collections it merchandises, which browse tree and channel division frame it, and (optionally) the custom domain it claims. The lifecycle: born draft (claiming nothing) → publish (THE INVALID_CONFIG gate re-validates every ref record-aware + the global domain marker claims in the same transaction — CONFLICT/IDENTITY_TAKEN if another published site holds the name) → unpublish (the marker releases) → republish (the same gate + re-claim). published never dooms — unpublish first. The serving estate is deliberately absent v1: publish flips state, claims the domain, validates config — it provisions nothing; this record is the control plane the DTC workstream will consume. SEO copy rides the Decoration attachment, never fields here." type Storefront { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like SF-… — stable for the record’s life." sysId: String! "The kind of record — always `Storefront` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of draft, published, unpublished or doomed." status: String! "The parent Organization; rootId = the org group; parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The designated selling facility — the LF whose stock/pricing context the site sells from; in-tenant + active at set AND at publish; edit-locked while published (unpublish → edit → republish)." logicalFacilityId: ID! "The canned theme key (cannedStorefrontThemes lists the roster: almond-light · almond-dark · gallery · catalog-classic) — merchants pick, never author; edit-locked while published." theme: String! "The claimed custom domain (a bare lowercase hostname, at most 253 characters — no scheme/path/port/IP/localhost): the global uniqueness marker holds it only while published (claim at publish, release at unpublish); edit-locked while published; null = no custom domain (the default host is the serving workstream's business)." customDomain: String "The merchandised Collections (0..24, distinct; each in-tenant + active) — edits replace the set wholesale; a NON-doomed storefront blocks a referenced collection's doom." collectionIds: [ID!]! categoryId: ID "The channel-type Division framing this site; null = unframed." divisionId: ID } "One page of the storefronts listing — the records + the opaque resume cursor." type StorefrontPage { "The page's records." items: [Storefront!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Create-input for a Storefront." input NewStorefrontInput { "Optional: when omitted the per-type default applies — the domain when given ('storefront at '), else the theme (' storefront'); when supplied it must be non-blank." caption: String "The parent Organization (whose storefront this is) — tenant-scoped + active. Immutable after birth." organizationId: ID! "The designated selling LF — tenant-scoped + active." logicalFacilityId: ID! "A canned theme key — cannedStorefrontThemes lists the roster (an unknown key refuses naming it)." theme: String! "The optional custom domain (the bare-hostname grammar) — validated for shape here; the claim happens at publish." customDomain: String "The merchandised collections (0..24, distinct, each active); omitted =." collectionIds: [ID!] "The optional browse-tree root category (active)." categoryId: ID "The optional channel-type division (active + channel-kind — a different kind refuses)." divisionId: ID } "Edit-input for a Storefront. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved — customDomain/categoryId/divisionId take null to clear (the EditPlugin.apiKeyId nullish-clear law); a supplied collectionIds replaces wholesale. The published edit-lock: while published, theme / logicalFacilityId / customDomain refuse naming the fields (unpublish → edit → republish — the domain marker never dangles); caption/collections/category/division edit freely on a live site (merchandising is normal lifecycle). The parent Organization is immutable at birth." input EditStorefrontInput { caption: String "Re-home the selling facility (active; refused while published)." logicalFacilityId: ID "Re-theme (a canned key; refused while published)." theme: String "Set (the bare-hostname grammar) or null-CLEAR the domain (refused while published)." customDomain: String "The wholesale replacement (strips every collection); each active." collectionIds: [ID!] "Set (active) or null-CLEAR the browse-tree anchor." categoryId: ID "Set (active + channel-kind) or null-CLEAR the channel framing." divisionId: ID } "A fulfillment method an agent channel offers." enum AgentChannelFulfillmentMethod { ship pickup_instore pickup_curbside } "The canned request-rate class an agent channel grants its platforms." enum AgentChannelRateClass { low normal high } "ONE flat-rate shipping card — the platform shows the caption and charges amountMinor (the checkout’s fulfillment total) to the named countries, quoting minDays..maxDays transit; the id is the stable slug the platform echoes when the buyer picks it." type AgentChannelShippingOption { "A lowercase slug (letters, digits, interior hyphens; at most 32 characters), unique within the channel." id: String! caption: String! "ISO 3166-1 alpha-2 codes (uppercase), each a channel ship-to country." countries: [String!]! "The flat rate in the organization’s currency minor units (0 = free shipping)." amountMinor: Int! "Transit window in days (0..365; minDays ≤ maxDays)." minDays: Int! maxDays: Int! } "ONE pre-approved agent platform: profileUrl is the platform’s own UCP profile (its signing keys are read from it); webhookUrl overrides the URL the platform advertises in its own profile (the order capability’s config.webhook_url) — absent = the profile’s; the deliverer POSTs the signed full order document there; active false keeps the row but refuses the platform." type AgentChannelPlatform { "An https URL (the egress law — no credentials, no port, no IP-literal or private hosts; at most 512 characters)." profileUrl: String! caption: String! webhookUrl: String active: Boolean! } "The UCP buyer_consent defaults an agent channel proposes — every purpose a boolean." type AgentChannelConsentDefaults { marketing: Boolean! analytics: Boolean! preferences: Boolean! sale_or_sharing: Boolean! } "The public half of an signing key as a JWK (RFC 7517/7518 — kty EC · crv · the x/y coordinates in base64url)." type AgentChannelPublicJwk { kty: String! crv: String! x: String! y: String! } "ONE engine-minted signing key on an agent channel: kid = the RFC 7638 thumbprint of the public JWK; retiresAt is set on the outgoing key by a rotation (now + the grace) — a key past it is pruned at the next rotation and never published." type AgentChannelSigningKey { kid: String! publicJwk: AgentChannelPublicJwk! createdAt: String! retiresAt: String } "An AgentChannel — the merchant’s controls over the agentic-commerce channel: exactly ONE record per Organization that says what an AI shopping agent may sell over the open Universal Commerce Protocol and HOW — the selling location (prices · stock · tax origin), the listed Collections (empty = nothing listed), an optional agent price plane (a PriceList), discount codes on/off, a checkout cap, the fulfillment methods + flat-rate shipping cards + ship-to countries + pickup locations, the buyer facts required, the pre-approved agent platforms (empty = every platform refused), the buyer-consent defaults, the return/warranty policy texts, the checkout session TTL, and the platform-minted signing keys (the public halves — the private halves live in the credential store, never on the wire). Lifecycle draft → live → paused → live | doomed: publish and resume run the completeness rule record-aware (the channel must be able to sell); pause withholds the channel (agents read unavailable + Retry-After); a live channel never dooms in one step (pause first); doom releases the one-per-org marker so the organization may start over. The protocol doors (the profile, the catalog, the checkout — onward) read this record; the adapter adds no business rule of its own. Payment handlers are never typed here — the profile derives them from the organization’s connected-account facts." type AgentChannel { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like AG-… — stable for the record’s life." sysId: String! "The kind of record — always `AgentChannel` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of draft, live, paused or doomed." status: String! "The parent Organization; rootId = the org group; parentId!== rootId always." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "Where — the selling location: the LogicalFacility whose stock, prices and tax origin the channel sells from; in-tenant + active at every write and at publish/resume." logicalFacilityId: ID! "Where — the business locations offered for pickup (0..16, distinct, each in-tenant + active); required non-empty when a pickup method is offered; edits replace the set wholesale." pickupLogicalFacilityIds: [ID!]! "Where — the ISO 3166-1 alpha-2 countries (uppercase) the channel ships to (0..64, distinct); empty = no shipping (an address outside answers address_undeliverable); required non-empty when ship is offered; replaces wholesale." shipToCountries: [String!]! "What — the listed Collections: the only listing lever — empty = nothing is listed (publish refuses); replaces wholesale. A non-doomed channel blocks a listed collection’s doom." collectionIds: [ID!]! "What — an optional channel-type Division framing the agent channel; null = unframed." divisionId: ID "What — whether agents read stock figures (true) or only in/out of stock (false — the strict default)." showStockLevels: Boolean! "What — the hand veto list: Variants never listed whatever their Collections say (0..200, distinct, each in-tenant); replaces wholesale." excludedVariantIds: [ID!]! "Prices — an optional PriceList as the agent price plane (in-tenant + active + selected for the owning organization + unscoped — a customer-scoped contract list refuses); null = the standing sale prices apply. Explicit prices, never blanket percentages." priceListId: ID "Prices — whether agents may present discount codes (the UCP discount extension is advertised only when true; the platform’s own coupon gates still apply). Strict default false." allowDiscountCodes: Boolean! "Prices — an optional cap on a single agent checkout in the organization’s currency minor units (1..2147483647); a checkout over it answers eligibility_invalid; null = no cap." maxCheckoutTotalMinor: Int "FULFILLMENT — the offered methods (ship · pickup_instore · pickup_curbside; distinct); empty = the channel cannot complete a checkout (publish refuses)." fulfillmentMethods: [AgentChannelFulfillmentMethod!]! "FULFILLMENT — the flat-rate shipping cards (0..16, ids unique): the merchant’s own words and prices; every card’s countries must be ship-to countries; required non-empty when ship is offered; replaces wholesale." shippingOptions: [AgentChannelShippingOption!]! "FULFILLMENT — handling days before a shipment leaves (0..30; default 0)." handlingDays: Int! "Payments — the buyer must give an email before completing (strict default true)." requireBuyerEmail: Boolean! "Payments — the buyer must give a phone number before completing (default false)." requireBuyerPhone: Boolean! "Platforms — the pre-approved agent platform registry (0..16, profile URLs unique): a platform is verified against ITS profile’s signing keys and refused (profile_not_trusted) unless listed and active — empty = every platform refused; publish requires at least one active; replaces wholesale." allowedPlatforms: [AgentChannelPlatform!]! "Platforms — the canned request-rate class granted to platforms (low · normal · high; default normal)." rateClass: AgentChannelRateClass! "Consent — the UCP buyer_consent defaults the channel proposes (marketing · analytics · preferences · sale_or_sharing); strict default all false." consentDefaults: AgentChannelConsentDefaults! "Policies — the return policy text (at most 2000 characters), published in the profile’s policies; null = none published." returnPolicy: String "Policies — the warranty policy text (at most 2000 characters), published in the profile’s policies; null = none published." warrantyPolicy: String "Session — how long an agent checkout stays open (15..1440 minutes; default 360 — the spec’s 6 h); the draft order’s validUntil derives from it." checkoutTtlMinutes: Int! "Session — whether buyer account linking is advertised: the shop host serves its own OAuth 2.0 endpoints and buyers sign in on the shop’s address to link an assistant; default false." identityLinking: Boolean! "Session: whether every checkout and order operation requires a linked buyer (the standard’s members-only posture — an unlinked call answers 401 identity_required); default false = guest checkout stands." requireLinkedBuyer: Boolean! "Engine-stamped — the public signing keys (1..4: the current key + the outgoing keys inside their 7-day grace), published as the profile’s keys; minted at birth, grown by rotateAgentChannelKey, never caller-typed. The private halves live in the credential store." signingKeys: [AgentChannelSigningKey!]! } "One page of the agentChannels listing — the records + the opaque resume cursor." type AgentChannelPage { "The page's records." items: [AgentChannel!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "A flat-rate shipping card for an agent channel — the same shape the record carries." input AgentChannelShippingOptionInput { "A short, stable handle for this shipping choice — lowercase letters, digits and hyphens." id: String! "The words a buyer sees for this shipping choice." caption: String! "The countries this choice ships to — two-letter codes, each one of the channel ship-to countries." countries: [String!]! "The flat shipping charge in the minor units of the organization currency — 1500 is 15.00 in a two-decimal currency; 0 means free shipping." amountMinor: Int! "The soonest delivery, in days from the order — a whole number up to 365, no more than maxDays." minDays: Int! "The latest delivery, in days from the order — a whole number up to 365, at least minDays." maxDays: Int! } "A pre-approved agent platform for an agent channel — the same shape the record carries." input AgentChannelPlatformInput { "The web address that identifies the agent platform — each platform is listed once per channel." profileUrl: String! "What this platform is called wherever it appears." caption: String! "The address the platform receives notices at. Optional." webhookUrl: String "Whether the platform may transact on this channel — false keeps the row but refuses the platform." active: Boolean! } "The buyer_consent defaults for an agent channel — every purpose required." input AgentChannelConsentDefaultsInput { marketing: Boolean! analytics: Boolean! preferences: Boolean! sale_or_sharing: Boolean! } "Create-input for an AgentChannel. Every control is optional — an omitted control takes its strict default (nothing listed · no shipping · no pickup · no platforms · stock hidden · codes off · consent all false · email required · normal rate · 6 h)." input NewAgentChannelInput { "Optional: when omitted the per-type default applies — the owning organization’s name + ' agent channel'; when supplied it must be non-blank." caption: String "The parent Organization (whose channel this is) — tenant-scoped + active; exactly one channel per org. Immutable after birth." organizationId: ID! "The selling location — tenant-scoped + active." logicalFacilityId: ID! "Pickup locations (0..16, distinct, each active); omitted =." pickupLogicalFacilityIds: [ID!] "Ship-to countries (ISO alpha-2 uppercase; 0..64, distinct); omitted = (no shipping)." shipToCountries: [String!] "The listed collections (0..24, distinct, each active); omitted = (nothing listed)." collectionIds: [ID!] "The optional channel-type division (active + channel-kind — a different kind refuses)." divisionId: ID "Show stock figures to agents; omitted = false." showStockLevels: Boolean "Variants never listed (0..200, distinct, in-tenant); omitted =." excludedVariantIds: [ID!] "The optional agent price list (active; selected for the owning organization; unscoped)." priceListId: ID "Accept discount codes from agents; omitted = false." allowDiscountCodes: Boolean "The optional single-checkout cap in minor units (≥ 1)." maxCheckoutTotalMinor: Int "The offered methods (distinct); omitted = (publish then refuses until set)." fulfillmentMethods: [AgentChannelFulfillmentMethod!] "The flat-rate shipping cards (0..16, ids unique); omitted =." shippingOptions: [AgentChannelShippingOptionInput!] "Handling days (0..30); omitted = 0." handlingDays: Int "Require the buyer’s email; omitted = true." requireBuyerEmail: Boolean "Require the buyer’s phone; omitted = false." requireBuyerPhone: Boolean "The pre-approved platforms (0..16, profile URLs unique, https); omitted = (every platform refused)." allowedPlatforms: [AgentChannelPlatformInput!] "The request-rate class; omitted = normal." rateClass: AgentChannelRateClass "The buyer_consent defaults; omitted = all false." consentDefaults: AgentChannelConsentDefaultsInput "The return policy text (at most 2000 characters)." returnPolicy: String "The warranty policy text (at most 2000 characters)." warrantyPolicy: String "The checkout window (15..1440 minutes); omitted = 360." checkoutTtlMinutes: Int "Advertise buyer account linking; omitted = false." identityLinking: Boolean "Require a signed-in (linked) buyer for every checkout and order operation; omitted = false." requireLinkedBuyer: Boolean } "Edit-input for a AgentChannel. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved — divisionId / priceListId / maxCheckoutTotalMinor / returnPolicy / warrantyPolicy take null to clear (the EditPlugin.apiKeyId nullish-clear law); a supplied list replaces wholesale. Edits land in every live state and take effect on the next agent request; the live-stays-complete rule: an edit on a live channel that would leave it unable to sell (nothing listed · no method · shipping without countries or cards · pickup without a location · no active platform) refuses VALIDATION/INVALID naming the gap — pause first to reshape it. status and signingKeys never ride an edit." input EditAgentChannelInput { caption: String "Re-home the selling location (active)." logicalFacilityId: ID "The wholesale replacement (strips every pickup location); each active." pickupLogicalFacilityIds: [ID!] "The wholesale replacement (= no shipping)." shipToCountries: [String!] "The wholesale replacement (= nothing listed); each active." collectionIds: [ID!] "Set (active + channel-kind) or null-CLEAR the channel framing." divisionId: ID showStockLevels: Boolean "The wholesale replacement of the veto list." excludedVariantIds: [ID!] "Set (active; selected for the owning organization; unscoped) or null-CLEAR the agent price plane." priceListId: ID allowDiscountCodes: Boolean "Set (≥ 1) or null-CLEAR the checkout cap." maxCheckoutTotalMinor: Int "The wholesale replacement (distinct)." fulfillmentMethods: [AgentChannelFulfillmentMethod!] "The wholesale replacement (ids unique)." shippingOptions: [AgentChannelShippingOptionInput!] handlingDays: Int requireBuyerEmail: Boolean requireBuyerPhone: Boolean "The wholesale replacement (profile URLs unique, https)." allowedPlatforms: [AgentChannelPlatformInput!] rateClass: AgentChannelRateClass consentDefaults: AgentChannelConsentDefaultsInput "Set or null-CLEAR the return policy text." returnPolicy: String "Set or null-CLEAR the warranty policy text." warrantyPolicy: String checkoutTtlMinutes: Int identityLinking: Boolean requireLinkedBuyer: Boolean } "the budget rule: at most 50000 records examined (the estimate refuses a plan that cannot fit, with the numbers) · 300 s from the start (past it the job is expired with its partials) · 400 machine steps. ONE running job per signed-in session (the searchlock marker — a second start refuses CONFLICT/SEARCH_JOB_ACTIVE naming the holder). Lifecycle queued → running → done | cancelled | expired | failed: cancel is the owner's (cancelSearchJob) or the session's end; done stays listed, the other terminals are doomed-class. The generic wire is read-only (the two reads) — the bespokes own the writes: startSearchJob (the plan gate, then the per-family list-op offer as the caller — a family you may not list stops the plan before any read) · cancelSearchJob · searchJobMatches (gated by the reader's own list right over the plan's terminal family)." type SearchJob { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like SJ-… — stable for the record’s life." sysId: String! "The kind of record — always `SearchJob` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of queued, running, done, cancelled, expired or failed." status: String! "The parent org group (the Saga shape); for a SearchJob parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The owner — the User who started the job; cancel is theirs (the system hook cancels on their session’s end). Immutable at birth." userId: ID! "The signed-in session the job runs under — the searchlock aggregate (ONE running job per session); a Session is not a catalog construct, so the id is opaque on the wire. Immutable at birth." sessionId: ID! "The normalized plan as JSON text (the validated SearchPlan with its defaults applied; at most 8192 characters) — re-parsed and re-validated at every read. Immutable at birth." planJson: String! "Immutable at birth." words: String! "Machine steps taken so far (0 at birth; stamped by the step lane)." stepsDone: Int! "Records examined so far across every walk and hydrate (0 at birth) — the budget law’s counter." examined: Int! "The terminal step’s whole match count (0 until the finish; the result row carries at most the plan’s limit of summaries)." matchCount: Int! "The running instant (UTC ISO-8601 — the clock’s zero). Null while queued." startedAt: String "The terminal instant (UTC ISO-8601). Null while live." finishedAt: String "Why the run stopped short — the executor’s refusal in its teaching voice (the budget, the frontier, the step cap), the expiry, the start refusal, or a machine fault’s cause. Null on done." problem: String "The ops/reconcile handle." sfExecutionArn: String "The result row’s ttl (epoch seconds = finishedAt + 7 days) — the expiry the matches read derives its expiresAt from. Null until the finish." resultTtl: Int } "One page of the searchJobs listing — the records + the opaque resume cursor." type SearchJobPage { "The page's records." items: [SearchJob!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "The record is the durable truth (stepsDone · examined · partCount · rowCount · bytes grow; partial says the run stopped short; problem says why). the budget rule is the SearchJob's verbatim — at most 50000 records examined · 300 s from the start (past it the job is expired with the parts written) · 400 machine steps — plus ONE bound of its own: 256 MiB on the composed file (the walk halts partial the step before it would cross). The plan's limit does NOT bound the export — every terminal record is written. ONE running export per signed-in session (the exportlock marker — a second start refuses CONFLICT/EXPORT_JOB_ACTIVE naming the holder; a running search does not block it). Lifecycle queued → running → done | cancelled | expired | failed: cancel is the owner's (cancelExportJob) or the session's end — NO file is composed on cancel; done stays listed, the other terminals are doomed-class. The generic wire is read-only (the two reads) — the bespokes own the writes: startExportJob (the plan gate, then the per-family list-op offer as the caller — a family you may not list stops the plan before any read; the format csv | jsonl) · cancelExportJob · exportJobDownload (a query — the owner alone AND the reader's own list right over the plan's terminal family). The finish mints an in-app notice (export_finished · export_expired · export_failed), never on cancel." type ExportJob { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like EX-… — stable for the record’s life." sysId: String! "The kind of record — always `ExportJob` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of queued, running, done, cancelled, expired or failed." status: String! "The parent org group (the Saga shape); for an ExportJob parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The owner — the User who started the job; cancel and the download are theirs alone (the system hook cancels on their session’s end). Immutable at birth." userId: ID! "The signed-in session the job runs under — the exportlock aggregate (ONE running export per session); a Session is not a catalog construct, so the id is opaque on the wire. Immutable at birth." sessionId: ID! "The normalized plan as JSON text (the validated SearchPlan with its defaults applied; at most 8192 characters) — re-parsed and re-validated at every read. Immutable at birth." planJson: String! "Immutable at birth." words: String! "The file format the finish composes — csv (RFC 4180 through the one cell rule: the header = the column union over the whole set, nested leaves as dotted paths, arrays as JSON in the cell) or jsonl (one record per line — the parts’ bytes concatenated). The parts are JSON Lines either way. Immutable at birth." format: String! "The report arm: the validated ReportSpec as JSON text (at most 12288 characters — the reportRun grammar verbatim; its plan equals planJson's), re-parsed at the finish to compose the file (a projection's columns or an aggregate's groups); the job's words are then the report's. Immutable at birth; null on a plain export." reportJson: String "Machine steps taken so far (0 at birth; stamped by the step lane)." stepsDone: Int! "Records examined so far across every walk and hydrate (0 at birth) — the budget law’s counter." examined: Int! "Parts written so far (0 at birth; +1 per terminal page that kept at least one record)." partCount: Int! "Rows written so far across every part (0 at birth) — the file’s row count at the finish." rowCount: Int! "Bytes written so far across every part (0 at birth) — tracked against the 256 MiB file ceiling; the composed file’s size at the finish." bytes: Int! "True when the run halted before the end — cancelled · expired · refused · the byte ceiling; the file holds what was written." partial: Boolean! "The file’s object key under exports// — stamped at the finish. Null while live and on a cancel." fileKey: String "The file’s name — --. at the finish instant (ASCII); what exportJobDownload is saved as. Null while live and on a cancel." fileName: String "The file’s expiry (epoch seconds = finishedAt + 7 days) — the download’s lazy-TTL gate. Null until the finish." fileTtl: Int "The running instant (UTC ISO-8601 — the clock’s zero). Null while queued." startedAt: String "The terminal instant (UTC ISO-8601). Null while live." finishedAt: String "Why the run stopped short — the executor’s refusal in its teaching voice (the budget, the frontier, the step cap), the byte ceiling, the expiry, the start refusal, or a machine fault’s cause. Null on done." problem: String "The ops/reconcile handle." sfExecutionArn: String } "One page of the exportJobs listing — the records + the opaque resume cursor." type ExportJobPage { "The page's records." items: [ExportJob!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "One entry of a size run: the OptionValue of the run group + its share of the ratio (an integer 0..10000); the rows ride in the caller order = the display order." type SizeRunEntry { optionValueId: ID! share: Int! } "A size run — a ratio over ONE option dimension (S-M-L-XL 1-2-2-1; a colour run 2 black: 1 white is equally real — any OptionGroup type may carry a run) a buyer fills a matrix with: kept once and reused on every Style that names it (Style.sizeRunId — its group must be in the scheme) or by the dimension itself (OptionGroup.defaultSizeRunId — the org default lives on the dimension); resolution = the style pick, then the group default, then none (the matrix axes carry the resolved id). optionGroupId is immutable at birth (a different dimension is a different run: doom + create — the PurchasePack unitsPerPack stance). entries = 1..256 { optionValueId, share } rows — distinct values of that group, every share an integer 0..10000, the shares summing to at least 1, stored in the caller order = the display order (a 0-share value rides the run but never receives a unit). sizeRunFill spreads a total over the ratio by the fill rule (largest remainder, ties to the earlier entry, the quantities summing to the total exactly). Doom is blocked while a non-doomed Style or OptionGroup names the run (CONFLICT/REFERENCED naming the holders); deactivate is free. Group-parented (parentId === rootId); sysId SZ-…." type SizeRun { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like SZ-… — stable for the record’s life." sysId: String! "The kind of record — always `SizeRun` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a SizeRun parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The ONE dimension this run is over — set at creation, immutable thereafter (a different dimension is a different run: doom + create)." optionGroupId: ID! "The ratio — 1..256 distinct values of the run group with their shares (integers 0..10000, summing to at least 1), in the caller order = the display order. Editable wholesale (every value re-gated a member of the group + non-doomed)." entries: [SizeRunEntry!]! "Optional mutable merchant reference code; uniqueness NOT enforced." code: String } "One page of the sizeRuns listing — the records + the opaque resume cursor." type SizeRunPage { "The page's records." items: [SizeRun!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String "The matched-set size of a filtered/sorted read: exact when `matchCountExact` is true; the matches counted through this page when false (the stream has a cursor — ask again for more); null on an unfiltered page." matchCount: Int "Whether `matchCount` is the exact matched total (true), or the matches seen so far on a read that stopped when its page was full (false — the cursor continues it); null beside a null matchCount (the unfiltered lane)." matchCountExact: Boolean } "Size-run entry input — the value must belong to the run OptionGroup (parentId === optionGroupId) and be non-doomed; 1..256 entries, distinct values, the shares (integers 0..10000) summing to at least 1." input SizeRunEntryInput { "The id of the size (an option value of the run option group) this share applies to." optionValueId: ID! "This size share of a run as a whole number from 0 to 10000 — the shares are weighed against each other." share: Int! } "Create-input for a SizeRun." input NewSizeRunInput { "Optional: when omitted the per-type default applies — the ratio in words — 'Run 1-2-2-1' in the stored order; when supplied it must be non-blank." caption: String optionGroupId: ID! "The ratio (1..256 distinct values of the group, shares summing to at least 1) in display order." entries: [SizeRunEntryInput!]! code: String } "Edit-input for a SizeRun. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. code additionally accepts an explicit null to clear; a supplied entries list replaces wholesale and is re-gated per value exactly like create. optionGroupId is NOT editable (immutable at birth — a different dimension is a different run: doom + create)." input EditSizeRunInput { caption: String "The replacement code, or explicit null to clear; omitted = unchanged." code: String "The replacement ratio (wholesale) — every value re-gated a member of the group + non-doomed." entries: [SizeRunEntryInput!] } "A TrainingRequirement: the owner's rule that people holding a role copied from the canned template roleTemplateKey must hold a valid TrainingCertificate for the course courseKey — a live play key of the Playbook registry. graceDays (0..365, default 14) = the days after the role grant before the requirement falls due; passMark (1..100, default 80) = the mark a sitting must reach — the strictest rule binding the person for the course wins at an attempt's start. The pair (roleTemplateKey, courseKey) is immutable after birth and unique among the org's non-doomed rules (a duplicate refuses CONFLICT/IDENTITY_TAKEN); at most 100 rules per org (CONFLICT/TRAINING_CAP past it). NOT searchable (no filter roster until the face)." type TrainingRequirement { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like TE-… — stable for the record’s life." sysId: String! "The kind of record — always `TrainingRequirement` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a TrainingRequirement parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The canned role template the rule binds — owner · system_administrator · manager · associate_manager · warehouse_associate · sales_associate · cashier; a person holding ANY role copied from it owes the course. Immutable at birth." roleTemplateKey: String! "The course — a live play key of the Playbook registry (e.g. connect-a-till). Immutable at birth." courseKey: String! "Days after the role grant before the requirement is due (0..365; default 14)." graceDays: Int! "The pass mark a sitting must reach (1..100; default 80) — the strictest applicable rule wins." passMark: Int! "What the rule is for (at most 400 characters); optional, set-only." note: String } "One page of the trainingRequirements listing — the records + the opaque resume cursor." type TrainingRequirementPage { "The page's records." items: [TrainingRequirement!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } input NewTrainingRequirementInput { "Optional: when omitted the per-type default applies — the pair (e.g. `cashier · connect-a-till`); when supplied it must be non-blank." caption: String "One of the seven canned role template keys." roleTemplateKey: String! "A live play key." courseKey: String! "0..365; default 14." graceDays: Int "1..100; default 80." passMark: Int "At most 400 characters." note: String } "Edit-input for a TrainingRequirement. Every field optional, at least ONE required; supplied fields replace graceDays, passMark, note and/or caption — at least one; the pair (roleTemplateKey, courseKey) never moves — write a new rule instead." input EditTrainingRequirementInput { caption: String "0..365." graceDays: Int "1..100." passMark: Int "At most 400 characters; set-only." note: String } "A TrainingQuestion: ONE multiple-choice question of a course's bank — the prompt (at most 400 characters), 2..6 options (each at most 200 characters), correctIndex (0-based, below the options' count), the explanation shown after a sitting (at most 400 characters), the optional play step it tests and its source (drafted | written). The strict schema: no unknown keys. active = in the draw · inactive = retired from the draw, kept · doomed. A course's bank holds at most 60 non-doomed questions (CONFLICT/TRAINING_CAP past it). courseKey is immutable after birth. A submitted attempt is graded against ITS stored draw — a later edit here never re-grades it. NOT searchable (no filter roster until the face)." type TrainingQuestion { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like TQ-… — stable for the record’s life." sysId: String! "The kind of record — always `TrainingQuestion` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of active, inactive or doomed." status: String! "The parent org group; for a TrainingQuestion parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The course — a live play key. Immutable at birth." courseKey: String! "The play step this question tests (1-based), when one step alone; null when the whole play." stepN: Int "The question (at most 400 characters)." prompt: String! "2..6 options, each at most 200 characters; replaced wholesale on an edit." options: [String!]! "The right option (0-based; below the options count)." correctIndex: Int! "Why that option is right — shown after a sitting (at most 400 characters)." explanation: String! "Where it came from — drafted | written (the assistant's draft the owner kept, or written by hand). Immutable at birth." source: String! } "One page of the trainingQuestions listing — the records + the opaque resume cursor." type TrainingQuestionPage { "The page's records." items: [TrainingQuestion!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } input NewTrainingQuestionInput { "Optional: when omitted the per-type default applies — the prompt cut to the caption cap; when supplied it must be non-blank." caption: String "A live play key." courseKey: String! "The play step it tests (1-based), optional." stepN: Int "At most 400 characters." prompt: String! "2..6 options." options: [String!]! "0-based, below the options count." correctIndex: Int! "At most 400 characters." explanation: String! "drafted | written." source: String! } "Edit-input for a TrainingQuestion. Every field optional, at least ONE required; supplied fields replace prompt, options (wholesale), correctIndex, explanation, stepN and/or caption — at least one; when only one of options/correctIndex moves, the index is checked against the stored options; courseKey and source never move." input EditTrainingQuestionInput { caption: String "The play step it tests (1-based)." stepN: Int "At most 400 characters." prompt: String "Wholesale replacement when supplied." options: [String!] "0-based, below the options count." correctIndex: Int "At most 400 characters." explanation: String } "A TrainingAttempt: ONE sitting of a course's test by ONE person — always the caller who started it (nobody starts one for someone else). At start the platform draws 10 active questions of the course (every active question when fewer; below 3 the start refuses CONFLICT/TRAINING_TOO_FEW_QUESTIONS) and stores exactly that draw (questionIds); passMark is copied from the strictest requirement binding the person for the course, else the default; curriculumVersion is the play's content hash at the sitting. open (live) → submitted (terminal, kept) by the subject · open → doomed (terminal) by manage authority. ONE open sitting per (person, course) — a second start refuses CONFLICT/TRAINING_ATTEMPT_OPEN; at most 5 sittings per (person, course) per UTC day (CONFLICT/TRAINING_CAP). The by-id read answers the subject or the training-manage right; the listing is the manage right's. NOT searchable." type TrainingAttempt { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like TT-… — stable for the record’s life." sysId: String! "The kind of record — always `TrainingAttempt` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of open, submitted or doomed." status: String! "The parent org group; for a TrainingAttempt parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The subject — the User who started the sitting; always the caller. Immutable at birth." userId: ID! "The organization the sitting was started in (the session’s acting org) — the progress record’s second coordinate. Immutable at birth." orgId: ID! "The course — a live play key. Immutable at birth." courseKey: String! "The draw — 3..10 question ids drawn from the active bank at start, in the order asked; the grade is taken against exactly these. Immutable at birth." questionIds: [ID!]! "One option index per drawn question, in the draw order — set once at submit; null while open or doomed." answers: [Int!] "The grade 0..100 (rounded) — set at submit; null while open or doomed." score: Int "score >= passMark — set at submit; null while open or doomed." passed: Boolean "Copied at start from the strictest requirement binding the person for the course, else the default 80. Immutable at birth." passMark: Int! "The start instant (UTC ISO-8601). Immutable at birth." startedAt: String! "The submit instant (UTC ISO-8601); null while open or doomed." submittedAt: String "The play’s content hash at the sitting (16 hex — sha-256 over its title, line and the steps’ words); ’s refresh rule compares it. Immutable at birth." curriculumVersion: String! "The certificate a passing submit minted in the same transaction; null on a fail, while open, or when doomed." certificateId: ID } "One page of the trainingAttempts listing — the records + the opaque resume cursor." type TrainingAttemptPage { "The page's records." items: [TrainingAttempt!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "A TrainingCertificate: the platform's own record that a person passed a course — minted by the API at a passing submit, in the same transaction as the attempt's transition, never by a client (no create op exists on the wire). The holder (userId), the course, the passing sitting (attemptId), the score and the pass mark, the issue instant and the course's content version (curriculumVersion). valid (live) → revoked (terminal; manage authority, a reason required) · valid → superseded (terminal; system-only — the person's next pass of the same course supersedes it and keeps it as history). expiresAt is null — 's refresh rule sets it. The by-id read answers the holder or the training-manage right; the listing is the manage right's (revoked drops from it, superseded stays as history; both stay point-readable). NOT searchable." type TrainingCertificate { "The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it." id: ID! "The human-readable id, shaped like TC-… — stable for the record’s life." sysId: String! "The kind of record — always `TrainingCertificate` here." type: String! "The record’s display name — what people see it called." caption: String! "The record’s current state — one of valid, superseded or revoked." status: String! "The parent org group; for a TrainingCertificate parentId === rootId." parentId: ID! "The id of your organization group — every record of yours carries the same one." rootId: ID! "When the record was created, as a UTC timestamp." createdAt: String! "When the record last changed, as a UTC timestamp." updatedAt: String! "How many times this record has been edited; the first save is 0." revisionNum: Int! "The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten." revision: ID! "The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption." refCaptions: [RefCaption!]! "The holder. Immutable." userId: ID! "The course — a live play key. Immutable." courseKey: String! "The passing sitting. Immutable." attemptId: ID! "The sitting’s grade 0..100 — stored on every certificate; null on the wire to a NON-subject reader when training.score_visibility is 0" score: Int "The pass mark the sitting had to reach." passMark: Int! "The issue instant (UTC ISO-8601) — the mint transaction’s clock." issuedAt: String! "The play’s content hash the course was passed on (16 hex) — ’s refresh rule compares it to today’s." curriculumVersion: String! "null — the refresh rule is content-based (refreshDue), never time-based." expiresAt: String "Derived at read time, never stored: true when the course’s current content hash differs from curriculumVersion (or the play is gone) — sit again to refresh; the api compares through the kit’s course facts." refreshDue: Boolean! } "One page of the trainingCertificates listing — the records + the opaque resume cursor." type TrainingCertificatePage { "The page's records." items: [TrainingCertificate!]! "Present ⇒ more may remain (pass back verbatim as `nextToken`); null ⇒ the listing is complete. Opaque + tenant-bound." nextToken: String } "One opening of a sealed staff-activity trail: the ledger row every door writes." type SupportTrailUnseal { id: ID! at: String! "merchant (the owner’s own ask) or support (a platform support agent against a ticket)." door: String! "The merchant door: the asking owner’s user id; the support door: the platform principal’s name." actor: String! subjectUserId: ID! from: String! to: String! reason: String ticketRef: String "How many sealed rows the window held when it was opened." rowsReturned: Int! } "One unsealed trail row — what one API call said about what the person was doing (every value a vocabulary word, a number, an instant or an id — never free text)." type SupportTrailRow { at: String! app: String! appVersion: String screen: String action: String op: String type: String outcome: String! ms: Int! callId: ID! orgId: ID! sessionId: ID! device: ID } "The merchant door’s answer: the opening as recorded + the timeline in time order + the rows that refused to open (counted, never hidden)." type UserActivityTrail { unseal: SupportTrailUnseal! rows: [SupportTrailRow!]! unreadable: Int! } type Query { "A liveness read — no contract version required." health: String! "The current authenticated principal, or null when the call is unauthenticated." me: Principal "Caption typeahead within the caller's OWN org-group family; requires authentication." search(type: SearchableType!, prefix: String!, limit: Int): [SearchHit!]! "ONE search over every kind of record you may read — a word, a code or an id finds products, vendors, contacts and more, grouped by kind. The prefix is ONE word (a space inside refuses VALIDATION/INVALID — the face sends one word at a time; slice 3's grammar compiles phrases) of at least 2 folded characters (a one-character prefix is refused, never searched) and at most the caption length; it folds case- and diacritic-insensitively and matches the start of a caption word, the sysId or the record's own code. The lens: only the kinds whose plural read your roles permit ever answer — a hit of any other kind is dropped before the page is cut (a cashier never sees a collaborator's name in a suggestion). first defaults to 20 and clamps to 50; more says rows remained. The variant's SKU is NOT here by the catalogue ruling — resolveIdentifier is its exact door." searchAll(prefix: String!, first: Int): SearchAllPage! "The verification mechanism: the full effective-permission map for an in-tenant (user, organization) pair — every registry operation evaluated by the same flat algorithm the future gate uses (default-DENY → union allow across the user's active roles at the org → disallow-ALWAYS-wins), each entry attributing its contributing descriptors to their roles. Requires authentication; reads null when the user OR the organization is cross-tenant or absent. Previews descriptor evaluation only — no capability/dark-org/lifecycle composition (the ruled cutover slice)." effectivePermissions(userId: ID!, organizationId: ID!): EffectivePermissions "Your own effective permissions at the organization you are acting in — the same evaluator and the same answer shape as effectivePermissions (roles · operations over the whole registry), computed over the session's own user and acting organization (no arguments). Self on the user plane — every principal keeps it (an API key or a collaborator has no own user → AUTHZ/FORBIDDEN, never a synthetic answer); the office's lens read, so every reader's course narrows to what their role can run." myEffectivePermissions: EffectivePermissions! "The peek switch read: the same compile as effectivePermissions over ONE in-tenant role — every registry operation evaluated for that role alone. Read semantics: a cross-tenant or absent role/organization reads null — existence never leaks." rolePermissions(roleId: ID!, organizationId: ID!): EffectivePermissions "The trail ledger: every opening of the caller’s group’s sealed staff-activity trails — who opened it, which door (merchant · support), which user, which window, the ticket or the reason, how many rows — newest first, optionally windowed by ISO instants. Owner-only (the A19_TRAIL area). The read model expires with the trail (90 days); every opening is also a permanent log event." supportTrailUnseals(from: String, to: String): [SupportTrailUnseal!]! "Reserved for the platform; not available to API keys." loginChoices(identifier: String!, password: String!): LoginChoicesResult! "Reserved for the platform; not available to API keys." passwordResetContext(token: String!): PasswordResetContext! "An Organization by id, within the caller's OWN org-group family; requires authentication." organization(id: ID!): Organization "The caller's org-group family's active listing of Organizations — doomed records drop from listings. Paginated: `limit` clamps to [1, 200], default 100; `nextToken` = the prior page's cursor, verbatim — opaque + tenant-bound (a malformed or foreign token → VALIDATION/INVALID). Walk until `nextToken` is null (a page may hold fewer than `limit` — doomed drop per page). Structured filter + sort: `filter` = AND across clauses, OR within a clause's values; `sort` = one declared field, asc/desc. The declared Organization roster: `caption` (text) · `status` (enum) · `code` (text) · `legalName` (text) · `jurisdiction` (enum) · `createdAt` (date) · `updatedAt` (date). An illegal filter/sort refuses VALIDATION/INVALID naming the exact problem (an unknown field teaches the roster). Absent both, the unfiltered lane is unchanged (`matchCount` null)." organizations(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): OrganizationPage! "The system-shipped immutable Characteristic templates; registry data, identical for every tenant. Requires authentication." cannedCharacteristics: [CannedCharacteristic!]! "The canned UoM registry. Requires authentication." cannedUoms: [CannedUom!]! "A variant's identifier ledger: current + superseded entries, voided excluded, most-recent-first; kind/organizationId filters compose." variantIdentifiers(variantId: ID!, kind: String, organizationId: ID): [IdentifierEntry!]! "The locked resolution: current + ledgered values as ONE namespace per kind — a historical match still resolves to its variant (outdated-flagged); ALL matches, most-recent-first. organizationId required for plu/gtin, refused for sku. Zero matches → NOT_FOUND/IDENTIFIER. Requires authentication." resolveIdentifier(kind: String!, value: String!, organizationId: ID): [IdentifierResolutionMatch!]! "The membership evaluation: a collection's products = its pins union (predicate matches minus exclusions), gated to active products of active styles, ordered per sortMode (newest | price-asc | price-desc | manual-pins-first). A static collection reads as its active members' surviving products by ordinal (all pinned). A staged (inactive) collection evaluates — previewing is what staging is for; a doomed one reads as an empty list." collectionProducts(collectionId: ID!): [CollectionProductHit!]! "The agent catalog — search: what the AgentChannel lists (the listing rule — the active listed Collections' active products, active variants minus the veto list, ranged + priced at the selling location NOW, the PriceList plane when set), matched by query words (title · description · code · variant titles · codes · SKUs; all words, case/diacritic-folded) and/or filters (category captions OR-matched; price bounds in the listing currency's minor units), paged (limit default 10, max 50; an opaque cursor bound to the criteria). At least one of query/categories/price is required. The agent_platform principal reads only its own channel (any other id → AUTHZ/FORBIDDEN); staff planes read any channel of the group (a missing/foreign channel → NOT_FOUND). This is exactly what an agent platform sees on the shop's host — the merchant's preview." agentChannelCatalogSearch(agentChannelId: ID!, query: String, categories: [String!], priceMinMinor: Int, priceMaxMinor: Int, limit: Int, cursor: String): AgentChannelCatalogPage! "The agent catalog — lookup: resolve up to 50 identifiers (a listed Product id → its featured first variant · a listed Variant id · a listed variant's SKU or barcode → that variant exactly) to listed products whose variants carry inputs; identifiers reaching nothing listed are named in notFound (never an error — the spec's partial-success shape). The same principal law as the search." agentChannelCatalogLookup(agentChannelId: ID!, ids: [String!]!): AgentChannelCatalogLookup! "The agent catalog — product detail: one identifier (product · variant · SKU · barcode) → the listed product with its variants narrowed by the effective selections (a variant identifier fixes them; else the request's selected, relaxed from the END of preferences until a variant matches), every option value marked available/exists relative to them. product is null when nothing listed matches. The same principal law as the search." agentChannelCatalogProduct(agentChannelId: ID!, id: String!, selected: [AgentCatalogSelectedOptionInput!], preferences: [String!]): AgentChannelCatalogDetail! "The agent checkout — read: one agent checkout's quote view at NOW. The agent_platform principal reads its OWN channel's checkouts opened by ITS platform (any other → the uniform NOT_FOUND); staff (read) read any checkout of their group's channels. A checkout of another channel, another platform, or an Order that is not an agent checkout is the same uniform NOT_FOUND." agentChannelCheckout(agentChannelId: ID!, orderId: ID!, linkedConsumerId: ID): AgentCheckout! "The agent order — read: one agent-originated sale as the platform reads it (the released Order's words). The agent_platform principal reads the orders ITS platform originated on ITS channel (any other → the uniform NOT_FOUND); staff read any of their group's agent sales — the merchant's own preview." agentChannelOrder(agentChannelId: ID!, orderId: ID!, linkedConsumerId: ID): AgentOrder! "The Stock Card: one InventoryItem's posted movement entries, newest-first + bounded (limit defaults 50, clamps 1..200; before = an exclusive upper entry-id bound — v7 ids are time-ordered, the older-page cursor). Voided entries excluded." stockCard(inventoryItemId: ID!, limit: Int, before: ID): [InventoryEntry!]! "The two-way reconciliation read: recompute the bucket balances from the active Stock-Card entries and compare against the II cached balances — the bounded per-II verify (the standing auditor is the catalogued escalation). Since also reconciles the StockRecord shards against the relocate entries and reports the binned/un-binned split. Requires authentication; reads null on a cross-tenant/missing id." verifyInventoryItem(inventoryItemId: ID!): InventoryVerification "One InventoryItem StockRecord shard rows — where its stock sits in bins (zero rows = everything un-binned). Requires authentication; a cross-tenant/missing id reads as an empty list; a doomed item keeps readable shards." stockRecords(inventoryItemId: ID!): [StockRecord!]! "One Bin StockRecord rows across items. Requires authentication; a cross-tenant/missing id reads as an empty list." binStock(binId: ID!): [StockRecord!]! "The derived inbound view: every receivable PO (issued / acknowledged / partially_received) flattened to its outstanding lines (ordered − received > 0), shaped {po, line, variant, LF, outstandingQty, expectedArrivalAt}. Derived at read off the purchase_orders walk — never stored; fully-received lines and terminal history drop." expectedReceipts: [ExpectedReceipt!]! "ONE PurchaseOrder's own lines, lineNo-ORDERED + born-paginated. purchaseOrderId is the required anchor (tenant-scoped — a cross-tenant/missing order refuses NOT_FOUND, never an empty page). 'nextToken' = the prior page's cursor, verbatim (opaque; malformed/foreign → VALIDATION/INVALID). Requires authentication." purchaseOrderLines(purchaseOrderId: ID!, filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): PurchaseOrderLinePage! "ONE Receipt's own lines, lineNo-ORDERED + born-paginated. receiptId is the required anchor (tenant-scoped — a cross-tenant/missing receipt refuses NOT_FOUND, never an empty page). 'nextToken' = the prior page's cursor, verbatim (opaque; malformed/foreign → VALIDATION/INVALID). Requires authentication." receiptLines(receiptId: ID!, filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): ReceiptLinePage! "The resolution diagnostic for one (variant × LF): the effective parameter set + per-parameter provenance (config + the specificity trace) + every matched config. Refuses VALIDATION/invalid naming both configs, the parameter, and the cure when two equal-specificity configs set the same parameter. Reads null when the variant or LF is missing/cross-tenant. Requires authentication." replenishmentParameters(variantId: ID!, logicalFacilityId: ID!): ReplenishmentParameterResolution "The buy suggester: scope required bounded (exactly one of logicalFacilityId ⊕ organizationId; optional orgVendorId/categoryId/styleId/variantIds narrows). Per active stocked junction in scope: position = available + in_transit + on-order (the expectedReceipts walk; held/damaged excluded) vs the resolved min/safety/days-of-supply levels; deficits round UP through the effective MOQ + reorder multiple (pack/forced — the machinery) and group by OrgVendor into draft-po-shaped payloads (realization-ready verbatim for createPurchaseOrder, which re-gates authoritatively — the platform never outruns the gates). orderMinimum shortfalls are annotated, never padded. Urgent deficits (velocity-dependent) couple into transfer-now + backfill-PO pairs. Books with no live OVI land in gaps as no-ovi. Derived at read, never stored. The continued walk: the desk walks the scope's facilities position by position under the time one request allows. A cut walk answers partial with a nextToken. A call that runs out of time before its first position refuses VALIDATION/INVALID naming the stage. The page budget: a page's findings stop at half the tool-result cap, so a page always fits an assistant whole. limit (1 to 500) caps a page's findings by count. Outside that range it refuses VALIDATION/INVALID naming the bound. Requires authentication." replenishmentSuggestions(logicalFacilityId: ID, organizationId: ID, orgVendorId: ID, categoryId: ID, styleId: ID, variantIds: [ID!], nextToken: String, limit: Int): ReplenishmentSuggestionsResult! "The pull suggester: deficits at the destination filled from donors with genuine excess (available − the donor's OWN resolved target − reserveFloor > 0 — exactly at target+reserve is NOT excess; transferableExcess honored) in the lane order (never dropped · always first · ranked · geodistance defaults); tr-shaped payloads, one per donor (pull semantics — the TR doc IS the demand doc). Derived at read. The continued walk: the desk walks the destination's positions page by page under the time one request allows. A cut walk answers partial with a nextToken; pass it back with the same arguments to continue. The page budget: a page's findings stop at half the tool-result cap, so a page always fits an assistant whole. limit (1 to 500) caps a page's findings by count. Outside that range it refuses VALIDATION/INVALID naming the bound. Requires authentication." rebalanceSuggestions(destinationLogicalFacilityId: ID!, variantIds: [ID!], nextToken: String, limit: Int): RebalanceSuggestionsResult! "The push suggester: the hub's genuine excess fair-shared across other LFs holding the variant by their resolved allocationWeight (largest remainder, deterministic); destinations with no resolved weight land in gaps as no-weights; never-lanes out of the hub drop their destination. Transfer-SHAPED payloads (push semantics — the.1 doc; lines name the source InventoryItem). Derived at read. Requires authentication." allocationSuggestions(sourceLogicalFacilityId: ID!, variantIds: [ID!]): AllocationSuggestionsResult! "The resolved sourcing matrix into ONE destination: every active source LF as a row — stored lanes (never/always/ranked) + the sparse geodistance default ordering (LF→PF→PFL.geo; a geo-absent side ranks last flagged no-geo; same-PFL light out-ranks shipped at equal distance). never entries are shown position-less (excluded from consideration — an inactive lane is absent, not never). Derived at read. Requires authentication." transferLaneRanking(destinationLogicalFacilityId: ID!): [TransferLaneRankingEntry!]! "The ABC ranking: one page of the stored ranking of a location or an organization. The ranking is refreshed every night. It lists the stock positions that sold in the last 30 closed UTC days, best first. The house's cut lines class them by the running share of the scope's total before each position. A position is class A while that share is under 80 %, class B while it is under 95 %, else class C. A scope with no sales in the window is ranked by the value on hand instead (basis: value). A position that is not listed is class C, unless a replenishment config pins it. A pin (abcClassOverride) is applied when the page is read, so an edit shows at once. The counts are the ranking's own, before any pin. While a pin is applied, a listed position refuses VALIDATION/INVALID when two equal-specificity configs set the same parameter for it. The refusal names both configs, as on the planning desks. Scope required bounded: exactly one of logicalFacilityId ⊕ organizationId. limit is 100 by default and 200 at the most — the house's plain page; a larger figure is clamped. A nextToken continues the same ranking and survives ONE refresh. After two refreshes it is refused VALIDATION/INVALID in words: read the ranking again from the start. stored: false means nothing is stored for this scope yet. Requires authentication." abcClasses(logicalFacilityId: ID, organizationId: ID, limit: Int, nextToken: String): AbcClassPage! "The matrix read: ONE Style's live cells at ONE LogicalFacility — on hand · reserved · available · on order per Variant, the axes in scheme order and every axis's values in ordinal order, the cells axis-major. Both refs tenant-scoped (a foreign/missing Style or LogicalFacility refuses NOT_FOUND). Bounded by the style: at most 1000 live cells — over refuses VALIDATION naming the count and the cap, never a truncated grid. Doomed products/variants are not cells; inactive ones are. A cell with no (variant × LF) InventoryItem reads zeros with inventoryItemId null. Requires authentication." styleStockMatrix(styleId: ID!, logicalFacilityId: ID!): StyleStockMatrix! "The fill: spread a total over a SizeRun's ratio — whole units by the largest-remainder law (each entry floor(total × share ÷ Σ shares), the remainder one unit at a time to the largest fractional parts, ties to the earlier entry; Σ = total exactly; a 0-share entry never receives a unit), answered in the run's stored order. The run tenant-scoped (a foreign/missing run refuses NOT_FOUND); total an integer 0..1000000000 (else VALIDATION). A pure read — nothing changes. Requires authentication." sizeRunFill(sizeRunId: ID!, total: Int!): [SizeRunFillCell!]! "The on-order audit: ONE page of your tenant's stock junctions checked against the derived truth — for each InventoryItem the stored onOrderQty (maintained by the purchase-order walks + the receipt post) beside the figure derived from the receivable purchase orders' open lines (computed once per call), answering only the rows that differ, the page's driftCount, and the cursor for the next page. Doomed junctions are skipped. An order still walking (issuing / cancelling / closing) reads as drift until it lands. A read — nothing written; repairInventoryOnOrder stamps one cell. 'limit' bounds the page; 'nextToken' = the prior page's cursor, verbatim (opaque)." inventoryOnOrderAudit(limit: Int, nextToken: String): InventoryOnOrderAuditPage! "With the tillSession GET (cached drawerTotals + counted/overShort) this IS the X/Z-report data (rendered artifacts = the reports family)." drawerLedger(tillSessionId: ID!, limit: Int, before: ID): [CashEntry!]! "With the order GET (tenderedNetMinor/tipTotalMinor/paymentState) this IS the settlement story — sale tenders + refund tenders, Return-ref'd." orderTenders(orderId: ID!, limit: Int, before: ID): [Tender!]! "Resolve the effective FX rate for (fromCurrency → the org's default currency) at an instant. fromCurrency is a platform-registry code inside the organization's allowed set. 'at' absent = the server's now (past instants are legal — historical reconstruction is a read). What this quotes is exactly what a foreign_cash tender applies. No covering record / a dangling adjustment chain refuses CONFLICT/NO_EFFECTIVE_RATE (retryable — create the rate, then retry)." resolveFxRate(fromCurrency: String!, organizationId: ID!, logicalFacilityId: ID, at: String): FxResolution! "Resolve the effective policy value for (scope × key) at an instant. 'at' absent = the server's now (past instants are legal — historical reconstruction is a read). What this quotes is exactly what the platform applies. An unknown key refuses naming the registry roster. Template class A18_POLICY (sensitive config — owner/manager)." resolvePolicyValue(key: String!, organizationId: ID!, logicalFacilityId: ID, at: String): PolicyResolution! "A doomed holder resolves with its status visible (the burn law — the code stays on its corpse forever; the tender lanes refuse on status); an unknown/malformed code refuses NOT_FOUND/CONSTRUCT. Contrast coupons: no coupon-resolve op exists (codes enter only via apply)." resolveStoredValueInstrument(code: String!): StoredValueInstrument! "With the instrument GET (cached balanceMinor — stamped in the same transaction as every entry) this IS the balance story." storedValueLedger(instrumentId: ID!, limit: Int, before: ID): [StoredValueEntry!]! "With the member GET (cached pointsBalance — stamped in the same transaction as every entry) this IS the points story." loyaltyLedger(memberId: ID!, limit: Int, before: ID): [LoyaltyPointsEntry!]! "from/to are the half-open period bounds over createdAt (UTC ISO-8601). 'nextToken' = the prior page's cursor." commissionEntryList(agentUserId: ID, from: String, to: String, limit: Int, nextToken: String): CommissionEntryPage! "The AffiliateEntry ledger read." affiliateEntryList(affiliateId: ID, from: String, to: String, limit: Int, nextToken: String): AffiliateEntryPage! "The commission payout report: signed rows per (agent × currency) over entries createdAt ∈ [from, to) — earned/clawedBack/payable/entryCount; late claws land in their own period as negative rows (append-only — close periods after the return window); agentUserId narrows to one agent. NO posting state — payroll is external BY design." commissionPayoutReport(from: String!, to: String!, agentUserId: ID, limit: Int, nextToken: String): CommissionPayoutRowPage! "The affiliate payout twin: signed rows per (affiliate × currency)." affiliatePayoutReport(from: String!, to: String!, affiliateId: ID, limit: Int, nextToken: String): CommissionPayoutRowPage! "The AREntry ledger of ONE OrgCustomer house account, newest-first + born-paginated. from/to are the half-open period bounds over createdAt (UTC ISO-8601). 'nextToken' = the prior page's cursor. With the OrgCustomer GET (cached arBalanceMinor — stamped in the same transaction as every post) this IS the debt story." arLedger(orgCustomerId: ID!, from: String, to: String, limit: Int, nextToken: String): ArEntryPage! "The receivables aging report: the 5 fixed buckets over open charges via the O(open) frontier walk (the head at its cached partial, later charges at face), each {count, totalMinor}, + asOf + arCurrency + the cached balance (Σ buckets == arBalanceMinor BY construction). With arLedger this IS the lock's aging/statements data plane." arAging(orgCustomerId: ID!): ArAgingReport! "The 7 canned role templates: copy via copyCannedRole. NOT a construct list (bounded 7 forever — the transferLanes roster class; untouched). Requires authentication." cannedRoles: [CannedRole!]! "Reserved for the platform; not available to API keys." collaboratorMe: Collaborator! "Reserved for the platform; not available to API keys." collaboratorLoginChoices(orgId: ID!, email: String!, password: String!): CollaboratorLoginChoicesResult! "Reserved for the platform; not available to API keys." myCollaboratorAccess: CollaboratorAccess! "Reserved for the platform; not available to API keys." consumerMe: Consumer! "The 6 canned consent-purpose templates: copy via copyCannedConsentPurpose. NOT a construct list (bounded 6 — the cannedRoles roster class; untouched). Requires authentication." cannedConsentPurposes: [CannedConsentPurpose!]! "Reserved for the platform; not available to API keys." myConsents(limit: Int, nextToken: String): MyConsentRowPage! "ONE case's message thread, oldest-first + born-paginated. caseId is the required anchor (tenant-scoped — a cross-tenant/missing case refuses NOT_FOUND). 'nextToken' = the prior page's cursor, verbatim (opaque + case-bound; malformed/foreign → VALIDATION/INVALID). Requires authentication." caseMessages(caseId: ID!, limit: Int, nextToken: String): CaseMessagePage! "ONE consumer's cases, newest-first + born-paginated. consumerId is the required anchor (tenant-scoped). Cancelled drops per page; closed history stays. Requires authentication." casesByConsumer(consumerId: ID!, limit: Int, nextToken: String): CsCasePage! "Reserved for the platform; not available to API keys." myCases(limit: Int, nextToken: String): CsCasePage! "Reserved for the platform; not available to API keys." myCase(id: ID!): CsCase! "Reserved for the platform; not available to API keys." myCaseMessages(caseId: ID!, limit: Int, nextToken: String): CaseMessagePage! "One customer's orders, newest first, in pages — a customer outside your group refuses NOT_FOUND." ordersByConsumer(consumerId: ID!, limit: Int, nextToken: String): OrderPage! "ONE registry's item rows, oldest-first + born-paginated. registryId is the required anchor (tenant-scoped). Doomed (removed) rows stay listed — history. Requires authentication." registryItems(registryId: ID!, limit: Int, nextToken: String): RegistryItemPage! "ONE registry's fulfillment facts, oldest-first + born-paginated: with the item rows this IS the purchased/remaining story (purchased = Σ qty; remaining floors 0). registryId is the required anchor. Requires authentication." registryFulfillments(registryId: ID!, limit: Int, nextToken: String): RegistryFulfillmentPage! "ONE consumer's registries, newest-first + born-paginated. consumerId is the required anchor (tenant-scoped). Doomed drops per page; closed/expired history stays. Requires authentication." registriesByConsumer(consumerId: ID!, limit: Int, nextToken: String): GiftRegistryPage! "Reserved for the platform; not available to API keys." myGiftRegistries(limit: Int, nextToken: String): GiftRegistryPage! "Reserved for the platform; not available to API keys." myGiftRegistry(id: ID!): GiftRegistry! "Reserved for the platform; not available to API keys." myRegistryItems(registryId: ID!, limit: Int, nextToken: String): RegistryItemPage! "Reserved for the platform; not available to API keys." myProductReview(productId: ID!): Review "The group wallet's token-ledger facts, newest-first + born-paginated. With the wallet GET (cached balance) this IS the billing transparency surface: balance == Σ entries exactly. Requires authentication. Template class A16_BILLING (hand-derived v23)." tokenEntries(limit: Int, nextToken: String): TokenEntryPage! "The caller group's OWN platform referral earnings, newest-first + bounded. Self-group BY construction. Each entry snapshots rate + basis — the earnings transparency surface; the wallet's affiliateCreditCents is the live spendable Σ. Requires authentication. Template class A16_BILLING (hand-derived v23)." affiliateAccruals(limit: Int, before: ID): [AffiliateAccrual!]! "The caller group's kernel blocks, newest-first + bounded. Self-group BY construction; a block-less group answers. The transfer surface reads this list (transferable = approved | transfer_denied, settled ≥ 90 days). Requires authentication. Template class A16_BILLING (hand-derived v94)." kernelBlocks(limit: Int, before: ID): [KernelBlock!]! "The caller group's Stripe revshare give-back standing. The report = the derived tenure clock + the earned tier + the next rung + the earned USD ledger (newest-first + bounded — the affiliateAccruals page shape). Self-group BY construction (no target arg). Requires authentication. Template class A16_BILLING (hand-derived v91)." giveBack(limit: Int, before: ID): GiveBackReport! "The caller group's handholding-plan report. Self-group BY construction (no target arg); a plan-less group answers standing 'none' with its honest classing (a quiet group is Small). Requires authentication. Template class A16_BILLING (hand-derived v93)." supportPlan: SupportPlanReport! "The caller group's OWN referral roster: every business that signed up with your referral code, newest-first, with its code, its standing (pending | approved | denied — derived from the referred group's own record, the one source of truth), when it joined and when it was decided. The optional status filter narrows to one standing (pending | approved | denied — any other word refuses VALIDATION/INVALID; absent = every referred signup). Self-group by key construction; a group that referred nobody answers. Earning begins at the next billing cycle after approval — months that pass while pending never accrue; a denied referral never earns; the referred business's own discount rides from birth regardless; every decision also reaches your owners as a notice + a mail. Requires authentication. Template class A16_BILLING (hand-derived v96)." referredSignups(status: String): [ReferredSignup!]! "The caller group's OWN referral performance report: counts of referred businesses by standing (+ gone · earning), lifetime totals by kind (earned ≥ 0 · applied/clawback ≤ 0 — signed like the ledger), the spendable credit, the newest 12 months that carry entries, and one page of referred businesses each with months paid · latest billed cycle · usage-window months left · earned · reversed. Self-group by key construction (no target arg); a group that referred nobody answers the zero report. referrals newest-first by the referred group's id — limit clamps [1,200] default 50, before pages backward by that id (the affiliateAccruals grammar); the counts and totals are page-independent. Requires authentication. Template class A16_BILLING (hand-derived v97)." referralReport(limit: Int, before: ID): ReferralReport! "Reserved for the platform; not available to API keys." changeRequest(id: ID!): ChangeRequest "Reserved for the platform; not available to API keys." changeRequests(limit: Int, nextToken: String): ChangeRequestPage! myChangeRequests(limit: Int, nextToken: String): ChangeRequestPage! myChangeRequest(id: ID!): ChangeRequest! "Reserved for the platform; not available to API keys." referralCode(code: String!): ReferralCodeDetail! "Reserved for the platform; not available to API keys." referralCodes(limit: Int, nextToken: String): ReferralCodePage! "The calling principal's OWN live tasks, newest-first + born-paginated. Self-scoped BY construction — no userId argument exists. Requires authentication." myTasks(limit: Int, nextToken: String): TaskPage! "ONE team's live tasks, newest-first + born-paginated. teamId is the required anchor (tenant-scoped — a cross-tenant/missing team refuses NOT_FOUND). Requires authentication." teamTasks(teamId: ID!, limit: Int, nextToken: String): TaskPage! "The tasks ref-bound to ONE construct, newest-first + born-paginated. constructId = any in-tenant construct id (tenant-scoped). Requires authentication." tasksByConstruct(constructId: ID!, limit: Int, nextToken: String): TaskPage! "ONE construct's note thread, born-paginated. order: oldest = the conversation order, the default; newest = the last-written notes first — the cursor resumes in the asked direction. targetConstructId is the required anchor (tenant-scoped — a cross-tenant/missing target refuses NOT_FOUND). Requires authentication." notes(targetConstructId: ID!, limit: Int, nextToken: String, order: NoteOrder = oldest): NotePage! "The calling principal's raw bookmark rows. scope defaults ALL. Bounded by the per-subject cap. Requires authentication." myBookmarks(scope: FeedScope): [BookmarkRef!]! "The composed bookmark feed: the subjects' bookmarks sorted by most-recent activity (max of target updates, boosts, due pops), quiet ones sinking; a doomed/purged target drops. A note card renders composed — 'a note on ⟨target caption⟩: ⟨title or first line⟩' — and carries its anchor pair. Self-scoped BY construction. limit defaults 50, clamps at 100. Requires authentication." myFeed(scope: FeedScope, limit: Int): [FeedCard!]! "Your merged inbox. limit defaults 50, clamps at 100. Requires authentication." myMessages(limit: Int, nextToken: String): MessageRefPage! "Your notices. limit defaults 50, clamps at 100. Requires authentication." myNotifications(limit: Int, nextToken: String): NotificationRefPage! "What shipped, newest first: the platform's release record in the merchant's words, off the bundled table — the same rows the office's What's new tab shows. since: a UTC calendar day yyyy-mm-dd — the rows on or after it (malformed → VALIDATION/INVALID); absent = the last 90 days. limit: the house page size (default 100, clamps at 200). nextToken: a prior page's cursor verbatim (opaque; a foreign cursor → VALIDATION/INVALID). A self read — every signed-in person, every role; an integration key reads it too (release notes are public-grade). Requires authentication." changes(since: String, limit: Int, nextToken: String): ChangePage! "Every email the platform sent to your account: newest-first born-paginated; self by construction, no subject argument exists; visible from every workspace of the account. limit defaults 100, clamps at 200 (the shared list-page law). Requires authentication." myMailLedger(limit: Int, nextToken: String): MailLedgerPage! "Requires authentication." mailByRef(ref: String!): MailLedgerEntry! "Your tenant's event bus. constructTypes filters to those construct types (the type chips — unknown names refuse VALIDATION); includeSystem (default false) admits the platform's OWN changes — the system actor's rows and actor-less rows — which the walk otherwise folds, so a page counts the rows a reader will SEE; limit defaults 50, clamps at 100. Requires authentication." orgBus(limit: Int, nextToken: String, constructTypes: [String!], includeSystem: Boolean): OrgBusEntryPage! "The acting org's operational layout in ONE call — Organization → PhysicalFacilities (each naming its referenced location site) → LogicalFacilities → Registers, every level sysId-ordered ('map my org' answered whole; the orgBus synopsis posture: opening a record still enforces per-op capability). No arguments — the session's acting org IS the subject. Requires authentication." orgLayout: OrgLayout! "One batch's child codes with their redemption status, in mint order, born-paginated (limit defaults 50, clamps 1..100; walk until nextToken is null). The batch must exist in your org group. Requires authentication." couponBatchCodes(batchId: ID!, limit: Int, nextToken: String): CouponBatchCodePage! "One segment's members, consumerId-ordered, born-paginated (limit defaults 50, clamps 1..100; walk until nextToken is null). The segment must exist in your org group. Requires authentication." segmentMembers(segmentId: ID!, limit: Int, nextToken: String): SegmentMemberPage! "One feed's retained run objects. The feed must exist in your group. Template class (integration config — off the floor)." feedSubscriptionRuns(feedSubscriptionId: ID!): [FeedRunRef!]! "Validate + resolve ONE connector authorize request for the consent face: the client's words + the redirect host + your eligible orgs. Every invalid request refuses typed (the face shows the error and never redirects — the open-redirect law). Any active member of an organization consents to their own assistant (the eligible organizations are those where they hold a role; an owner's every active organization); a person with no role anywhere is refused. Template class self." connectorAuthorization(responseType: String!, clientId: String!, redirectUri: String!, codeChallenge: String!, codeChallengeMethod: String!, state: String, scope: String, resource: String): ConnectorAuthorizationReview! "The AI assistants connected to one organization — the caller's OWN (any member), or every member's when the caller owns the organization (a page of at most 100, nextToken). orgId defaults to the acting organization; another organization must be in the caller's group. Reads only." connectorGrants(orgId: ID, limit: Int, nextToken: String): ConnectorGrantPage! "ONE resource's availability facts over [from, to): the advisory weekly hours + the capacity + the reserved bookings overlapping the window. The resource must exist in your org group. The client composes free slots. Requires authentication (template class)." schedulableResourceAvailability(resourceId: ID!, from: String!, to: String!): SchedulableResourceAvailability! "The AT-maintained canned storefront-theme roster: createStorefront/updateStorefront must name a listed key (the refusal names the roster). Unpaginated bounded roster (not a construct list). Requires authentication." cannedStorefrontThemes: [StorefrontTheme!]! "One page of your org group's fiscal receipts. Requires authentication (template class). Structured filter + sort: `filter` = AND across clauses, OR within a clause's values; `sort` = one declared field, asc/desc. The declared FiscalReceipt roster: `caption` (text) · `status` (enum) · `parentKind` (enum) · `regime` (enum) · `logicalFacilityId` (ref) · `seriesKey` (text) · `createdAt` (date) · `updatedAt` (date). An illegal filter/sort refuses VALIDATION/INVALID naming the exact problem (an unknown field teaches the roster). Absent both, the unfiltered lane is unchanged (`matchCount` null). `status` carries the ONE artifact literal `issued` — every live row matches (grammar parity, never narrowing)." fiscalReceipts(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): FiscalReceiptPage! "ONE fiscal receipt by id, within your org group. Requires authentication (template class)." fiscalReceipt(id: ID!): FiscalReceipt "The AT-maintained canned fiscal-regime roster: issueFiscalReceipt must name a listed key (the refusal names the roster). Unpaginated bounded roster (not a construct list). Requires authentication." cannedFiscalRegimes: [FiscalRegime!]! "One dashboard's widgets answered: each canned metric computed at read time, ordinal-ordered. The lanes: the status counts (orders_open = open/held/placed off the folded count row · cs_open_cases = cases where work remains · fraud_alerts_open = awaiting first triage, each a bounded walk) · windowed sales sums per currency off the daily sales ledger · loyalty_signups_30d (members created in the trailing 30 days — a signup is a birth event, status-blind) · inventory_value (Σ on-hand × weighted-average cost per currency; items without a cost basis are excluded) · sell_through_30d · review_average (the published-review aggregate — the average ×100 beside its census) · low_stock_count (the per-organization buy-desk snapshots summed — every active organization must have been desk-evaluated, asOf = the oldest evaluation; an unevaluated organization refuses naming it) · units_by_day_30d · the money series: sales_by_day_30d (net sales per day, one lane per currency) · transactions_by_day_30d (orders placed per day, a count series) · returns_by_day_30d (returns refunded per day, a count series) · tender_mix_30d (the money applied per tender type per day, signed, one lane per tender type and currency) · sales_by_organization_30d (net sales per selling organization per day, one lane per organization and currency); a money series above 16 lanes answers unavailable with the too-many-lanes reason · the stats section: org_census (the record counts that matter — eighteen kinds, active and all, counted once a day by the census sweep; each kind's row shows only when your role may list that family; no census yet answers unavailable with its reason) · api_calls_month and ai_calls_month (this month's calls off the daily usage rollups — the 1st reads one day, the 31st thirty-one) · storage_mib (the records + blob MiB the daily storage snapshot last measured, as of that day; no snapshot yet answers unavailable). The OP binding: the three meters stand on the billing reads (usageReport · aiUsage) — a role without them reads the not-permitted reason and the lane is never read. Every answer is honest-or-absent: a lane whose rows exceed the per-lane walk cap (2000), nothing to measure yet, a count past the wire's integer ceiling, or a money total past what the money grammar can carry answers available:false with a plain-words reason — never a clipped figure. The open-orders count: orders_open reads ONE folded count row kept current as orders change (the sum of open · held · placed) — it answers instantly for a store of any size; before the row exists, or while out-of-order events still settle, it answers available:false with its reason. The money string: every money figure — the sales tiles, the inventory value, the comparison figures and the money lanes' points — is a signed decimal string in the currency's major units, never minor units. The lens: every metric names the record families it reads (sales and open orders → Order · sales by day, transactions by day and the tender mix → Order · returns by day → Return · sales by organization → Order + Organization · inventory value, sell-through and units by day → InventoryItem · low stock → Organization + InventoryItem · service cases → CsCase · reviews → Review · loyalty signups → LoyaltyMember · fraud alerts → FraudAlert); a family your role may not list answers available:false with the not-permitted reason and its lane is never read — the same binding the report run applies. One read, two doors: name the layout exactly one way — `id` (a saved dashboard in your org group) or `widgets` (1..20 canned metric tokens, each once — a starter layout with no saved row; dashboardId answers null); both or neither refuse VALIDATION/INVALID. Group-wide (the construct's own scope). Requires authentication (template class)." dashboardMetrics(id: ID, widgets: [DashboardMetric!]): DashboardMetrics! "One construct's archived revision history: the full prior items, cause-stamped, from the revision archive. The target must exist in your tenant (a foreign/unknown target refuses NOT_FOUND); a doomed record's history remains readable (the dooming IS history); revisions land moments after each commit (the archive rides the change stream). limit defaults 100, clamps at 200. order defaults oldest (the walkable history); order: newest answers the latest rows first, unpaginated (a nextToken with newest refuses) — the last-touch lane's read. Requires authentication." revisions(targetType: String!, targetConstructId: ID!, limit: Int, nextToken: String, order: String): ConstructRevisionPage! "The target's likely-next actions: with a construct id, the record's live status × the registry's realized ops, ranked by the curated per-type×state order; without one, the family's birth op (record-creating acts surface as suggestions, never as fixed links). Either way filtered to what YOU may actually perform (capability + descriptors — a suggestion you cannot take is never returned). A given target must exist in your tenant (a foreign/unknown target refuses NOT_FOUND — the revisions gate); a terminal record answers its honest remainder (usually empty). Requires authentication." suggestedActions(targetType: String!, targetConstructId: ID): [SuggestedAction!]! "Render verbatim. Requires authentication (user sessions — an api key has no worklist)." needsAttention: [NeedsAttentionEntry!]! "Interpret a written request into structured filter conditions for a declared filterable family: the model drafts under a schema constrained to the family's roster, the server re-validates every clause exactly as hand-built (the grammar disposes), and reference names resolve in-tenant (ambiguity answers candidates for the picker — no tenant data leaves the platform; the prompt carries only the roster, its vocabularies, and your sentence). Inexpressible parts come back worded in unmappable. `type` must be a declared filterable family; `text` is one sentence (<= 500 chars). Refuses INTEGRATION/UNAVAILABLE while the interpreter is offline/keyless — build the filter by hand. Requires authentication (user sessions). Every call is cost-metered (at.ai.call.v1)." interpretFilter(type: String!, text: String!): InterpretedFilter! "Run ONE search plan synchronously, as you, inside your tenant: start at a plan-searchable family with optional filter clauses (the FilterInput grammar verbatim), hop along known relationships (outbound follows a reference field of the current family to the family it names; inbound walks a referring family and keeps the rows whose reference names a current match — at most 3 hops, each with its own clauses against ITS family), and answer the last step's rows as six-field summaries — newest first (updatedAt desc, id tiebreak), up to `limit` (1..200; absent = 100) — with the exact matchCount, the records examined, the elapsed ms, the plan in words, and the estimate the run made before reading anything. The plan gate refuses before any read — an unknown family, a field outside its roster, a hop that is not a relationship of the current family — naming the legal words. the budget rule refuses a plan that would examine more than 5000 records (measured keys only before the first read), a step that matches more than 1000, or a run past 8 s — no partials in this synchronous lane. Every refusal is VALIDATION/INVALID in the teaching voice. AS you: a family you may not list refuses the whole plan before any read; the tenant rides every key. A JSON null on an optional input field reads as absent. Requires authentication." searchPlanRun(plan: SearchPlanInput!): SearchPlanRun! "Draft ONE search plan from plain words: the assistant routes your words onto the plan grammar — the start family, up to 3 hops along known relationships, each step's conditions — in ONE strict structured call; then each step's conditions pass through the same interpreter the filter builder uses (names resolve inside your tenant; every clause re-validated exactly as hand-built); the assembled plan passes the plan gate before you see it (a refused plan is re-asked once with the gate's own words, then refused VALIDATION/INVALID in the teaching voice). Nothing runs and nothing is saved: the answer is the plan IN words + the exact JSON document searchPlanRun(plan) / startSearchJob(plan) accept — you decide. `words` is one written ask, 1..500 characters. Refuses INTEGRATION/UNAVAILABLE while the assistant is offline/keyless — build the plan by hand. Requires authentication (user sessions). Every call is cost-metered (at.ai.call.v1 — the route call as office.plan_draft, each step as office.filter_interpret)." draftSearchPlan(words: String!): SearchPlanDraft! "Run ONE report synchronously, as you, inside your tenant. The reports program slice: name the report exactly one way — spec (an ad hoc report), reportId (a saved report) or catalogKey + params (a catalogue report: see reportCatalog — the period presets today · yesterday · this_week · last_week · this_month · last_month · this_quarter · year_to_date or yyyy-mm-dd..Yyyy-mm-dd of at most 366 UTC days; a catalogue report your role may not run refuses AUTHZ/FORBIDDEN with its why). The ad hoc grammar: a report wraps a search plan (the SearchPlanInput grammar verbatim — the start, up to 3 hops, the limit; the plan gate and the budget rule of searchPlanRun apply unchanged: a plan that would examine more than 5000 records (measured keys only before the first read), a step over 1000 matches, or a run past 8 s refuses before partials exist — a plan too large for this lane says so and names the other one: start it as a background report) and says what to say about the last step's records — either `columns` (a projection: 1..24 fields of the terminal family — its declared filter roster plus the header leaves id · sysId · caption · status · createdAt · updatedAt; one row per record, newest first (updatedAt desc, id tiebreak), up to the plan's `limit`; a money column brings its currency column, a reference column brings its `.caption`) OR `groupBy` + `measures` (an aggregate: 1..4 keys — enum, reference, text, flag or bucketed date fields (a date key needs a bucket: day · week · month · quarter · year) — and up to 8 measures over money or number fields (sum · min · max · avg; `count` is always the first measure whether named or not); a money measure joins the row's currency to the group implicitly and renders decimals by the currency's exponent, so two currencies are never summed together; at most 1000 distinct groups — past it the run refuses and asks for a coarser bucket or a condition) — never both, never neither. An optional `sort` names an output column (`totalMinor.sum`, `createdAt.month`, `count`, …). The answer: the report in words, the terminal family, the output plan (`columns` — name + kind; the CSV header in this order), the rows as one JSON array text (`rowsJson` — parse it; a row's keys are the column names), rowCount · groupCount (0 for a projection) · the records examined · the pre-read estimate · the elapsed ms, and `captionsOmitted` — the reference families whose `.caption` column was dropped because you may not list them (the id column stands; no refusal). Every refusal is VALIDATION/INVALID in the teaching voice — the legal fields named. The report named one way — exactly one of spec (an ad hoc report) or reportId (a saved Report definition, run as YOU, its spec re-validated now): both or neither refuses VALIDATION/INVALID; an inactive or doomed definition refuses CONFLICT/REF_STATE naming its state. AS you: a family you may not list refuses the whole plan before any read; the tenant rides every key. A JSON null on an optional input field reads as absent. The paged run: a ready-made report over the daily sales, stock or order rows reads in pages. One call reads at most 5000 rows and stock positions under the clock. A cut call answers partial true with a nextToken and the page's partial rows. The summed columns carry signed partials; the derived columns read null. Pass params.nextToken back for the next page. Add the pages by their first column — the sums add. Recompute the derived columns over the added rows: sell-through % = units sold ÷ (units sold + on hand at close) · days of supply = on hand at close × the period's days ÷ units sold · margin % = margin ÷ net · the average ticket = net ÷ orders. A whole answer says partial false and nextToken null. A cursor minted under other parameters, another period or a changed facility roster refuses VALIDATION/INVALID naming the field. A call cut before its first read refuses in words, never an empty page. params.facility names ONE active facility on stock on hand and shrink. Requires authentication." reportRun(spec: ReportSpecInput, reportId: ID, catalogKey: String, params: ReportParamsInput): ReportRows! "Draft ONE report definition from plain words: the assistant routes your words onto the plan grammar AND the report shape in ONE strict structured call — the start family, up to 3 hops along known relationships, each step's conditions, plus what to list (columns) or how to group and total (groupBy + measures) IN words; each step's conditions pass through the same interpreter the filter builder uses (names resolve inside your tenant; every clause re-validated exactly as hand-built); the plan passes the plan gate; then ONE more strict call resolves the worded columns, keys and measures against the last family's own roster (a closed list of its reportable field names — nothing outside it can be emitted); the assembled spec passes the report gate before you see it (a refused plan re-asks the route once, a refused shape re-asks the resolve once — each with the gate's own words — then VALIDATION/INVALID in the teaching voice). `words` is one written ask, 1..500 characters. Metered office.report_draft (the route + the resolve) and office.filter_interpret per step. Refuses INTEGRATION/UNAVAILABLE while the planner is offline/keyless — build the report by hand. Requires authentication (user sessions only — the interpretFilter class)." draftReport(words: String!): ReportDraft! "The report catalogue as YOU see it: every canned report — its key, group, title, the question it answers, the parameters it takes (period · lens · person · record · axis · status · option), its columns with their words, the platform that computes it, the families it reads and who may run it — with your own verdict per row: allowed (every family it reads is listable by your role, or the self lane over your own records) or the why in words (never a silent absence). Run one with reportRun(catalogKey, params). Born paginated (limit · nextToken over the bounded catalogue)." reportCatalog(limit: Int, nextToken: String): ReportCatalogPage! "Read ONE background search's result set: the matches of the plan's last family as six-field summaries — newest first (updatedAt desc, id tiebreak), up to the plan's `limit` — with the exact matchCount, the records examined, and `partial` (true when the job halted before finishing — a refused plan, the 300 s clock, or a cancel — the partials it had survive). The result set lives 7 days from the finish (`expiresAt`); afterwards `expired` is true and the matches are gone (the job record stays readable). A job still running answers no matches yet with partial true. AS you: the matches are gated by your own right to list the plan's last family — refused AUTHZ/FORBIDDEN naming it; a job outside your tenant, or none at all, is NOT_FOUND. Requires authentication." searchJobMatches(id: ID!): SearchJobMatches! "Download ONE finished background export's file: a short-lived presigned GET (alive 300 s — `expiresAt`) on the composed file, the name to save it as (`fileName` — --.), and the file's facts off the record (`bytes` · `rowCount` · `format` · `partial` — true when the run halted before the end and the file holds what was written). The file lives 7 days from the finish; afterwards NOT_FOUND worded expired (the record stays readable). Yours alone: only the job's owner may download — anyone else refuses AUTHZ/FORBIDDEN — and your own right to list the plan's last family is re-checked (refused AUTHZ/FORBIDDEN naming it); a job that is not done (cancelled · expired · failed) refuses CONFLICT/REF_STATE naming its status; a job outside your tenant, or none at all, is NOT_FOUND. Requires authentication (user sessions)." exportJobDownload(id: ID!): ExportJobDownload! "Draft up to count (1..10) candidate questions for ONE course through the assistant, grounded on the play's own words alone — its title, its line, its steps and the operations' guide summaries. Every candidate is parsed one by one through the strict TrainingQuestionDraft schema; the invalid are dropped AND counted (dropped). Nothing is stored — save each kept one through createTrainingQuestion with source drafted. A metered AI read (office.training_draft) on the user plane; requires the training-manage right. courseKey must be a live play key (VALIDATION otherwise); the assistant unavailable (keyless, a provider fault, an unreadable answer) answers INTEGRATION/UNAVAILABLE — write the questions by hand." draftTrainingQuestions(courseKey: String!, count: Int!): TrainingQuestionDrafts! "Your own training standing: the active requirements binding one of your roles' templates in this organization, each with dueAt and certified · your progress per play · your courses · your open sittings · your valid certificates. Requires authentication on a user session." myTraining: MyTraining! "Open ONE sitting whole: the attempt + its drawn questions in the stored draw's order — a bounded batch by id, never a scan. Your own by id; another person's needs the org-wide list right (trainingAttempts) — refused AUTHZ/FORBIDDEN naming what it needs; a miss refuses NOT_FOUND/CONSTRUCT. correctIndex and explanation are null while the attempt is open and present once submitted, for every caller; a NON-subject reader's answers and score follow training.score_visibility (2 whole · 1 the answers withheld · 0 the answers and the score withheld). Self-classified — every principal keeps it." trainingSitting(id: ID!): TrainingSitting! "Ask the tutor ONE question about ONE course" trainingTutor(courseKey: String!, question: String!, stepN: Int): TrainingTutorAnswer! "Suggest a cleaned-up display name: the model fixes casing, stray whitespace, and obvious typos in your draft — it never invents a different name. The answer arrives already normalized under the name rule (ends trimmed; internal whitespace runs collapsed to one space) and bounded 1..160 like every stored caption. `type` is the record kind word (prompt context only); `text` is the draft name (<= 500 chars). Nothing auto-applies — the answer pre-fills the rename input. Refuses INTEGRATION/UNAVAILABLE while the assistant is offline/keyless — clean the name by hand. Requires authentication (user sessions). Every made call is cost-metered (at.ai.call.v1)." suggestCaption(type: String!, text: String!): SuggestedCaption! "Suggest a free code for a record from its name. Deterministic, no AI call, nothing metered: the name's words uppercase and join with hyphens (bounded 24 chars; diacritics fold), numbered -2, -3, … when taken. For families whose codes are unique (Organization — unique across the whole platform) every candidate is checked against the same reservation the save enforces, so the answer is free at answer time — a race can still take it before you save, and the save then refuses honestly (CONFLICT/IDENTITY_TAKEN, nothing changes). Families whose codes are freely chosen answer the derivation directly. `type` must name a code-bearing record family (the declared roster — an unknown family refuses VALIDATION/INVALID); `text` is the name to derive from (<= 500 chars; must contain a letter or digit). Nothing auto-applies — the answer pre-fills the code input. Requires authentication (user sessions)." suggestCode(type: String!, text: String!): SuggestedCode! "Suggest a short change-log reason for the edit you are about to save: the model drafts ONE plain sentence (two at most) from the change summary the office composed — what changed, and where the summary makes it obvious, why. It never invents facts beyond the summary. The answer arrives trimmed and bounded 1..256 like every stored cause reason. `type` is the record kind word (prompt context only); `text` is the change summary (<= 500 chars). Nothing auto-applies — the answer pre-fills the reason input. Refuses INTEGRATION/UNAVAILABLE while the assistant is offline/keyless — write the reason by hand. Requires authentication (user sessions). Every made call is cost-metered (at.ai.call.v1)." suggestReason(type: String!, text: String!): SuggestedReason! "Ask AI to review one record for data-quality issues: the model reads the record content you sent — the same label/value lines the detail page shows (the server reads no tenant data of its own) — and answers a short plain-text review: 2..6 issue lines naming fields that look incomplete, inconsistent, placeholder-like, or suspicious, or exactly 'No issues found.'. Read-only advice — nothing changes on the record. The answer arrives trimmed and bounded 1..2000. `type` is the record kind word (prompt context only); `text` is the record content (<= 4000 chars). Refuses INTEGRATION/UNAVAILABLE while the assistant is offline/keyless — review the record by eye. Requires authentication (user sessions). Every made call is cost-metered (at.ai.call.v1)." reviewRecord(type: String!, text: String!): RecordReview! "Ask AI to draft values for the empty inputs of ONE wizard/form step AND check the answered ones: the model reads what you sent — filled (the step's answered label: value lines the merchant already sees) and want (one line per empty field: name — label (kind): help; empty = verify-only) — the server reads no tenant data of its own — and answers suggestions only for want fields it can predict from filled (unpredictable fields are skipped honestly; an empty list is a legal answer) plus `advice`: a short verification of filled (formats · consistency · real-world plausibility — an address's parts must agree; '' = nothing to flag). Drafts only — nothing applies or corrects automatically. `type` is the record kind word (prompt context only, 1..64); `step` the page word (1..120); `filled` 1..4000 chars; `want` 0..2000 chars; `materialIds` names ≤4 of your own confirmed wizard materials on the same type word — their stored extractions compose into the model's context (raw content is never re-read; a foreign/mismatched id refuses NOT_FOUND). Refuses INTEGRATION/UNAVAILABLE while the assistant is offline/keyless — fill by hand. Requires authentication (user sessions). Every made call is cost-metered (at.ai.call.v1)." suggestFormFill(type: String!, step: String!, filled: String!, want: String!, materialIds: [ID!]): FormFillSuggestion! "Ask AI to explain where you are on ONE wizard/form step: the model reads what you sent — filled (the step's answered label: value lines; empty is lawful: the first-page press) and want (one line per empty field) — the server reads no tenant data of its own — and narrates what this step is doing, what you have provided, and what is still needed and WHY each missing piece matters. Guidance only — nothing applies, fills, or changes (the fill assist is suggestFormFill). `type` is the record kind word (prompt context only, 1..64); `step` the page word (1..120); `filled` 0..4000 chars; `want` 0..2000 chars; `materialIds` composes your own confirmed materials' stored extractions exactly as on suggestFormFill (≤4, same type word, never a raw re-read). Refuses INTEGRATION/UNAVAILABLE while the assistant is offline/keyless — the page's static guide words still stand. Requires authentication (user sessions). Every made call is cost-metered (at.ai.call.v1)." explainWizardStep(type: String!, step: String!, filled: String!, want: String!, materialIds: [ID!]): StepExplanation! "Ask AI to draft ONE internal note: with an empty draft the model writes a note from the context you sent (the visible thread + the record word — the server reads no tenant data of its own); with a present draft it cleans/enhances your own words (same facts and intent, never new claims). The answer pre-fills the composer — nothing posts automatically. Trimmed and bounded 1..4096 (what cannot post is never suggested). `type` is the record kind word; `context` <= 4000 chars; `draft` <= 4096 chars (empty = the write-me face). Refuses INTEGRATION/UNAVAILABLE while the assistant is offline/keyless — write the note by hand. Requires authentication (user sessions). Every made call is cost-metered (at.ai.call.v1)." suggestNote(type: String!, context: String!, draft: String!): SuggestedNote! "Ask AI to summarize one record's note thread: the model reads the thread you sent (one line per note — the server reads no tenant data of its own) and answers a short plain-text synopsis: what the thread is about, what was decided, what still hangs — 2..6 lines. A synopsis is not an issues-review (that is reviewRecord). Read-only — nothing changes. Trimmed and bounded 1..2000. `type` is the record kind word; `text` is the thread (<= 4000 chars). Refuses INTEGRATION/UNAVAILABLE while the assistant is offline/keyless. Requires authentication (user sessions). Every made call is cost-metered (at.ai.call.v1)." summarizeThread(type: String!, text: String!): ThreadSummary! "Your group's AI usage by UTC day: composed off the daily rollup rows the meter grows with every metered call (calls · tokens · what your plan meters — billedKernels, and billedUsd at the standard rate — + the per-surface split), ≤ 92 bounded point-reads — never a scan. Self-group BY construction (no target arg exists — the tokenEntries stance); days defaults 30, clamps 1..92; only days with usage answer (an empty window is the honest answer). billedUsd values are decimal strings (the money-string law). Requires authentication." aiUsage(days: Int): AiUsageWindow! "Your group's fired AI-watch flags by UTC day. Actor captions resolve at read (a user actor names itself; a session actor answers 'other'). Self-group BY construction (no target arg exists — the aiUsage stance). Requires authentication." aiFlags(days: Int): AiFlagWindow! "Your group's AI calls with the words, newest first: the backwards month walk from this month to the 13-month floor (the rows live 13 months hot; the event lake keeps them forever). limit: 1..200, default 50. nextToken: the prior page's cursor verbatim (opaque, group-bound — a foreign or garbled token refuses VALIDATION/INVALID). month: one yyyy-mm bucket — the walk stays in it (nextToken null when it is exhausted). surface: one of the at.ai.call.v1 roster (e.g. office.report_draft) — a filter in the walk (a rare surface over a dense month may answer a short page with a cursor: keep walking). day pins ONE calendar day of ONE bucket — the sk prefix, a bounded key read; with month they must agree. A16_BILLING by override; excluded from the consult tools and the read-only integration key." aiCalls(limit: Int, nextToken: String, month: String, surface: String, day: String): AiCallPage! "Read ONE of your wizard drafts: its status, the sheet page by page once ready (each value with its source and confidence), the assistant's questions and advice, what it said it understood, and failReason when it failed. Yours alone: another person's draft, a draft outside your tenant, or none at all is NOT_FOUND. Requires authentication (user sessions)." fillDraft(id: ID!): FillDraft! "Your wizard drafts, newest first: status filters by drafting | ready | failed (abandoned drafts drop from the list and stay readable one at a time); limit 1..200 (default 50); nextToken the prior page's cursor verbatim (opaque, tenant-bound). A page may be short (the owner/status filter rides per id page) — walk until nextToken is null. Requires authentication (user sessions)." fillDrafts(status: FillDraftStatus, limit: Int, nextToken: String): FillDraftPage! "The conversation on ONE of your wizard drafts, oldest first: what you said and what the assistant answered, turn by turn (a failed assistant turn says why; sheetRevised says the sheet changed under a reply). Yours alone: another person's draft, a draft outside your tenant, or none at all is NOT_FOUND. limit 1..200 (default 50); nextToken the prior page's cursor verbatim (opaque, bound to this draft). Requires authentication (user sessions)." fillDraftTurns(id: ID!, limit: Int, nextToken: String): FillDraftTurnPage! "Your group's metered consumption by UTC day, in kernels: composed off the daily rollup rows the billing rater grows with every rated batch, ≤ 92 bounded point-reads — never a scan. ONE lane per call: no drill arg = the whole group (total); userId = that user's lane; sessionId = that session's lane (userId AND sessionId together refuse VALIDATION — one grain at a time). Self-group BY construction (the tokenEntries stance); days defaults 30, clamps 1..92; only days with usage answer. Events predating the attribution stamps roll into the group lane only — a user/session window over old history answers honestly empty. Requires authentication." usageReport(days: Int, userId: ID, sessionId: ID): UsageReportWindow! "ONE page of your group's sessions, newest first: every sign-in/exchange mints one; terminals stay listed; doomed drops per page. `limit` clamps to [1, 200], default 100; `nextToken` = the prior page's cursor, verbatim — opaque + tenant-bound (a malformed or foreign token refuses VALIDATION/INVALID). Walk until `nextToken` is null (doomed drop per page — a page may hold fewer than `limit`). Self-group BY construction (no target arg exists). Requires authentication." sessions(limit: Int, nextToken: String): SessionPage! "Ask the page-aware assistant ONE written question about using AlmondTill/G3N: the answer grounds on the same guide corpus the Guide tab shows, where you are and what you look at, your session'S prior exchanges (the context follows your login session across pages — older exchanges condense into a rolling memory; the reply's contextTurns/contextTurnsMax/contextFolded carry the honest meter), and — when your role permits — live reads of your own records requested by the assistant mid-answer (every read runs under your permissions exactly as if you ran it; a read the assistant may run in the background is one you could run yourself). A read-only advisor: it can look things up, it never changes anything. Answers may link real pages from the app's own route directory. `question` is one written ask (<= 500 chars). Per-user hourly allowance (RATE_LIMIT/THROTTLED when spent). Refuses VALIDATION/INVALID at the full context (clear it and re-ask) and INTEGRATION/UNAVAILABLE while the assistant is offline/keyless — the Guide tab stands. Requires authentication (user sessions). Every made call is cost-metered (at.ai.call.v1)." assistantAsk(context: AssistantContextInput!, question: String!): AssistantAnswer! "One page of a Consultation's transcript, oldest first. The consultation must be yours-in-tenant (a missing/foreign head refuses NOT_FOUND). Requires authentication. read." consultationTurns(id: ID!, limit: Int, nextToken: String): ConsultationTurnPage! "The live tax-jurisdiction country roster: the ISO 3166-1 alpha-2 codes of every seeded canonical country tree, from the ONE self-maintaining registry row the country-mint path grows — the office dropdown can never drift from the live trees again. Sorted; an unseeded estate answers the honest empty list. Requires authentication." taxJurisdictionCountries: [String!]! "Doomed branches drop per page; an unknown or childless parentId answers the honest empty page. Structured filter + sort: `filter` = AND across clauses, OR within a clause's values; `sort` = one declared field, asc/desc. The declared TaxJurisdiction roster: `caption` (text) · `level` (enum: country, state_province, county, city, special_district) · `createdAt` (date) · `updatedAt` (date). An illegal filter/sort refuses VALIDATION/INVALID naming the exact problem (an unknown field teaches the roster). Absent both, the unfiltered lane is unchanged (`matchCount` null). Shared canonical data — no tenant scoping. Requires authentication." taxJurisdictionChildren(parentId: ID!, filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): TaxJurisdictionPage! "ONE page of a Category's direct children: the merchandise tree browses level by level, one bounded tree-children page per call. Doomed branches drop per page; a parentId outside your tenant — or unknown, or childless — answers the honest empty page. Structured filter + sort: `filter` = AND across clauses, OR within a clause's values; `sort` = one declared field, asc/desc. The declared Category roster: `caption` (text) · `status` (enum) · `treeParent` (ref) · `merchandiseDivisionId` (ref) · `code` (text) · `createdAt` (date) · `updatedAt` (date). An illegal filter/sort refuses VALIDATION/INVALID naming the exact problem (an unknown field teaches the roster). Absent both, the unfiltered lane is unchanged (`matchCount` null). Requires authentication." categoryChildren(parentId: ID!, filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): CategoryPage! "Resolve a postal code to the tax jurisdiction(s) that apply there: ONE bounded read; the primary designation leads, straddling alternates follow. An unknown code — or a country without postal content — answers the honest empty resolution (primary null, alternates). Malformed input refuses VALIDATION/INVALID before any read. Shared canonical data — no tenant scoping. Requires authentication." resolveTaxJurisdictionByPostal(countryCode: String!, postal: String!): TaxJurisdictionPostalResolution! "The calling principal's OWN Account identity. User-plane only (api/device/consumer sessions have no acting account face). Requires authentication." myAccount: MyAccount! "Your OWN organization group. Read-only at the wire: the group is born by the platform (the onboarding realization) and governed by root; nothing here is editable from a session. Self by construction. Projects the identity + governance facts only. Requires authentication (the staff planes — user, api, and collaborator sessions)." myOrganizationGroup: OrganizationGroup! "The calling account's OWN identity-verification standing. required derives live from the structural owners arrays; a stale non-terminal standing reconciles against Stripe on read (lost webhooks self-cure). Requires authentication." myIdentityVerification: IdentityVerificationReport! "ONE of your own app-private values at this organization. Absent = null, never an error — absence is a legal preference state. Requires authentication." myAppData(app: String!, name: String!): MyAppDataEntry "The names + stamps of your saved values for one app, values excluded. Self-scoped BY construction. Requires authentication." listMyAppData(app: String!): [MyAppDataEntrySynopsis!]! "The AT-maintained preset peripheral-model roster: every model names its peripheralType + supported connections; createDevicePeripheral must cohere with a row. Unpaginated bounded roster (not a construct list). Requires authentication." cannedPeripheralModels: [PeripheralModel!]! "How many records point at ONE record, per referencing family and field: the doors derive from the declared filter rosters (every family whose ref field names `type`), and each count is that door'S own filtered listing'S matchCount — the number the door shows when opened, by construction (the doomed-drop and the tenant fence are the listing's). A family whose listing the caller's roles refuse is omitted (never 0). Bounded: the call hydrates at most 5000 rows across every door family — the families are measured keys-only first and walk smallest-first; a family that does not fit answers count null and `partial: true` rides the answer (the face renders the glyph alone). `type` must be a known construct type (VALIDATION/INVALID names it); `id` is any id — a foreign or unknown id counts zero everywhere (no existence read). Requires authentication." relationshipCounts(type: String!, id: ID!): RelationshipCounts! "One PhysicalFacilityLocation by id. The record must belong to your organization group; an id from another group reads as not found." physicalFacilityLocation(id: ID!): PhysicalFacilityLocation "The PhysicalFacilityLocations your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The PhysicalFacilityLocation fields you may filter and sort by: `caption` (text) · `taxJurisdictionId` (ref) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." physicalFacilityLocations(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): PhysicalFacilityLocationPage! "One PhysicalFacility by id. The record must belong to your organization group; an id from another group reads as not found." physicalFacility(id: ID!): PhysicalFacility "The PhysicalFacilities your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The PhysicalFacility fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `physicalFacilityLocationId` (ref) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." physicalFacilities(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): PhysicalFacilityPage! "One LogicalFacility by id. The record must belong to your organization group; an id from another group reads as not found." logicalFacility(id: ID!): LogicalFacility "The LogicalFacilities your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The LogicalFacility fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `organizationId` (ref) · `classification` (enum) · `geographicDivisionId` (ref) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." logicalFacilities(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): LogicalFacilityPage! "One Zone by id. The record must belong to your organization group; an id from another group reads as not found." zone(id: ID!): Zone "The Zones your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Zone fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `coordinates` (text) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." zones(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): ZonePage! "One Bin by id. The record must belong to your organization group; an id from another group reads as not found." bin(id: ID!): Bin "The Bins your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Bin fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `coordinates` (text) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." bins(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): BinPage! "One Role by id. The record must belong to your organization group; an id from another group reads as not found." role(id: ID!): Role "The Roles your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Role fields you may filter and sort by: `caption` (text) · `status` (enum) · `authorityTier` (enum) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." roles(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): RolePage! "One User by id. The record must belong to your organization group; an id from another group reads as not found." user(id: ID!): User "The Users your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The User fields you may filter and sort by: `caption` (text) · `status` (enum) · `accountId` (ref) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." users(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): UserPage! "One Brand by id. The record must belong to your organization group; an id from another group reads as not found." brand(id: ID!): Brand "The Brands your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Brand fields you may filter and sort by: `caption` (text) · `status` (enum) · `code` (text) · `description` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." brands(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): BrandPage! "One Season by id. The record must belong to your organization group; an id from another group reads as not found." season(id: ID!): Season "The Seasons your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Season fields you may filter and sort by: `caption` (text) · `status` (enum) · `code` (text) · `startAt` (date) · `endAt` (date) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." seasons(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): SeasonPage! "One Tag by id. The record must belong to your organization group; an id from another group reads as not found." tag(id: ID!): Tag "The Tags your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Tag fields you may filter and sort by: `caption` (text) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." tags(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): TagPage! "One Characteristic by id. The record must belong to your organization group; an id from another group reads as not found." characteristic(id: ID!): Characteristic "The Characteristics your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Characteristic fields you may filter and sort by: `caption` (text) · `valueType` (enum) · `unit` (enum) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." characteristics(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): CharacteristicPage! "One CustomUom by id. The record must belong to your organization group; an id from another group reads as not found." customUom(id: ID!): CustomUom "The CustomUoms your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The CustomUom fields you may filter and sort by: `caption` (text) · `status` (enum) · `dimensionClass` (enum) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." customUoms(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): CustomUomPage! "One Manufacturer by id. The record must belong to your organization group; an id from another group reads as not found." manufacturer(id: ID!): Manufacturer "The Manufacturers your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Manufacturer fields you may filter and sort by: `caption` (text) · `status` (enum) · `code` (text) · `origin` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." manufacturers(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): ManufacturerPage! "One Vendor by id. The record must belong to your organization group; an id from another group reads as not found." vendor(id: ID!): Vendor "The Vendors your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed." vendors: [Vendor!]! "One Category by id. The record must belong to your organization group; an id from another group reads as not found." category(id: ID!): Category "The Categories your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Category fields you may filter and sort by: `caption` (text) · `status` (enum) · `treeParent` (ref) · `merchandiseDivisionId` (ref) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." categories(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): CategoryPage! "One Division by id. The record must belong to your organization group; an id from another group reads as not found." division(id: ID!): Division "The Divisions your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Division fields you may filter and sort by: `caption` (text) · `status` (enum) · `divisionType` (enum) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." divisions(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): DivisionPage! "One OptionGroup by id. The record must belong to your organization group; an id from another group reads as not found." optionGroup(id: ID!): OptionGroup "The OptionGroups your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The OptionGroup fields you may filter and sort by: `caption` (text) · `status` (enum) · `optionGroupType` (enum) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." optionGroups(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): OptionGroupPage! "One OptionValue by id. The record must belong to your organization group; an id from another group reads as not found." optionValue(id: ID!): OptionValue "The OptionValues your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The OptionValue fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." optionValues(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): OptionValuePage! "One Decoration by id. The record must belong to your organization group; an id from another group reads as not found." decoration(id: ID!): Decoration "The Decorations your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Decoration fields you may filter and sort by: `caption` (text) · `status` (enum) · `purpose` (enum) · `locale` (enum) · `text` (text) · `attachedToType` (enum) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." decorations(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): DecorationPage! "One OrgManufacturer by id. The record must belong to your organization group; an id from another group reads as not found." orgManufacturer(id: ID!): OrgManufacturer "The OrgManufacturers your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The OrgManufacturer fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `manufacturerId` (ref) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." orgManufacturers(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): OrgManufacturerPage! "One OrgBrand by id. The record must belong to your organization group; an id from another group reads as not found." orgBrand(id: ID!): OrgBrand "The OrgBrands your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The OrgBrand fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `brandId` (ref) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." orgBrands(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): OrgBrandPage! "One OrgSeason by id. The record must belong to your organization group; an id from another group reads as not found." orgSeason(id: ID!): OrgSeason "The OrgSeasons your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The OrgSeason fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `seasonId` (ref) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." orgSeasons(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): OrgSeasonPage! "One OrgDivision by id. The record must belong to your organization group; an id from another group reads as not found." orgDivision(id: ID!): OrgDivision "The OrgDivisions your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The OrgDivision fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `divisionId` (ref) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." orgDivisions(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): OrgDivisionPage! "One OrgVendor by id. The record must belong to your organization group; an id from another group reads as not found." orgVendor(id: ID!): OrgVendor "The OrgVendors your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The OrgVendor fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `vendorId` (ref) · `accountNumber` (text) · `purchasingCurrency` (text) · `paymentTerms` (enum) · `incotermCode` (enum) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." orgVendors(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): OrgVendorPage! "One Style by id. The record must belong to your organization group; an id from another group reads as not found." style(id: ID!): Style "The Styles your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Style fields you may filter and sort by: `caption` (text) · `status` (enum) · `styleType` (enum) · `brandId` (ref) · `taxCategory` (enum) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." styles(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): StylePage! "One Product by id. The record must belong to your organization group; an id from another group reads as not found." product(id: ID!): Product "The Products your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Product fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." products(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): ProductPage! "One Variant by id. The record must belong to your organization group; an id from another group reads as not found." variant(id: ID!): Variant "The Variants your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Variant fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `stockUomKind` (enum) · `stockUomRef` (text) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." variants(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): VariantPage! "One OrgStyle by id. The record must belong to your organization group; an id from another group reads as not found." orgStyle(id: ID!): OrgStyle "The OrgStyles your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The OrgStyle fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `styleId` (ref) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." orgStyles(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): OrgStylePage! "One ProductRelation by id. The record must belong to your organization group; an id from another group reads as not found." productRelation(id: ID!): ProductRelation "The ProductRelations your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The ProductRelation fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `targetProductId` (ref) · `relationType` (enum) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." productRelations(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): ProductRelationPage! "One Collection by id. The record must belong to your organization group; an id from another group reads as not found." collection(id: ID!): Collection "The Collections your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Collection fields you may filter and sort by: `caption` (text) · `status` (enum) · `collectionType` (enum) · `sortMode` (enum) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." collections(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): CollectionPage! "One CollectionMember by id. The record must belong to your organization group; an id from another group reads as not found." collectionMember(id: ID!): CollectionMember "The CollectionMembers your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The CollectionMember fields you may filter and sort by: `caption` (text) · `parentId` (ref) · `productId` (ref) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." collectionMembers(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): CollectionMemberPage! "One VariantComponent by id. The record must belong to your organization group; an id from another group reads as not found." variantComponent(id: ID!): VariantComponent "The VariantComponents your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The VariantComponent fields you may filter and sort by: `caption` (text) · `parentId` (ref) · `componentVariantId` (ref) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." variantComponents(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): VariantComponentPage! "One InventoryItem by id. The record must belong to your organization group; an id from another group reads as not found." inventoryItem(id: ID!): InventoryItem "The InventoryItems your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. The optional filters — present, only the matching records; absent, all of them; a filtered page may hold fewer than `limit`. `logicalFacilityId` — ONE facility’s positions. Present, the read switches lane to the `by-facility` index: that facility’s junctions, a bounded page per call, never the whole family. The cursor binds to that facility; a tenant-page cursor refuses VALIDATION/INVALID, and the reverse. Absent (and no `variantId`), the tenant’s positions page by page. A missing facility is NOT_FOUND/CONSTRUCT, and so is a foreign one. Status-blind: an inactive facility’s positions still list. `variantId` — ONE variant’s positions at every facility. Present, the read switches lane to the `tree-children` index: that variant’s junctions at every facility, a bounded page per call. At most the facility count, never the whole family. The cursor binds to that variant; a tenant-page or facility cursor refuses VALIDATION/INVALID, and the reverse. Pass ONE lane argument a call: with `logicalFacilityId` beside it the read refuses VALIDATION/INVALID naming both. A missing variant is NOT_FOUND/CONSTRUCT, and so is a foreign one. Status-blind: an inactive variant’s positions still list." inventoryItems(logicalFacilityId: ID, variantId: ID, limit: Int, nextToken: String): InventoryItemPage! "One SalePrice by id. The record must belong to your organization group; an id from another group reads as not found." salePrice(id: ID!): SalePrice "The SalePrices your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. The optional filters — present, only the matching records; absent, all of them; a filtered page may hold fewer than `limit`. `inventoryItemId` — ONE item’s whole schedule. Present, the read switches lane to the `tree-children` index: that inventory item’s windows alone, a bounded page per call. The page walks in creation order (oldest created first — the index’s own order, never by startAt). The cursor binds to that item; a tenant-page cursor refuses VALIDATION/INVALID, and the reverse. It does not combine with `filter` or `sort` (the interaction law below). Absent, the tenant lanes stand: the unfiltered page, or the whole-family walk when a `filter` or `sort` rides. A missing item is NOT_FOUND/CONSTRUCT, and so is a foreign one. Status-blind: an inactive item’s schedule still lists. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The SalePrice fields you may filter and sort by: `caption` (text) · `parentId` (ref) · `startAt` (date) · `endAt` (date) · `markdownPlanId` (ref) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null. The flat filters and the structured `filter`/`sort` do not combine — a read passing both is refused as VALIDATION/INVALID (compose the whole ask as filter clauses, or use the flat filters alone)." salePrices(filter: FilterInput, sort: SortInput, inventoryItemId: ID, limit: Int, nextToken: String): SalePricePage! "One Transfer by id. The record must belong to your organization group; an id from another group reads as not found." transfer(id: ID!): Transfer "The Transfers your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Transfer fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `destinationLogicalFacilityId` (ref) · `weight` (enum) · `sourceOrganizationId` (ref) · `destinationOrganizationId` (ref) · `expectedArrivalAt` (date) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." transfers(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): TransferPage! "One TransferRequest by id. The record must belong to your organization group; an id from another group reads as not found." transferRequest(id: ID!): TransferRequest "The TransferRequests your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The TransferRequest fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `requestingOrganizationId` (ref) · `targetLogicalFacilityId` (ref) · `neededBy` (date) · `priority` (enum) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." transferRequests(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): TransferRequestPage! "One Count by id. The record must belong to your organization group; an id from another group reads as not found." count(id: ID!): Count "The Counts your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Count fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `organizationId` (ref) · `countType` (enum) · `recountOfCountId` (ref) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." counts(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): CountPage! "One Contact by id. The record must belong to your organization group; an id from another group reads as not found." contact(id: ID!): Contact "The Contacts your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed." contacts: [Contact!]! "One ContactAssignment by id. The record must belong to your organization group; an id from another group reads as not found." contactAssignment(id: ID!): ContactAssignment "The ContactAssignments your organization group holds today. Doomed records leave the listing but stay readable by id." contactAssignments: [ContactAssignment!]! "One WarrantyTerms by id. The record must belong to your organization group; an id from another group reads as not found." warrantyTerms(id: ID!): WarrantyTerms "The WarrantyTermsList your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed." warrantyTermsList: [WarrantyTerms!]! "One Warranty by id. The record must belong to your organization group; an id from another group reads as not found." warranty(id: ID!): Warranty "The Warranties your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Warranty fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `organizationId` (ref) · `variantId` (ref) · `productId` (ref) · `warrantyTermsId` (ref) · `consumerId` (ref) · `caseId` (ref) · `provider` (enum) · `serialNumber` (text) · `startsAt` (date) · `expiresAt` (date) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." warranties(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): WarrantyPage! "One OrgVendorItem by id. The record must belong to your organization group; an id from another group reads as not found." orgVendorItem(id: ID!): OrgVendorItem "The OrgVendorItems your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The OrgVendorItem fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `variantId` (ref) · `vendorPartNumber` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." orgVendorItems(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): OrgVendorItemPage! "One PurchaseOrder by id. The record must belong to your organization group; an id from another group reads as not found." purchaseOrder(id: ID!): PurchaseOrder "The PurchaseOrders your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The PurchaseOrder fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `orgVendorId` (ref) · `currency` (text) · `vendorReference` (text) · `notes` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." purchaseOrders(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): PurchaseOrderPage! "One Receipt by id. The record must belong to your organization group; an id from another group reads as not found." receipt(id: ID!): Receipt "The Receipts your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Receipt fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `logicalFacilityId` (ref) · `organizationId` (ref) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." receipts(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): ReceiptPage! "One Rtv by id. The record must belong to your organization group; an id from another group reads as not found." rtv(id: ID!): Rtv "The Rtvs your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Rtv fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `purchaseOrderId` (ref) · `shipFromLogicalFacilityId` (ref) · `organizationId` (ref) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." rtvs(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): RtvPage! "One VendorInvoice by id. The record must belong to your organization group; an id from another group reads as not found." vendorInvoice(id: ID!): VendorInvoice "The VendorInvoices your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The VendorInvoice fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `invoiceOrgVendorId` (ref) · `invoiceNumber` (text) · `invoiceDate` (date) · `notes` (text) · `matchStatus` (enum) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." vendorInvoices(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): VendorInvoicePage! "One PurchasePack by id. The record must belong to your organization group; an id from another group reads as not found." purchasePack(id: ID!): PurchasePack "The PurchasePacks your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed." purchasePacks: [PurchasePack!]! "One ReplenishmentConfig by id. The record must belong to your organization group; an id from another group reads as not found." replenishmentConfig(id: ID!): ReplenishmentConfig "The ReplenishmentConfigs your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed." replenishmentConfigs: [ReplenishmentConfig!]! "One TransferLane by id. The record must belong to your organization group; an id from another group reads as not found." transferLane(id: ID!): TransferLane "The TransferLanes your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed." transferLanes: [TransferLane!]! "One TaxJurisdiction by id — shared reference data, readable by any signed-in principal; an unknown id reads as not found." taxJurisdiction(id: ID!): TaxJurisdiction "The TaxJurisdictions under one `countryCode` — or the whole shared family in ascending code order when it is absent — paged. `countryCode`: ISO 3166-1 alpha-2 (uppercase) — resolves ONE country tree via the global uniqueness marker (an unseeded country reads as an empty page). Absent = the whole canonical family, country by country in ascending code order. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The TaxJurisdiction fields you may filter and sort by: `caption` (text) · `level` (enum) · `country` (country) · `postal` (postal) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads one anchor when `countryCode` is given, else the whole family, and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." taxJurisdictions(countryCode: String, filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): TaxJurisdictionPage! "One TaxRate by id — shared reference data, readable by any signed-in principal; an unknown id reads as not found." taxRate(id: ID!): TaxRate "The TaxRates under one `jurisdictionId`, paged. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The TaxRate fields you may filter and sort by: `caption` (text) · `category` (enum) · `treatment` (enum) · `startAt` (date) · `endAt` (date) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read stays within the anchor and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." taxRates(jurisdictionId: ID!, filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): TaxRatePage! "One TaxRegistration by id. The record must belong to your organization group; an id from another group reads as not found." taxRegistration(id: ID!): TaxRegistration "The TaxRegistrations your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The TaxRegistration fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `jurisdictionId` (ref) · `registrationNumber` (text) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." taxRegistrations(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): TaxRegistrationPage! "One ExemptionCertificate by id. The record must belong to your organization group; an id from another group reads as not found." exemptionCertificate(id: ID!): ExemptionCertificate "The ExemptionCertificates your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The ExemptionCertificate fields you may filter and sort by: `caption` (text) · `code` (text) · `certType` (enum) · `certificateNumber` (text) · `holderName` (text) · `expiresAt` (date) · `orgCustomerId` (ref) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." exemptionCertificates(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): ExemptionCertificatePage! "One Order by id. The record must belong to your organization group; an id from another group reads as not found." order(id: ID!): Order "The Orders your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Order fields you may filter and sort by: `caption` (text) · `status` (enum) · `organizationId` (ref) · `channel` (enum) · `orderType` (enum) · `currency` (text) · `logicalFacilityId` (ref) · `paymentState` (enum) · `fulfillmentState` (enum) · `recognitionState` (enum) · `taxJurisdictionId` (ref) · `validUntil` (date) · `termEndsAt` (date) · `subtotalMinor` (money) · `discountTotalMinor` (money) · `taxTotalMinor` (money) · `totalMinor` (money) · `tenderedNetMinor` (money) · `tipTotalMinor` (money) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." orders(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): OrderPage! "One Invoice by id. The record must belong to your organization group; an id from another group reads as not found." invoice(id: ID!): Invoice "The Invoices your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Invoice fields you may filter and sort by: `caption` (text) · `status` (enum) · `orderId` (ref) · `organizationId` (ref) · `currency` (text) · `taxMode` (enum) · `taxJurisdictionId` (ref) · `paymentState` (enum) · `fulfillmentState` (enum) · `recognitionState` (enum) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." invoices(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): InvoicePage! "One CreditNote by id. The record must belong to your organization group; an id from another group reads as not found." creditNote(id: ID!): CreditNote "The CreditNotes your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The CreditNote fields you may filter and sort by: `caption` (text) · `status` (enum) · `invoiceId` (ref) · `orderId` (ref) · `organizationId` (ref) · `currency` (text) · `reason` (text) · `settlementState` (enum) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." creditNotes(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): CreditNotePage! "One DebitNote by id. The record must belong to your organization group; an id from another group reads as not found." debitNote(id: ID!): DebitNote "The DebitNotes your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The DebitNote fields you may filter and sort by: `caption` (text) · `status` (enum) · `invoiceId` (ref) · `orderId` (ref) · `organizationId` (ref) · `currency` (text) · `reason` (text) · `settlementState` (enum) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." debitNotes(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): DebitNotePage! "One Saga by id. The record must belong to your organization group; an id from another group reads as not found." saga(id: ID!): Saga "The Sagas your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." sagas(limit: Int, nextToken: String): SagaPage! "One Return by id. The record must belong to your organization group; an id from another group reads as not found." return(id: ID!): Return "The Returns your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Return fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `orderId` (ref) · `invoiceId` (ref) · `organizationId` (ref) · `currency` (text) · `refundTotalMinor` (money) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." returns(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): ReturnPage! "One Register by id. The record must belong to your organization group; an id from another group reads as not found." register(id: ID!): Register "The Registers your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Register fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." registers(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): RegisterPage! "One TillSession by id. The record must belong to your organization group; an id from another group reads as not found." tillSession(id: ID!): TillSession "The TillSessions your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The TillSession fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `openedBy` (ref) · `closedAt` (date) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." tillSessions(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): TillSessionPage! "One ApprovalRequest by id. The record must belong to your organization group; an id from another group reads as not found." approvalRequest(id: ID!): ApprovalRequest "The ApprovalRequests your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." approvalRequests(limit: Int, nextToken: String): ApprovalRequestPage! "One FxRate by id. The record must belong to your organization group; an id from another group reads as not found." fxRate(id: ID!): FxRate "The FxRates your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The FxRate fields you may filter and sort by: `caption` (text) · `level` (enum) · `fromCurrency` (text) · `toCurrency` (text) · `mode` (enum) · `startAt` (date) · `endAt` (date) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." fxRates(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): FxRatePage! "One Fulfillment by id. The record must belong to your organization group; an id from another group reads as not found." fulfillment(id: ID!): Fulfillment "The Fulfillments your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Fulfillment fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `orderId` (ref) · `organizationId` (ref) · `method` (enum) · `carrierName` (text) · `packedAt` (date) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." fulfillments(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): FulfillmentPage! "One Payment by id. The record must belong to your organization group; an id from another group reads as not found." payment(id: ID!): Payment "The Payments your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Payment fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `organizationId` (ref) · `currency` (text) · `amountMinor` (money) · `tipMinor` (money) · `brand` (text) · `last4` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." payments(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): PaymentPage! "One Refund by id. The record must belong to your organization group; an id from another group reads as not found." refund(id: ID!): Refund "The Refunds your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Refund fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `orderId` (ref) · `returnId` (ref) · `organizationId` (ref) · `currency` (text) · `amountMinor` (money) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." refunds(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): RefundPage! "One Dispute by id. The record must belong to your organization group; an id from another group reads as not found." dispute(id: ID!): Dispute "The Disputes your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Dispute fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `orderId` (ref) · `organizationId` (ref) · `currency` (text) · `amountMinor` (money) · `reason` (text) · `evidenceDueBy` (date) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." disputes(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): DisputePage! "One Promotion by id. The record must belong to your organization group; an id from another group reads as not found." promotion(id: ID!): Promotion "The Promotions your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed." promotions: [Promotion!]! "One Coupon by id. The record must belong to your organization group; an id from another group reads as not found." coupon(id: ID!): Coupon "The Coupons your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed." coupons: [Coupon!]! "One StoredValueInstrument by id. The record must belong to your organization group; an id from another group reads as not found." storedValueInstrument(id: ID!): StoredValueInstrument "The StoredValueInstruments your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The StoredValueInstrument fields you may filter and sort by: `caption` (text) · `status` (enum) · `code` (text) · `instrumentType` (enum) · `currency` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." storedValueInstruments(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): StoredValueInstrumentPage! "One LoyaltyProgram by id. The record must belong to your organization group; an id from another group reads as not found." loyaltyProgram(id: ID!): LoyaltyProgram "The LoyaltyPrograms your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." loyaltyPrograms(limit: Int, nextToken: String): LoyaltyProgramPage! "One LoyaltyMember by id. The record must belong to your organization group; an id from another group reads as not found." loyaltyMember(id: ID!): LoyaltyMember "The LoyaltyMembers your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. The optional filters — present, only the matching records; absent, all of them; a filtered page may hold fewer than `limit`. `programId` — Only members of this program (the header parentId). `email` — Only members whose normalized identity email equals this value." loyaltyMembers(programId: ID, status: String, email: String, limit: Int, nextToken: String): LoyaltyMemberPage! "One CustomerPriceGroup by id. The record must belong to your organization group; an id from another group reads as not found." customerPriceGroup(id: ID!): CustomerPriceGroup "The CustomerPriceGroups your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The CustomerPriceGroup fields you may filter and sort by: `caption` (text) · `status` (enum) · `priceListId` (ref) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." customerPriceGroups(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): CustomerPriceGroupPage! "One MarkdownPlan by id. The record must belong to your organization group; an id from another group reads as not found." markdownPlan(id: ID!): MarkdownPlan "The MarkdownPlans your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." markdownPlans(limit: Int, nextToken: String): MarkdownPlanPage! "One CommissionConfig by id. The record must belong to your organization group; an id from another group reads as not found." commissionConfig(id: ID!): CommissionConfig "The CommissionConfigs your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The CommissionConfig fields you may filter and sort by: `caption` (text) · `status` (enum) · `agentRoleId` (ref) · `agentUserId` (ref) · `divisionId` (ref) · `categoryId` (ref) · `styleId` (ref) · `organizationId` (ref) · `logicalFacilityId` (ref) · `channel` (enum) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." commissionConfigs(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): CommissionConfigPage! "One Affiliate by id. The record must belong to your organization group; an id from another group reads as not found." affiliate(id: ID!): Affiliate "The Affiliates your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Affiliate fields you may filter and sort by: `caption` (text) · `status` (enum) · `consumerId` (ref) · `handle` (text) · `bio` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." affiliates(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): AffiliatePage! "One CorporateCustomer by id. The record must belong to your organization group; an id from another group reads as not found." corporateCustomer(id: ID!): CorporateCustomer "The CorporateCustomers your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." corporateCustomers(limit: Int, nextToken: String): CorporateCustomerPage! "One OrgCustomer by id. The record must belong to your organization group; an id from another group reads as not found." orgCustomer(id: ID!): OrgCustomer "The OrgCustomers your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." orgCustomers(limit: Int, nextToken: String): OrgCustomerPage! "One PriceList by id. The record must belong to your organization group; an id from another group reads as not found." priceList(id: ID!): PriceList "The PriceLists your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The PriceList fields you may filter and sort by: `caption` (text) · `status` (enum) · `startAt` (date) · `endAt` (date) · `orgCustomerId` (ref) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." priceLists(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): PriceListPage! "One PriceListEntry by id. The record must belong to your organization group; an id from another group reads as not found." priceListEntry(id: ID!): PriceListEntry "The PriceListEntries your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. Every read stays within the required anchor `priceListId`. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The PriceListEntry fields you may filter and sort by: `caption` (text) · `startAt` (date) · `endAt` (date) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read stays within the anchor and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." priceListEntries(filter: FilterInput, sort: SortInput, priceListId: ID!, limit: Int, nextToken: String): PriceListEntryPage! "One Consumer by id. The record must belong to your organization group; an id from another group reads as not found." consumer(id: ID!): Consumer "The Consumers your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." consumers(limit: Int, nextToken: String): ConsumerPage! "One ConsentPurpose by id. The record must belong to your organization group; an id from another group reads as not found." consentPurpose(id: ID!): ConsentPurpose "The ConsentPurposes your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." consentPurposes(limit: Int, nextToken: String): ConsentPurposePage! "One ConsentRecord by id. The record must belong to your organization group; an id from another group reads as not found." consentRecord(id: ID!): ConsentRecord "The ConsentRecords your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." consentRecords(limit: Int, nextToken: String): ConsentRecordPage! "One CsCase by id. The record must belong to your organization group; an id from another group reads as not found." csCase(id: ID!): CsCase "The CsCases your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." csCases(limit: Int, nextToken: String): CsCasePage! "One GiftRegistry by id. The record must belong to your organization group; an id from another group reads as not found." giftRegistry(id: ID!): GiftRegistry "The GiftRegistries your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." giftRegistries(limit: Int, nextToken: String): GiftRegistryPage! "One Review by id. The record must belong to your organization group; an id from another group reads as not found." review(id: ID!): Review "The Reviews your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." reviews(limit: Int, nextToken: String): ReviewPage! "One TokenAccount by id. The record must belong to your organization group; an id from another group reads as not found." tokenAccount(id: ID!): TokenAccount "The TokenAccounts your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The TokenAccount fields you may filter and sort by: `caption` (text) · `status` (enum) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." tokenAccounts(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): TokenAccountPage! "One TokenPurchase by id. The record must belong to your organization group; an id from another group reads as not found." tokenPurchase(id: ID!): TokenPurchase "The TokenPurchases your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The TokenPurchase fields you may filter and sort by: `caption` (text) · `status` (enum) · `volumeTierCode` (text) · `stripePaymentIntentId` (text) · `settledAt` (date) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." tokenPurchases(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): TokenPurchasePage! "One BillingCharge by id. The record must belong to your organization group; an id from another group reads as not found." billingCharge(id: ID!): BillingCharge "The BillingCharges your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The BillingCharge fields you may filter and sort by: `caption` (text) · `status` (enum) · `periodMonth` (text) · `stripePaymentIntentId` (text) · `settledAt` (date) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." billingCharges(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): BillingChargePage! "One Task by id. The record must belong to your organization group; an id from another group reads as not found." task(id: ID!): Task "The Tasks your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. The optional filters — present, only the matching records; absent, all of them; a filtered page may hold fewer than `limit`. `assigneeUserId` — Only tasks whose assigneeUserIds contain this User. `labelId` — Only tasks whose labelIds contain this TaskLabel. `dueBefore` — Only tasks with dueAt strictly before this ISO-8601 instant. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Task fields you may filter and sort by: `caption` (text) · `status` (enum) · `priority` (enum) · `description` (text) · `createdBy` (ref) · `reportTo` (ref) · `dueAt` (date) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null. The flat filters and the structured `filter`/`sort` do not combine — a read passing both is refused as VALIDATION/INVALID (compose the whole ask as filter clauses, or use the flat filters alone)." tasks(filter: FilterInput, sort: SortInput, status: String, assigneeUserId: ID, labelId: ID, dueBefore: String, limit: Int, nextToken: String): TaskPage! "One Team by id. The record must belong to your organization group; an id from another group reads as not found." team(id: ID!): Team "The Teams your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Team fields you may filter and sort by: `caption` (text) · `status` (enum) · `leadUserId` (ref) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." teams(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): TeamPage! "One TaskLabel by id. The record must belong to your organization group; an id from another group reads as not found." taskLabel(id: ID!): TaskLabel "The TaskLabels your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The TaskLabel fields you may filter and sort by: `caption` (text) · `status` (enum) · `color` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." taskLabels(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): TaskLabelPage! "One Device by id. The record must belong to your organization group; an id from another group reads as not found." device(id: ID!): Device "The Devices your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Device fields you may filter and sort by: `caption` (text) · `status` (enum) · `deviceType` (enum) · `registerId` (ref) · `parentId` (ref) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." devices(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): DevicePage! "One DevicePeripheral by id. The record must belong to your organization group; an id from another group reads as not found." devicePeripheral(id: ID!): DevicePeripheral "The DevicePeripherals your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The DevicePeripheral fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `peripheralType` (enum) · `model` (enum) · `connection` (enum) · `readerRef` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." devicePeripherals(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): DevicePeripheralPage! "One ApiKey by id. The record must belong to your organization group; an id from another group reads as not found." apiKey(id: ID!): ApiKey "The ApiKeys your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The ApiKey fields you may filter and sort by: `caption` (text) · `parentId` (ref) · `expiresAt` (date) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." apiKeys(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): ApiKeyPage! "One Scratchpad by id. The record must belong to your organization group; an id from another group reads as not found." scratchpad(id: ID!): Scratchpad "The Scratchpads your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." scratchpads(limit: Int, nextToken: String): ScratchpadPage! "One Suggestion by id. The record must belong to your organization group; an id from another group reads as not found." suggestion(id: ID!): Suggestion "The Suggestions your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Suggestion fields you may filter and sort by: `caption` (text) · `status` (enum) · `skill` (enum) · `parentId` (ref) · `schemaId` (ref) · `dedupKey` (text) · `expiresAt` (date) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." suggestions(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): SuggestionPage! "One SuggestionSchema by id. The record must belong to your organization group; an id from another group reads as not found." suggestionSchema(id: ID!): SuggestionSchema "The SuggestionSchemas your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The SuggestionSchema fields you may filter and sort by: `caption` (text) · `status` (enum) · `skill` (enum) · `parentId` (ref) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." suggestionSchemas(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): SuggestionSchemaPage! "One Consultation by id. The record must belong to your organization group; an id from another group reads as not found." consultation(id: ID!): Consultation "The Consultations your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Consultation fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `followOnOfId` (ref) · `idleArchiveAt` (date) · `turnsTierAt` (date) · `turnsTier` (enum) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." consultations(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): ConsultationPage! "One WebhookSubscription by id. The record must belong to your organization group; an id from another group reads as not found." webhookSubscription(id: ID!): WebhookSubscription "The WebhookSubscriptions your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed." webhookSubscriptions: [WebhookSubscription!]! "One Plugin by id. The record must belong to your organization group; an id from another group reads as not found." plugin(id: ID!): Plugin "The Plugins your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." plugins(limit: Int, nextToken: String): PluginPage! "One OrgPlugin by id. The record must belong to your organization group; an id from another group reads as not found." orgPlugin(id: ID!): OrgPlugin "The OrgPlugins your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." orgPlugins(limit: Int, nextToken: String): OrgPluginPage! "One FeedSubscription by id. The record must belong to your organization group; an id from another group reads as not found." feedSubscription(id: ID!): FeedSubscription "The FeedSubscriptions your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed." feedSubscriptions: [FeedSubscription!]! "One FraudAlert by id. The record must belong to your organization group; an id from another group reads as not found." fraudAlert(id: ID!): FraudAlert "The FraudAlerts your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." fraudAlerts(limit: Int, nextToken: String): FraudAlertPage! "One PrivacyRequest by id. The record must belong to your organization group; an id from another group reads as not found." privacyRequest(id: ID!): PrivacyRequest "The PrivacyRequests your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." privacyRequests(limit: Int, nextToken: String): PrivacyRequestPage! "One PolicyValueRecord by id. The record must belong to your organization group; an id from another group reads as not found." policyValue(id: ID!): PolicyValueRecord "The PolicyValues your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." policyValues(limit: Int, nextToken: String): PolicyValueRecordPage! "One CouponBatch by id. The record must belong to your organization group; an id from another group reads as not found." couponBatch(id: ID!): CouponBatch "The CouponBatches your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." couponBatches(limit: Int, nextToken: String): CouponBatchPage! "One Segment by id. The record must belong to your organization group; an id from another group reads as not found." segment(id: ID!): Segment "The Segments your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Segment fields you may filter and sort by: `caption` (text) · `status` (enum) · `segmentType` (enum) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." segments(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): SegmentPage! "One Dashboard by id. The record must belong to your organization group; an id from another group reads as not found." dashboard(id: ID!): Dashboard "The Dashboards your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Dashboard fields you may filter and sort by: `caption` (text) · `status` (enum) · `landing` (flag) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." dashboards(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): DashboardPage! "One Report by id. The record must belong to your organization group; an id from another group reads as not found." report(id: ID!): Report "The Reports your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." reports(limit: Int, nextToken: String): ReportPage! "One Collaborator by id. The record must belong to your organization group; an id from another group reads as not found." collaborator(id: ID!): Collaborator "The Collaborators your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." collaborators(limit: Int, nextToken: String): CollaboratorPage! "One SchedulableResource by id. The record must belong to your organization group; an id from another group reads as not found." schedulableResource(id: ID!): SchedulableResource "The SchedulableResources your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The SchedulableResource fields you may filter and sort by: `caption` (text) · `status` (enum) · `resourceType` (enum) · `parentId` (ref) · `userId` (ref) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." schedulableResources(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): SchedulableResourcePage! "One Appointment by id. The record must belong to your organization group; an id from another group reads as not found." appointment(id: ID!): Appointment "The Appointments your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Appointment fields you may filter and sort by: `caption` (text) · `status` (enum) · `purpose` (enum) · `parentId` (ref) · `variantId` (ref) · `orderId` (ref) · `startAt` (date) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." appointments(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): AppointmentPage! "One Storefront by id. The record must belong to your organization group; an id from another group reads as not found." storefront(id: ID!): Storefront "The Storefronts your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The Storefront fields you may filter and sort by: `caption` (text) · `status` (enum) · `theme` (enum) · `parentId` (ref) · `logicalFacilityId` (ref) · `customDomain` (text) · `categoryId` (ref) · `divisionId` (ref) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." storefronts(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): StorefrontPage! "One AgentChannel by id. The record must belong to your organization group; an id from another group reads as not found." agentChannel(id: ID!): AgentChannel "The AgentChannels your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The AgentChannel fields you may filter and sort by: `caption` (text) · `status` (enum) · `parentId` (ref) · `logicalFacilityId` (ref) · `priceListId` (ref) · `divisionId` (ref) · `rateClass` (enum) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." agentChannels(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): AgentChannelPage! "One SearchJob by id. The record must belong to your organization group; an id from another group reads as not found." searchJob(id: ID!): SearchJob "The SearchJobs your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." searchJobs(limit: Int, nextToken: String): SearchJobPage! "One ExportJob by id. The record must belong to your organization group; an id from another group reads as not found." exportJob(id: ID!): ExportJob "The ExportJobs your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." exportJobs(limit: Int, nextToken: String): ExportJobPage! "One SizeRun by id. The record must belong to your organization group; an id from another group reads as not found." sizeRun(id: ID!): SizeRun "The SizeRuns your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing. `filter` combines clauses with AND and a clause's values with OR; `sort` names one declared field, ascending or descending (absent: the stored order). An unknown field or value is refused as VALIDATION/INVALID, naming the problem. The SizeRun fields you may filter and sort by: `caption` (text) · `status` (enum) · `optionGroupId` (ref) · `code` (text) · `createdAt` (date) · `updatedAt` (date). A filtered or sorted read reads the whole family and answers the exact `matchCount`; its `nextToken` continues that same read, and a cursor replayed under another scope, filter or sort is refused. Without `filter` and `sort`, `matchCount` is null." sizeRuns(filter: FilterInput, sort: SortInput, limit: Int, nextToken: String): SizeRunPage! "One TrainingRequirement by id. The record must belong to your organization group; an id from another group reads as not found." trainingRequirement(id: ID!): TrainingRequirement "The TrainingRequirements your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." trainingRequirements(limit: Int, nextToken: String): TrainingRequirementPage! "One TrainingQuestion by id. The record must belong to your organization group; an id from another group reads as not found." trainingQuestion(id: ID!): TrainingQuestion "The TrainingQuestions your organization group holds today. Doomed records leave the listing but stay readable by id; inactive ones stay listed. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." trainingQuestions(limit: Int, nextToken: String): TrainingQuestionPage! "One TrainingAttempt by id. The record must belong to your organization group; an id from another group reads as not found." trainingAttempt(id: ID!): TrainingAttempt "The TrainingAttempts your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." trainingAttempts(limit: Int, nextToken: String): TrainingAttemptPage! "One TrainingCertificate by id. The record must belong to your organization group; an id from another group reads as not found." trainingCertificate(id: ID!): TrainingCertificate "The TrainingCertificates your organization group holds today. Doomed records leave the listing but stay readable by id. Paged: `limit` clamps to 1–200, default 100; `nextToken` is the previous page's cursor, passed back exactly as received (a malformed or foreign token is refused as VALIDATION/INVALID). Walk until `nextToken` is null; a page may hold fewer than `limit`, and doomed records leave the listing." trainingCertificates(limit: Int, nextToken: String): TrainingCertificatePage! } type Mutation { "Reserved for the platform; not available to API keys." login(loginName: String!, password: String!, orgId: ID!): LoginResult! "Revoke the caller's current session — idempotent; the next call with the token dies." logout: Boolean! "The merchant’S door: open ONE user’s sealed activity trail for ONE window (ISO instants, at most 7 days) with a reason (1–256 characters). the ledger-first rule: the opening is recorded — the ledger row + the permanent log event — before any row is unsealed; no record, no unseal. Answers the timeline in time order (time · app · build · screen · op · outcome · milliseconds · call id · session). Owner-only (the A19_TRAIL area). VALIDATION/INVALID on a bad window or a blank reason." userActivityTrail(userId: ID!, from: String!, to: String!, reason: String!): UserActivityTrail! "Create an Organization + its entire min-1 facility chain in the caller's org group — the CostCentre + the org + the first PF + first LF + first Zone + first Bin, in ONE atomic operation; requires the unrestricted capability." createOrganization(input: NewOrganizationInput!): OrganizationCreation! "Edit an Organization's mutable attributes. Requires the unrestricted capability + the record's current revision. A primaryPhysicalFacility re-designation is guarded (in-tenant + belongs-to-this-org + active) and implicitly releases the old designation." updateOrganization(id: ID!, revision: ID!, input: EditOrganizationInput!): Organization! "Provision the org's Stripe Connect account: creates the account (the Standard production shape — Stripe-hosted onboarding via createStripeOnboardingLink) and stamps stripeAccountRef/stripeChargesEnabled/stripeDetailsSubmitted in ONE revision. An already-provisioned org refuses CONFLICT/REFERENCED (the ref is immutable); a dark org refuses CONFLICT/REF_STATE; a processor refusal maps VALIDATION/INVALID naming the reason (nothing stamped — the adapter's org-keyed idempotency makes a retry converge on the same account). testProgrammatic = the dvlp arm (sk_test-only, US-only): the API-completable test shape for AFK E2E — structurally dead at prod lock. Requires the unrestricted capability + the current revision." provisionStripeAccount(id: ID!, revision: ID!, testProgrammatic: Boolean): Organization! "Mint an ephemeral Stripe-hosted onboarding link for the org's connected account. Unprovisioned refuses CONFLICT/REF_STATE; a processor refusal maps CONFLICT/RECONCILE (retryable — the stored ref and the processor disagree). Requires the unrestricted capability. No revision — this mutates nothing on the record." createStripeOnboardingLink(id: ID!): StripeOnboardingLink! "Pull the connected account's current charges_enabled/details_submitted and re-stamp the org. Unprovisioned refuses CONFLICT/REF_STATE; a processor read failure maps CONFLICT/RECONCILE (retryable). Requires the unrestricted capability + the current revision." refreshStripeAccountStatus(id: ID!, revision: ID!, reason: String): Organization! "Copy a canned Characteristic template into the caller's org group; requires the unrestricted capability." copyCannedCharacteristic(input: CopyCannedCharacteristicInput!): Characteristic! "Create an item — a zero-dimension simple Style + its whole-style Product + the single Variant — in ONE atomic transaction; requires the unrestricted capability. Returns the full trio." createItem(input: NewItemInput!): ItemCreation! "Assign an identifier to a Variant; requires the unrestricted capability. Refusals: a burned SKU → CONFLICT/SKU_TAKEN naming the holder; a live plu/gtin holder → CONFLICT/IDENTITY_TAKEN; org-scoped kinds gate on an active OrgStyle selection of the variant's style (CONFLICT/UNSELECTED — the gate); the identical current value → VALIDATION/INVALID." assignIdentifier(input: AssignIdentifierInput!): IdentifierEntry! "Retire the variant's current identifier of a kind. No current entry → NOT_FOUND/IDENTIFIER. Requires the unrestricted capability." retireIdentifier(input: RetireIdentifierInput!): IdentifierEntry! "Void one ledger entry. Refused while the bearer variant is doomed (frozen history → CONFLICT/REF_STATE). Requires the unrestricted capability + the entry's current revision." voidIdentifierEntry(id: ID!, revision: ID!, reason: String): IdentifierEntry! "Receive stock onto an InventoryItem. The II must be active (CONFLICT/REF_STATE else) and stocked; the unit-cost currency must match the II cost currency once fixed. Movements thread NO revision (the ledger-posting stance); a raced concurrent movement is retryable CONFLICT/REVISION_STALE. Requires the unrestricted capability." receiveStock(input: ReceiveStockInput!): StockMovement! "Adjust stock in ONE atomic transaction. Same gates as receiveStock (active + stocked); the bucket must be -movable; going negative is allowed + stamps overcommitted on the entry; value moves at the current WMA. Requires the unrestricted capability." adjustStock(input: AdjustStockInput!): StockMovement! "Reclass stock bucket-to-bucket in ONE atomic transaction. Same gates as receiveStock (active + stocked); a reclass into held requires a canned heldReason; draining a bucket below zero is allowed + stamps overcommitted. Requires the unrestricted capability." reclassStock(input: ReclassStockInput!): StockMovement! "Build kits from component stock. The named II must be active + kit-TYPED; the BOM must be non-empty and within the 49-component transaction bound; every component variant active + its II existing at the same facility. Consuming below zero is allowed + stamps overcommitted per leg. Movements thread NO revision; a raced concurrent movement is retryable CONFLICT/REVISION_STALE. Requires the unrestricted capability." buildStock(input: BuildStockInput!): StockAssembly! "Break kits back into component stock. Requires the unrestricted capability." breakStock(input: BreakStockInput!): StockAssembly! "Relocate stock between locations of ONE InventoryItem in ONE atomic transaction: the cache-NEUTRAL relocate entry + the touched StockRecord shard writes (create-on-demand at the target). Same gates as receiveStock (active + stocked); the to-bin must be active and both bins in the item logical facility; driving a record or the un-binned pool negative refuses CONFLICT/INSUFFICIENT_STOCK naming the location; lot fields only on lot-controlled items. Movements thread NO revision; a raced concurrent movement or record write is retryable CONFLICT/REVISION_STALE. Requires the unrestricted capability." relocateStock(input: RelocateStockInput!): StockMovement! "No stock moves and no Stock-Card entry posts — on order is bookkeeping beside the five buckets, never a bucket. 'reason' is required and non-blank (blank/oversize refuse VALIDATION/INVALID naming the cure). Requires the unrestricted capability." repairInventoryOnOrder(id: ID!, reason: String!): InventoryOnOrderRepair! "Create a Transfer: lines fixed at create (1..24 named; distinct source IIs, each active + stocked with its destination junction existing at the destination LF — movements never auto-vivify, IV-b); both LFs active; a same-LF pair refuses (relocateStock is the intra-LF sibling); the weight + org attribution derive from the live lf-pf-pfl spine and stamp immutable." createTransfer(input: CreateTransferInput!): Transfer! "Both LFs must be active (CONFLICT/REF_STATE else); requires the doc current revision + the unrestricted capability." submitTransfer(id: ID!, revision: ID!, reason: String): Transfer! "Ship a ready Transfer: per line ONE transfer_out entry @src (on_hand-, relief at the source current WMA — its book unchanged) + ONE transfer_in entry @dest (in_transit+ at value-at-ship q x srcWMA; the dest WMA re-weights; the currency birth law applies named) + the reserved claim release, ALL in ONE transaction with the doc rollups + the optional ship metadata. Re-verifies present stock (reserved >= q AND on_hand >= q — CONFLICT/INSUFFICIENT_STOCK at location facility). Both LFs active; requires the doc current revision + the unrestricted capability." shipTransfer(input: ShipTransferInput!, revision: ID!, reason: String): Transfer! "Receive against an in-transit Transfer: per landing ONE value-NEUTRAL transfer_in entry @dest (in_transit -> on_hand | held reason-coded) + the doc rollup stamps. Completing every line chains to received emitting receive.ok once; an incomplete receive from partially_received stamps rollups without a state change. The LF-status matrix heals here (any status — in-transit stock must land); the destination IIs must be active (CONFLICT/REF_STATE else — reactivation is free). Requires the doc current revision + the unrestricted capability." receiveTransfer(input: ReceiveTransferInput!, revision: ID!, reason: String): Transfer! "Resolve a short/lost/damaged Transfer: every residual disposed in this ONE step via disposition-coded doc-referencing movements. An incomplete disposition set refuses CONFLICT/UNRESOLVED naming the residuals; over-disposal refuses named; the composed call must fit the one-transaction action budget. Heals across LF status; destination IIs must be active — and the returned lines' source IIs too (they receive the residual). Requires the doc current revision + the unrestricted capability." resolveTransfer(input: ResolveTransferInput!, revision: ID!, reason: String): Transfer! "Close a fully-received Transfer: the leg-less success finalization — the reconciled gate re-derives the residuals defensively (drift refuses CONFLICT/UNRESOLVED, the close.unreconciled form). Heals across LF status. Requires the doc current revision + the unrestricted capability." closeTransfer(id: ID!, revision: ID!, reason: String): Transfer! "cancelled is the ONE doomed terminal (lists filter it; revival is a NEW Transfer). Requires the doc current revision + the unrestricted capability." cancelTransfer(id: ID!, revision: ID!, reason: String): Transfer! "Create a TransferRequest: lines fixed at create (1..24 named — TR-o; distinct variants, each resolving an existing requesting-LF InventoryItem junction — IV-b demand-side, refusal named {lineNo, variantId, logicalFacilityId}); the requesting LF active (+ the target LF resolvable when named; target == requesting refuses); the org attribution derives from the live spine and stamps immutable." createTransferRequest(input: CreateTransferRequestInput!): TransferRequest! "Submit a draft TransferRequest: re-gates the requesting LF active + every line junction active, then the TR-e sourcing-eligibility arm — targeted: the target LF active +!= requesting; open: >= 1 active group LF!= requesting; NO eligible source refuses CONFLICT/NO_SOURCE (retryable — the doc stays draft, editable/cancelable; cure by activating/creating an LF and retry). Requires the doc current revision + the unrestricted capability." submitTransferRequest(id: ID!, revision: ID!, reason: String): TransferRequest! "The full.1 birth gates ride (source LF active +!= requesting; per line the source II [variant x source LF] active + stocked + junction-EXISTING; available >= q or CONFLICT/INSUFFICIENT_STOCK at location facility); a foreign source on a targeted request refuses named; cumulative over-allocation refuses CONFLICT/DISCREPANCY {lineNo, outstanding, supplied}. Returns both documents (TR-p). Requires the doc current revision + the unrestricted capability." acceptTransferRequest(input: AcceptTransferRequestInput!, revision: ID!, reason: String): AcceptTransferRequestResult! "A partial reject = accept-part + reject-rest. A foreign source on a targeted request refuses named. Requires the doc current revision + the unrestricted capability." rejectTransferRequest(input: RejectTransferRequestInput!, revision: ID!, reason: String): TransferRequest! "Close an open TransferRequest short: refused CONFLICT/IN_PROGRESS naming the first-8 live linked Transfers while ANY is non-terminal (in-transit stock must land first — an immutable terminal may never strand a linked receive); after it, the doc is immutable non-doomed history. Requires the doc current revision + the unrestricted capability." closeShortTransferRequest(id: ID!, revision: ID!, reason: String): TransferRequest! "cancelled is the ONE doomed terminal (lists filter it; revival is a NEW TransferRequest). Requires the doc current revision + the unrestricted capability." cancelTransferRequest(id: ID!, revision: ID!, reason: String): TransferRequest! "Create a Count: the selector + countType + recountOf birth-fixed; the LF scoped + active (strict birth); selector members scoped to that LF status-free (counting an inactive zone/bin is legitimate — heal); recountOf must resolve to a posted count at the same LF; the org attribution derives from the live spine and stamps immutable. Lines land at start." createCount(input: CreateCountInput!): Count! "Start a draft Count: resolves the selector once to concrete lines (the scope's StockRecord shards [(II x bin x lot) — lot lines ride the records free] + whole-LF-only un-binned pool lines), snapshots each line's on_hand, and freezes the line set. An empty resolution refuses VALIDATION/EMPTY_SCOPE (the declared start.empty_scope form — emits); an over-ceiling one refuses event-less named {resolved, max: 32}. Re-gates the LF active. Requires the doc current revision + the unrestricted capability." startCount(id: ID!, revision: ID!, reason: String): Count! "Repeatable; a re-capture overwrites the line's trio while counting (the fat-finger cure); an explicit zero is a legitimate capture; unknown lineNos refuse named. The LF is never re-gated here (heal). Requires the doc current revision + the unrestricted capability." captureCount(input: CaptureCountInput!, revision: ID!, reason: String): Count! "Post a fully-captured Count: posts every non-zero variance as a count_correct delta through ONE transaction — gain to / shrink from on_hand; record lines stamp their StockRecord in the same transaction (the second record-touching movement); pool lines post bin-blind (the pool re-derives); costImpact = variance x the II's current WMA (shrink −/gain +; the WMA itself never re-weights on a count) + unitCost = that WMA + refs [IC-sysId] on every entry (never-silent). Requires the doc current revision + the unrestricted capability." postCount(id: ID!, revision: ID!, reason: String): Count! "Cancel a Count: cancelled is the ONE doomed terminal (lists filter it; point-readable; revival is a NEW Count). Requires the doc current revision + the unrestricted capability." cancelCount(id: ID!, revision: ID!, reason: String): Count! "Create a PurchaseOrder: one active OrgVendor (immutable; a paused enablement refuses CONFLICT/REF_STATE); currency = its purchasingCurrency snapshot (unset refuses VALIDATION/INVALID naming it); per line — the variant tenant-scoped + active + stocked (service/bundle styles refuse), the receiving LF (line value?? the OrgVendor defaultShipToLogicalFacilityId; neither refuses named) active + belonging to the buying org, the unit cost (line value?? the OVI listCost via the O(1) pair point-read; neither refuses named) in the PO currency, requireCatalogItem ⇒ a live OVI per line, line quantity ≥ the OVI moq; the arrival defaults create-date + (OVI?? OrgVendor) leadTimeDays." createPurchaseOrder(input: CreatePurchaseOrderInput!): PurchaseOrder! "Submit a draft PurchaseOrder for spend approval (draft -> pending_approval, policy:spend_over_threshold): declared-unreachable until the policy chain builds — no spend-threshold policy engages, so the step refuses its declared VALIDATION/INVALID form (the transfer pending_send_approval precedent); issue directly instead. Requires the doc current revision + the unrestricted capability." submitPurchaseOrder(id: ID!, revision: ID!, reason: String): PurchaseOrder! "Issue a draft PurchaseOrder to its vendor (draft -> issued, policy:no_approval_required + referential_integrity): the consumer gates re-run — the OrgVendor still active, every line's variant + receiving LF active, requireCatalogItem ⇒ a live OVI per line, line quantity ≥ the OVI moq, and Σ line merchandise value ≥ the OrgVendor orderMinimum. Receipts may post after. Requires the doc current revision + the unrestricted capability." issuePurchaseOrder(id: ID!, revision: ID!, reason: String): PurchaseOrder! "Approve a pending PurchaseOrder: an unreachable-state step until builds the spend-threshold policy (nothing can reach pending_approval); declared for the day it does. Requires the doc current revision + the unrestricted capability." approvePurchaseOrder(id: ID!, revision: ID!, reason: String): PurchaseOrder! "Reject a pending PurchaseOrder back to draft: the approval bounce — an unreachable-state step until. Requires the doc current revision + the unrestricted capability." rejectPurchaseOrder(id: ID!, revision: ID!, reason: String): PurchaseOrder! "Acknowledge an issued PurchaseOrder (issued -> acknowledged): the optional vendor-acknowledgement waypoint — manual capture (no vendor integration exists); receipts post from either state. Requires the doc current revision + the unrestricted capability." acknowledgePurchaseOrder(id: ID!, revision: ID!, reason: String): PurchaseOrder! "Close a partially-received PurchaseOrder short (partially_received -> closed_short): the backorder exit — the outstanding is cancelled; immutable NON-doomed history after. Requires the doc current revision + the unrestricted capability." closeShortPurchaseOrder(id: ID!, revision: ID!, reason: String): PurchaseOrder! "Cancel a PurchaseOrder: cancelled is the ONE doomed terminal (lists filter it; revival is a new PO). Requires the doc current revision + the unrestricted capability." cancelPurchaseOrder(id: ID!, revision: ID!, reason: String): PurchaseOrder! "Append lines to a draft PurchaseOrder: the same per-line gates as create (the variant tenant-scoped + active + stocked, the receiving LF active + owned by the buying org, the unit cost in the PO currency, requireCatalogItem ⇒ a live OVI, quantity ≥ the OVI moq); the distinct variant × receiving-LF law holds over the whole document (a key already on the order refuses VALIDATION/INVALID naming the holding lineNo); lineNo mints from the monotonic nextLineNo; the document total refuses past the ceiling. ONE transaction — the row Puts + the header rollups. A live post-draft doc refuses CONFLICT/REF_STATE. Requires the doc current revision + the unrestricted capability. NO reason — the edit class." addPurchaseOrderLines(input: AddPurchaseOrderLinesInput!, revision: ID!): PurchaseOrder! "Replace one line of a draft PurchaseOrder whole: the addressed lineNo is kept, every create-time gate re-runs on the replacement, and the header rollups move with it. ONE transaction — the row Put + the header rewrite. A live post-draft doc refuses CONFLICT/REF_STATE; an unknown lineNo refuses VALIDATION/INVALID naming it. Requires the doc current revision + the unrestricted capability. NO reason — the edit class." updatePurchaseOrderLine(input: UpdatePurchaseOrderLineInput!, revision: ID!): PurchaseOrder! "Remove lines from a draft PurchaseOrder: the rows are deleted, their lineNo gaps stay and the numbers are never re-used (so Receipt / VendorInvoice poLineNo addressing keeps its meaning forever); a line carrying a special-order orderLineRef refuses CONFLICT/REFERENCED (the standing protection — unlink the demand line first). ONE transaction — the row Deletes + the header rollups. A live post-draft doc refuses CONFLICT/REF_STATE. Requires the doc current revision + the unrestricted capability. NO reason — the edit class." removePurchaseOrderLines(input: RemovePurchaseOrderLinesInput!, revision: ID!): PurchaseOrder! "Create a Receipt: the parent PO receivable (issued/acknowledged/partially_received); the receiving LF tenant-scoped + active + named by ≥1 PO line; every line addresses a PO line destined to this LF (one line per PO-line × disposition; a hold is reason-coded — the law, strict both ways); estimate components ≤8 in the PO currency; up to 90 lines per call (a receipt holds up to 1000 — add more with addReceiptLines)." createReceipt(input: CreateReceiptInput!): Receipt! "The LF is active-re-checked (SL-b use-time). Over-receipt (cumulative > ordered per PO line) refuses CONFLICT/THREE_WAY_MATCH — the PO's declared receive.match_flag form. Partial receipts are first-class — the next arrival is a NEW Receipt. Requires the doc current revision + the unrestricted capability." postReceipt(id: ID!, revision: ID!, reason: String): Receipt! "Cancel a draft Receipt: cancelled is the doomed terminal (lists filter it; a new arrival is a NEW Receipt). Requires the doc current revision + the unrestricted capability." cancelReceipt(id: ID!, revision: ID!, reason: String): Receipt! "Append lines to a draft Receipt: the same per-line gates as create (the parent PO still receivable, every poLineNo an existing PO line destined to this receipt's LF, a hold reason-coded, the pack pair variant-coherent); the distinct (PO line × disposition) law holds over the whole document (a key already on the receipt refuses VALIDATION/INVALID naming the holding lineNo); lineNo mints from the monotonic nextLineNo; the document total refuses past the ceiling. ONE transaction — the row Puts + the header rollups. A live post-draft doc refuses CONFLICT/REF_STATE. Requires the doc current revision + the unrestricted capability. NO reason — the edit class." addReceiptLines(input: AddReceiptLinesInput!, revision: ID!): Receipt! "Replace one line of a draft Receipt whole: the addressed lineNo is kept, every create-time gate re-runs on the replacement, and the header rollups move with it. ONE transaction — the row Put + the header rewrite. A live post-draft doc refuses CONFLICT/REF_STATE; an unknown lineNo refuses NOT_FOUND naming it. Requires the doc current revision + the unrestricted capability. NO reason — the edit class." updateReceiptLine(input: UpdateReceiptLineInput!, revision: ID!): Receipt! "Remove lines from a draft Receipt: the rows are deleted, their lineNo gaps stay and the numbers are never re-used (the address keeps its meaning forever). ONE transaction — the row Deletes + the header rollups. A live post-draft doc refuses CONFLICT/REF_STATE; an unknown number refuses NOT_FOUND naming it. Requires the doc current revision + the unrestricted capability. NO reason — the edit class." removeReceiptLines(input: RemoveReceiptLinesInput!, revision: ID!): Receipt! "Create an Rtv: one active OrgVendor; the optional PO must be same-vendor + past-issue; the ship-from LF active + the buying org's; per line the (variant × ship-from LF) InventoryItem junction must exist + be active (TR-f — an RTV of a variant never stocked at the LF is meaningless) and the expectedCredit currency must match the vendor purchasingCurrency when both exist." createRtv(input: CreateRtvInput!): Rtv! "Approve a draft Rtv. Requires the doc current revision + the unrestricted capability." approveRtv(id: ID!, revision: ID!, reason: String): Rtv! "Ship an approved Rtv: per line ONE rtv movement relieving its sourceBucket at the II's current WMA + StockRecord bin stamps for binned lines. Present stock only — a short (II × bucket) or bin refuses CONFLICT/INSUFFICIENT_STOCK naming the location; every line junction is re-gated active; the ship-from LF is active-re-checked (SL-b use-time). Stamps resolvedReturnsContactId (the OrgVendor returnsToContactId?? the vendor host's single live returns-role assignment — unresolvable or ambiguous refuses named) + the expectedCredit default (Σ q × WMA) when the caller never set one. Requires the doc current revision + the unrestricted capability." shipRtv(id: ID!, revision: ID!, reason: String): Rtv! "Record the vendor credit: an actualCredit ≠ the stored expectation (amount OR currency, or NO expectation stored) refuses CONFLICT/CREDIT_MISMATCH (retryable — re-record the corrected figure); acknowledgeVariance: true is the explicit cure, stamping creditVarianceAcknowledged. Requires the doc current revision + the unrestricted capability." recordRtvCredit(input: RecordRtvCreditInput!, revision: ID!, reason: String): Rtv! "Cancel an Rtv: cancelled is the ONE doomed terminal (lists filter it; revival is a NEW Rtv). Requires the doc current revision + the unrestricted capability." cancelRtv(id: ID!, revision: ID!, reason: String): Rtv! "Create a VendorInvoice: the parent PO past-issue (cancelled/draft/pending refuse CONFLICT/REF_STATE); the billing OrgVendor (defaulted to the PO vendor) active; every Money in the PO snapshot currency; at-least-one-of matchLines/actualComponents (the Contact substance stance); each match line names an existing PO line. The (invoiceOrgVendor × normalized invoice number) uniq pair mints IN the create transaction — a live (draft or captured) holder refuses CONFLICT/IDENTITY_TAKEN naming it (the double-pay gate); a cancelled holder is taken over." createVendorInvoice(input: CreateVendorInvoiceInput!): VendorInvoice! "Capture a draft VendorInvoice: per match line, cumulative captured-sibling invoiced + this vs the PO line receivedQty rollup AND invoiced unit cost vs the PO line's — tolerance zero, variance flags matchStatus/matchFlags (first-8) and never blocks. Landed actuals true up against the posted receipts estimates of the same component type (first capture of a type consumes them; later bills of that type are compensating additions): the estimate allocation re-derives deterministically over the stored posted lines, and each touched book takes ONE cost_true_up value-only movement (qty 0, signed costImpact, refs [VI, PO]) re-weighting its WMA over the current cost-bearing quantity — an empty/unabsorbing book keeps its WMA. A cost bill with NO posted receipt refuses VALIDATION/INVALID. Requires the doc current revision + the unrestricted capability." captureVendorInvoice(id: ID!, revision: ID!, reason: String): VendorInvoice! "Cancel a draft VendorInvoice. Requires the doc current revision + the unrestricted capability." cancelVendorInvoice(id: ID!, revision: ID!, reason: String): VendorInvoice! "Issue an Invoice against a placed/completed Order: lines ⊆ the un-invoiced remainder read off the Order's OWN invoicedQty rollup stamps (omitted = the full remainder; an all-zero remainder refuses VALIDATION/INVALID — nothing to invoice); money figures prorate by cumulative telescoping (exact — a full invoicing sums to the order figures per component); taxMode captures explicit. The org must be active." issueInvoice(input: IssueInvoiceInput!): Invoice! "Issue a CreditNote against an issued/closed Invoice: each entry addresses one invoice line with a positive magnitude (the document supplies the − sign); over-credit refuses per line strict (taxableBase + Σ prior signed note deltas − credit ≥ 0 → VALIDATION/INVALID naming the line); the tax delta recomputes over the line's captured components (no re-sourcing — a full credit mirrors the original figures exactly). NO inventory movement. The org must be active." issueCreditNote(input: IssueCreditNoteInput!): CreditNote! "Issue a DebitNote against an issued/closed Invoice: sign +, NO over-credit ceiling (an increase raises the invoice's remaining net — the CreditNote guard reads the raised headroom via the same stamps); otherwise identical to issueCreditNote." issueDebitNote(input: IssueDebitNoteInput!): DebitNote! "Receive an approved Return: the disposition cover addresses every non-stockless line exactly (splits across codes legal; incomplete/over/unknown refuse VALIDATION/INVALID naming residuals); restock/inspect/damaged post `return` movements at the receiving LF's (variant × LF) IIs cost-entering at current WMA (the average never moves; uncosted books qty-only; a variant never stocked at the LF refuses CONFLICT/REF_STATE naming the junction); scrap posts NO movement (the write-off is reports-only). The refund money stamps by cumulative telescoping over the order line's captured figures; the restocking fee applies only where the sale captured the flag. Requires the doc current revision + the unrestricted capability." receiveReturn(input: ReceiveReturnInput!): Return! "Refund a received Return. method=original_tender drives the processor walk: the order's integrated payments (captured|succeeded) refund LIFO through the StripePort — each attempt record-first (a Refund child mints created, the port fires after, the ACK commits the negative card Tender + the Order rollup + the settled flip in ONE transaction); over-capacity refuses CONFLICT/OVER_TENDERED (route the remainder via cash/store_credit); a processor refusal refuses PAYMENT/REFUND_FAILED (retryable — committed sibling refunds stand and the retry converges on the remainder); an order with NO integrated payments keeps the ratified record-only arm. method=cash pays out of the open drawer; store_credit records (issuance). Requires the doc current revision + the unrestricted capability." refundReturn(input: RefundReturnInput!): Return! "Open a till session at a Register: ONE transaction — the doc + the one-live-per-register marker (a live holder refuses CONFLICT/IDENTITY_TAKEN naming the open session; a terminal holder is taken over) + one float_in entry per positive-float currency + the drawerTotals cache birth. The Register must be active (tenant-scoped); openedBy stamps from the principal. Requires the unrestricted capability." openTillSession(input: OpenTillSessionInput!): TillSession! "Close a counting till session: per currency overShort = counted − expected (the drawerTotals cache); each non-zero posts a count_adjust entry (the post-close ledger sum == counted BY construction); counted/overShort/closedAt stamp in the same transaction. The over_short_threshold → CONFLICT/OVER_SHORT_REVIEW form is -dormant (declared; the review path =). Requires the doc current revision + the unrestricted capability." closeTillSession(input: CloseTillSessionInput!): TillSession! "Requires the unrestricted capability." recordCashEntry(input: RecordCashEntryInput!): CashEntry! "Apply one tender to a placed order: cash — roundedDue per the CASH_ROUNDING increments (the sale total never changes); (collected − tip) ≥ roundedDue ⇒ settling (applied = the exact remainder, change = collected − tip − roundedDue, the ± roundingDelta stamps); else partial. external_card — the recorded capture (≤ the remainder exactly; no drawer). card — the integrated lane. The cash/recorded lanes stay ONE transaction: the tender row + the Order tenderedNetMinor/tipTotalMinor/paymentState stamp + for cash the cash_sale (+ change_given) entries + the drawerTotals stamp. A fully-tendered order refuses CONFLICT/OVER_TENDERED. Requires the unrestricted capability." applyTender(input: ApplyTenderInput!): Tender! "cancelOrder refuses CONFLICT/TENDERED while net tendered > 0 — refund-then-cancel. Requires the unrestricted capability." refundTender(input: RefundTenderInput!): Tender! "The POS-with-receipt return collapse: ONE call walks requested→approved→received→refunded with the cash refund reaching the drawer. The return.approve gate evaluates UP front — a below-pass tier refuses AUTHZ/APPROVAL_REQUIRED and uses the op-by-op walk (the approval fingerprint needs a pre-existing target). Realized as the op-by-op steps composed — each transaction atomic; a mid-walk failure parks the Return at a resumable state (posReturnParked in the error detail names it). Requires the unrestricted capability." posReturn(input: PosReturnInput!): Return! "Open the drawer without a sale: moves NO money; the write IS the audit trail; reason required; the session must be open. Requires the unrestricted capability." noSale(input: NoSaleInput!): TillSession! "Start one card-present payment on the caller's paired reader: requires the composite POS session (the x-at-device-session facet — the reader resolves from the device, never caller-named: active + register-paired, exactly ONE active registered card reader; the device's org chain must equal the order's selling org). The selling org must hold a connected chargeable account (NO platform arm — the direct-charge money-destination law; CONFLICT/REF_STATE otherwise). Record-first: the Payment mints created with methodRef = the reader's readerRef, then the processor intent hands to the reader and this op returns — the customer taps; the payment_intent.amount_capturable_updated truth commits the Tender row + the Order rollup + the created→authorized flip in ONE transaction, and a reader decline lands the attempt failed via payment_intent.payment_failed. Poll the payment record for the outcome (the CQRS shape). A reader refusal (busy/offline — NO card presented) refuses PAYMENT/READER_UNAVAILABLE with the attempt recorded failed (retryable — record-per-attempt). Requires the unrestricted capability. Template class (the applyTender ring plane — hand-derived v32)." processReaderPayment(input: ProcessReaderPaymentInput!): Payment! "Refuses unless the new coupon settles applied: NOT_FOUND/COUPON (unknown/doomed/malformed code) · CONFLICT/REF_STATE (a staged holder) · CONFLICT/COUPON_EXPIRED (outside [startAt, endAt)) · CONFLICT/COUPON_EXHAUSTED (the total-use cap) · VALIDATION/COUPON_INELIGIBLE (scope/min-spend miss, nothing to reduce, or the trigger's promotion did not fire). ONE coupon per order — the strict default. Any other state refuses CONFLICT/REF_STATE. Requires the unrestricted capability + the record's current revision." applyOrderCoupon(orderId: ID!, revision: ID!, code: String!): Order! "Detach an attached coupon from an order while open, or while a draft/quote is draft/sent: the remaining engines re-evaluate and the order re-stamps in ONE revision (the last removal drops the couponIds slot — the invoiceIds delete-key law). A non-attached id refuses NOT_FOUND/COUPON; any other state refuses CONFLICT/REF_STATE. Requires the unrestricted capability + the record's current revision." removeOrderCoupon(orderId: ID!, revision: ID!, couponId: ID!): Order! "Activate staged instrument stock directly: the flip + the issue entry + the balance land in ONE transaction. amountMinor ≥ 1 (an instrument never activates empty — VALIDATION/INVALID); reason required. Requires the unrestricted capability + the record's current revision." activateStoredValueInstrument(input: ActivateStoredValueInstrumentInput!): StoredValueInstrument! "Adjust an instrument balance — the privileged manual correction: a signed non-zero delta + the required reason post ONE adjust entry + the conditioned cached-balance apply (below-zero refuses CONFLICT/INSUFFICIENT_BALANCE naming the live figures). active|depleted targets only (CONFLICT/REF_STATE otherwise); a positive adjust on depleted re-opens it; a draw landing zero on a non-reloadable flips depleted in the same transaction. Requires the unrestricted capability + the record's current revision." adjustStoredValueInstrument(instrumentId: ID!, revision: ID!, amountMinor: Int!, reason: String!): StoredValueInstrument! "Attach a LoyaltyMember to an open sale. redeemPoints absent = attach-for-EARN-only; present = the redemption request the position-4 evaluation converts to source=loyalty pre-tax line entries. Gates in order: member NOT_FOUND/CONSTRUCT → program org-enablement + order⟺program currency → the verdict map (CONFLICT/REF_STATE on a dead program/member/window · CONFLICT/INSUFFICIENT_POINTS naming live figures · VALIDATION/INVALID on zero-value / exceeds-available naming figures — never silently take less). The cart money re-stamps in the same revision; place re-validates fresh (commit truth). Requires the unrestricted capability + the record's current revision." applyOrderLoyalty(orderId: ID!, revision: ID!, memberId: ID!, redeemPoints: Int): Order! "Detach the loyalty block from an open order: re-evaluate + re-stamp (the loyalty entries vanish with their context); the removal drops the loyalty attribute (the couponIds delete-key law — HARD-1, so no member argument exists). No block attached refuses NOT_FOUND/CONSTRUCT. Requires the unrestricted capability + the record's current revision." removeOrderLoyalty(orderId: ID!, revision: ID!): Order! "Adjust a member's points — the privileged manual correction: a signed non-zero delta + the required reason post ONE adjust entry + the conditioned cached-balance apply. active|inactive targets only (CONFLICT/REF_STATE on doomed). Requires the unrestricted capability + the record's current revision." adjustLoyaltyPoints(memberId: ID!, revision: ID!, points: Int!, reason: String!): LoyaltyMember! "Attach an employee discount to an open order of ANY type. percentPpm is caller-supplied v1" applyOrderEmployeeDiscount(orderId: ID!, revision: ID!, userId: ID!, percentPpm: Int!): Order! "Detach the employee discount from an open order: re-evaluate + re-stamp (the employee entries vanish with their context; a loyalty earn re-derives UP on the restored bases); the removal drops the employee attribute (the couponIds delete-key law — HARD-1, so no user argument exists). No block attached refuses NOT_FOUND/CONSTRUCT. Requires the unrestricted capability + the record's current revision." removeOrderEmployeeDiscount(orderId: ID!, revision: ID!): Order! "Schedule a draft MarkdownPlan: (1) validate pure-reads — every step future · the scope resolves via the engine to active products/variants × the plan's LF set → the InventoryItems that exist (zero resolved = VALIDATION/INVALID — a plan that moves nothing is an authoring error) · the ≤250-items/≤500-writes caps (VALIDATION/INVALID naming the figures) · per II: the schedule currency must equal the plan currency (the law) · base₀ = the active record covering step-1's startAt (none = VALIDATION/INVALID — a markdown moves an existing price) · the ladder (each prior result, half-away rounding) must stay > 0 · a forward splice check — ANY overlap refuses CONFLICT/PRICE_WINDOW_OVERLAP naming {II, blockers}, all-or-nothing. (2) write every future-dated SalePrice through the existing per-record create (splice-gated, evented, plan/step-stamped; the first window per II trims the covering standing record). (3) flip draft→scheduled stamping nextDueAt + resolvedInventoryItemIds. Idempotent-resume: a mid-flight fault refuses naming progress with the plan still draft — a re-run skips its own already-written step-prefix and retries the flip. Requires the unrestricted capability + the record's current revision." scheduleMarkdownPlan(input: ScheduleMarkdownPlanInput!): MarkdownPlan! "Cancel a MarkdownPlan from draft|scheduled|active: dooms every plan-stamped SalePrice with startAt strictly future (BY date — effective/past windows are permanent price history, skipped, never attempted), then flips → cancelled. The step-1 trim is NOT restored (no-silent-unwind — schedule a new window to re-price). A fault mid-doom leaves an un-cancelled plan with some doomed records — re-run to complete (a doomed record blocks nothing). Requires the unrestricted capability + the record's current revision." cancelMarkdownPlan(input: CancelMarkdownPlanInput!): MarkdownPlan! "Pay down a house account: ONE payment AREntry + the conditioned balance decrement + the FIFO frontier advance land in ONE transaction (strictly oldest-first over open charges; ledger entries stay 100% immutable — the frontier pair moves on the master). amountMinor ≤ arBalanceMinor else CONFLICT/INSUFFICIENT_AR_BALANCE naming live figures. NO allocations array (deterministic law + the event lake = the audit trail). Requires the unrestricted capability." arPay(input: ArPayInput!): OrgCustomer! "Write off bad debt: ONE writeoff AREntry + the same conditioned decrement/frontier machinery; ≤ the balance else CONFLICT/INSUFFICIENT_AR_BALANCE. Descriptor-gated to the management templates. Requires the unrestricted capability." arWriteoff(input: ArWriteoffInput!): OrgCustomer! "The money-settle lane stays the named deferral. Requires the unrestricted capability + the record's current revision." settleCreditNoteToAr(input: SettleCreditNoteToArInput!): CreditNote! "Settle an issued DebitNote against the customer's AR: posts the charge AREntry (= totalDeltaMinor; dueAt per the enablement's NET terms — cod/prepaid/undeclared refuse CONFLICT/REF_STATE, a DN needs a due date to ride AR) + the same-transaction settled+closed flip. NOT limit-gated (the disclosed lean — a correction documents debt that already exists; only the tender extends new credit). Requires the unrestricted capability + the record's current revision." settleDebitNoteToAr(input: SettleDebitNoteToArInput!): DebitNote! "Reorder: mint a NEW sale Order born open (a cart to review — placing runs every place law, incl. the orderMinimum gate) from a sale-profile non-doomed source. Clones: the variant lines as {variantId, quantity} (fulfillmentMethod re-DEFAULTS per the create path) + the customer block verbatim (re-validated by the create gates — a dead cc/enablement/buyer refuses named). Does NOT clone: captured prices, line/order discounts, coupon/loyalty/employee attaches, agent attributions, the exemption cert, every fulfillment/tender stamp. open_item lines refuse VALIDATION/UNSUPPORTED naming the lineNos (no catalog identity to re-price; partial-clone = the surface deferral); stored-value issuance lines the same class (an instrument sale is its own act). A dead/retired variant refuses named by the existing line gates (whole-refusal v1). The mint stamps reorderOfOrderId = the source id. Requires the unrestricted capability." reorderOrder(input: ReorderOrderInput!): Order! "Copy-to-customize a canned role template: mints an ordinary editable group Role carrying the template's compiled descriptors + the port-stamped provenance (templateKey/templateVersion — never caller-suppliable) + the authorityTier. Requires the unrestricted capability." copyCannedRole(input: CopyCannedRoleInput!): Role! "Mint an ApprovalRequest: ONE transaction — the doc + the (target, action) fingerprint marker (a live-unexpired holder refuses CONFLICT/REFERENCED naming it). requiredTier derives from the canned grants; expiresAt = now + 900s (a touch past it refuses CONFLICT/EXPIRED and lazily expires the request). On approval the requester retries the identical gated call — the retry consumes the approval by fingerprint (single-use). Requires the unrestricted capability." requestApproval(input: RequestApprovalInput!): ApprovalRequest! "Ship a packed Fulfillment: packed→shipped→fulfilled in ONE call: the claimed lines relieve through the sell-relief lane (partial quantities; the ecom reserve releases; COGS at the current WMA; the composed action budget pre-gates ≤ 100), the order line fulfilledQty stamps + both delivery rollups recompute, and a paid-and-delivered order completes. The capture seam is declared-dormant. Requires the unrestricted capability." shipFulfillment(input: ShipFulfillmentInput!): Fulfillment! "Submit dispute evidence: the processor submission fires first (evidence[uncategorized_text] + submit=true — never inside a transaction; a processor refusal is CONFLICT/RECONCILE, retryable, nothing changed), then the flip stamps evidenceText with it (the presence law). Requires the doc current revision + the unrestricted capability." submitEvidenceDispute(input: SubmitEvidenceDisputeInput!): Dispute! "Staff: mint (or rotate) the ONE outstanding show-once invite token for an active collaborator: the plaintext token rides this result once; a re-issue makes the prior token stale (the pointer-currency law — the single live slot); a non-active collaborator refuses CONFLICT/REF_STATE. NO staff password-set lane exists on this plane ever — this rotation IS the recovery lane (the merchant never knows the secret). Template class; requires the unrestricted capability." issueCollaboratorInvite(collaboratorId: ID!): CollaboratorInviteMint! "Reserved for the platform; not available to API keys." acceptCollaboratorInvite(token: String!, password: String!): Boolean! "Reserved for the platform; not available to API keys." collaboratorLogin(orgId: ID!, email: String!, password: String!): CollaboratorAuthResult! "Reserved for the platform; not available to API keys." collaboratorLogout: Boolean! "Reserved for the platform; not available to API keys." changeMyCollaboratorPassword(currentPassword: String!, newPassword: String!): Boolean! "Reserved for the platform; not available to API keys." revokeMyCollaboratorSessions: Int! "Staff: the revoke-ALL kill-switch pointed at a collaborator; revokes every currently-active session of the named collaborator, returns the count. Template class; requires the unrestricted capability." revokeCollaboratorSessions(collaboratorId: ID!): Int! "Reserved for the platform; not available to API keys." consumerRegister(orgId: ID!, input: NewConsumerInput!, password: String!): ConsumerAuthResult! "Reserved for the platform; not available to API keys." consumerLogin(orgId: ID!, email: String!, password: String!): ConsumerAuthResult! "Reserved for the platform; not available to API keys." consumerLogout: Boolean! "Reserved for the platform; not available to API keys." updateMyConsumer(input: EditConsumerInput!): Consumer! "Reserved for the platform; not available to API keys." changeMyConsumerPassword(currentPassword: String!, newPassword: String!): Boolean! "Reserved for the platform; not available to API keys." revokeMyConsumerSessions: Int! "Staff: the revoke-ALL kill-switch pointed at a consumer; revokes every currently-active session of the named consumer, returns the count. Template class (identity & access admin — the high-authority row); requires the unrestricted capability." revokeConsumerSessions(consumerId: ID!): Int! "Staff: set a consumer's password credential directly: writes a NEW argon2id credential; arms self-service on a staff-created profile; refused on a doomed (de-identified) consumer. Existing sessions stay live — pair with revokeConsumerSessions for a takeover response. Template class; requires the unrestricted capability." resetConsumerPassword(consumerId: ID!, newPassword: String!): Boolean! "Copy-to-customize a canned consent purpose: mints an ordinary editable group ConsentPurpose carrying the template's code + consentModel + the port-stamped provenance (templateKey/templateVersion — never caller-suppliable). The code marker reserves in the create transaction (a non-doomed holder refuses CONFLICT/IDENTITY_TAKEN — copy the template once per group, or re-code the copy). Requires the unrestricted capability. Template class (privacy & compliance — hand-derived v20)." copyCannedConsentPurpose(input: CopyCannedConsentPurposeInput!): ConsentPurpose! "Staff: record a grant decision for a named consumer: NO record → dual-birth born granted (the permanent pair marker + the first-decide everReferenced stamp ride the ONE transaction) · withdrawn → the evented transition (capture context refreshed) · already granted → a capture-context revision. Gates: purpose active + consumer NOT doomed (each CONFLICT/REF_STATE naming it; a suspended consumer stays legal — the subject's right). The create race self-cures via the marker. Requires the unrestricted capability. Template class (capture-at-source — hand-derived v20)." grantConsent(input: ConsentDecisionInput!): ConsentRecord! "Staff: record a withdraw decision for a named consumer: NO record → dual-birth born withdrawn · granted → the evented transition · already withdrawn → the revision. The same gates + routing verbatim. Template class (classifies with the grant — v20)." withdrawConsent(input: ConsentDecisionInput!): ConsentRecord! "Reserved for the platform; not available to API keys." grantMyConsent(input: MyConsentDecisionInput!): ConsentRecord! "Reserved for the platform; not available to API keys." withdrawMyConsent(input: MyConsentDecisionInput!): ConsentRecord! "Staff: append ONE message to a case's thread: visibility is the author's choice; the acting User stamps as the author. A terminal (closed/cancelled) case refuses CONFLICT/IMMUTABLE — frozen history. The append is evented (at.cs.case_message.append.ok.v1 rides the record-change lake). Requires the unrestricted capability. Template class (the capture tier — hand-derived v21)." addCaseMessage(input: NewCaseMessageInput!): CaseMessage! "Reserved for the platform; not available to API keys." openMyCase(input: OpenMyCaseInput!): CsCase! "Reserved for the platform; not available to API keys." addMyCaseMessage(input: NewMyCaseMessageInput!): CaseMessage! "Reserved for the platform; not available to API keys." requestMyReturn(input: RequestMyReturnInput!): Return! "Staff: add ONE item to an active registry: the (registry × variant) marker mints in the same transaction; the active-items ceiling (200) gates; the variant live-gates. A non-ACTIVE registry refuses CONFLICT/REF_STATE. Requires the unrestricted capability. Template class (hand-derived v22)." addRegistryItem(input: NewRegistryItemInput!): RegistryItem! "Staff: edit ONE item row: variantId never moves (the membership identity — remove + re-add). The registry must be active; a doomed row refuses CONFLICT/IMMUTABLE. Requires the unrestricted capability. Template class (hand-derived v22)." updateRegistryItem(input: EditRegistryItemInput!): RegistryItem! "Staff: remove ONE item: the row flips active → doomed through the runner (at.customer.registry_item.doom.ok.v1); the marker stays with the doomed holder for takeover. The registry must be active. Requires the unrestricted capability. Template class (hand-derived v22)." removeRegistryItem(registryId: ID!, itemId: ID!, reason: String): RegistryItem! "Staff: record ONE purchase fact against a registry item: immutable once recorded; the registry must be non-doomed; the item active; the order in-tenant + non-doomed; the named line's variant must equal the item's variant; over-fulfillment records legally (remaining floors 0). Requires the unrestricted capability. Template class (the capture tier — hand-derived v22)." recordRegistryFulfillment(input: RecordRegistryFulfillmentInput!): RegistryFulfillment! "Reserved for the platform; not available to API keys." createMyGiftRegistry(input: CreateMyGiftRegistryInput!): GiftRegistry! "Reserved for the platform; not available to API keys." updateMyGiftRegistry(id: ID!, revision: ID!, input: EditGiftRegistryInput!): GiftRegistry! "Reserved for the platform; not available to API keys." closeMyGiftRegistry(id: ID!, revision: ID!, reason: String): GiftRegistry! "Reserved for the platform; not available to API keys." doomMyGiftRegistry(id: ID!, revision: ID!, reason: String): GiftRegistry! "Reserved for the platform; not available to API keys." addMyRegistryItem(input: NewRegistryItemInput!): RegistryItem! "Reserved for the platform; not available to API keys." updateMyRegistryItem(input: EditRegistryItemInput!): RegistryItem! "Reserved for the platform; not available to API keys." removeMyRegistryItem(registryId: ID!, itemId: ID!, reason: String): RegistryItem! "Reserved for the platform; not available to API keys." submitMyReview(input: SubmitMyReviewInput!): Review! "Reserved for the platform; not available to API keys." updateMyReview(input: EditMyReviewInput!): Review! "Reserved for the platform; not available to API keys." grantTokens(input: GrantTokensInput!): TokenGrantResult! "Reserved for the platform; not available to API keys." adjustTokens(input: AdjustTokensInput!): TokenGrantResult! "Reserved for the platform; not available to API keys." transferTokens(input: TransferTokensInput!): TokenTransferResult! "A wallet already carrying a method refuses CONFLICT/REF_STATE. Custody arms the charger's auto-top-off + base-fee lanes (the merchant consents to off-session charges by storing the method). Requires the unrestricted capability. Template class A16_BILLING (hand-derived v24)." attachTokenAccountBillingMethod(input: AttachTokenAccountBillingMethodInput!): TokenAccount! "Detach the caller-group wallet's stored method: the processor detach fires first, then the method ref + the facts trio remove together (absent IS the cleared state; the Customer anchor stays for a future re-attach). Custody disarms — auto-top-off stops firing (stop is safe: the exhaustion ladder + manual purchases stand) and a production group's base fee reads uncollectable. No stored method refuses CONFLICT/REF_STATE.: refuses while a backup method stands (a primary-less backup is incoherent — detach the backup first). Requires the unrestricted capability. Template class A16_BILLING (hand-derived v24)." detachTokenAccountBillingMethod: TokenAccount! "Attach a backup off-session method to the caller-group's wallet. The charger's auto-top-off falls back to it when the primary declines (a fresh purchase per intent — never a double charge). Refuses without a primary (CONFLICT/REF_STATE — a backup exists only as its fallback) and over a standing backup. Requires the unrestricted capability. Template class A16_BILLING (the custody-pair class)." attachTokenAccountBackupBillingMethod(input: AttachTokenAccountBillingMethodInput!): TokenAccount! "Detach the caller-group wallet's backup method: the processor detach fires first, then the backup ref + facts trio remove together; the primary + the Customer stand untouched. Top-offs lose their fallback — a declined primary then stops the auto-buy (on the cards-failing lane). No stored backup refuses CONFLICT/REF_STATE. Requires the unrestricted capability. Template class A16_BILLING (the custody-pair class)." detachTokenAccountBackupBillingMethod: TokenAccount! "Buy kernels NOW with the stored card: mints a TokenPurchase charged off-session to the stored method (primary → backup ladder, the charger's fire mechanics; the same webhook settles the balance credit). NOT budget-capped BY design — the day/month caps fence auto spend; an explicit press is its own authorization. The amount rides the createTokenPurchase bounds and must clear the volume-tier floor (below refuses VALIDATION). The wallet must be active with custody armed (no stored method refuses CONFLICT/REF_STATE — use createTokenPurchase for a client-confirmed buy instead). Requires the unrestricted capability. Template class A16_BILLING (the createTokenPurchase class)." purchaseTokensNow(input: NewTokenPurchaseInput!): TokenPurchase! "Buy the quarterly handholding plan: classes the trailing quarter's usage, charges the tier off-session to the stored card (the purchaseTokensNow ladder), and arms the plan — it serves human incidents 72 h after purchase (the CAA activation wait; the $25 per-incident lane stays open meanwhile). The quarter covers the purchase month + 2 (renewals are automatic — the billing engine collects each next quarter until you cancel). Already covered refuses CONFLICT (nothing to buy); a canceled-but-covered plan resumes instead (the cancel clears, nothing mints, no new wait); a lapsed/never plan mints + the wait re-arms. Wallet + stored method required. Requires the unrestricted capability. Template class A16_BILLING (hand-derived v93)." purchaseSupportPlan: SupportPlanReport! "Stop the handholding plan's renewals: paid coverage serves through its quarter (coveredThroughMonth), then the plan lapses; re-purchasing later re-arms the 72 h wait. No standing plan / already canceled refuses CONFLICT. Requires the unrestricted capability. Template class A16_BILLING (hand-derived v93)." cancelSupportPlan: SupportPlanReport! "Ask AlmondTill to move named kernel blocks to another group whole. Eligible blocks: never-opened, unfrozen stock (approved | transfer_denied) settled ≥ 90 days ago and never moved before (one transfer per block, forever). The ask freezes the blocks at once — they cannot be consumed until AlmondTill approves or denies (freezing most of your stock can starve the wallet; the answer names each block's state). An ineligible block refuses with why; the destination must be another group with a live wallet. Requires the unrestricted capability. Template class A16_BILLING (hand-derived v94)." requestKernelBlockTransfer(input: RequestKernelBlockTransferInput!): [KernelBlock!]! "Claim your group's ONE referral code: a generated code owned by your group, carrying the two-sided standard (the referred business gets 50% off its base fee for 3 cycles; you earn on their collected fees and their first-year kernel consumption once AlmondTill approves each referral). Requires approved affiliate standing (AlmondTill grants it — ask us; a default waiting period applies from your signup). One code per group, forever — a second claim refuses naming the standing code. Requires the unrestricted capability. Template class A16_BILLING (hand-derived v94)." claimReferralCode: ClaimedReferralCode! "Reserved for the platform; not available to API keys." submitOnboardingSignup(input: OnboardingSignupPayloadInput!): SubmitOnboardingSignupResult! "Reserved for the platform; not available to API keys." redeemOnboardingEmailVerification(token: String!): RedeemOnboardingEmailVerificationResult! "Reserved for the platform; not available to API keys." resendOnboardingEmailVerification(input: ResendOnboardingEmailVerificationInput!): ResendOnboardingEmailVerificationResult! "Reserved for the platform; not available to API keys." requestPasswordReset(email: String!): RequestPasswordResetResult! "Reserved for the platform; not available to API keys." completePasswordReset(token: String!, newPassword: String!): CompletePasswordResetResult! "Reserved for the platform; not available to API keys." requestDemo(input: DemoRequestInput!): RequestDemoResult! "Reserved for the platform; not available to API keys." approveChangeRequest(id: ID!, reason: String): ChangeRequest! "Reserved for the platform; not available to API keys." rejectChangeRequest(id: ID!, reason: String!): ChangeRequest! "Reserved for the platform; not available to API keys." requestChangeRequestInfo(id: ID!, note: String!): ChangeRequest! "Reserved for the platform; not available to API keys." resubmitChangeRequest(id: ID!, input: OnboardingSignupPayloadInput!): ChangeRequest! "Reserved for the platform; not available to API keys." cancelChangeRequest(id: ID!, reason: String): ChangeRequest! "Reserved for the platform; not available to API keys." realizeChangeRequest(id: ID!, classification: String, code: String): ChangeRequest! "File ONE management ChangeRequest against an org in the caller's OWN group: ONE txn = the group-parented request (born submitted) + the review-queue row + the pending-(type×org) reservation (a duplicate live request refuses the fixed sentence naming nothing about the holder; released at every terminal). The target org gates at submit: in-group (cross-tenant reads NOT_FOUND — the opaque law) · non-doomed · in the bound edge's from-state (CONFLICT/REF_STATE naming the edge)." submitChangeRequest(requestType: String!, input: OrganizationLifecyclePayloadInput!): ChangeRequest! "Cancel the caller group's OWN live request." cancelMyChangeRequest(id: ID!, reason: String): ChangeRequest! "Resubmit the caller group's OWN bounced request. the org-immutability rule: the organization is the pending-pair reservation coordinate — a different org is a NEW request (cancel this one first)." resubmitMyChangeRequest(id: ID!, input: OrganizationLifecyclePayloadInput!): ChangeRequest! "Reserved for the platform; not available to API keys." createReferralCode(input: NewReferralCodeInput!): ReferralCode! "Reserved for the platform; not available to API keys." disableReferralCode(code: String!): ReferralCode! "Append ONE immutable note to ANY same-tenant construct: the target gates existence + same-rootId (its type stamps onto the row); parentNoteId threads ONE level (a reply-to-a-reply refuses naming the root); links ≤8 scheme-fenced; attachmentIds bind the caller's own prior upload-mints — the commit HeadObject-verifies each blob, composes the immutable meta, flips the pending tag, stamps the wallet counter, and mints the blobbook rows, ALL in ONE transaction. The acting User stamps as the author. Requires the unrestricted capability. Template class (universal staff work — hand-derived v29)." addNote(input: NewNoteInput!): Note! "Park a task until a chosen future moment: returnAt must be a future ISO-8601 instant (the setBookmarkPop grammar — a past/invalid instant refuses VALIDATION/INVALID naming it); the user/team inbox rows prune in the same txn (parking means quiet — the REF row keeps it visible on its record); at returnAt the scheduled sweep fires the return automatically (re-minting the inbox rows), or transitionTask op=unpostpone (“Return now”) pulls it back early. A re-park restamps returnAt. On a note-minted task the transition appends its narrative reply under the origin root (the law). Requires the unrestricted capability + the record's current revision. Template class (hand-derived v29)." postponeTask(id: ID!, revision: ID!, returnAt: String!, reason: String): Task! "React to ONE note: one mark per (you, emoji) — a duplicate refuses CONFLICT (remove it first); emoji ∈ the canned token set (thumbs_up, check, question, eyes, tada, warning, plus, heart — strict). The note must exist on the named target in your workspace. Answers the note's fresh reaction groups. Requires authentication." reactToNote(targetConstructId: ID!, noteId: ID!, emoji: String!): [NoteReactionGroup!]! "Remove your reaction: strict — removing a mark you never made refuses NOT_FOUND (never a silent no-op). Answers the note's fresh reaction groups. Requires authentication." unreactToNote(targetConstructId: ID!, noteId: ID!, emoji: String!): [NoteReactionGroup!]! "Template class (hand-derived v29)." mintNoteAttachmentUpload(input: MintNoteAttachmentUploadInput!): NoteAttachmentUploadTicket! "Mint a short-TTL presigned download for one note attachment: authz through the target-construct read; scanned-prefix blobs gate on the GuardDutyMalwareScanStatus tag (NO_THREATS_FOUND serves · tag-absent = scan-in-progress refuses politely · THREATS_FOUND refuses + the event · unsupported/ACCESS_DENIED/failed refuse fail-closed naming the status); unscanned-prefix blobs skip the gate (risky types never landed there — the routing). Template class (hand-derived v29)." mintNoteAttachmentDownload(input: MintNoteAttachmentDownloadInput!): NoteAttachmentDownloadTicket! "Mint a short-TTL presigned upload for one wizard material: gates before any byte moves — the material registry row must resolve (ext AND declared MIME agree; the scan-free subset: pdf/md/txt/png/jpg/jpeg/gif/webp/csv — archives never mint here) · bytes ≤ 8388608 (8 MiB) · the group wallet must exist (billed custody). The object lands pre-tagged pending=true (the 7-day lifecycle reaps never-confirmed orphans) with the sha256 checksum + the mint metadata (incl. the wizard word — the walk-scope binding) signed IN. wizardType is the wizard's kind word (the fill lanes' type, 1..64). Requires authentication (user sessions). Template class (universal staff work)." mintWizardMaterialUpload(input: MintWizardMaterialUploadInput!): WizardMaterialUploadTicket! "Confirm one uploaded wizard material: HeadObject-verifies custody (pending · your own mint · byte match), runs the one AI review of the raw bytes (surface office.material_extract — metered at.ai.call.v1; images ride vision, documents ride file input), stores the bounded extraction artifact beside the blob in the material book + stamps the wallet storage counter, ONE transaction. Material ⟺ extraction: a keyless/failed review refuses INTEGRATION/UNAVAILABLE whole and the pending lifecycle reaps the blob — no un-reviewed material is ever kept. Later suggestFormFill/explainWizardStep presses compose from the stored extraction by id — the raw content is read exactly once, here. Requires authentication (user sessions). Template class (universal staff work)." confirmWizardMaterial(id: ID!): WizardMaterial! "Write or replace the whole plan on a draft scratchpad: the ordered create steps. Every step validates against the live registry + wire schema right here — an invalid step is marked with the exact problem and kept as written, never silently repaired; a plan with marked steps can be reviewed (ready) but can never be approved. A step's input may cite an earlier step's created record with the literal string @step:. Bumps planRevision (the approval pin's subject). Refuses CONFLICT/REF_STATE outside draft (reopen first — the review hold freezes the plan). Requires authentication (user sessions) + the record's current revision. Template class (universal staff work)." setScratchpadPlan(id: ID!, revision: ID!, steps: [ScratchpadPlanStepInput!]!): Scratchpad! "Execute an approved plan: flips approved|realization_failed → realizing, then runs each unrealized step IN order through the ordinary create operations under your own session, capability, and every normal gate (the hardened-Aldric law — the spine holds no authority of its own; per-step atomicity: each create is its own transaction). Every born id stamps back onto its step (the idempotency key — a re-run resumes, skipping realized steps, and never creates twice); every born record's history narrates this scratchpad and step. A step refusal stamps the fault verbatim and lands realization_failed — retry here to resume, or abandon (records already born stay). A crash caught between a step's commit and its stamp refuses auto-resume (the ambiguity fence — no silent duplicate is ever minted). Refuses CONFLICT/REF_STATE when the plan revision drifted from the approved pin. Requires authentication (user sessions) + the record's current revision. Template class (universal staff work)." realizeScratchpad(id: ID!, revision: ID!, reason: String): Scratchpad! "Run the suggestions desk for ONE organization: every active (non-parked) declared skill's detector runs over bounded live reads and the desk reconciles — the per-skill schema rows ensure-mint, past-due open offers expire, and fresh findings mint authorless under the evidence-set dedup law. Bounded ≤32 mints/org/UTC-day + ≤64 open/org + ≤8 candidates/skill — every clip and skip is counted in the result, and a faulting detector lands in skillFaults while the other skills still run (bulkheaded). The organization must be yours and active. Requires authentication. Template class (universal staff work — the offer law gates what the refresher then sees)." refreshSuggestions(organizationId: ID!): RefreshSuggestionsResult! "Take a suggestion: mints a Scratchpad through the live spine — origin `suggestion`, parented to YOU, the caption carried, the WHY as the intent, and the drafted plan landed via the setScratchpadPlan validate/mark path verbatim (a step that no longer checks out arrives marked, never silently repaired; the standing diff preview shows it). The offer law gates the act (every drafted step must be runnable under your own capability — AUTHZ/FORBIDDEN naming the steps otherwise; preview ≡ enforcement) and your ≤16 open-scratchpad bound applies. The suggestion flips open→taken stamping takenScratchpadId in the same write; a lost race compensates (the fresh scratchpad abandons, reason narrated) and surfaces CONFLICT. A past-expiry open refuses CONFLICT/EXPIRED, lazily expiring on the touch. Returns the born Scratchpad — approve and realize it under your own gates (the hardened-Aldric law). Requires authentication (user sessions) + the record's current revision. Template class." takeSuggestion(input: TakeSuggestionInput!): Scratchpad! "Ask Aldric ONE question in a Consultation: appends your question, composes the stored summary + the last 12 turns verbatim + your attached materials' stored extractions (extract-then-compose — mint/confirm them with wizardType 'consultation' first; only your own confirmed materials compose), asks the platform-keyed model, and appends the reply. When the un-summarized tail outgrows the window, the older turns fold into the stored summary first (its own metered call — the memory is visible on the record, never hidden model state). A drafted plan in the reply is validated against the live registry + wire schema as it lands — invalid steps arrive marked, never repaired; nothing real is created by asking (takeConsultationPlan mints the walk). Refuses INTEGRATION/UNAVAILABLE keyless · RATE_LIMIT/THROTTLED past the 30/hour allowance · CONFLICT/REF_STATE on a non-open consultation · the honest transcript-full refusal naming the follow-on cure. Every made call meters (at.ai.call.v1 — surfaces office.consultation + office.consultation_summary). Requires authentication (user sessions) + the record's current revision." askConsultation(input: AskConsultationInput!): AskConsultationResult! "Take the drafted plan from ONE of Aldric's replies: the plan re-validates fresh through the setScratchpadPlan validate/mark path (stale steps arrive marked), the Scratchpad births parented to YOU (the birth cause narrates the consultation + turn), and the turn takes the set-once takenScratchpadId stamp — a second take refuses CONFLICT/REFERENCED naming the standing walk. Legal on open AND closed consultations (the drafted work outlives the conversation); your ≤16 open-scratchpad bound applies. Returns the born Scratchpad — review, approve, realize under your own gates (the hardened-Aldric law). Requires authentication (user sessions) + the record's current revision." takeConsultationPlan(id: ID!, revision: ID!, seq: Int!, reason: String): Scratchpad! "Bookmark ANY same-tenant construct: the target gates existence + same-rootId + non-doomed; teamId absent = a personal bookmark, present = the team's shared set (the caller must be a member of that active team; createdBy stamps the acting member — provenance). One row per (subject, target) — a duplicate refuses CONFLICT/BOOKMARK_EXISTS; the per-subject cap refuses CONFLICT/BOOKMARK_CAP. Requires authentication. Template class (universal staff work — the addNote kinship)." bookmarkConstruct(targetType: String!, targetId: ID!, teamId: ID): BookmarkRef! "Remove one bookmark: teamId absent = my personal row, present = the team's row (membership-gated like bookmarkConstruct). An absent row refuses NOT_FOUND/BOOKMARK. Requires authentication. Template class (universal staff work)." unbookmarkConstruct(targetType: String!, targetId: ID!, teamId: ID): Boolean! "Pop one of your bookmarks to the top of your feed. An absent row refuses NOT_FOUND/BOOKMARK — you boost what you subscribed. Requires authentication." boostBookmark(targetType: String!, targetId: ID!): BookmarkRef! "Schedule one of your bookmarks to resurface. Requires authentication." setBookmarkPop(targetType: String!, targetId: ID!, popAt: String): BookmarkRef! "Pop a record to the top of your team's shared feed. Requires authentication." boostTeamBookmark(teamId: ID!, targetType: String!, targetId: ID!): BookmarkRef! "Schedule a record to resurface in your team's feed. Requires authentication." setTeamBookmarkPop(teamId: ID!, targetType: String!, targetId: ID!, popAt: String): BookmarkRef! "Mark one of your bookmarks as a highlight. Requires authentication." highlightBookmark(targetType: String!, targetId: ID!): BookmarkRef! "Clear your highlight. Requires authentication." unhighlightBookmark(targetType: String!, targetId: ID!): BookmarkRef! "Send ONE message to exactly one recipient: a user recipient must exist in-tenant + non-doomed (suspended still receives — a mailbox outlives a login); a team recipient requires YOU to be a member of that active team; the optional targetRef pair ('about this record') gates in-tenant + non-doomed. body ≤ 4096. The row lands in the recipient's current month bucket and persists (no deletion v1). Requires authentication. Template class (universal staff work — the addNote kinship)." sendMessage(toUserId: ID, toTeamId: ID, body: String!, targetType: String, targetId: ID): MessageRef! "Mark one of your messages read. An absent row refuses NOT_FOUND/MESSAGE (team messages are unreachable here — no per-member team read state v1); an already-read message returns unchanged (first read wins). Requires authentication." markMessageRead(messageId: ID!): MessageRef! "Mark one of your notices read. An absent row refuses NOT_FOUND/NOTIFICATION; an already-read notice returns unchanged (first read wins). Requires authentication." markNotificationRead(notificationId: ID!): NotificationRef! "Clear your login session's Ask context: the assistant forgets this session's prior exchanges and the condensed memory; idempotent (a fresh thread answers the same zero meter). Self by construction — no target argument exists. Requires authentication (user sessions)." resetAssistantContext: AssistantContextMeter! "Save ONE of your own app-private values at this organization. value ≤ 8 KB UTF-8; app/name ride the strict grammars ([a-z][a-z0-9-]{0,31} / [a-z0-9][a-z0-9._-]{0,63}). Self-scoped BY construction — no userId/orgId argument exists. Requires authentication." putMyAppData(app: String!, name: String!, value: String!): MyAppDataEntry! "Remove ONE of your own app-private values. Requires authentication." deleteMyAppData(app: String!, name: String!): Boolean! "Start — or re-open — the calling account's identity verification. Answers the hosted flow's short-lived url; a live attempt re-answers ITS fresh url (one attempt chain — only a canceled one re-mints). Refuses when the account holds no owner seat (CONFLICT/REF_STATE — the requirement attaches to ownership) and when already verified (CONFLICT/REF_STATE naming the forever law). Self-scoped BY construction; user-plane only. Requires authentication." startIdentityVerification: IdentityVerificationStart! "Enroll a Device at an LF: the LF tenant-scoped + active; an optional POS-class Register target may be declared (stamped at pairing completion; a pi_bridge refuses one — it serves the LF); returns the device + the single-use pairing code once (TTL 15 min, hash-only at rest). Requires the unrestricted capability. Template class A3_DEVICE." enrollDevice(input: EnrollDeviceInput!): DeviceEnrollment! "Reserved for the platform; not available to API keys." completePairingDevice(input: CompletePairingDeviceInput!): DevicePairingResult! "Mint a fresh single-use pairing code for an existing Device: pending_pairing (the lost/expired first code) or active (pre-expiry rotation — the fresh exchange replaces the credential, the state never regresses); a suspended device refuses (the kill switch stays killed); the prior un-exchanged code invalidates. Template class A3_DEVICE (hand-derived v30)." reissueDevicePairingCode(input: ReissueDevicePairingCodeInput!): DeviceEnrollment! "Set/replace the 0..1 one-way Register binding on an active POS-class Device: the Register tenant-scoped + active; a pi_bridge refuses VALIDATION/INVALID; refuses CONFLICT/referenced while the currently-paired Register has a live TillSession. Template class A3_DEVICE (hand-derived v30)." pairDeviceToRegister(input: PairDeviceToRegisterInput!): Device! "Clear the Register binding (the pairDeviceToRegister twin — the same live-TillSession refusal). Template class A3_DEVICE (hand-derived v30)." unpairDevice(input: UnpairDeviceInput!): Device! "The lost-device kill switch: revoke every live device session of one Device in one privileged act (compose with suspendDevice to also block re-exchange); reason required — a kill switch never fires silently. Template class A3_DEVICE (hand-derived v30)." revokeAllDeviceSessions(input: RevokeAllDeviceSessionsInput!): RevokeAllDeviceSessionsResult! "Mint an ApiKey: owner-gated engine-side (the minting actor's Account must hold group ownership live — reach derives from those ownerships at every call); descriptors ride the grammar (≥1, deduped, immutable); expiresAt ≤ 12 months (clock-gated); returns the key + the secret once (hash-only at rest). Template class (integration config — Manager's hard-disallow correctly blocks the attempt at the descriptor layer; hand-derived v30)." mintApiKey(input: MintApiKeyInput!): ApiKeyMint! "Exchange an ApiKey secret for an API session: the key must be active AND reach-live (the minter's current ownerships — group + the named org); mints the 24 h-absolute no-idle API session and returns the bearer token once. Every failure is uniform." exchangeApiKey(input: ExchangeApiKeyInput!): ApiKeyExchangeResult! "Reserved for the platform; not available to API keys." exchangeDeviceCredential(input: ExchangeDeviceCredentialInput!): DeviceSessionExchangeResult! "Reserved for the platform; not available to API keys." createTerminalConnectionToken: TerminalConnectionTokenResult! "Register an outbound webhook: owner-gated engine-side (the caller's Account must hold group ownership live); the target URL passes the egress law; every event name must be in the derived deliverable universe; at most 10 active subscriptions per group (the bounded fan-out law). Returns the subscription + the signing secret once. Template class (integration config — hand-derived v71)." createWebhookSubscription(input: CreateWebhookSubscriptionInput!): WebhookSubscriptionMint! "Mint a fresh signing secret for one webhook subscription: overwrites the credential-store row and returns the new secret once, effective immediately (no dual-validity window — update your receiver first, then rotate); a doomed subscription refuses CONFLICT/IMMUTABLE. Template class (hand-derived v71)." rotateWebhookSubscriptionSecret(id: ID!, revision: ID!, reason: String): WebhookSubscriptionSecretRotation! "Send ONE signed test delivery through the real webhook lane: active subscriptions only (an inactive/suspended/doomed target refuses CONFLICT/FSM_TRANSITION_INVALID — the lane skips them by law); delivery is asynchronous at-least-once. Owner-gated engine-side. Template class (hand-derived v71)." pingWebhookSubscription(id: ID!): WebhookPingReceipt! "Mint a batch of unique single-use child codes under one existing Coupon: ONE atomic transaction (48 codes max — bigger campaigns mint more batches); the codes are server-generated (-, the org-group code namespace — a collision refuses CONFLICT/COUPON_CODE_TAKEN, retry-able) and each unlocks the parent coupon's terms with ONE extra law: single use (the place transaction stamps it once-only). The coupon must be same-tenant + non-doomed (CONFLICT/REF_STATE). Requires the unrestricted capability. Template class (the coupon-authoring class — v79)." createCouponBatch(couponId: ID!, count: Int!, codePrefix: String!, caption: String): CouponBatchMint! "Add up to 48 Consumers to a static segment in ONE transaction: every consumer must exist in your tenant non-doomed; a dynamic segment refuses (its membership derives — edit the predicate/exclusions and refreshSegment); the membership cap (100,000) refuses naming the figure; legal on active AND inactive segments (staging), never doomed. Requires the unrestricted capability. Template class (v80)." addSegmentMembers(segmentId: ID!, consumerIds: [ID!]!): AddSegmentMembersResult! "Remove up to 48 Consumers from a static segment in ONE transaction. Requires the unrestricted capability. Template class (v80)." removeSegmentMembers(segmentId: ID!, consumerIds: [ID!]!): RemoveSegmentMembersResult! "Re-materialize a dynamic segment's membership: a bounded probe sizes your consumer universe first — at most 10,000 evaluates in-request (the stored predicate, diffed against the member rows, adds/removes in bounded transactions, evaluatedAt stamped, refreshProblem cleared; answers queued: false + the arithmetic); past that the refresh is queued (answers queued: true, arithmetic absent — the worker re-materializes up to 1,000,000 consumers; evaluatedAt moves on completion, refreshProblem words an over-cap outcome; a scheduled sweep also re-refreshes stale active dynamics ~daily). Synchronous matches beyond the 100,000 membership cap refuse before any write; a static segment refuses (its membership moves via the member ops); legal on active AND inactive segments, never doomed. Not one atomic transaction — re-run heals an interrupted refresh. Requires the unrestricted capability. Template class (v89)." refreshSegment(id: ID!): RefreshSegmentResult! "Register a scheduled BI feed: owner-gated engine-side (the caller's Account must hold group ownership live); organizationId must be an in-group live Organization; dataset/cadence/format are canned vocabularies; at most 10 active feeds per group. Template class (integration config — hand-derived v74)." createFeedSubscription(input: CreateFeedSubscriptionInput!): FeedSubscription! "Mark one active feed due NOW. An inactive/suspended/doomed feed refuses CONFLICT/FSM_TRANSITION_INVALID. Template class (hand-derived v74)." runFeedSubscriptionNow(id: ID!, revision: ID!, reason: String): FeedSubscription! "Mint ONE short-lived presigned download (TTL 300 s) for ONE of a feed's retained run objects. Zero stored credentials — re-mint per pull under your own session. Owner-gated engine-side. Template class (hand-derived v74)." mintFeedRunDownload(feedSubscriptionId: ID!, key: String!): FeedRunDownloadTicket! "Decide ONE connector authorize request: the full params re-validate from scratch (the review is never trusted). Approve (orgId required — an eligible org: active, in your group, where you hold a role; access: read [the default] or read_changes) connects the assistant AS you: a person-bound grant (no key, no secret — its token is your own session, minted at the token endpoint and on every refresh), expiring twelve months on, plus the single-use pkce-bound code, answering {redirectTo} with code+state+iss; deny answers {redirectTo} with error=access_denied+state+iss (RFC 9207 — iss rides every response). At most 10 connected assistants per person per organization (VALIDATION otherwise). Disconnect later with revokeConnectorGrant. Template class self." approveConnectorAuthorization(decision: String!, orgId: ID, access: String, responseType: String!, clientId: String!, redirectUri: String!, codeChallenge: String!, codeChallengeMethod: String!, state: String, scope: String, resource: String): ConnectorAuthorizationVerdict! "Disconnect ONE connected AI assistant by its id — the caller's own connection, or any connection of an organization the caller owns (AUTHZ/FORBIDDEN otherwise): the connection and the person's connector session are revoked at once; the assistant's very next call is refused and it must connect again. Answers the connection as it was." revokeConnectorGrant(id: ID!): ConnectorGrant! "Complete an in-progress Appointment: the optional orderId links the billing order at the last legal moment (completed is immutable) — it must be an in-tenant non-doomed-class Order (CONFLICT/REF_STATE else); auto-minting an order line is a named growth. Requires the unrestricted capability + the record's current revision." completeAppointment(input: CompleteAppointmentInput!): Appointment! "Reschedule a requested/confirmed Appointment in ONE transaction: the predecessor flips rescheduled (slot released — the resbook rows delete) and the successor births requested with every other field copied verbatim + the bilateral linkage ids stamped. The successor's own confirm re-runs the capacity gate (never auto-confirmed). The new window re-runs the lead/advance create gates; a resource re-pick re-gates in-tenant + active + same-LF. Requires the unrestricted capability + the predecessor's current revision." rescheduleAppointment(input: RescheduleAppointmentInput!): AppointmentReschedule! "File a claim on an active Warranty: links a warranty_claim CsCase both ways in ONE transaction (the warranty’s caseId + the case’s warrantyId); the maker/supplier routing is the snapshotted provider. Refuses CONFLICT/EXPIRED on an expired warranty, CONFLICT/REF_STATE on a non-warranty or closed/cancelled case, CONFLICT/REVISION_STALE on a stale expectedRevision; a claimed warranty declares no further edge (claim resolution is the deferred sub-flow)." fileClaimWarranty(input: ClaimWarrantyInput!): Warranty! "Rotate the signing key of an AgentChannel: the platform mints a fresh keypair — the new public JWK joins the record's signingKeys as the current key, the outgoing key gains retiresAt = now + 7 days (the spec's grace — platforms keep verifying with it until then), keys already past their retiresAt are pruned, and the private halves rewrite the agkey credential row (never on the wire: nothing to paste). Allowed in every live state (draft · live · paused); a doomed channel refuses CONFLICT/IMMUTABLE. Requires the unrestricted capability (the class)." rotateAgentChannelKey(id: ID!, revision: ID!, reason: String): AgentChannel! "The agent checkout — create: open a UCP checkout session on the AgentChannel — a draft Order on the ecom channel at the channel's selling location, validUntil = now + the channel's checkout TTL, the lines priced through the channel's PriceList plane, the agent checkout block stamped — and answer the quote (lines · totals · the fulfillment offer · consent · the discount extension's codes + applied discounts · the status rule + messages). Lines whose variant is not listed are dropped with item_unavailable messages; when none remain the create refuses VALIDATION/INVALID (nothing is born). The agent_platform principal opens on its OWN channel (platformProfileUrl comes from its session — an explicit arg refuses); staff (write) may name a platformProfileUrl for a test drive or none." agentChannelCheckoutCreate(agentChannelId: ID!, input: AgentCheckoutInput!, platformProfileUrl: String, linkedConsumerId: ID): AgentCheckout! "The agent checkout — update: full replacement (the released law) — the lines re-captured at this instant, the buyer and the fulfillment choice replaced, the discount codes applied with replacement semantics when given — then the fresh quote. A terminal checkout (completed · canceled) refuses CONFLICT/REF_STATE." agentChannelCheckoutUpdate(agentChannelId: ID!, orderId: ID!, input: AgentCheckoutInput!, linkedConsumerId: ID): AgentCheckout! "The agent checkout — cancel: the draft's own cancel transition (terminal); a completed/canceled checkout refuses CONFLICT/REF_STATE. Answers the view with status canceled." agentChannelCheckoutCancel(agentChannelId: ID!, orderId: ID!, reason: String, linkedConsumerId: ID): AgentCheckout! "The agent checkout — complete: pay and place a ready_for_complete checkout with the ONE selected instrument — the mint of the placed sale from the draft (the fee in the money · the seats copied · the ecom reservation · real tax at the origin) → the card hold through the advertised handler (Google Pay via Stripe; a tok_/pm_ credential) → the draft's own draft → accepted flip → status completed with order { id, sysId } + the display-safe payment echo. A decline cancels the pending sale and answers the checkout ready_for_complete with a recoverable payment_failed message; insufficient stock answers incomplete + out_of_stock; a lapsed validity answers canceled; a completed/canceled checkout refuses CONFLICT/REF_STATE (the door speaks checkout_closed); a pending mint (the crash window) reads complete_in_progress and resumes here. An instrument naming a handler this business does not advertise refuses VALIDATION/INVALID." agentChannelCheckoutComplete(agentChannelId: ID!, orderId: ID!, input: AgentCheckoutCompleteInput!, linkedConsumerId: ID): AgentCheckout! "Issue the fiscal compliance artifact for an Order/Invoice: the regime roster gate → the strict parent gate (an Order rests at completed — model A signs at/after completion; an Invoice at issued/closed, voided refuses) → the certified FiscalizationPort (an unconfigured regime refuses FISCAL/REGIME_UNCONFIGURED — partners + per-country certs are build-time; a denial is FISCAL/CLEARANCE_FAILED, a timeout FISCAL/CLEARANCE_TIMEOUT [retry-safe: nothing issued]) → ONE transaction: the receipt + the gap-free series counter + the one-per-(document × regime) marker (a duplicate refuses CONFLICT/IDENTITY_TAKEN — gap-free journals never re-issue; the marker never releases). Requires the unrestricted capability." issueFiscalReceipt(input: IssueFiscalReceiptInput!): FiscalReceipt! "Make a Dashboard the org group's landing, or clear it: on = true swaps atomically in ONE transaction — the previous landing row flips off and the target flips on, each conditioned on the revision this call read (a lost race refuses CONFLICT/REVISION_STALE naming the row; re-read and retry); on = false clears the flag; already so is a no-op. Only an active dashboard can land (an inactive or doomed target refuses CONFLICT/REF_STATE — reactivate it first); deactivating or dooming the landing clears the flag in the same write. The ONE door: createDashboard / updateDashboard refuse the field. Requires the unrestricted capability." setDashboardLanding(id: ID!, on: Boolean!): Dashboard! "Mark an in_progress PrivacyRequest fulfilled: the affected records link back via the refs (the de-identified Consumer, the export target, the rectified records — provable which request drove which scrubbing). affectedRefs ≥1 required — an evidence-less fulfill refuses CONFLICT/INCOMPLETE (retryable: finish the actions, fulfill again); refs are advisory + tombstone-tolerant. Template class (privacy & compliance)." fulfillPrivacyRequest(id: ID!, revision: ID!, affectedRefs: [TaskConstructRefInput!]!, reason: String): PrivacyRequest! "Erase the personal details on ONE guest sale, under its privacy request. The sale's customer block reads 'Erased customer': the email, phone, delivery address and buyer names go. The money, lines, tax, status, consent choices, platform and receipt token stay. Its invoice, return, store-credit, gift-card and fulfillment copies follow. Requires a PrivacyRequest of your group in verified or in_progress whose subjectOrderId IS this order. A request in received, a request naming another order, or a missing request refuses. A second call writes nothing (customer.deidentifiedAt). Then fulfill the request with the Order ref. Template class (privacy & compliance)." deidentifyOrder(id: ID!, revision: ID!, privacyRequestId: ID!, reason: String): Order! "Start ONE background search — a validated plan run AS you, in the background: the SearchPlanInput grammar verbatim, and the same plan gate as searchPlanRun refuses before any read — an unknown family, a field outside its roster, a hop that is not a relationship of the current family — naming the legal words; a family you may not list refuses the whole plan. The job records the plan (`planJson`) and its words, runs ONE bounded step at a time (pages of 1000; at most 50000 records examined — the estimate refuses a plan that cannot fit, with the numbers; 300 s from the start → expired with the partials; at most 400 steps), and lands its matches as ONE result set for 7 days (read them with searchJobMatches). ONE running job per signed-in session — a second start refuses CONFLICT/SEARCH_JOB_ACTIVE naming the holder: wait for it to finish or cancel it. Where no machine is wired the same steps run inline and the job comes back finished. A JSON null on an optional input field reads as absent. Requires the unrestricted capability on a user session (an API key or a collaborator refuses AUTHZ/FORBIDDEN — the job is yours: your user, your session)." startSearchJob(plan: SearchPlanInput!): SearchJob! "Cancel your queued or running background search: the record flips to cancelled and the session's search slot frees at once; the machine notices at its next step boundary and keeps the partial matches it had — no execution is killed, nothing is lost. Only the job's owner (the same user AND the same session) may cancel — anyone else refuses AUTHZ/FORBIDDEN; a job outside your tenant, or none at all, is NOT_FOUND; a finished job refuses (terminal records are immutable). Requires the unrestricted capability on a user session." cancelSearchJob(id: ID!): SearchJob! "Start ONE background export — a validated plan run AS you, in the background, whose last family's records are written to a file: the SearchPlanInput grammar verbatim, and the same plan gate as searchPlanRun refuses before any read — an unknown family, a field outside its roster, a hop that is not a relationship of the current family — naming the legal words; a family you may not list refuses the whole plan (the file carries the records exactly as the list lane would answer them to you). `format` picks the file: csv (RFC 4180 — the header is the union of every record's leaves, nested objects as dotted columns, arrays as JSON cells) or jsonl (one JSON record per line). The optional `report` turns the export into a background report: the same ReportSpecInput reportRun takes — its `plan` must equal `plan` (one plan, two spellings never — refused VALIDATION/INVALID otherwise); the record carries the spec (`reportJson`) and its words become the report's; the file then holds the report's rows — a projection's chosen columns (the header = the columns in order; the `.caption` of the reference families you may list rides beside the ids, the others are omitted silently) or an aggregate's groups (count · sums · smallest · largest · average per currency; more than 1000 groups fails the job with the words — no file of half-truths). The job records the plan (`planJson`) and its words, runs ONE bounded step at a time (pages of 1000; at most 50000 records examined — the estimate refuses a plan that cannot fit, with the numbers; 300 s from the start → expired with the rows written so far; at most 400 steps; a file past 256 MiB halts partial), writing every record of the last family (the plan's limit does not bound an export), and composes the file at the finish — downloadable for 7 days through exportJobDownload; an in-app notice tells you when it lands. ONE running export per signed-in session — a second start refuses CONFLICT/EXPORT_JOB_ACTIVE naming the holder: wait for it to finish or cancel it. Where no machine is wired the same steps run inline and the job comes back finished. The plan named one way — reportId (a saved Report) XOR plan (+ optional report): a saved definition lifts its plan AND its spec — the export becomes that report, run as YOU, the spec re-validated now; only an active definition runs (an inactive or doomed one refuses CONFLICT/REF_STATE naming its state); reportId beside plan or report, or neither of them, refuses VALIDATION/INVALID. A JSON null on an optional input field reads as absent. Requires the unrestricted capability on a user session (an API key or a collaborator refuses AUTHZ/FORBIDDEN — the job is yours: your user, your session). The ready-made list reports: catalogKey + params names ONE list report of the catalogue (reportCatalog — a report whose engine is walk; a report that answers whole on the screen refuses in words — run it there) run AS you over every row to a file, on the full lane alone; the parameters bind now exactly as reportRun binds them; a saved run of a list report exports by reportId alike; the record's words are the report's. Exactly ONE source — plan (with an optional report), reportId (a saved report) or catalogKey (+ params): two or none refuse VALIDATION/INVALID. Every job's words are cut at 1000 characters with a trailing …." startExportJob(plan: SearchPlanInput, format: ExportFormat!, report: ReportSpecInput, reportId: ID, catalogKey: String, params: ReportParamsInput): ExportJob! "Cancel your queued or running background export: the record flips to cancelled and the session's export slot frees at once; NO file is composed and no notice is sent — the parts already written age out on their own; the machine notices at its next step boundary and stops. Only the job's owner (the same user AND the same session) may cancel — anyone else refuses AUTHZ/FORBIDDEN; a job outside your tenant, or none at all, is NOT_FOUND; a finished job refuses (terminal records are immutable). Requires the unrestricted capability on a user session." cancelExportJob(id: ID!): ExportJob! "Start ONE background wizard draft: hand the platform your text and/or your documents plus every page's want at once, and the assistant drafts the whole walk in the background at its highest effort — every value with its source and confidence, at most 5 questions, one advice paragraph; the record flips ready and the fill_draft_finished notice tells you. The order of the gates: your group's wallet must exist (CONFLICT/REF_STATE — the call is charged like every assist) · the assistant offline or the machine unwired refuses INTEGRATION/UNAVAILABLE loudly (never a silent inline draft — fill the wizard by hand) · at most 12 starts an hour and 4 open drafts (VALIDATION/INVALID) · ONE draft is made at a time per person (CONFLICT/FILL_DRAFT_ACTIVE naming the holder — wait for it, or abandon it) · a document that is not yours or not on this wizard word is NOT_FOUND. Drafts only — nothing is created or applied; you review every value (the wizard pages seed from the sheet). A JSON null on an optional input field reads as absent. Requires the unrestricted capability on a user session. Template class (universal staff work)." startFillDraft(input: StartFillDraftInput!): FillDraft! "Close ONE of your wizard drafts: drafting or ready → abandoned; a draft still being made is cancelled with the assistant as far as it can be, and your drafting slot frees at once. Another state refuses CONFLICT/REF_STATE naming it; another person's draft, or none at all, is NOT_FOUND. Requires the unrestricted capability on a user session. Template class." abandonFillDraft(id: ID!): FillDraft! "Take ONE of your ready wizard drafts into a record: the office fires it after the wizard's create lands — the moment the sheet was consumed; ready → taken set once with takenAt stamped. Another state refuses CONFLICT/REF_STATE naming it (a second take is that refusal; an expired draft refuses too); another person's draft, or none at all, is NOT_FOUND. A taken draft stays in your list as history until its lifetime ends and takes no more messages. Nothing is created here — the record was born by its own wizard.: takenRef (optional, 1..64) names the record the draft became — its sysId or its id — and rides the same flip (a malformed reference refuses VALIDATION/INVALID before anything is read). Requires the unrestricted capability on a user session. Template class." takeFillDraft(id: ID!, takenRef: String): FillDraft! "Tell the assistant what to change on ONE of your ready wizard drafts: your message (say) and optionally more of your documents go in; your turn is appended and the draft flips back to drafting while the assistant answers in the background — briefly, in plain words — and hands back the whole revised sheet (every value you did not ask about kept; a value you rejected removed); the draft flips ready again and the fill_draft_finished notice tells you. When the conversation outgrows 12 un-summarized turns the older turns fold into the stored summary first. The assistant cannot look anything up — it asks you for facts it lacks. The order of the gates: the draft must be yours and ready (CONFLICT/REF_STATE naming another state; an expired draft refuses too) with its current revision (CONFLICT/REVISION_STALE) · at most 24 turns per draft and 30 messages an hour (VALIDATION/INVALID) · the assistant offline or the machine unwired refuses INTEGRATION/UNAVAILABLE loudly · ONE draft is worked on at a time per person (CONFLICT/FILL_DRAFT_ACTIVE naming the holder) · a document that is not yours or not on this wizard word is NOT_FOUND. A failed answer is told on the transcript (outcome failed) and the sheet stays as it was. Drafts only — nothing is created or applied. A JSON null on an optional input field reads as absent. Requires the unrestricted capability on a user session. Template class (universal staff work)." talkFillDraft(input: TalkFillDraftInput!): TalkFillDraftResult! "Start your own sitting of a course's test: the platform draws 10 active questions of the course (every active question when fewer; below 3 refuses CONFLICT/TRAINING_TOO_FEW_QUESTIONS) and stores exactly that draw on the record; passMark = the strictest active requirement binding your roles for the course, else 80. ONE open sitting per course (CONFLICT/TRAINING_ATTEMPT_OPEN names the holder); at most 5 sittings per course per UTC day (CONFLICT/TRAINING_CAP). courseKey must be a live play key (VALIDATION otherwise). Requires the unrestricted capability on a user session." startTrainingAttempt(courseKey: String!): TrainingAttempt! "A pass mints your TrainingCertificate, tells you (the training_certificate_issued notice) and supersedes your earlier certificate for the course, all in the same transaction. open → submitted (terminal): a submitted or doomed sitting refuses CONFLICT/FSM_TRANSITION_INVALID; another person's sitting refuses AUTHZ/FORBIDDEN. Requires the unrestricted capability on a user session + the current revision." submitTrainingAttempt(id: ID!, revision: ID!, answers: [Int!]!): TrainingAttempt! "Retire an abandoned open sitting (open → doomed, terminal — never graded) so the person can start again; the course's open slot frees in the same write. Requires the unrestricted capability + the training-manage right + the current revision." doomTrainingAttempt(id: ID!, revision: ID!, reason: String): TrainingAttempt! "Withdraw a certificate (valid → revoked, terminal) with a reason — required (1..256 characters), it rides the revision's cause; the requirement reads unmet until the person passes again. Requires the unrestricted capability + the training-manage right + the current revision." revokeTrainingCertificate(id: ID!, revision: ID!, reason: String!): TrainingCertificate! "Note that YOU read ONE step of ONE play: your own progress record's step ledger — sorted, unique, idempotent (a step already read is a no-op success, nothing written). playKey must be a live play key and stepN one of its steps (VALIDATION otherwise). Requires the unrestricted capability on a user session." recordLessonRead(playKey: String!, stepN: Int!): MyTrainingPlayProgress! "Start your own practice of a course's test" startTrainingPractice(courseKey: String!): TrainingPracticeSitting! "The last result replaces the previous one in your own progress record; nothing is certified. Requires the unrestricted capability on a user session." submitTrainingPractice(courseKey: String!, answers: [Int!]!): TrainingPracticeResult! "Create a PhysicalFacilityLocation in the caller's org group; requires the unrestricted capability." createPhysicalFacilityLocation(input: NewPhysicalFacilityLocationInput!): PhysicalFacilityLocation! "Doom (terminal) a PhysicalFacilityLocation by id, within the caller's org group; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards: a PFL still referenced by a live PhysicalFacility is refused (CONFLICT/REFERENCED — detail carries the blocking refs); a non-active PFL is refused (CONFLICT/FSM_TRANSITION_INVALID). The optional reason rides the transition events." doomPhysicalFacilityLocation(id: ID!, revision: ID!, reason: String): PhysicalFacilityLocation! "Edit a PhysicalFacilityLocation's editable fields — an ordinary revision, not a state change; a doomed PFL cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. A supplied taxJurisdictionId re-gates like create (exists + active on the shared canonical tree); explicit null clears the classification — the location returns to unclassified (zero tax, disclosed)." updatePhysicalFacilityLocation(id: ID!, revision: ID!, input: EditPhysicalFacilityLocationInput!): PhysicalFacilityLocation! "Create a PhysicalFacility in the caller's org group; requires the unrestricted capability." createPhysicalFacility(input: NewPhysicalFacilityInput!): PhysicalFacility! "Deactivate a PhysicalFacility by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivatePhysicalFacility(id: ID!, revision: ID!, reason: String): PhysicalFacility! "Reactivate a PhysicalFacility by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivatePhysicalFacility(id: ID!, revision: ID!, reason: String): PhysicalFacility! "Doom (terminal) a PhysicalFacility by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed PF is immutable + never deleted. The optional reason rides the transition events." doomPhysicalFacility(id: ID!, revision: ID!, reason: String): PhysicalFacility! "Edit a PhysicalFacility's editable fields — an ordinary revision, not a state change; a doomed PF cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. A supplied physicalFacilityLocationId re-points the PF: the new PFL is tenant-scoped and must be active (CONFLICT/REF_STATE); the old PFL frees implicitly." updatePhysicalFacility(id: ID!, revision: ID!, input: EditPhysicalFacilityInput!): PhysicalFacility! "Create a LogicalFacility in the caller's org group; requires the unrestricted capability." createLogicalFacility(input: NewLogicalFacilityInput!): LogicalFacility! "Deactivate a LogicalFacility by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateLogicalFacility(id: ID!, revision: ID!, reason: String): LogicalFacility! "Reactivate a LogicalFacility by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateLogicalFacility(id: ID!, revision: ID!, reason: String): LogicalFacility! "Doom (terminal) a LogicalFacility by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed LF is immutable + never deleted. The optional reason rides the transition events." doomLogicalFacility(id: ID!, revision: ID!, reason: String): LogicalFacility! "Edit a LogicalFacility's editable fields — an ordinary revision, not a state change; a doomed LF cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. The classification is NOT editable; nor is the parent-PF ref. A supplied geographicDivisionId re-gates like create (in-tenant + active + geographic + selection-held); explicit null leaves the division (never gated)." updateLogicalFacility(id: ID!, revision: ID!, input: EditLogicalFacilityInput!): LogicalFacility! "Create a Zone in the caller's org group; requires the unrestricted capability." createZone(input: NewZoneInput!): Zone! "Deactivate a Zone by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateZone(id: ID!, revision: ID!, reason: String): Zone! "Reactivate a Zone by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateZone(id: ID!, revision: ID!, reason: String): Zone! "Doom (terminal) a Zone by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Zone is immutable + never deleted. The optional reason rides the transition events." doomZone(id: ID!, revision: ID!, reason: String): Zone! "Edit a Zone's editable fields — an ordinary revision, not a state change; a doomed Zone cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. The parent-LF ref is NOT editable here." updateZone(id: ID!, revision: ID!, input: EditZoneInput!): Zone! "Create a Bin in the caller's org group; requires the unrestricted capability." createBin(input: NewBinInput!): Bin! "Deactivate a Bin by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateBin(id: ID!, revision: ID!, reason: String): Bin! "Reactivate a Bin by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateBin(id: ID!, revision: ID!, reason: String): Bin! "Doom (terminal) a Bin by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Bin is immutable + never deleted. The optional reason rides the transition events." doomBin(id: ID!, revision: ID!, reason: String): Bin! "Edit a Bin's editable fields — an ordinary revision, not a state change; a doomed Bin cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. The parent-Zone ref is NOT editable here." updateBin(id: ID!, revision: ID!, input: EditBinInput!): Bin! "Create a Role in the caller's org group; requires the unrestricted capability." createRole(input: NewRoleInput!): Role! "Deactivate a Role by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards: a Role still held by a non-doomed User (orgRoles) is refused. The optional reason rides the transition events." deactivateRole(id: ID!, revision: ID!, reason: String): Role! "Reactivate a Role by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateRole(id: ID!, revision: ID!, reason: String): Role! "Doom (terminal) a Role by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Role is immutable + never deleted. The optional reason rides the transition events." doomRole(id: ID!, revision: ID!, reason: String): Role! "Edit a Role's editable fields — an ordinary revision, not a state change; a doomed Role cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateRole(id: ID!, revision: ID!, input: EditRoleInput!): Role! "Create a User in the caller's org group; requires the unrestricted capability." createUser(input: NewUserInput!): User! "Deactivate a User by id; requires the unrestricted capability + the record's current revision. The ruled session semantics: the user's live Sessions never block this transition and are NOT revoked — they go inert at their next resolve and come back if the user is reactivated within their deadlines. The referential_integrity guard is consulted and returns unblocked on this edge by ruling: live minted ApiKeys never block the reversible pause — key liveness reads only the minter Account's status + live ownerships, never the User's status, so the keys keep working and the doom edge is where disposition is forced. CS-Case assignedTo joins at its routing slice. The optional reason rides the transition events." deactivateUser(id: ID!, revision: ID!, reason: String): User! "Reactivate a User by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateUser(id: ID!, revision: ID!, reason: String): User! "Doom a User by id; requires the unrestricted capability + the record's current revision. Sessions never block and never cascade: the doomed user's sessions go inert at their next resolve and ride to their own natural terminal. An active ApiKey minted by this user blocks the doom → CONFLICT/REFERENCED naming the keys: ApiKey has no parent-doom cascade, so key disposition is explicit — doom the keys (or let them expire) first; terminal keys never block. The (account × group) userBinding marker stays with the doomed record as history and is taken over by a future re-add — dooming never permanently strands the pair. The optional reason rides the transition events." doomUser(id: ID!, revision: ID!, reason: String): User! "Edit a User's editable fields — an ordinary revision, not a state change; a doomed User cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. updateUser IS the / user-role assignment op: supplying orgRoles replaces the full set after strict ref validation (each org + role in-tenant AND active)." updateUser(id: ID!, revision: ID!, input: EditUserInput!): User! "Create a Brand in the caller's org group; requires the unrestricted capability." createBrand(input: NewBrandInput!): Brand! "Deactivate a Brand by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateBrand(id: ID!, revision: ID!, reason: String): Brand! "Reactivate a Brand by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateBrand(id: ID!, revision: ID!, reason: String): Brand! "Doom (terminal) a Brand by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Brand is immutable + never deleted. The optional reason rides the transition events." doomBrand(id: ID!, revision: ID!, reason: String): Brand! "Edit a Brand's editable fields — an ordinary revision, not a state change; a doomed Brand cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateBrand(id: ID!, revision: ID!, input: EditBrandInput!): Brand! "Create a Season in the caller's org group; requires the unrestricted capability." createSeason(input: NewSeasonInput!): Season! "Deactivate a Season by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateSeason(id: ID!, revision: ID!, reason: String): Season! "Reactivate a Season by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateSeason(id: ID!, revision: ID!, reason: String): Season! "Doom (terminal) a Season by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Season is immutable + never deleted. The optional reason rides the transition events." doomSeason(id: ID!, revision: ID!, reason: String): Season! "Edit a Season's editable fields — an ordinary revision, not a state change; a doomed Season cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateSeason(id: ID!, revision: ID!, input: EditSeasonInput!): Season! "Create a Tag in the caller's org group; requires the unrestricted capability." createTag(input: NewTagInput!): Tag! "Doom (terminal) a Tag by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Tag is immutable + never deleted. The optional reason rides the transition events." doomTag(id: ID!, revision: ID!, reason: String): Tag! "Edit a Tag's editable fields — an ordinary revision, not a state change; a doomed Tag cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateTag(id: ID!, revision: ID!, input: EditTagInput!): Tag! "Create a Characteristic in the caller's org group; requires the unrestricted capability. Canned templates are copied via copyCannedCharacteristic instead." createCharacteristic(input: NewCharacteristicInput!): Characteristic! "Doom (terminal) a Characteristic by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Characteristic is immutable + never deleted. The optional reason rides the transition events." doomCharacteristic(id: ID!, revision: ID!, reason: String): Characteristic! "Edit a Characteristic's editable fields — an ordinary revision, not a state change; a doomed Characteristic cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateCharacteristic(id: ID!, revision: ID!, input: EditCharacteristicInput!): Characteristic! "Create a CustomUom in the caller's org group; requires the unrestricted capability." createCustomUom(input: NewCustomUomInput!): CustomUom! "Deactivate a CustomUom by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateCustomUom(id: ID!, revision: ID!, reason: String): CustomUom! "Reactivate a CustomUom by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateCustomUom(id: ID!, revision: ID!, reason: String): CustomUom! "Doom (terminal) a CustomUom by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Custom UoM is immutable + never deleted. The optional reason rides the transition events." doomCustomUom(id: ID!, revision: ID!, reason: String): CustomUom! "Edit a CustomUom's editable fields — an ordinary revision, not a state change; a doomed Custom UoM cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateCustomUom(id: ID!, revision: ID!, input: EditCustomUomInput!): CustomUom! "Create a Manufacturer in the caller's org group; requires the unrestricted capability." createManufacturer(input: NewManufacturerInput!): Manufacturer! "Deactivate a Manufacturer by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateManufacturer(id: ID!, revision: ID!, reason: String): Manufacturer! "Reactivate a Manufacturer by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateManufacturer(id: ID!, revision: ID!, reason: String): Manufacturer! "Doom (terminal) a Manufacturer by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Manufacturer is immutable + never deleted. The optional reason rides the transition events." doomManufacturer(id: ID!, revision: ID!, reason: String): Manufacturer! "Edit a Manufacturer's editable fields — an ordinary revision, not a state change; a doomed Manufacturer cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateManufacturer(id: ID!, revision: ID!, input: EditManufacturerInput!): Manufacturer! "Create a Vendor in the caller's org group; requires the unrestricted capability." createVendor(input: NewVendorInput!): Vendor! "Deactivate a Vendor by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateVendor(id: ID!, revision: ID!, reason: String): Vendor! "Reactivate a Vendor by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateVendor(id: ID!, revision: ID!, reason: String): Vendor! "Doom (terminal) a Vendor by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Vendor is immutable + never deleted. The optional reason rides the transition events." doomVendor(id: ID!, revision: ID!, reason: String): Vendor! "Edit a Vendor's editable fields — an ordinary revision, not a state change; a doomed Vendor cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateVendor(id: ID!, revision: ID!, input: EditVendorInput!): Vendor! "Create a Category in the caller's org group; requires the unrestricted capability." createCategory(input: NewCategoryInput!): Category! "Deactivate a Category by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateCategory(id: ID!, revision: ID!, reason: String): Category! "Reactivate a Category by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateCategory(id: ID!, revision: ID!, reason: String): Category! "Doom (terminal) a Category by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Category is immutable + never deleted. The optional reason rides the transition events." doomCategory(id: ID!, revision: ID!, reason: String): Category! "Edit a Category's editable fields — an ordinary revision, not a state change; a doomed Category cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. The merchandise-Division pointer follows the same gates (merchandise-type target) and clears with explicit null; both pointers stay mutually exclusive on the merged record." updateCategory(id: ID!, revision: ID!, input: EditCategoryInput!): Category! "Create a Division in the caller's org group; requires the unrestricted capability." createDivision(input: NewDivisionInput!): Division! "Deactivate a Division by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateDivision(id: ID!, revision: ID!, reason: String): Division! "Reactivate a Division by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateDivision(id: ID!, revision: ID!, reason: String): Division! "Doom (terminal) a Division by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Division is immutable + never deleted. The optional reason rides the transition events." doomDivision(id: ID!, revision: ID!, reason: String): Division! "Edit a Division's editable fields — an ordinary revision, not a state change; a doomed Division cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateDivision(id: ID!, revision: ID!, input: EditDivisionInput!): Division! "Create an OptionGroup in the caller's org group; requires the unrestricted capability." createOptionGroup(input: NewOptionGroupInput!): OptionGroup! "Deactivate a OptionGroup by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateOptionGroup(id: ID!, revision: ID!, reason: String): OptionGroup! "Reactivate a OptionGroup by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateOptionGroup(id: ID!, revision: ID!, reason: String): OptionGroup! "Doom (terminal) a OptionGroup by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed OptionGroup is immutable + never deleted. The optional reason rides the transition events." doomOptionGroup(id: ID!, revision: ID!, reason: String): OptionGroup! "Edit a OptionGroup's editable fields — an ordinary revision, not a state change; a doomed OptionGroup cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateOptionGroup(id: ID!, revision: ID!, input: EditOptionGroupInput!): OptionGroup! "Create an OptionValue under an OptionGroup in the caller's org group; requires the unrestricted capability." createOptionValue(input: NewOptionValueInput!): OptionValue! "Deactivate a OptionValue by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateOptionValue(id: ID!, revision: ID!, reason: String): OptionValue! "Reactivate a OptionValue by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateOptionValue(id: ID!, revision: ID!, reason: String): OptionValue! "Doom (terminal) a OptionValue by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed OptionValue is immutable + never deleted. The optional reason rides the transition events." doomOptionValue(id: ID!, revision: ID!, reason: String): OptionValue! "Edit a OptionValue's editable fields — an ordinary revision, not a state change; a doomed OptionValue cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. The parent-group ref is NOT editable here." updateOptionValue(id: ID!, revision: ID!, input: EditOptionValueInput!): OptionValue! "Create a Decoration in the caller's org group; requires the unrestricted capability." createDecoration(input: NewDecorationInput!): Decoration! "Deactivate a Decoration by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateDecoration(id: ID!, revision: ID!, reason: String): Decoration! "Reactivate a Decoration by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateDecoration(id: ID!, revision: ID!, reason: String): Decoration! "Doom (terminal) a Decoration by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Decoration is immutable + never deleted. The optional reason rides the transition events." doomDecoration(id: ID!, revision: ID!, reason: String): Decoration! "Edit a Decoration's editable fields — an ordinary revision, not a state change; a doomed Decoration cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateDecoration(id: ID!, revision: ID!, input: EditDecorationInput!): Decoration! "Create an OrgManufacturer selection — the per-org enablement of a group Manufacturer; requires the unrestricted capability." createOrgManufacturer(input: NewOrgManufacturerInput!): OrgManufacturer! "Deactivate a OrgManufacturer by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateOrgManufacturer(id: ID!, revision: ID!, reason: String): OrgManufacturer! "Reactivate a OrgManufacturer by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateOrgManufacturer(id: ID!, revision: ID!, reason: String): OrgManufacturer! "Doom (terminal) a OrgManufacturer by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed OrgManufacturer is immutable + never deleted. The optional reason rides the transition events." doomOrgManufacturer(id: ID!, revision: ID!, reason: String): OrgManufacturer! "Edit a OrgManufacturer's editable fields — an ordinary revision, not a state change; a doomed OrgManufacturer cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateOrgManufacturer(id: ID!, revision: ID!, input: EditOrgManufacturerInput!): OrgManufacturer! "Create an OrgBrand selection — the per-org enablement of a group Brand; requires the unrestricted capability." createOrgBrand(input: NewOrgBrandInput!): OrgBrand! "Deactivate a OrgBrand by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateOrgBrand(id: ID!, revision: ID!, reason: String): OrgBrand! "Reactivate a OrgBrand by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateOrgBrand(id: ID!, revision: ID!, reason: String): OrgBrand! "Doom (terminal) a OrgBrand by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed OrgBrand is immutable + never deleted. The optional reason rides the transition events." doomOrgBrand(id: ID!, revision: ID!, reason: String): OrgBrand! "Edit a OrgBrand's editable fields — an ordinary revision, not a state change; a doomed OrgBrand cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateOrgBrand(id: ID!, revision: ID!, input: EditOrgBrandInput!): OrgBrand! "Create an OrgSeason selection — the per-org enablement of a group Season; requires the unrestricted capability." createOrgSeason(input: NewOrgSeasonInput!): OrgSeason! "Deactivate a OrgSeason by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateOrgSeason(id: ID!, revision: ID!, reason: String): OrgSeason! "Reactivate a OrgSeason by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateOrgSeason(id: ID!, revision: ID!, reason: String): OrgSeason! "Doom (terminal) a OrgSeason by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed OrgSeason is immutable + never deleted. The optional reason rides the transition events." doomOrgSeason(id: ID!, revision: ID!, reason: String): OrgSeason! "Edit a OrgSeason's editable fields — an ordinary revision, not a state change; a doomed OrgSeason cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateOrgSeason(id: ID!, revision: ID!, input: EditOrgSeasonInput!): OrgSeason! "Create an OrgDivision selection — the per-org enablement of a group Division; requires the unrestricted capability." createOrgDivision(input: NewOrgDivisionInput!): OrgDivision! "Deactivate a OrgDivision by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateOrgDivision(id: ID!, revision: ID!, reason: String): OrgDivision! "Reactivate a OrgDivision by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateOrgDivision(id: ID!, revision: ID!, reason: String): OrgDivision! "Doom (terminal) a OrgDivision by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed OrgDivision is immutable + never deleted. The optional reason rides the transition events." doomOrgDivision(id: ID!, revision: ID!, reason: String): OrgDivision! "Edit a OrgDivision's editable fields — an ordinary revision, not a state change; a doomed OrgDivision cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateOrgDivision(id: ID!, revision: ID!, input: EditOrgDivisionInput!): OrgDivision! "Create an OrgVendor selection — the per-org enablement of a group Vendor; requires the unrestricted capability." createOrgVendor(input: NewOrgVendorInput!): OrgVendor! "Deactivate a OrgVendor by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateOrgVendor(id: ID!, revision: ID!, reason: String): OrgVendor! "Reactivate a OrgVendor by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateOrgVendor(id: ID!, revision: ID!, reason: String): OrgVendor! "Doom (terminal) a OrgVendor by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed OrgVendor is immutable + never deleted. The optional reason rides the transition events." doomOrgVendor(id: ID!, revision: ID!, reason: String): OrgVendor! "Edit a OrgVendor's editable fields — an ordinary revision, not a state change; a doomed OrgVendor cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateOrgVendor(id: ID!, revision: ID!, input: EditOrgVendorInput!): OrgVendor! "Create a Style in the caller's org group; requires the unrestricted capability." createStyle(input: NewStyleInput!): Style! "Deactivate a Style by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateStyle(id: ID!, revision: ID!, reason: String): Style! "Reactivate a Style by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateStyle(id: ID!, revision: ID!, reason: String): Style! "Doom (terminal) a Style by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Style is immutable + never deleted. The optional reason rides the transition events." doomStyle(id: ID!, revision: ID!, reason: String): Style! "Edit a Style's editable fields — an ordinary revision, not a state change; a doomed Style cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. A supplied scheme replaces wholesale but is refused once any Product exists; brandId and sizeRunId clear with explicit null; the other lists replace wholesale (empty releases) — every supplied entry re-gated like create." updateStyle(id: ID!, revision: ID!, input: EditStyleInput!): Style! "Create a Product under a Style in the caller's org group; requires the unrestricted capability." createProduct(input: NewProductInput!): Product! "Deactivate a Product by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateProduct(id: ID!, revision: ID!, reason: String): Product! "Reactivate a Product by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateProduct(id: ID!, revision: ID!, reason: String): Product! "Doom (terminal) a Product by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Product is immutable + never deleted. The optional reason rides the transition events." doomProduct(id: ID!, revision: ID!, reason: String): Product! "Edit a Product's editable fields — an ordinary revision, not a state change; a doomed Product cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. A supplied segment is no-orphan-gated (every non-doomed variant must remain inside it); a supplied rrp keeps at least 1 entry and stays floor-gated under live selections." updateProduct(id: ID!, revision: ID!, input: EditProductInput!): Product! "Create a Variant under a Product in the caller's org group; requires the unrestricted capability." createVariant(input: NewVariantInput!): Variant! "Deactivate a Variant by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateVariant(id: ID!, revision: ID!, reason: String): Variant! "Reactivate a Variant by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateVariant(id: ID!, revision: ID!, reason: String): Variant! "Doom (terminal) a Variant by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Variant is immutable + never deleted. The optional reason rides the transition events." doomVariant(id: ID!, revision: ID!, reason: String): Variant! "Edit a Variant's editable fields — an ordinary revision, not a state change; a doomed Variant cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateVariant(id: ID!, revision: ID!, input: EditVariantInput!): Variant! "Create an OrgStyle selection — the per-org enablement of a group Style; requires the unrestricted capability." createOrgStyle(input: NewOrgStyleInput!): OrgStyle! "Deactivate a OrgStyle by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateOrgStyle(id: ID!, revision: ID!, reason: String): OrgStyle! "Reactivate a OrgStyle by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateOrgStyle(id: ID!, revision: ID!, reason: String): OrgStyle! "Doom (terminal) a OrgStyle by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed OrgStyle is immutable + never deleted. The optional reason rides the transition events." doomOrgStyle(id: ID!, revision: ID!, reason: String): OrgStyle! "Edit a OrgStyle's editable fields — an ordinary revision, not a state change; a doomed OrgStyle cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateOrgStyle(id: ID!, revision: ID!, input: EditOrgStyleInput!): OrgStyle! "Create a ProductRelation — a typed, directed, ranked suggestion edge; requires the unrestricted capability." createProductRelation(input: NewProductRelationInput!): ProductRelation! "Deactivate a ProductRelation by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateProductRelation(id: ID!, revision: ID!, reason: String): ProductRelation! "Reactivate a ProductRelation by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateProductRelation(id: ID!, revision: ID!, reason: String): ProductRelation! "Doom (terminal) a ProductRelation by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed ProductRelation is immutable + never deleted. The optional reason rides the transition events." doomProductRelation(id: ID!, revision: ID!, reason: String): ProductRelation! "Edit a ProductRelation's editable fields — an ordinary revision, not a state change; a doomed ProductRelation cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateProductRelation(id: ID!, revision: ID!, input: EditProductRelationInput!): ProductRelation! "Create a Collection in the caller's org group; requires the unrestricted capability." createCollection(input: NewCollectionInput!): Collection! "Deactivate a Collection by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateCollection(id: ID!, revision: ID!, reason: String): Collection! "Reactivate a Collection by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateCollection(id: ID!, revision: ID!, reason: String): Collection! "Doom (terminal) a Collection by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Collection is immutable + never deleted. The optional reason rides the transition events." doomCollection(id: ID!, revision: ID!, reason: String): Collection! "Edit a Collection's editable fields — an ordinary revision, not a state change; a doomed Collection cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateCollection(id: ID!, revision: ID!, input: EditCollectionInput!): Collection! "Create a CollectionMember — one curated membership/pin edge; requires the unrestricted capability." createCollectionMember(input: NewCollectionMemberInput!): CollectionMember! "Doom (terminal) a CollectionMember by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed CollectionMember is immutable + never deleted. The optional reason rides the transition events." doomCollectionMember(id: ID!, revision: ID!, reason: String): CollectionMember! "Edit a CollectionMember's editable fields — an ordinary revision, not a state change; a doomed CollectionMember cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateCollectionMember(id: ID!, revision: ID!, input: EditCollectionMemberInput!): CollectionMember! "Create a VariantComponent — one BOM edge; requires the unrestricted capability." createVariantComponent(input: NewVariantComponentInput!): VariantComponent! "Doom (terminal) a VariantComponent by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed VariantComponent is immutable + never deleted. The optional reason rides the transition events." doomVariantComponent(id: ID!, revision: ID!, reason: String): VariantComponent! "Edit a VariantComponent's editable fields — an ordinary revision, not a state change; a doomed VariantComponent cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateVariantComponent(id: ID!, revision: ID!, input: EditVariantComponentInput!): VariantComponent! "Create an InventoryItem — the explicit stock junction; requires the unrestricted capability." createInventoryItem(input: NewInventoryItemInput!): InventoryItem! "Deactivate a InventoryItem by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateInventoryItem(id: ID!, revision: ID!, reason: String): InventoryItem! "Reactivate a InventoryItem by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateInventoryItem(id: ID!, revision: ID!, reason: String): InventoryItem! "Doom (terminal) a InventoryItem by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed InventoryItem is immutable + never deleted. The optional reason rides the transition events." doomInventoryItem(id: ID!, revision: ID!, reason: String): InventoryItem! "Edit a InventoryItem's editable fields — an ordinary revision, not a state change; a doomed InventoryItem cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateInventoryItem(id: ID!, revision: ID!, input: EditInventoryItemInput!): InventoryItem! "Create a SalePrice — the splice insert; requires the unrestricted capability." createSalePrice(input: NewSalePriceInput!): SalePrice! "Cancel a scheduled SalePrice window: allowed only while the record is not yet effective (now < startAt). An effective or lapsed window is immutable price history — CONFLICT/IMMUTABLE naming startAt vs now; supersede it with a new window instead. Requires the current revision + the unrestricted capability; the record is kept, excluded from the schedule." doomSalePrice(id: ID!, revision: ID!, reason: String): SalePrice! "Edit a SalePrice's editable fields — an ordinary revision, not a state change; a doomed SalePrice cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateSalePrice(id: ID!, revision: ID!, input: EditSalePriceInput!): SalePrice! "Edit a Transfer's editable fields — an ordinary revision, not a state change; a doomed Transfer cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateTransfer(id: ID!, revision: ID!, input: EditTransferInput!): Transfer! "Edit a TransferRequest's editable fields — an ordinary revision, not a state change; a doomed TransferRequest cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateTransferRequest(id: ID!, revision: ID!, input: EditTransferRequestInput!): TransferRequest! "Edit a Count's editable fields — an ordinary revision, not a state change; a doomed Count cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateCount(id: ID!, revision: ID!, input: EditCountInput!): Count! "Create a Contact in the caller's org group; requires the unrestricted capability." createContact(input: NewContactInput!): Contact! "Deactivate a Contact by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateContact(id: ID!, revision: ID!, reason: String): Contact! "Reactivate a Contact by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateContact(id: ID!, revision: ID!, reason: String): Contact! "Doom (terminal) a Contact by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Contact is immutable + never deleted. The optional reason rides the transition events." doomContact(id: ID!, revision: ID!, reason: String): Contact! "Edit a Contact's editable fields — an ordinary revision, not a state change; a doomed Contact cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateContact(id: ID!, revision: ID!, input: EditContactInput!): Contact! "Create a ContactAssignment — one role-tagged contact attachment; requires the unrestricted capability." createContactAssignment(input: NewContactAssignmentInput!): ContactAssignment! "Doom (terminal) a ContactAssignment by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed ContactAssignment is immutable + never deleted. The optional reason rides the transition events." doomContactAssignment(id: ID!, revision: ID!, reason: String): ContactAssignment! "Edit a ContactAssignment's editable fields — an ordinary revision, not a state change; a doomed ContactAssignment cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateContactAssignment(id: ID!, revision: ID!, input: EditContactAssignmentInput!): ContactAssignment! "Create a WarrantyTerms policy template in the caller's org group; requires the unrestricted capability." createWarrantyTerms(input: NewWarrantyTermsInput!): WarrantyTerms! "Deactivate a WarrantyTerms by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateWarrantyTerms(id: ID!, revision: ID!, reason: String): WarrantyTerms! "Reactivate a WarrantyTerms by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateWarrantyTerms(id: ID!, revision: ID!, reason: String): WarrantyTerms! "Doom (terminal) a WarrantyTerms by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed WarrantyTerms is immutable + never deleted. The optional reason rides the transition events." doomWarrantyTerms(id: ID!, revision: ID!, reason: String): WarrantyTerms! "Edit a WarrantyTerms's editable fields — an ordinary revision, not a state change; a doomed WarrantyTerms cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateWarrantyTerms(id: ID!, revision: ID!, input: EditWarrantyTermsInput!): WarrantyTerms! "Edit a Warranty's editable fields — an ordinary revision, not a state change; a doomed Warranty cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateWarranty(id: ID!, revision: ID!, input: EditWarrantyInput!): Warranty! "Create an OrgVendorItem — one (orgVendor × variant) purchasing junction; requires the unrestricted capability." createOrgVendorItem(input: NewOrgVendorItemInput!): OrgVendorItem! "Deactivate a OrgVendorItem by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateOrgVendorItem(id: ID!, revision: ID!, reason: String): OrgVendorItem! "Reactivate a OrgVendorItem by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateOrgVendorItem(id: ID!, revision: ID!, reason: String): OrgVendorItem! "Doom (terminal) a OrgVendorItem by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed OrgVendorItem is immutable + never deleted. The optional reason rides the transition events." doomOrgVendorItem(id: ID!, revision: ID!, reason: String): OrgVendorItem! "Edit a OrgVendorItem's editable fields — an ordinary revision, not a state change; a doomed OrgVendorItem cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateOrgVendorItem(id: ID!, revision: ID!, input: EditOrgVendorItemInput!): OrgVendorItem! "Edit a PurchaseOrder's editable fields — an ordinary revision, not a state change; a doomed PO cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updatePurchaseOrder(id: ID!, revision: ID!, input: EditPurchaseOrderInput!): PurchaseOrder! "Edit a Receipt's editable fields — an ordinary revision, not a state change; a doomed Receipt cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateReceipt(id: ID!, revision: ID!, input: EditReceiptInput!): Receipt! "Edit a Rtv's editable fields — an ordinary revision, not a state change; a doomed RTV cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateRtv(id: ID!, revision: ID!, input: EditRtvInput!): Rtv! "Edit a VendorInvoice's editable fields — an ordinary revision, not a state change; a doomed VI cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateVendorInvoice(id: ID!, revision: ID!, input: EditVendorInvoiceInput!): VendorInvoice! "Create a PurchasePack — one packaging definition on a variant; requires the unrestricted capability." createPurchasePack(input: NewPurchasePackInput!): PurchasePack! "Deactivate a PurchasePack by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivatePurchasePack(id: ID!, revision: ID!, reason: String): PurchasePack! "Reactivate a PurchasePack by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivatePurchasePack(id: ID!, revision: ID!, reason: String): PurchasePack! "Doom (terminal) a PurchasePack by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed PurchasePack is immutable + never deleted. The optional reason rides the transition events." doomPurchasePack(id: ID!, revision: ID!, reason: String): PurchasePack! "Edit a PurchasePack's editable fields — an ordinary revision, not a state change; a doomed PurchasePack cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updatePurchasePack(id: ID!, revision: ID!, input: EditPurchasePackInput!): PurchasePack! "Create a ReplenishmentConfig — one cell of the planning parameter matrix; requires the unrestricted capability." createReplenishmentConfig(input: NewReplenishmentConfigInput!): ReplenishmentConfig! "Deactivate a ReplenishmentConfig by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateReplenishmentConfig(id: ID!, revision: ID!, reason: String): ReplenishmentConfig! "Reactivate a ReplenishmentConfig by id. Re-runs the write-time collision gate: an active same-tuple sibling setting an intersecting parameter refuses CONFLICT/IDENTITY_TAKEN naming the holder + the intersection. Requires the current `revision` and accepts an optional `reason`." reactivateReplenishmentConfig(id: ID!, revision: ID!, reason: String): ReplenishmentConfig! "Doom (terminal) a ReplenishmentConfig by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed ReplenishmentConfig is immutable + never deleted. The optional reason rides the transition events." doomReplenishmentConfig(id: ID!, revision: ID!, reason: String): ReplenishmentConfig! "Edit a ReplenishmentConfig's editable fields — an ordinary revision, not a state change; a doomed ReplenishmentConfig cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateReplenishmentConfig(id: ID!, revision: ID!, input: EditReplenishmentConfigInput!): ReplenishmentConfig! "Create a TransferLane — one directed source→destination sourcing declaration; requires the unrestricted capability." createTransferLane(input: NewTransferLaneInput!): TransferLane! "Deactivate a TransferLane by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateTransferLane(id: ID!, revision: ID!, reason: String): TransferLane! "Reactivate a TransferLane by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateTransferLane(id: ID!, revision: ID!, reason: String): TransferLane! "Doom (terminal) a TransferLane by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed TransferLane is immutable + never deleted. The optional reason rides the transition events." doomTransferLane(id: ID!, revision: ID!, reason: String): TransferLane! "Edit a TransferLane's editable fields — an ordinary revision, not a state change; a doomed TransferLane cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateTransferLane(id: ID!, revision: ID!, input: EditTransferLaneInput!): TransferLane! "Create a TaxRegistration — the org's nexus declaration for one jurisdiction; requires the unrestricted capability." createTaxRegistration(input: NewTaxRegistrationInput!): TaxRegistration! "Deactivate a TaxRegistration by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateTaxRegistration(id: ID!, revision: ID!, reason: String): TaxRegistration! "Reactivate a TaxRegistration by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateTaxRegistration(id: ID!, revision: ID!, reason: String): TaxRegistration! "Doom (terminal) a TaxRegistration by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed TaxRegistration is immutable + never deleted. The optional reason rides the transition events." doomTaxRegistration(id: ID!, revision: ID!, reason: String): TaxRegistration! "Edit a TaxRegistration's editable fields — an ordinary revision, not a state change; a doomed TaxRegistration cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateTaxRegistration(id: ID!, revision: ID!, input: EditTaxRegistrationInput!): TaxRegistration! "Capture an ExemptionCertificate; requires the unrestricted capability. The capture is immutable except caption/code/docRef — correct by revoke + re-capture (no revival from any terminal)." createExemptionCertificate(input: NewExemptionCertificateInput!): ExemptionCertificate! "Revoke an ExemptionCertificate by id; requires the unrestricted capability + the record's current revision. Terminal — no revival; re-capture a new cert. The optional reason rides the transition events." revokeExemptionCertificate(id: ID!, revision: ID!, reason: String): ExemptionCertificate! "Doom (terminal) a ExemptionCertificate by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed ExemptionCertificate is immutable + never deleted. The optional reason rides the transition events." doomExemptionCertificate(id: ID!, revision: ID!, reason: String): ExemptionCertificate! "Edit a ExemptionCertificate's editable fields — an ordinary revision, not a state change; a doomed ExemptionCertificate cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. A supplied orgCustomerId re-links the holder (re-gated in-tenant + non-doomed); explicit null unlinks it — unlinking frees a blocked holder doom." updateExemptionCertificate(id: ID!, revision: ID!, input: EditExemptionCertificateInput!): ExemptionCertificate! "Open an Order; requires the unrestricted capability." createOrder(input: NewOrderInput!): Order! "Park an open Order; requires the unrestricted capability + the record's current revision. Resumable via resumeOrder; the idle sweep abandons stale holds (dormant until the scheduler strand wires)." holdOrder(id: ID!, revision: ID!, reason: String): Order! "Resume a held Order to open; requires the unrestricted capability + the record's current revision." resumeOrder(id: ID!, revision: ID!, reason: String): Order! "Commit an open Order" placeOrder(id: ID!, revision: ID!, reason: String): Order! "Void an open Order; requires the unrestricted capability + the record's current revision. Terminal doomed-class — lists filter it; revival is a NEW Order." voidOrder(id: ID!, revision: ID!, reason: String): Order! "Cancel an Order per its profile: a placed sale cancels with per-line reservation release in THE transaction + the open-claims/tendered gates; a draft/quote cancels from draft or sent. Requires the unrestricted capability + the record's current revision. Terminal doomed-class — lists filter it." cancelOrder(id: ID!, revision: ID!, reason: String): Order! "Send a draft/quote to the customer. Content stays re-priceable until accepted. Requires the unrestricted capability + the record's current revision." sendOrder(id: ID!, revision: ID!, reason: String): Order! "Accept a sent draft/quote — the conversion: within the validity window (past validUntil refuses CONFLICT/EXPIRED — the policy:within_validity gate reads live while the scheduled expire edges sleep), ONE transaction mints a NEW sale Order born-placed from the doc verbatim AND flips this doc accepted with convertedOrderId to sourceDocumentId refs. An empty doc refuses VALIDATION/INVALID (the place empty-cart law). Requires the unrestricted capability + the record's current revision." acceptOrder(id: ID!, revision: ID!, reason: String): Order! "Edit a Order's editable fields — an ordinary revision, not a state change; a doomed Order cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. The birth-fixed fields (organizationId, channel, orderType, logicalFacilityId, currency) are not editable — void and open a new Order." updateOrder(id: ID!, revision: ID!, input: EditOrderInput!): Order! "Void an issued Invoice. The order's invoicedQty rollups un-stamp in THE transaction and the invoiceIds slot is removed; an invoice carrying non-voided CreditNotes/DebitNotes refuses CONFLICT/REFERENCED (void the notes first). Requires the unrestricted capability + the record's current revision. Terminal doomed-class — lists filter it." voidInvoice(id: ID!, revision: ID!, reason: String): Invoice! "Void an issued CreditNote. The invoice's notedBaseDeltaMinor rollups un-stamp in THE transaction. Requires the unrestricted capability + the record's current revision. Terminal doomed-class — lists filter it." voidCreditNote(id: ID!, revision: ID!, reason: String): CreditNote! "Void an issued DebitNote. The invoice's notedBaseDeltaMinor rollups un-stamp in THE transaction. Requires the unrestricted capability + the record's current revision. Terminal doomed-class — lists filter it." voidDebitNote(id: ID!, revision: ID!, reason: String): DebitNote! "Request a Return; requires the unrestricted capability." createReturn(input: NewReturnInput!): Return! "Approve a requested Return; requires the unrestricted capability + the record's current revision." approveReturn(id: ID!, revision: ID!, reason: String): Return! "Reject a requested Return; requires the unrestricted capability + the record's current revision." rejectReturn(id: ID!, revision: ID!, reason: String): Return! "Cancel a Return before processing; requires the unrestricted capability + the record's current revision." cancelReturn(id: ID!, revision: ID!, reason: String): Return! "Finalize a refunded Return; requires the unrestricted capability + the record's current revision." closeReturn(id: ID!, revision: ID!, reason: String): Return! "Edit a Return's editable fields — an ordinary revision, not a state change; a doomed Return cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. The birth-fixed refs (orderId, invoiceId, logicalFacilityId) are not editable — cancel and request a new Return." updateReturn(id: ID!, revision: ID!, input: EditReturnInput!): Return! "Create a Register — a logical till position at an LF; requires the unrestricted capability." createRegister(input: NewRegisterInput!): Register! "Deactivate a Register by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateRegister(id: ID!, revision: ID!, reason: String): Register! "Reactivate a Register by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateRegister(id: ID!, revision: ID!, reason: String): Register! "Doom (terminal) a Register by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Register is immutable + never deleted. The optional reason rides the transition events." doomRegister(id: ID!, revision: ID!, reason: String): Register! "Edit a Register's editable fields — an ordinary revision, not a state change; a doomed Register cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateRegister(id: ID!, revision: ID!, input: EditRegisterInput!): Register! "Suspend an open TillSession; requires the unrestricted capability + the record's current revision." suspendTillSession(id: ID!, revision: ID!, reason: String): TillSession! "Resume a suspended TillSession; requires the unrestricted capability + the record's current revision." resumeTillSession(id: ID!, revision: ID!, reason: String): TillSession! "Begin the closing count; requires the unrestricted capability + the record's current revision." beginCloseTillSession(id: ID!, revision: ID!, reason: String): TillSession! "Force-close a TillSession without a proper count; requires the unrestricted capability + the record's current revision." forceCloseTillSession(id: ID!, revision: ID!, reason: String): TillSession! "Approve a pending ApprovalRequest: the approver's resolved tier rank must be ≥ requiredTier (AUTHZ/INSUFFICIENT) and the approver can never be the requester (AUTHZ/SELF_APPROVAL — strict, no relaxation); a TTL-expired pending refuses CONFLICT/EXPIRED and lazily expires. Requires the unrestricted capability + the record's current revision. On approval the requester retries the identical gated call — the retry consumes the approval by fingerprint." approveApprovalRequest(id: ID!, revision: ID!, reason: String): ApprovalRequest! "Deny a pending ApprovalRequest: the denier's resolved tier rank must be ≥ requiredTier (the face's forbidden form; detail carries the tiers); the fingerprint marker releases — the requester may mint a fresh request. Requires the unrestricted capability + the record's current revision." denyApprovalRequest(id: ID!, revision: ID!, reason: String): ApprovalRequest! "Cancel a pending ApprovalRequest; the fingerprint marker releases. Requires the unrestricted capability + the record's current revision." cancelApprovalRequest(id: ID!, revision: ID!, reason: String): ApprovalRequest! "Create an FxRate — the / splice insert; requires the unrestricted capability." createFxRate(input: NewFxRateInput!): FxRate! "Cancel a scheduled FxRate window: allowed only while the record is not yet effective (now < startAt). An effective or lapsed window is immutable rate history — CONFLICT/IMMUTABLE naming startAt vs now; supersede it with a new window instead. Requires the current revision + the unrestricted capability; the record is kept, excluded from resolution." doomFxRate(id: ID!, revision: ID!, reason: String): FxRate! "Edit a FxRate's editable fields — an ordinary revision, not a state change; a doomed FxRate cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateFxRate(id: ID!, revision: ID!, input: EditFxRateInput!): FxRate! "Create a Fulfillment; requires the unrestricted capability." createFulfillment(input: NewFulfillmentInput!): Fulfillment! "Start picking a pending Fulfillment: unreserved (pos-channel) lines gate on available stock at the fulfilling LF — insufficient refuses CONFLICT/BACKORDER; ecom lines already hold reserved claims and pass. Requires the unrestricted capability + the record’s current revision." startPickFulfillment(id: ID!, revision: ID!, reason: String): Fulfillment! "Pack a picking Fulfillment: stamps packedAt — the record becomes the Packing-List document node (the FF-… sysId is the document number; the immutable lines are the content). The verify_failed→CONFLICT/PACK_VERIFY form is -DORMANT (pack auto-passes until the pick/pack-verification policy builds). Requires the unrestricted capability + the current revision." packFulfillment(id: ID!, revision: ID!, reason: String): Fulfillment! "Stage a packed pickup Fulfillment: the goods await handover at the LF; no stock moves until handover. Requires the unrestricted capability + the current revision." stagePickupFulfillment(id: ID!, revision: ID!, reason: String): Fulfillment! "Hand over a staged pickup Fulfillment: ONE transaction relieves the claimed lines through the sell-relief lane (release of the ecom reserve rides it; COGS stamps at the current WMA), stamps the order line fulfilledQty rollups + both delivery vectors, and — when the order is also fully paid — completes it. The capture seam is declared-dormant. Requires the unrestricted capability + the current revision." handoverFulfillment(id: ID!, revision: ID!, reason: String): Fulfillment! "Cancel a Fulfillment before ship/stage: un-stamps the Order’s fulfillmentClaimedQty claims; after ship/stage the reverse flow is a Return. Requires the unrestricted capability + the current revision." cancelFulfillment(id: ID!, revision: ID!, reason: String): Fulfillment! "Authorize a created Payment: the created-zombie repair lane for an attempt whose applyTender request crashed between the mint and the ACK (the normal path drives this edge inside applyTender). Re-checks the order remainder live (a moved order refuses CONFLICT/OVER_TENDERED), fires the processor authorize post-commit-style (never inside a transaction), and on the ACK commits the Tender row + the Order rollup stamp + this flip in ONE transaction. A decline refuses PAYMENT/AUTH_DECLINED (retryable — try another instrument) and the ultimate-failure edge lands the payment failed. Requires the unrestricted capability + the record's current revision." authorizePayment(id: ID!, revision: ID!, reason: String): Payment! "Capture an authorized Payment: the manual repair lane when an automatic delivery-instant capture failed loudly — the policy:delivered guard demands the parent order fully delivered (fulfillmentState fulfilled; CONFLICT/REF_STATE otherwise). The processor capture fires first (never inside a transaction); the ACK drives captured (+ succeeded when the processor reports settled — the two-edge cascade). Failure refuses PAYMENT/CAPTURE_FAILED (retryable; the payment stays authorized). Requires the unrestricted capability + the current revision." capturePayment(id: ID!, revision: ID!, reason: String): Payment! "Cancel an authorized Payment: the order-cancel path's first step (cancelOrder refuses CONFLICT/TENDERED while deposit money is held — release here, then cancel). The processor release fires first; the ACK commits the flip + a negative reversal Tender row + the Order rollup stamp in ONE transaction. A captured payment refuses CONFLICT/IN_PROGRESS. Requires the unrestricted capability + the current revision." cancelPayment(id: ID!, revision: ID!, reason: String): Payment! "Void an authorized Payment: the merchant voids the authorization — same release + reversal-tender shape as cancel (the flip + the negative Tender row + the Order rollup stamp in ONE transaction), distinct terminal for the audit story. A captured payment has no void edge. Requires the unrestricted capability + the current revision." voidPayment(id: ID!, revision: ID!, reason: String): Payment! "Accept (concede) a Dispute: the processor close fires first (post /v1/disputes/:id/close — never inside a transaction; a processor refusal is CONFLICT/RECONCILE, retryable), then the flip commits. The withdrawn funds stay withdrawn — reports-only impact. Requires the unrestricted capability + the record's current revision." acceptDispute(id: ID!, revision: ID!, reason: String): Dispute! "Create a Promotion in the caller's org group; requires the unrestricted capability." createPromotion(input: NewPromotionInput!): Promotion! "Deactivate a Promotion by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivatePromotion(id: ID!, revision: ID!, reason: String): Promotion! "Reactivate an inactive Promotion; requires the unrestricted capability + the record's current revision. Re-gated by the active bound." reactivatePromotion(id: ID!, revision: ID!, reason: String): Promotion! "Doom (terminal) a Promotion by id, within the caller's org group; requires the unrestricted capability + the record's current revision. The referential-integrity guard blocks while NON-doomed trigger Coupons reference it; deactivate stays free. NO doom-time enumeration of open orders — stored engine entries self-heal at the next recompute and place re-validates." doomPromotion(id: ID!, revision: ID!, reason: String): Promotion! "Edit a Promotion's editable fields — an ordinary revision, not a state change; a doomed Promotion cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updatePromotion(id: ID!, revision: ID!, input: EditPromotionInput!): Promotion! "Create a Coupon in the caller's org group; requires the unrestricted capability." createCoupon(input: NewCouponInput!): Coupon! "Deactivate a Coupon; requires the unrestricted capability + the current revision." deactivateCoupon(id: ID!, revision: ID!, reason: String): Coupon! "Reactivate a Coupon by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateCoupon(id: ID!, revision: ID!, reason: String): Coupon! "Doom (terminal) a Coupon by id, within the caller's org group; requires the unrestricted capability + the record's current revision. Doom releases the org-group code namespace. NO doom-time enumeration of open orders holding the coupon — evaluation self-heals and place refuses a dead coupon CONFLICT/REF_STATE." doomCoupon(id: ID!, revision: ID!, reason: String): Coupon! "Edit a Coupon's editable fields — an ordinary revision, not a state change; a doomed Coupon cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateCoupon(id: ID!, revision: ID!, input: EditCouponInput!): Coupon! "Create a StoredValueInstrument directly in the caller's org group." createStoredValueInstrument(input: NewStoredValueInstrumentInput!): StoredValueInstrument! "Doom (terminal) a StoredValueInstrument by id, within the caller's org group; requires the unrestricted capability + the record's current revision. Gated by CONFLICT/BALANCE_OUTSTANDING while balanceMinor ≠ 0. The code marker stays burned forever." doomStoredValueInstrument(id: ID!, revision: ID!, reason: String): StoredValueInstrument! "Edit a StoredValueInstrument's editable fields — an ordinary revision, not a state change; a doomed SV cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateStoredValueInstrument(id: ID!, revision: ID!, input: EditStoredValueInstrumentInput!): StoredValueInstrument! "Create a LoyaltyProgram in the caller's org group." createLoyaltyProgram(input: NewLoyaltyProgramInput!): LoyaltyProgram! "Deactivate a LoyaltyProgram by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateLoyaltyProgram(id: ID!, revision: ID!, reason: String): LoyaltyProgram! "Reactivate a LoyaltyProgram by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateLoyaltyProgram(id: ID!, revision: ID!, reason: String): LoyaltyProgram! "Doom (terminal) a LoyaltyProgram by id, within the caller's org group; requires the unrestricted capability + the record's current revision. -GATED by non-doomed LoyaltyMembers. Deactivate is the free pause — a paused program simply stops earning/redeeming at the next evaluation." doomLoyaltyProgram(id: ID!, revision: ID!, reason: String): LoyaltyProgram! "Edit a LoyaltyProgram's editable fields — an ordinary revision, not a state change; a doomed LP cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateLoyaltyProgram(id: ID!, revision: ID!, input: EditLoyaltyProgramInput!): LoyaltyProgram! "Enroll a LoyaltyMember into a program in the caller's org group." createLoyaltyMember(input: NewLoyaltyMemberInput!): LoyaltyMember! "Deactivate a LoyaltyMember by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateLoyaltyMember(id: ID!, revision: ID!, reason: String): LoyaltyMember! "Reactivate a LoyaltyMember by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateLoyaltyMember(id: ID!, revision: ID!, reason: String): LoyaltyMember! "Doom (terminal) a LoyaltyMember by id, within the caller's org group; requires the unrestricted capability + the record's current revision. Gated by CONFLICT/BALANCE_OUTSTANDING while pointsBalance ≠ 0. The identity marker stays on the corpse and the next same-email enrollment takes it over (re-enrollable — the ≠-BURN contrast with instrument codes)." doomLoyaltyMember(id: ID!, revision: ID!, reason: String): LoyaltyMember! "Edit a LoyaltyMember's editable fields — an ordinary revision, not a state change; a doomed LM cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateLoyaltyMember(id: ID!, revision: ID!, input: EditLoyaltyMemberInput!): LoyaltyMember! "Create a CustomerPriceGroup in the caller's org group." createCustomerPriceGroup(input: NewCustomerPriceGroupInput!): CustomerPriceGroup! "Deactivate a CustomerPriceGroup by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateCustomerPriceGroup(id: ID!, revision: ID!, reason: String): CustomerPriceGroup! "Reactivate a CustomerPriceGroup by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateCustomerPriceGroup(id: ID!, revision: ID!, reason: String): CustomerPriceGroup! "Doom (terminal) a CustomerPriceGroup by id, within the caller's org group; requires the unrestricted capability + the record's current revision. -GATED by non-doomed LoyaltyMembers carrying the group. Deactivate is the free pause — a paused group's scoped promotions simply stop matching at the next evaluation." doomCustomerPriceGroup(id: ID!, revision: ID!, reason: String): CustomerPriceGroup! "Edit a CustomerPriceGroup's editable fields — an ordinary revision, not a state change; a doomed PG cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. A supplied priceListId re-gates like create (in-tenant + active + unscoped); explicit null clears it — the group plane goes silent." updateCustomerPriceGroup(id: ID!, revision: ID!, input: EditCustomerPriceGroupInput!): CustomerPriceGroup! "Create a MarkdownPlan in the caller's org group. The all-future/base/splice/cap gates run at schedule, not here." createMarkdownPlan(input: NewMarkdownPlanInput!): MarkdownPlan! "Edit a MarkdownPlan's editable fields — an ordinary revision, not a state change; a doomed MD cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateMarkdownPlan(id: ID!, revision: ID!, input: EditMarkdownPlanInput!): MarkdownPlan! "Create a CommissionConfig in the caller's org group." createCommissionConfig(input: NewCommissionConfigInput!): CommissionConfig! "Deactivate a CommissionConfig by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateCommissionConfig(id: ID!, revision: ID!, reason: String): CommissionConfig! "Reactivate a CommissionConfig by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateCommissionConfig(id: ID!, revision: ID!, reason: String): CommissionConfig! "Doom (terminal) a CommissionConfig by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed CG is immutable + never deleted. The optional reason rides the transition events." doomCommissionConfig(id: ID!, revision: ID!, reason: String): CommissionConfig! "Edit a CommissionConfig's editable fields — an ordinary revision, not a state change; a doomed CG cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateCommissionConfig(id: ID!, revision: ID!, input: EditCommissionConfigInput!): CommissionConfig! "Create an Affiliate in the caller's org group." createAffiliate(input: NewAffiliateInput!): Affiliate! "Deactivate a Affiliate by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateAffiliate(id: ID!, revision: ID!, reason: String): Affiliate! "Reactivate a Affiliate by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateAffiliate(id: ID!, revision: ID!, reason: String): Affiliate! "Doom (terminal) a Affiliate by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed AF is immutable + never deleted. The optional reason rides the transition events." doomAffiliate(id: ID!, revision: ID!, reason: String): Affiliate! "Edit a Affiliate's editable fields — an ordinary revision, not a state change; a doomed AF cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. A supplied consumerId re-gates like create (same-group + not-doomed); explicit null unlinks the shopper — the ref-only link drops, attribution/earning unaffected." updateAffiliate(id: ID!, revision: ID!, input: EditAffiliateInput!): Affiliate! "Create a CorporateCustomer in the caller's org group; requires the unrestricted capability." createCorporateCustomer(input: NewCorporateCustomerInput!): CorporateCustomer! "Deactivate a CorporateCustomer by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateCorporateCustomer(id: ID!, revision: ID!, reason: String): CorporateCustomer! "Reactivate a CorporateCustomer by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateCorporateCustomer(id: ID!, revision: ID!, reason: String): CorporateCustomer! "Doom (terminal) a CorporateCustomer by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed CorporateCustomer is immutable + never deleted. The optional reason rides the transition events." doomCorporateCustomer(id: ID!, revision: ID!, reason: String): CorporateCustomer! "Edit a CorporateCustomer's editable fields — an ordinary revision, not a state change; a doomed CorporateCustomer cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateCorporateCustomer(id: ID!, revision: ID!, input: EditCorporateCustomerInput!): CorporateCustomer! "Create an OrgCustomer selection — the per-org B2B selling enablement of a group CorporateCustomer; requires the unrestricted capability." createOrgCustomer(input: NewOrgCustomerInput!): OrgCustomer! "Deactivate a OrgCustomer by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateOrgCustomer(id: ID!, revision: ID!, reason: String): OrgCustomer! "Reactivate a OrgCustomer by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateOrgCustomer(id: ID!, revision: ID!, reason: String): OrgCustomer! "Doom (terminal) a OrgCustomer by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed OrgCustomer is immutable + never deleted. The optional reason rides the transition events." doomOrgCustomer(id: ID!, revision: ID!, reason: String): OrgCustomer! "Edit a OrgCustomer's editable fields — an ordinary revision, not a state change; a doomed OrgCustomer cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateOrgCustomer(id: ID!, revision: ID!, input: EditOrgCustomerInput!): OrgCustomer! "Create a PriceList in the caller's org group." createPriceList(input: NewPriceListInput!): PriceList! "Deactivate a PriceList by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivatePriceList(id: ID!, revision: ID!, reason: String): PriceList! "Reactivate a PriceList by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivatePriceList(id: ID!, revision: ID!, reason: String): PriceList! "Doom (terminal) a PriceList by id, within the caller's org group; requires the unrestricted capability + the record's current revision. -GATED by non-doomed OrgCustomer/CustomerPriceGroup carriers; its OWN entries never block (they die with the plane at purge). Deactivate is the free pause — the plane simply falls through at the next capture." doomPriceList(id: ID!, revision: ID!, reason: String): PriceList! "Edit a PriceList's editable fields — an ordinary revision, not a state change; a doomed PB cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updatePriceList(id: ID!, revision: ID!, input: EditPriceListInput!): PriceList! "Create a PriceListEntry — the splice insert." createPriceListEntry(input: NewPriceListEntryInput!): PriceListEntry! "Cancel a scheduled PriceListEntry window: allowed only while the record is not yet effective (now < startAt). An effective or lapsed window is immutable price history — CONFLICT/IMMUTABLE naming startAt vs now; supersede it with a new window instead. Requires the current revision + the unrestricted capability; the record is kept, excluded from resolution." doomPriceListEntry(id: ID!, revision: ID!, reason: String): PriceListEntry! "Edit a PriceListEntry's editable fields — an ordinary revision, not a state change; a doomed PE cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updatePriceListEntry(id: ID!, revision: ID!, input: EditPriceListEntryInput!): PriceListEntry! "Create a Consumer in the caller's org group; requires the unrestricted capability. NO password argument — a staff-created Consumer has no self-service until resetConsumerPassword arms it." createConsumer(input: NewConsumerInput!): Consumer! "Suspend a Consumer: active → suspended. The consumer's sessions are NOT revoked — they go inert at their next resolve and restore on unsuspend within their deadlines. Requires the current revision + the unrestricted capability." suspendConsumer(id: ID!, revision: ID!, reason: String): Consumer! "Release a Consumer's suspension: suspended → active. Still-live sessions resume working at their next resolve (the inert-not-revoked law). Requires the current revision + the unrestricted capability." unsuspendConsumer(id: ID!, revision: ID!, reason: String): Consumer! "Erase a Consumer: active|suspended → doomed, the de-identification terminal. The (group × email) identity marker burns within the group (the email does NOT re-register — ≠ the member/affiliate takeover); sessions go inert at their next resolve; doomed drops from listings + search.: the erase scrubs before it dooms. Every ConsentRecord is doomed first (records first). Then the Consumer’s sales are walked — the whole Order family, projected, O(family) by design. A walk past the api’s deadline writes its progress row and answers CONFLICT/ERASE_FAILED retryable: call again, it resumes. Each sale’s captured block, ship-to and buyer names are scrubbed to ‘Erased customer’, with its invoice, return, store-credit, gift-card and fulfillment copies. Then the appointments, the gift registries and the loyalty membership. Last the Consumer’s own record, in the same write as the doom (the email a tombstone, the caption ‘Erased customer ’). The wire answers the doomed Consumer. The api logs ONE privacy_scrub line of counts. The merchant files the Consumer ref on fulfillPrivacyRequest. Requires the current revision + the unrestricted capability; template class (privacy & compliance — hand-derived v19)." eraseConsumer(id: ID!, revision: ID!, reason: String): Consumer! "Edit a Consumer's editable fields — an ordinary revision, not a state change; a doomed Consumer cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateConsumer(id: ID!, revision: ID!, input: EditConsumerInput!): Consumer! "Create a from-scratch ConsentPurpose in the caller's org group. Canned baselines are copied via copyCannedConsentPurpose instead. Template class (privacy & compliance — hand-derived v20)." createConsentPurpose(input: NewConsentPurposeInput!): ConsentPurpose! "Retire a ConsentPurpose: active → inactive. Resolution denies over an inactive purpose, so retire is fail-safe BY construction; standing ConsentRecords are untouched (proof preserved). The code marker holds (the code stays occupied — reactivate restores it). Requires the current revision + the unrestricted capability." deactivateConsentPurpose(id: ID!, revision: ID!, reason: String): ConsentPurpose! "Reactivate a ConsentPurpose by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateConsentPurpose(id: ID!, revision: ID!, reason: String): ConsentPurpose! "Doom (terminal) a ConsentPurpose: active|inactive → doomed. -GATED by the everReferenced write-once stamp — a purpose ever named by a consent decision refuses CONFLICT/REFERENCED (detail names the ConsentRecord type, id-less — the cardinality forbids listing walks; historical proof blocks forever, pre-purge; deactivate is the retire lane). A virgin purpose dooms freely; its code marker releases with the flip (reissuable — the org-code class). Requires the current revision + the unrestricted capability." doomConsentPurpose(id: ID!, revision: ID!, reason: String): ConsentPurpose! "Edit a ConsentPurpose's editable fields — an ordinary revision, not a state change; a doomed ConsentPurpose cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateConsentPurpose(id: ID!, revision: ID!, input: EditConsentPurposeInput!): ConsentPurpose! "Create a CsCase in the caller's org group. The consumer portal lane is openMyCase. Template class (ring & serve — cases are sales-floor work; hand-derived v21)." createCsCase(input: NewCsCaseInput!): CsCase! "Fire ONE declared caller transition on a CsCase: start · await_customer · resume · escalate · de_escalate · resolve · reopen_unresolved · close · cancel. Deny-by-default: an op whose edge is not declared from the case's current state refuses CONFLICT/FSM_TRANSITION_INVALID; resolve additionally requires the resolution block present. The optional reason rides the transition events. Template class with the cashier seat carved out (capture-tier keeps create/read/message only — hand-derived v21)." transitionCsCase(id: ID!, revision: ID!, op: CsCaseTransitionOp!, reason: String): CsCase! "Edit a CsCase's editable fields — an ordinary revision, not a state change; a doomed CS cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateCsCase(id: ID!, revision: ID!, input: EditCsCaseInput!): CsCase! "Create a GiftRegistry in the caller's org group. The consumer lane is createMyGiftRegistry. Template class (registry building is floor work — hand-derived v22)." createGiftRegistry(input: NewGiftRegistryInput!): GiftRegistry! "active → closed. Fulfillments still record on a closed registry; item mutations refuse (the registry must be active)." closeGiftRegistry(id: ID!, revision: ID!, reason: String): GiftRegistry! "closed|expired → doomed. Forbidden from active — close it or let it expire first." doomGiftRegistry(id: ID!, revision: ID!, reason: String): GiftRegistry! "Edit a GiftRegistry's editable fields — an ordinary revision, not a state change; a doomed GR cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateGiftRegistry(id: ID!, revision: ID!, input: EditGiftRegistryInput!): GiftRegistry! "Fire ONE declared caller transition on a Review: approve (pending → approved) · publish (approved → published; the ratified failure form is VALIDATION/INVALID @1060) · reject · remove. Deny-by-default: an op whose edge is not declared from the review's current state refuses CONFLICT/FSM_TRANSITION_INVALID — pending → published is forbidden. The optional reason rides the transition events. Template class (moderation = management judgment — manager/assoc_mgr only, hand-derived v22)." transitionReview(id: ID!, revision: ID!, op: ReviewTransitionOp!, reason: String): Review! "Open the caller's group's ONE TokenAccount. Opening the wallet arms the metering. Requires the unrestricted capability. Template class A16_BILLING (hand-derived v23)." createTokenAccount(input: NewTokenAccountInput!): TokenAccount! "active → inactive (pause the wallet: purchases/grants refuse CONFLICT/REF_STATE while paused; the rater still debits — usage happened; root adjustment/transfer correction lanes stay live). Reversible." deactivateTokenAccount(id: ID!, revision: ID!, reason: String): TokenAccount! "inactive → active (resume purchases/grants)." reactivateTokenAccount(id: ID!, revision: ID!, reason: String): TokenAccount! "inactive → doomed. The singleton marker is permanent: the group opens NO second wallet after doom — dooming the wallet permanently unbills the group (the metering arm disarms). Forbidden from active (deactivate first)." doomTokenAccount(id: ID!, revision: ID!, reason: String): TokenAccount! "Edit a TokenAccount's editable fields — an ordinary revision, not a state change; a doomed TA cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateTokenAccount(id: ID!, revision: ID!, input: EditTokenAccountInput!): TokenAccount! "Settlement is the webhook's. Requires the unrestricted capability. Template class A16_BILLING (hand-derived v23)." createTokenPurchase(input: NewTokenPurchaseInput!): TokenPurchase! "Create a Task in the caller's org group. Template class (internal work management — every staff tier files and works tasks; hand-derived v29)." createTask(input: NewTaskInput!): Task! "Fire ONE declared caller transition on a Task: start · unstart · complete · cancel · unpostpone. postpone is the ONE bespoke exception — it carries its own returnAt argument, so it rides the postponeTask mutation (realized.bespokeTransitionOps). Deny-by-default: an op whose edge is not declared from the task's current state refuses CONFLICT/FSM_TRANSITION_INVALID; requires the unrestricted capability + the record's current revision. The optional reason rides the transition events — and on a note-minted task every transition auto-appends ONE reply note under the origin root (the narrative law: the transition word + the reason verbatim, authored by the acting user; the scheduled return speaks as createdBy). Terminal transitions remove the task's user/team book rows in the same txn (the inbox self-prunes); postpone prunes them too (parking means quiet — the REF row stays), and the return re-mints them. Template class (hand-derived v29)." transitionTask(id: ID!, revision: ID!, op: TaskTransitionOp!, reason: String): Task! "Edit a Task's editable fields — an ordinary revision, not a state change; a doomed TK cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. A supplied reportTo re-gates like create (in-tenant + active); explicit null clears it — the task reports to nobody." updateTask(id: ID!, revision: ID!, input: EditTaskInput!): Task! "Create a Team in the caller's org group. Template class (org & group operational structure — team curation is management work; hand-derived v29)." createTeam(input: NewTeamInput!): Team! "active → inactive (retire the team from active use — reversible; its taskbook#team history stays readable)." deactivateTeam(id: ID!, revision: ID!, reason: String): Team! "inactive → active." reactivateTeam(id: ID!, revision: ID!, reason: String): Team! "active|inactive → doomed (terminal; refuses CONFLICT/REFERENCED while live tasks still name the team — the taskbook#team inbound-ref gate)." doomTeam(id: ID!, revision: ID!, reason: String): Team! "Edit a Team's editable fields — an ordinary revision, not a state change; a doomed TM cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. A supplied leadUserId re-gates like create (in-tenant + active + a member of the post-edit team); explicit null clears the lead — the standing lead-orphan refusal names this exact cure." updateTeam(id: ID!, revision: ID!, input: EditTeamInput!): Team! "Create a TaskLabel in the caller's org group. Template class (org & group operational structure — vocabulary curation is management work; hand-derived v29)." createTaskLabel(input: NewTaskLabelInput!): TaskLabel! "active → inactive (retire the label — reversible; tasks already carrying it keep it)." deactivateTaskLabel(id: ID!, revision: ID!, reason: String): TaskLabel! "inactive → active." reactivateTaskLabel(id: ID!, revision: ID!, reason: String): TaskLabel! "active|inactive → doomed (terminal; refuses CONFLICT/REFERENCED while live tasks still carry the label)." doomTaskLabel(id: ID!, revision: ID!, reason: String): TaskLabel! "Edit a TaskLabel's editable fields — an ordinary revision, not a state change; a doomed LB cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateTaskLabel(id: ID!, revision: ID!, input: EditTaskLabelInput!): TaskLabel! "active → suspended — the manager-imposed kill switch; instantly revocable via reactivate. Compose with revokeAllDeviceSessions to also kill the live sessions." suspendDevice(id: ID!, revision: ID!, reason: String): Device! "suspended → active (the kill-switch release)." reactivateDevice(id: ID!, revision: ID!, reason: String): Device! "pending_pairing|active|suspended → doomed (decommission — terminal; the hardware returns as a NEW enrollment). From active/suspended the gate refuses CONFLICT/REFERENCED while the paired Register has a live TillSession (open/suspended/counting)." doomDevice(id: ID!, revision: ID!, reason: String): Device! "Edit a Device's editable fields — an ordinary revision, not a state change; a doomed Device cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateDevice(id: ID!, revision: ID!, input: EditDeviceInput!): Device! "Create a DevicePeripheral on a Device. A card_reader+network create also registers the smart reader with Stripe on the org's connected account. Template class A3_DEVICE." createDevicePeripheral(input: NewDevicePeripheralInput!): DevicePeripheral! "Deactivate a DevicePeripheral by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateDevicePeripheral(id: ID!, revision: ID!, reason: String): DevicePeripheral! "Reactivate a DevicePeripheral by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateDevicePeripheral(id: ID!, revision: ID!, reason: String): DevicePeripheral! "Doom (terminal) a DevicePeripheral by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed Peripheral is immutable + never deleted. The optional reason rides the transition events." doomDevicePeripheral(id: ID!, revision: ID!, reason: String): DevicePeripheral! "Edit a DevicePeripheral's editable fields — an ordinary revision, not a state change; a doomed Peripheral cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateDevicePeripheral(id: ID!, revision: ID!, input: EditDevicePeripheralInput!): DevicePeripheral! "active → doomed. The scheduled expiry needs no op; reach loss needs no op either (live-derivation — removing the minter’s ownership kills the key’s reach instantly)." doomApiKey(id: ID!, revision: ID!, reason: String): ApiKey! "Edit a ApiKey's editable fields — an ordinary revision, not a state change; a doomed ApiKey cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateApiKey(id: ID!, revision: ID!, input: EditApiKeyInput!): ApiKey! "Create a Scratchpad in the caller's org group. Template class (universal staff work — the Task row's class; hand-derived v66)." createScratchpad(input: NewScratchpadInput!): Scratchpad! "ready holds the plan for human review (refuses VALIDATION/INVALID on an empty plan); reopen returns it to draft for editing; approve pins the plan revision (refuses VALIDATION/INVALID while ANY step is marked, and AUTHZ/FORBIDDEN when the approver's own capability could not run every step — the preview≡enforcement pre-check, evaluated strict); abandon closes without (full) realization — constructs already born live ON (born records are real; the stamps keep the provenance)." transitionScratchpad(id: ID!, revision: ID!, op: ScratchpadTransitionOp!, reason: String): Scratchpad! "Edit a Scratchpad's editable fields — an ordinary revision, not a state change; a doomed SD cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateScratchpad(id: ID!, revision: ID!, input: EditScratchpadInput!): Scratchpad! "Decline an open Suggestion: the reason is required and is stored on the record with the flip — Aldric's learning signal. Enforces the offer law (you can only decline what your own capability could run — AUTHZ/FORBIDDEN naming the steps otherwise) and the lazy expiry. Requires the unrestricted capability + the record's current revision. A declined finding never reopens — a changed condition mints a fresh suggestion." declineSuggestion(id: ID!, revision: ID!, reason: String!): Suggestion! "park stops the generator for the org (the refresh engine skips parked schemas); reactivate resumes it; doom is the deliberate permanent kill — parked-first (active→doomed is documentedForbidden) and refused CONFLICT/REFERENCED while open suggestions still cite the schema (close them first); a doomed schema never re-ensures. Requires the unrestricted capability + the record's current revision." transitionSuggestionSchema(id: ID!, revision: ID!, op: SuggestionSchemaTransitionOp!, reason: String): SuggestionSchema! "Create a Consultation in the caller's org group. Template class (universal staff work — the Scratchpad row's class)." createConsultation(input: NewConsultationInput!): Consultation! "archive parks the record read-only; reopen brings an archived conversation back to open (gated by the ≤10-open cap like a birth — the refusal names the cap and the cure); discard dooms it from open OR archived (lists drop; purge still owns deletion). The retired word close is refused typed. The turn tier: 90 days after archiving the transcript moves to the archive bucket — consultationTurns reads it whole across the tier, a take then needs a reopen first, and reopen brings the rows back." transitionConsultation(id: ID!, revision: ID!, op: ConsultationTransitionOp!, reason: String): Consultation! "Edit a Consultation's editable fields — an ordinary revision, not a state change; a doomed CI cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateConsultation(id: ID!, revision: ID!, input: EditConsultationInput!): Consultation! "Deactivate a WebhookSubscription by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." deactivateWebhookSubscription(id: ID!, revision: ID!, reason: String): WebhookSubscription! "inactive → active AND suspended → active (ONE op, two declared edges — the merchant repair flow: fix the target URL via update, then reactivate; reactivation clears suspendedAt + the failure counter and does NOT replay missed events — the receiver re-syncs via the API)." reactivateWebhookSubscription(id: ID!, revision: ID!, reason: String): WebhookSubscription! "active/inactive/suspended → doomed." doomWebhookSubscription(id: ID!, revision: ID!, reason: String): WebhookSubscription! "Edit a WebhookSubscription's editable fields — an ordinary revision, not a state change; a doomed WH cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateWebhookSubscription(id: ID!, revision: ID!, input: EditWebhookSubscriptionInput!): WebhookSubscription! "Register a Plugin declaration; requires the unrestricted capability." createPlugin(input: NewPluginInput!): Plugin! "Deactivate a Plugin by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivatePlugin(id: ID!, revision: ID!, reason: String): Plugin! "Reactivate a Plugin by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivatePlugin(id: ID!, revision: ID!, reason: String): Plugin! "active/inactive → doomed." doomPlugin(id: ID!, revision: ID!, reason: String): Plugin! "Edit a Plugin's editable fields — an ordinary revision, not a state change; a doomed PN cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updatePlugin(id: ID!, revision: ID!, input: EditPluginInput!): Plugin! "Create an OrgPlugin selection — the per-org enablement of a group Plugin; requires the unrestricted capability." createOrgPlugin(input: NewOrgPluginInput!): OrgPlugin! "Deactivate a OrgPlugin by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateOrgPlugin(id: ID!, revision: ID!, reason: String): OrgPlugin! "Reactivate a OrgPlugin by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateOrgPlugin(id: ID!, revision: ID!, reason: String): OrgPlugin! "Doom (terminal) a OrgPlugin by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed OrgPlugin is immutable + never deleted. The optional reason rides the transition events." doomOrgPlugin(id: ID!, revision: ID!, reason: String): OrgPlugin! "Edit a OrgPlugin's editable fields — an ordinary revision, not a state change; a doomed OrgPlugin cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateOrgPlugin(id: ID!, revision: ID!, input: EditOrgPluginInput!): OrgPlugin! "Deactivate a FeedSubscription by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." deactivateFeedSubscription(id: ID!, revision: ID!, reason: String): FeedSubscription! "inactive → active AND suspended → active (ONE op, two declared edges — the merchant repair flow: fix the feed via update, then reactivate; reactivation clears suspendedAt + the failure counter and does NOT run catch-up exports — the next run is the next cadence step)." reactivateFeedSubscription(id: ID!, revision: ID!, reason: String): FeedSubscription! "active/inactive/suspended → doomed." doomFeedSubscription(id: ID!, revision: ID!, reason: String): FeedSubscription! "Edit a FeedSubscription's editable fields — an ordinary revision, not a state change; a doomed FD cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateFeedSubscription(id: ID!, revision: ID!, input: EditFeedSubscriptionInput!): FeedSubscription! "open → acknowledged. Requires the record’s current revision." acknowledgeFraudAlert(id: ID!, revision: ID!, reason: String): FraudAlert! "acknowledged → confirmed. The optional reason lands on the revision cause — the disposition trail." confirmFraudAlert(id: ID!, revision: ID!, reason: String): FraudAlert! "acknowledged → dismissed (a false positive — doomed terminal, drops from the listing; reachable by id + History). The reason is required and lands on the revision cause." dismissFraudAlert(id: ID!, revision: ID!, reason: String!): FraudAlert! "Record a received data-subject request. requestType/regime/channel are canned vocabularies. A supplied consumerId must exist in-group, ANY status (a doomed [de-identified] subject’s repeat request is recordable, then rejectable). A supplied subjectOrderId must be an in-group agent sale whose stored receipt token equals the supplied receiptToken. Every miss answers ONE opaque NOT_FOUND/CONSTRUCT; the token is never stored. Template class (privacy & compliance)." createPrivacyRequest(input: NewPrivacyRequestInput!): PrivacyRequest! "received → verified." verifyPrivacyRequest(id: ID!, revision: ID!, reason: String): PrivacyRequest! "received/verified → rejected (ONE op, two declared edges — the doomed terminal: drops from the listing, reachable by id + History). The reason is required and lands on the revision cause." rejectPrivacyRequest(id: ID!, revision: ID!, reason: String!): PrivacyRequest! "verified → in_progress (fulfillment underway via the existing ops — eraseConsumer / exports / edits; the register never executes). received → in_progress is forbidden: no unverified fulfillment." startPrivacyRequest(id: ID!, revision: ID!, reason: String): PrivacyRequest! "Create a PolicyValueRecord — the splice insert (the FxRate recipe); requires the unrestricted capability. Template class A18_POLICY (owner/manager — sensitive config)." createPolicyValueRecord(input: NewPolicyValueRecordInput!): PolicyValueRecord! "Cancel a scheduled PolicyValueRecord window: allowed only while the record is not yet effective (now < startAt). An effective or lapsed window is immutable policy history — CONFLICT/IMMUTABLE naming startAt vs now; supersede it with a new window instead. Requires the current revision + the unrestricted capability; the record is kept, excluded from resolution." doomPolicyValueRecord(id: ID!, revision: ID!, reason: String): PolicyValueRecord! "Edit a PolicyValueRecord's editable fields — an ordinary revision, not a state change; a doomed PolicyValue cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updatePolicyValueRecord(id: ID!, revision: ID!, input: EditPolicyValueRecordInput!): PolicyValueRecord! "Doom (terminal) a CouponBatch — voids the unredeemed children (attach refuses naming the batch; their code markers stay owned until the family purges — batch codes are never reissued, the campaign identity law) while redeemed history stands untouched. The parent coupon is untouched. Requires the unrestricted capability + the current revision." doomCouponBatch(id: ID!, revision: ID!, reason: String): CouponBatch! "Create a Segment in the caller's org group; requires the unrestricted capability. static = explicit membership (addSegmentMembers fills it); dynamic requires a predicate (refs gated in-tenant + active; unknown tier names refuse teaching the program's ladder) and materializes membership at refreshSegment." createSegment(input: NewSegmentInput!): Segment! "Deactivate a Segment by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateSegment(id: ID!, revision: ID!, reason: String): Segment! "Reactivate a Segment by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateSegment(id: ID!, revision: ID!, reason: String): Segment! "Doom (terminal) a Segment — the definition dies; the membership rows reap with the family purge (never readable again). Requires the unrestricted capability + the current revision." doomSegment(id: ID!, revision: ID!, reason: String): Segment! "Edit a Segment's editable fields — an ordinary revision, not a state change; a doomed Segment cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateSegment(id: ID!, revision: ID!, input: EditSegmentInput!): Segment! "Create a Dashboard in the caller's org group; requires the unrestricted capability." createDashboard(input: NewDashboardInput!): Dashboard! "Deactivate a Dashboard by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateDashboard(id: ID!, revision: ID!, reason: String): Dashboard! "Reactivate a Dashboard by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateDashboard(id: ID!, revision: ID!, reason: String): Dashboard! "Doom (terminal) a Dashboard — a layout carries no referents, so doom is always free. Requires the unrestricted capability + the current revision." doomDashboard(id: ID!, revision: ID!, reason: String): Dashboard! "Edit a Dashboard's editable fields — an ordinary revision, not a state change; a doomed Dashboard cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateDashboard(id: ID!, revision: ID!, input: EditDashboardInput!): Dashboard! "Create a Report in the caller's org group; requires the unrestricted capability. ONE kind: a spec validates through the report gate — an unknown field or a plan the roster refuses answers VALIDATION naming the legal names; a catalogKey + params must name a ready-made report the caller may run (AUTHZ with the why otherwise) with parameters that bind (VALIDATION in the report's words otherwise)." createReport(input: NewReportInput!): Report! "Deactivate a Report by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateReport(id: ID!, revision: ID!, reason: String): Report! "Reactivate a Report by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateReport(id: ID!, revision: ID!, reason: String): Report! "Doom (terminal) a Report — a definition carries no referents, so doom is always free; a doomed report can no longer run. Requires the unrestricted capability + the current revision." doomReport(id: ID!, revision: ID!, reason: String): Report! "Edit a Report's editable fields — an ordinary revision, not a state change; a doomed Report cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateReport(id: ID!, revision: ID!, input: EditReportInput!): Report! "Create a Collaborator in the caller's org group; requires the unrestricted capability. NO password argument and NO invite in this response — issueCollaboratorInvite mints the show-once bootstrap token separately." createCollaborator(input: NewCollaboratorInput!): Collaborator! "Deactivate a Collaborator: active → inactive. The collaborator's sessions are NOT revoked — they go inert at their next resolve and restore on reactivate within their deadlines; an outstanding invite token stays stored but acceptCollaboratorInvite refuses on a non-active collaborator. Requires the current revision + the unrestricted capability." deactivateCollaborator(id: ID!, revision: ID!, reason: String): Collaborator! "Release a Collaborator's admin pause: inactive → active. Still-live sessions resume working at their next resolve (the inert-not-revoked law); an un-expired invite becomes acceptable again. Requires the current revision + the unrestricted capability." reactivateCollaborator(id: ID!, revision: ID!, reason: String): Collaborator! "Erase a Collaborator: active|inactive → doomed, the de-identification terminal. The (group × email) identity marker burns within the group (the email does NOT re-register — re-invite as a NEW Collaborator); sessions go inert at their next resolve; doomed drops from listings + search. v1 dooms the record + burns the marker; the PII scrub rides the ONE shared machinery (the Consumer posture verbatim — the erase failure form is evented + retryable: CONFLICT/ERASE_FAILED). Requires the current revision + the unrestricted capability; template class (privacy & compliance — the eraseConsumer class)." eraseCollaborator(id: ID!, revision: ID!, reason: String): Collaborator! "Edit a Collaborator's editable fields — an ordinary revision, not a state change; a doomed Collaborator cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateCollaborator(id: ID!, revision: ID!, input: EditCollaboratorInput!): Collaborator! "Create a SchedulableResource — a bookable staff/station/equipment entity at an LF; requires the unrestricted capability." createSchedulableResource(input: NewSchedulableResourceInput!): SchedulableResource! "Deactivate a SchedulableResource by id; requires the unrestricted capability + the record's current revision. The guard: a reserved booking (confirmed/in_progress Appointment — a live resbook row) refuses CONFLICT/REFERENCED naming the appointments; requested Appointments never block (they refuse honestly at their own confirm). The optional reason rides the transition events." deactivateSchedulableResource(id: ID!, revision: ID!, reason: String): SchedulableResource! "Reactivate a SchedulableResource by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateSchedulableResource(id: ID!, revision: ID!, reason: String): SchedulableResource! "Doom a SchedulableResource by id; requires the unrestricted capability + the record's current revision. The guard: a reserved booking (confirmed/in_progress Appointment) refuses CONFLICT/REFERENCED naming the appointments — cancel/complete them first; requested Appointments never block. The optional reason rides the transition events." doomSchedulableResource(id: ID!, revision: ID!, reason: String): SchedulableResource! "Edit a SchedulableResource's editable fields — an ordinary revision, not a state change; a doomed SchedulableResource cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateSchedulableResource(id: ID!, revision: ID!, input: EditSchedulableResourceInput!): SchedulableResource! "Request an Appointment; requires the unrestricted capability." createAppointment(input: NewAppointmentInput!): Appointment! "Confirm a requested Appointment. ONE transaction writes the resbook reservation rows + stamps noShowAt. The concurrent-confirm race window is the concurrent-online-sales class (disclosed — a serializing lock is a named growth). Requires the unrestricted capability + the record's current revision." confirmAppointment(id: ID!, revision: ID!, reason: String): Appointment! "Start a confirmed Appointment; requires the unrestricted capability + the record's current revision." startAppointment(id: ID!, revision: ID!, reason: String): Appointment! "Cancel an Appointment before it starts; requires the unrestricted capability + the record's current revision." cancelAppointment(id: ID!, revision: ID!, reason: String): Appointment! "Edit a Appointment's editable fields — an ordinary revision, not a state change; a doomed Appointment cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry. The state ladder rules the fields (requested = all; confirmed/in_progress = caption/customer/orderId only — reschedule moves windows); terminals refuse CONFLICT/IMMUTABLE." updateAppointment(id: ID!, revision: ID!, input: EditAppointmentInput!): Appointment! "Create a Storefront — the ecom DTC publish-config under an Organization; requires the unrestricted capability. Publishing is a separate strict door." createStorefront(input: NewStorefrontInput!): Storefront! "Publish a draft Storefront: THE INVALID_CONFIG gate re-validates the whole config record-aware (selling LF active · theme ∈ the roster · collections active · division active + channel-kind · category active — VALIDATION/INVALID naming the miss) AND the custom domain (when set) claims its global uniqueness marker in the same transaction — CONFLICT/IDENTITY_TAKEN if another published site holds the name (cross-tenant blind: the refusal names nothing foreign). v1 provisions NO serving infrastructure. Requires the unrestricted capability + the record's current revision." publishStorefront(id: ID!, revision: ID!, reason: String): Storefront! "Unpublish a published Storefront: the domain marker releases in the same transaction (the name becomes claimable); the config keeps standing for a later republish. The only road from published to doom runs through here. Requires the unrestricted capability + the record's current revision." unpublishStorefront(id: ID!, revision: ID!, reason: String): Storefront! "Republish an unpublished Storefront: the same invalid_config gate re-runs record-aware AND the domain (when set) re-claims its marker — another site may have taken the name since the unpublish (CONFLICT/IDENTITY_TAKEN). Requires the unrestricted capability + the record's current revision." republishStorefront(id: ID!, revision: ID!, reason: String): Storefront! "Doom a draft/unpublished Storefront: a published site never dooms in one step — unpublish first (the domain releases there). gate-protected (nothing references a Storefront v1 — the guard stands armed for future referrers). Requires the unrestricted capability + the record's current revision." doomStorefront(id: ID!, revision: ID!, reason: String): Storefront! "Edit a Storefront's editable fields — an ordinary revision, not a state change; a doomed Storefront cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateStorefront(id: ID!, revision: ID!, input: EditStorefrontInput!): Storefront! "Create the AgentChannel of an Organization; requires the unrestricted capability." createAgentChannel(input: NewAgentChannelInput!): AgentChannel! "Publish a draft AgentChannel: the completeness rule re-validates the whole config record-aware (at least one Collection listed · at least one fulfillment method · ship backed by ship-to countries AND at least one shipping card whose countries are all ship-to countries · a pickup method backed by at least one pickup location · at least one active allowed platform · every referenced record in-tenant and active); a gap refuses VALIDATION/INVALID naming it. From live, the protocol doors serve the profile and answer agent platforms." publishAgentChannel(id: ID!, revision: ID!, reason: String): AgentChannel! "Pause a live AgentChannel: the protocol doors answer unavailable with Retry-After and the profile hides checkout; the configuration stands for a later resume. The only road from live to doom runs through here (a live channel never vanishes in one step)." pauseAgentChannel(id: ID!, revision: ID!, reason: String): AgentChannel! "Resume a paused AgentChannel: the completeness rule re-runs record-aware (something referenced may have gone missing or inactive while paused — the resume refuses rather than serving a broken channel)." resumeAgentChannel(id: ID!, revision: ID!, reason: String): AgentChannel! "Doom a draft/paused AgentChannel: a live channel never dooms in one step — pause first. The one-per-org marker releases in the same transaction (the organization may create a fresh channel) and the private signing keys are reaped from the credential store (platforms still verifying with them must re-read the profile). gate-protected (nothing references an AgentChannel; the declared referenced form stands armed)." doomAgentChannel(id: ID!, revision: ID!, reason: String): AgentChannel! "Edit a AgentChannel's editable fields — an ordinary revision, not a state change; a doomed AgentChannel cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateAgentChannel(id: ID!, revision: ID!, input: EditAgentChannelInput!): AgentChannel! "Create a SizeRun in the caller's org group; requires the unrestricted capability. The fill is a read (sizeRunFill: a total 0..1000000000 spread by the fill rule)." createSizeRun(input: NewSizeRunInput!): SizeRun! "Deactivate a SizeRun by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateSizeRun(id: ID!, revision: ID!, reason: String): SizeRun! "Reactivate a SizeRun by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateSizeRun(id: ID!, revision: ID!, reason: String): SizeRun! "Doom (terminal) a SizeRun by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed SizeRun is immutable + never deleted. The optional reason rides the transition events." doomSizeRun(id: ID!, revision: ID!, reason: String): SizeRun! "Edit a SizeRun's editable fields — an ordinary revision, not a state change; a doomed SizeRun cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateSizeRun(id: ID!, revision: ID!, input: EditSizeRunInput!): SizeRun! "Create a TrainingRequirement in the caller's org group; requires the unrestricted capability and the training-manage right. courseKey must be a live play key (VALIDATION naming the courses otherwise); a second non-doomed rule for the same (roleTemplateKey, courseKey) refuses CONFLICT/IDENTITY_TAKEN; the org's rules are capped at 100 (CONFLICT/TRAINING_CAP)." createTrainingRequirement(input: NewTrainingRequirementInput!): TrainingRequirement! "Deactivate a TrainingRequirement by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards. The optional reason rides the transition events." deactivateTrainingRequirement(id: ID!, revision: ID!, reason: String): TrainingRequirement! "Reactivate a TrainingRequirement by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateTrainingRequirement(id: ID!, revision: ID!, reason: String): TrainingRequirement! "Doom (terminal) a TrainingRequirement (active|inactive→doomed) — certificates already issued stand; the rule simply stops binding anyone. Requires the unrestricted capability + the current revision." doomTrainingRequirement(id: ID!, revision: ID!, reason: String): TrainingRequirement! "Edit a TrainingRequirement's editable fields — an ordinary revision, not a state change; a doomed TrainingRequirement cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateTrainingRequirement(id: ID!, revision: ID!, input: EditTrainingRequirementInput!): TrainingRequirement! "Create a TrainingQuestion in the caller's org group; requires the unrestricted capability and the training-manage right. courseKey must be a live play key and stepN one of its steps (VALIDATION otherwise); a course's bank is capped at 60 non-doomed questions (CONFLICT/TRAINING_CAP). Born active — in the draw at once." createTrainingQuestion(input: NewTrainingQuestionInput!): TrainingQuestion! "Retire a TrainingQuestion from the draw (active→inactive) — kept, never asked, until reactivated; sittings already submitted keep their grades. Requires the unrestricted capability + the current revision." deactivateTrainingQuestion(id: ID!, revision: ID!, reason: String): TrainingQuestion! "Reactivate a TrainingQuestion by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the authority / occ guards. The optional reason rides the transition events." reactivateTrainingQuestion(id: ID!, revision: ID!, reason: String): TrainingQuestion! "Doom (terminal) a TrainingQuestion (active|inactive→doomed) — it never returns to the draw; sittings that drew it keep their grades against the stored draw. Requires the unrestricted capability + the current revision." doomTrainingQuestion(id: ID!, revision: ID!, reason: String): TrainingQuestion! "Edit a TrainingQuestion's editable fields — an ordinary revision, not a state change; a doomed TrainingQuestion cannot be edited (CONFLICT/IMMUTABLE). Refused while your organization's account is restricted. Send the record's current revision; a stale one is refused (CONFLICT/REVISION_STALE) — read again and retry." updateTrainingQuestion(id: ID!, revision: ID!, input: EditTrainingQuestionInput!): TrainingQuestion! }