All releases
Feature

Platform SDK 1.0: workspaces, members, API keys and policies as methods

@productcraft/platform-auth 1.0 gives every Platform operation a method (platform.workspaces.create(), workspaces.apiKeys.create(), apiKeys.self()), with retries, automatic idempotency keys, pagination and typed errors.

npm install @productcraft/platform-auth now gets you platform.workspaces.create(), members, invites, roles, policies, service activation and audit logs, all taking the workspace slug as the first argument (platform.workspaces.invites.create("acme", { … })). platform.workspaces.apiKeys.create() mints a key for CI and returns the plaintext once, and platform.apiKeys.self() tells a pipeline which workspace and permissions its key carries.

Lists walk every page for you, creates carry an idempotency key, and failures are classes you can catch (a taken workspace slug is a ConflictError). The Platform guides and the API reference, which now has a Node tab per operation, use the new methods, and the Webhooks guide shows webhooks.unwrap() from the product SDKs. Upgrading from 0.x: .client still works; the migration guide shows each call before and after.