Land the SDK series: #1145, #1140, #1154, #1153, #1147, #1151, #1150, #1148

Draft
JE
1d ago
+29660-3732

Integration branch for the SDK series: each constituent was reviewed on its own head; this branch merges them onto main in order, regenerates once, and carries only the integration fixes the merges needed.

Constituents in so far (head merged):

Still to fold in, once each is updated onto main by its own worker: #1151, #1150, #1148.

Integration fixes on this branch (beyond the merges and one make generate):

  • Swift: #1140's wire-date helpers (decodeWireInstant*, encodeWireInstant*, WireInstant) get package access so #1153's per-service modules can reach them, as decodePeople already does.
  • Swift tests: PageReadTests (#1139) imports BasecampCore for parseTotalCountIfPresent under #1153's split.

Draft: not for merging until a person's word on landing the batch.


Summary by cubic

Integration branch landing five reviewed SDK series onto main, merged in order with one regeneration: walks' pagination pins in every conformance runner, typed dates and open enums across all seven SDKs, an openapi.json third-party generators accept, the Swift package split into one target per service, and Kotlin's engine-less packaging.

  • Walks leave a page of 0 or less off the first request, resolve a next link against the URL that answered, and refuse a continuation from another origin or path; a 304 page read restores Link and X-Total-Count the 304 omits. Conformance runners assert a first-request query is absent, count requests to a second mock origin, and reject an unresolved header token before dispatch.
  • The spec marks instants vs calendar dates, and ten status and kind sets are open enums that keep an unknown string through decode and re-encode it unchanged. Go prefixes every enum constant <Type><Value>, keeping released spellings as deprecated aliases; Kotlin gets its own CalendarDate; Swift models use Foundation Date and value-type enums.
  • Swift splits into BasecampCore plus one library per service, renames Calendar/Notification, and adds a CI size budget; Kotlin publishes com.basecamp:basecamp-sdk-cio (SDK plus Ktor's CIO engine) beside the engine-less SDK. openapi.json writes open enums as anyOf and the repo gains a consumer harness generating with pinned third-party tools.
  • Integration: the wire-date helpers and WireInstant from the typed-dates series get package access so the per-service modules can reach them, and the page-read tests import BasecampCore for a shared helper.

MIGRATING.md documents the type changes, Swift renames, Kotlin artifact, and walk/page-read behaviour changes.