Skip to content

Releases

v0.5.3

Choose a tag to compare

@johnefemer johnefemer released this 24 Nov 16:13

Usage reports the base cost and its parts. Every kit stays a preview: pin the exact version.

Upgrading from 0.5.2: nothing to change.

  • Usage answers (usage.get, the enterprise usage) carry vendor_cost_micros and fee_micros next to cost_micros. cost_micros is now the base cost Omazy sets: the vendor's published price for each call plus the Omazy service fee on speech. Speech to text is priced per second, text to speech per character. A platform that bills its own customers adds its margin to cost_micros and keeps no copy of vendor prices. The TypeScript and Go types gain the two fields; Python returns them in the same dicts. Additive: nothing to change.

v0.5.2

Choose a tag to compare

@johnefemer johnefemer released this 24 Nov 05:47

Fixes from running the "Build an AI product in a day" tutorial end to end. Every kit stays a preview: pin the exact version.

Upgrading from 0.5.1: the catalog snapshot gains actor_confirm, and actor_start's version follows its list of actors; both are additive, so accept them with OMAZY_UPDATE_SNAPSHOTS=1. A tenant isolation check that skips the actor tools should skip actor_confirm too. A project made with create-omazy-app 0.5.1 or earlier should add /core to OMAZY_BASE_URL in wrangler.jsonc. Everything else is unchanged in name and shape.

  • create-omazy-app: the generated wrangler.jsonc sets OMAZY_BASE_URL to https://mw.omazy.ai/api/v1/core. Before, it said /api/v1, so every model call went to /api/v1/ai/complete and answered 404.
  • actorTools: actor_start's version is the number of actors it offers when actors lists them. Adding an actor to the door is now an additive change in the catalog snapshot (a new value and a higher version), accepted with OMAZY_UPDATE_SNAPSHOTS=1; before, it was breaking ("schema changed but version is still 1") and the kit fixed the version, so nothing but deleting the snapshot fixed it. Removing an actor is still breaking. Without a list, actor_start stays at version 1.
  • actorTools has a fourth capability, actor_confirm (R2), and the card's submit names it with the session and the card id instead of the target call. Over MCP the client calls it once the person agrees; the guard asks the person (an elicitation or a confirm token, its preview the card's summary and rows), and the runtime submits the card as a click on it does. The session then sees the outcome, so actor_status reads done or pending_approval. Before, the client called the target itself and the session never learned of it: actor_status read confirm for good. A confirm given for a card that changed since is refused as stale. A client that still calls the target directly makes the change, but the session does not see it. The copilot keeps actor_confirm from its model, as it does the other three. Upgrading: the catalog snapshot gains actor_confirm (an additive change), and a tenant isolation check that skips the actor tools should skip it too.
  • fakeCore().on(match, answer) says in its JSDoc and on the testing kit page what it always did: without { times } a rule answers every later request it matches, so a second on() for the same unit never fires. Give each turn's reply { times: 1 }. The behaviour is unchanged.
  • create-omazy-app: the generated npm run setup builds the page (npm run build:page) before it touches Cloudflare, so its deploy ships the current page. Before, it deployed whatever public/app.js held, which was nothing on a fresh checkout that had not run npm run dev. A build error now stops setup before anything is created.
  • ui kit: an approver can ask for a step-up code from the page. uiRoutes takes approvals.codes (the guard's codeStepUp, the same one given to createGuard) and serves POST <base>/approvals/<id>/code, which sends a code to whoever may decide the approval now and answers { channels, method, expiresAt }. It answers 404 to someone who may not see the approval, 403 to someone who may see it but not decide it, 409 once it is decided, and 400 when its policy asks for another method. uiClient().approvals.sendCode(id) calls it. CodeStepUpForm from @omazyai/sdk/ui/react is a ready stepUp slot for ApprovalsInbox and ApprovalDetail: a button that sends the code, a field for each channel, and the proof passed to the decide call. New words in UiText, English and Bangla: codeSend, codeSent, codeLabel, codeResend, codeSubmit, codeRequired. Before, a product had to write its own route and form, and the scaffold had neither.
  • create-omazy-app: every preset wires the guard's codeStepUp. AppParts takes sendCode, the app returns codes, and the guard gets it as its stepUp; with the copilot, uiRoutes serves the code route and the page's ApprovalsInbox has CodeStepUpForm in its stepUp slot, so an owner approves in the page. src/index.ts prints the code to the wrangler dev console when .dev.vars has STEP_UP_LOG=1 (written there by the scaffolder, never in wrangler.jsonc) and refuses otherwise until you wire a mail or SMS sender. The test harness records each code in h.codes. A product adds a policy that names stepUp: 'code' and nothing else.

v0.5.1

Choose a tag to compare

@johnefemer johnefemer released this 23 Nov 23:59

The fixes from the sixth independent review of the oauth kit, and the end of its review warning.

Six independent reviews of the oauth kit are done. The last one found nothing high and no unconditional medium, and its findings are fixed below. Each review's proofs run as regression tests. The kit stays a preview, like every kit: pin the exact version.

A door may now open with it, as long as the product follows the setup rules on the kit's reference page: platformDoors named, a list of known clients on every platform door, checkSeat, a consistent refresh store (the Durable Object or D1), the rate-limit bindings, and @cloudflare/workers-oauth-provider pinned at the tested version.

Upgrading from 0.5.0: RefreshStore has five new methods, so a custom store must implement them. On D1, run applyOAuthD1Migrations again (migration 0003_oauth_person_index, additive). checkSeat is now required at every door. Everything else is unchanged in name and shape.

Fixes from the sixth review of the oauth kit:

  • personLostRole, revokeApp and connectedApps no longer find a person's grants and keys by KV's list() alone. KV's listing is eventually consistent, so a grant or key made in the last minute or so was missing from it: personLostRole returned { grants: 0, keys: 0 } for a grant and a key made ten seconds earlier, and both kept working (the grant refreshing for good). The refresh store now keeps an index per person, written when a grant is made (before the client has its code, failing closed) and renewed on every refresh, and when a key is minted; the three functions read it, with KV's listing for older records. personLostRole first records a revocation of the person (at the door or tenant given) in the store, for a little over a year: anything made for the person before that moment is refused at its next refresh, code exchange or resolveSeat, even if the index missed it, and a grant is revoked there (new event grant_revoked, reason person_revoked). RefreshStore has five new methods (indexPut, indexDelete, indexList, revokePerson, personRevocations), which a custom store must implement. D1 needs the new tables: run applyOAuthD1Migrations again (migration 0003_oauth_person_index, additive); prune clears them. The Durable Object keeps them in objects of the same class, with no new migration.
  • checkSeat is required at every door, a tenant door too; without it authorizationServer throws at start. It also runs inside the library (its tokenExchangeCallback) on every refresh and code exchange, before any token is minted: a seat it says is gone revokes the grant, tombstone first (grant_revoked, reason seat_gone), and a throw answers 503 and revokes nothing, leaving the refresh token good for the retry. Before, a tenant door could omit it, with a start-up warning that said a removed seat kept working until its access token expired; in fact its grants kept refreshing, and with checkSeat its access tokens stopped but the grant kept refreshing. The warning is gone with the option's optionality.
  • Key revocation no longer lives only in KV. With a refresh store, a revoked key gets a tombstone there before its KV records are deleted, and resolve, list and transferService read it, so a revoked key stops at once in every location. transferService refuses a revoked key (false): a location whose KV cache still held it wrote it back for good, under its new owner. A key moved with transferService is covered by its new owner's revocations from the moment it moved. Keys takes the store as an optional fifth argument, and authorizationServer passes its refresh store to its keys. @omazyai/sdk/oauth/keys exports durableObjectRefreshStore, d1RefreshStore, applyOAuthD1Migrations, OAuthRefreshLock and kvRefreshStore, and still loads no provider. Without a store, Keys works as before, with the KV window, now documented. Joya, on keys with KV alone, should bind the OAuthRefreshLock Durable Object (or its D1) and pass that store to authorizationServer and to any Keys it builds in the Worker.
  • Every numeric option is a whole number, checked at start: keys.personal.maxDays, keys.service.maxDays, registration.perHourPerIp, perHourPer48 and clientTtlDays, turnstile.after, ttl.accessSeconds and ttl.refreshSeconds (at least 60), and signInCodes ttlSeconds. NaN, Infinity, a fraction or zero throws. Before, NaN passed every comparison and lifted the limit: maxDays: NaN minted a ten-year personal key, perHourPerIp: NaN removed the registration limit, turnstile.after: NaN never showed the challenge.
  • oauth.api() returns the library's helpers with revokeGrant and deleteClient going through the kit: revokeGrant tombstones the grant first, as revokeApp does, and deleteClient tombstones and revokes every grant of the client (found through a new per-client index in the refresh store and a listing of every grant in KV) before the library deletes the client. Before, a grant revoked through api() came back from a location whose KV cache still held it.
  • A tenant door on the KV refresh store warns at start, unless refresh.acceptKvRace is set: there a replayed refresh token, a revoked grant or key, and a person who lost a role keep working for about 60 seconds in another location.
  • signInCodes(kv, { store }) takes the refresh store. With a consistent one, a redeem claims the code there under a lock, so a code is single use across locations; before, a location whose KV cache still held a redeemed code could redeem it once more with the same flow's state. Without a store nothing changes.
  • The docs say that revoking an access token alone (RFC 7009) is the library's KV delete, with no tombstone, so other locations stop accepting it within about 60 seconds; revoking the refresh token or calling revokeApp stops the grant at once.

v0.5.0

Choose a tag to compare

@johnefemer johnefemer released this 23 Nov 23:25

The product kits and create-omazy-app, as a preview.

Everything new in this release is a preview. The kits and the scaffolder may change their names and their shapes before 1.0. Pin the exact version, read this changelog before moving to the next one, and expect to change code when you do.

The oauth kit is still under independent security review. Do not open a door with it in production yet. Five reviews found issues, and each one is fixed with a regression test (listed below), but the review is not finished.

What is in it:

  • The kits, TypeScript only, each its own entry point: @omazyai/sdk/capabilities (one definition of each action), /guard (who may run it, confirms, approvals, switches, limits, a request log), /mcp (an MCP server per door), /oauth (the authorization server for those doors), /ai (the run layer every model call passes through), /ai-sdk (a Vercel AI SDK model on that run), /actors (a form as a conversation), /flows (workflows and automations, each step in a ledger), /copilot (an open conversation on the product's data, streamed to useChat), /ui, /ui/react and /ui/server (the screens and their routes) and /testing (unit, actor and door tests without the network, and release gates).
  • create-omazy-app, a new package versioned with the SDK, which writes a new product on the kits. Its package.json pins the SDK release tarball of the same version.
  • Model roles, tags and cost, and spend caps on the Core API, in all three clients.
  • Fixes to the 0.4.x clients: the response details of one call (withResponse, with_response, WithResponseInfo), so a Worker serving requests at once reads its own; a 30 second timeout on live transcription commit() and end() in TypeScript; and retries after a 429, a gateway error or a dropped connection for document changes, document deletes and MCP server removal.
  • @omazyai/sdk and @omazyai/sdk/server are unchanged in name and shape: code written for 0.4.0 runs unchanged. The TypeScript package now says Node 20 or later, which is what it already needed.

The details, kit by kit:

The capabilities kit, experimental: the first of the product kits. TypeScript first; the Python and Go clients stay API clients. Nothing in 0.4.0 changed its name or its shape, and @omazyai/sdk/server is unchanged.

  • A new entry point, @omazyai/sdk/capabilities. Each action a product offers is defined once with capability({ ... }): a <noun>_<verb> name, the doors (audiences) that see it, a title, a description of 80 to 600 characters written as a prompt, synonyms, an opaque permission for the product's own check, a risk tier R0 to R4, an approval policy name (required at R3 and R4), input and output schemas, the fields that hold personal data, a version, and preview (required at R2 and above) and run. A definition that breaks a rule throws when the module loads, listing every problem.
  • defineCapabilities<Ctx, Permission, Door>() binds the product's own context, permission and door types once. Ctx carries the principal, seat, tenant, channel, approval id and request id, plus the product's own fields.
  • Schemas: any Standard Schema that also gives Standard JSON Schema, so zod 4.2 and later works as is. Valibot, TypeBox and others go through withJsonSchema. The schema helpers (object, text, id, integer, minorUnits, enum, array and more) do the same with no dependency. Every object in the JSON Schema is closed with additionalProperties: false. parse refuses a field the closed JSON Schema does not name, at any depth, even when the library would drop it (zod's plain z.object).
  • registry([...]) lists capabilities by door and gives the MCP tool list (inputSchema, outputSchema and annotations), the tool definitions for ai.complete, a form schema, argument parsing with the tier of the call, redaction of personal fields for logs (capped at 4 KB without splitting a character) and BM25 tool search over names, descriptions and synonyms.
  • Read or write, and the MCP hints, come from the tier and are never stored. Anything that is not R0 to R4 counts as R4. R3 and R4 are marked destructive.
  • riskFor(input) lowers the tier for some inputs (turning a kill switch off). It never weakens caution: a tier above the declared one is used and reported, and anything that is not a tier counts as R4.
  • Versioning: snapshot() gives the catalog as data to commit. assertAdditive(before, after) fails on any change that would break a client: a removed field, a new required field, narrower values, an output field that may now be missing, a schema change without a new version, or a capability removed before its deprecation date (90 days by default). toolsChangelog(before, after) writes the tools changelog.
  • reg.parity({ ... }) and assertParity for a product's CI: every entry is sound, names are unique, and no surface names a tool the registry lacks or one its door cannot see.
  • parityProblems and assertParity take surfaces as the same record reg.parity takes (Surfaces: a name to a list of tools, or to { audience, tools }). The array form [{ name, audience?, tools }] still works and is deprecated; it goes before the first release.

The guard kit, experimental: whether a capability call runs, who decides the sensitive ones, and a record of every request.

  • A new entry point, @omazyai/sdk/guard. createGuard({ registry, can, secret, store, policies, ... }) takes the product's pieces: its permission check, policy table, record-owner lookup, roles, step-up verifiers, switches, rate limiter and request log.
  • guard.call(ctx, name, args, { confirmToken?, waitUntil? }) checks, in order, kill switches, rate limits, the arguments, the tenant and the product's can(), and the tier, then runs R0 and R1 (R1 masked), asks for a confirm at R2 and holds R3 and R4 for a person. It never throws: the outcome is one of ok, confirm_required, pending_approval, refused_permission, refused_tier, read_only, stale, rate_limited, invalid, switched_off or error, with a plain sentence.
  • Confirm tokens: an HMAC over the seat, the tool, the hash of the canonical arguments, the preview's state version and a nonce kept 10 minutes. Single use, bound to the arguments, stale when the target moved.
  • Approvals: the arguments sealed with AES-GCM and hashed, the preview, the policy and the expiry. The approver comes from the policy table: approver.authorOrRecordOwner(), approver.role(), policies.single() and policies.fourEyes(). Every decision needs a step-up proof; a refusal needs a reason; decisions are a compare-and-swap. Execution re-checks both people as of now, re-runs the preview, refuses stale when the state moved and runs the stored arguments once, idempotent on the approval id. A tenant's own policy can only tighten the base.
  • guard.withdraw(id, ctx, reason) takes back a waiting approval: a compare-and-swap from waiting to the new status withdrawn, so it is never decided or run. Only its requester (same principal, same tenant) or a principal of kind system (SYSTEM_PRINCIPAL_KIND) may, with a reason kept on the row. Every attempt is logged as approval/withdraw, and onApproval gets a withdrawn event. A flow waiting on a withdrawn approval ends refused with approval_withdrawn.
  • codeStepUp() sends and checks one-time codes (one channel, or two for a super admin without a passkey); a passkey is the product's own verifier.
  • Kill switches by key (all, a door, a kind of caller, a tool, the product's own) at global, tenant and person scope, read deny first on every call with no cache.
  • guard.doorSwitch(door, ctx?) reads only the all and door:<door> switches, for a door that must stop every request and not only tool calls. It returns the first one that is off, or null, and throws when the switches cannot be read.
  • Rate limits through Cloudflare Rate Limiting bindings, per seat for reads and writes and per tenant.
  • A request log row per call, arguments redacted through the capability's personal fields, written after the response so it never delays or fails a call; listings sampled one in ten; logAnonymous() records a request refused before it had a principal as refused_auth. The request id travels in X-Omazy-Request-Id.
  • auditStatement() for the product's own audit row with via, approval_id and request_id, in the same batch as the change. purgeTenant() deletes a tenant's rows in resumable chunks within D1's limits, with tables and rows to keep.
  • Stores for Cloudflare D1 (d1GuardStore, d1RequestLog, d1Switches, with the SQL in GUARD_MIGRATIONS) and in memory for tests. Web standard APIs only.

The mcp kit, experimental: an MCP server per door, built from the registry and the guard.

  • A new entry point, @omazyai/sdk/mcp, on the official MCP TypeScript SDK v2. Install @modelcontextprotocol/server 2.4.0 beside the SDK; it is an optional peer dependency, so a product that does not serve MCP installs nothing more.
  • mcpServer({ registry, guard, door, resolveSeat, info }) returns a Worker-shaped fetch for one door. It serves spec revision 2026-07-28 (no sessions, no initialize, server/discover, input_required) and, statelessly, 2025-11-25, 2025-06-18 and 2025-03-26 clients, each request by a fresh server and answered as one JSON body. JSON-RPC batches are accepted only on 2025-03-26. Schemas are checked with the SDK's cf-worker validator, so nothing compiles code at runtime.
  • Tools come from the registry for the door, in registry order, with annotations from the tier, outputSchema and structuredContent, and cursor paging (50 a page by default). tools/list carries a one-minute private cache hint for 2026-07-28 clients. A seat may carry maxTier (a personal key) or an allow list of tools (a service key); tools above it are neither listed nor callable.
  • Every tools/call goes through guard.call. confirm_required...
Read more

v0.4.0

Choose a tag to compare

@johnefemer johnefemer released this 22 Nov 20:19

The Enterprise API: one workspace per customer. Nothing in 0.3.0 changed its name or its shape.

  • A second client for a product that serves many customers, each in a workspace of their own: OmazyEnterprise in TypeScript and Python, omazy.NewEnterprise in Go. It takes an account key (eak_...), not an install token.
  • Create the workspace of a customer, with its agent, its plan and its install, and get that customer's Core API token once. Your own id for the customer (external_id) makes the call safe to repeat: a repeat returns the same workspace and no token, so the client retries it like a read.
  • List the account's workspaces page by page or all at once, find one by your own id, read one, rename and rebrand it, suspend and resume it, close it and reopen it.
  • Rotate a customer's install token, with the old one kept for an overlap. This is never sent twice by the client.
  • core(token) (Core in Go) gives the Core API client for one customer on the same deployment, so a product picks a customer's token and calls models, knowledge and the agent as that customer.
  • An account key never reaches the Core API, and an install token never reaches the Enterprise API.
  • The routes are listed in a contract of their own, contracts/enterprise-api.routes.json, and each client's tests are held to it.
  • An account key is issued by Omazy to a product. There is no self-serve way to get one yet.

The agent's settings, under a new scope agent:configure:

  • Read how the agent runs and change it from your backend: the model it answers on, the cap on one reply, the temperature, and the loop switches (the shared agent loop, streaming, masking of personal data, memory, which gives the agent remember and forget tools, and files, which gives it a create_file tool). agent.settings.get and agent.settings.update in TypeScript and Python, Agent.Settings and Agent.UpdateSettings in Go.
  • A change names only what changes. Null puts a setting back to what the agent inherits: null in TypeScript, None in Python (an argument left out is UNSET), omazy.Clear in Go beside omazy.Set.
  • A new model is tested with one real call before it is saved. 403 MODEL_NOT_AVAILABLE is a model the plan does not allow; 422 MODEL_NOT_SERVING is one that did not answer. Nothing changes in either case.
  • The same change sent twice leaves the same settings, so the client sends it again after a 429, a gateway error or a dropped connection.
  • A token made before this release does not hold agent:configure. Scopes are fixed when a token is made, so make a new one.

Live speech to text, on the existing scope voice:speech:

  • voice.transcribeStream in TypeScript, voice.transcribe_stream in Python, Voice.TranscribeStream in Go: a WebSocket session that hears audio while the person speaks, so the text is ready a few hundred milliseconds after they stop instead of after the whole recording is uploaded and heard.
  • Send audio as it is captured (pcm_s16le, mulaw, alaw with a sample rate, or auto for WebM/Opus, Ogg or WAV). commit after each utterance returns its final; end returns every final joined and the audio length it is billed by; keepalive holds a quiet session. Frames are ready, partial, final and done; an error frame arrives as the client's error with its code and request id.
  • Voice minutes are counted once per session with a one-minute floor. Hold one session for a conversation and commit per utterance.
  • The token goes on the upgrade: run it on your server, and relay from a browser. Zero dependencies: TypeScript uses the runtime's WebSocket (Cloudflare Workers, Node 22 and later, Bun, Deno; webSocket to bring another), Python and Go carry a small client of their own.
  • terms on voice.transcribe (trailing arguments in Go): names and words to expect, so "Rashed Karim" is not heard as "Rasht Kareem". At most 200; more is refused, never cut.
  • The contract marks a WebSocket route with websocket, and each client's tests hold its list to it.

Control over the gateway's response cache on completions:

  • cache_ttl on ai.complete and ai.stream (CacheTTL in Go): leave it out for the gateway's own setting, 0 for a reply that never comes from the cache, or 60 to 2592000 seconds to bound how long a stored reply may be served again. Send 0 on any request that carries live data.
  • cache_hit on the result (CacheHit in Go) says the reply came from the cache. Such a reply cost nothing and used no AI turn.

Agent turns that stream and take the person's context, on the existing scope agent:run:

  • agent.stream in TypeScript and Python, Agent.Stream in Go: the reply arrives in pieces as the agent writes it, then the whole turn. The frames are a streamed completion's. In TypeScript StreamEvent takes the result type, StreamEvent<AgentTurnResult>; StreamEvent alone is still a completion's.
  • The agent's markup for quick replies and images is held back from the pieces, so a piece is safe to read aloud. Keep the text of the whole turn.
  • When the agent's settings turn streaming off or masking of personal data on, only the whole turn arrives. An agent with connected tools sends its whole reply as one piece for now: its tool loop does not stream a turn made through the Core API yet.
  • context on a turn (Context in Go): one object of at most 2048 bytes about where the person is, read by the agent as a hint, as a widget page's context is. {"interaction": "voice"} makes it answer for the ear.
  • Nothing changed for agent.turn.

The agent's MCP servers, under a new scope agent:tools:

  • Connect, list, read, change and remove the MCP tool servers the agent may call: agent.mcpServers in TypeScript, agent.mcp_servers in Python, Agent.ListMCPServers and its siblings in Go. For a product with a workspace per customer, this is how each customer's agent gets that customer's tools.
  • A server's name is unique within the app, ignoring case. A second one is 409 CONFLICT.
  • The endpoint must be https on a public host, or the call is refused with 400.
  • The credential is write-only. No call returns it.
  • Connecting a server takes an idempotency key and is sent again only with one. A change is sent again like a read. A removal is never sent twice.
  • subject_check on a session_bearer server: whoami (the default) asks the server whose token it is, host takes your backend's word for a server that has no whoami, such as Notion's, Slack's or Microsoft 365's. Each conversation stays locked to one person either way. Binding a token now answers verified with the one that was used.

Usage and cost, under a new scope usage:read:

  • usage.get in TypeScript and Python, Usage.Get in Go: what the workspace used and what it cost, per UTC day, with totals. Model calls, replies from the gateway's response cache (free), tokens, speech sessions and seconds, cost in millionths of a US dollar, and the plan's counters (conversations, AI turns, API calls, voice minutes).
  • A range is two days as YYYY-MM-DD, both included, at most 90 days; the last 30 days when you name none. It is a read, so the client sends it again after a 429 or a gateway error.
  • Text to speech is priced from a list price per character until it is checked against an invoice; that part of the cost is in estimated_cost_micros.
  • A token made before this release does not hold usage:read. A managed workspace's install gets it by default.
  • Across an enterprise account: usage() on OmazyEnterprise (Usage in Go) gives a page of the account's workspaces, each with its totals and days, and the account's totals over every workspace. Needs the account scope usage:read, which has the same name.

v0.3.0

Choose a tag to compare

@johnefemer johnefemer released this 19 Nov 20:59

Idempotency keys. Nothing in 0.2.0 changed its name or its shape.

  • A request that changes something takes an idempotency key: placing a call, posting a message, publishing, running an agent turn, starting a voice job, adding a document, importing a file, adding a source and crawling one. With a key the platform runs the request once and answers a repeat with the first answer, and the client retries the request the way it retries a read. Without a key these are still sent once.
    • TypeScript: a last argument { idempotencyKey }. agent.turn takes an AbortSignal as before, or { signal, idempotencyKey }.
    • Python: a keyword argument idempotency_key.
    • Go: omazy.WithIdempotencyKey(ctx, key).
  • A repeat that arrives while the first request is still running (409 IDEMPOTENCY_IN_PROGRESS) is waited out and sent again. The same key with a different request (422 IDEMPOTENCY_KEY_REUSED) is an error.
  • The last response says whether it was a replay: last.replayed in TypeScript and Python, Last().Replayed in Go.
  • whoami reports the plan's voice minutes next to its AI turns. Speech, voice jobs and call placement answer 402 PLAN_LIMIT_REACHED when the minutes are used up.
  • The error of a failed stream carries the API's own error code.
  • Fixed: a voice job named its app in the request body, where the API did not read it, so a workspace with more than one app always got its default app. The app now goes in the query string.

v0.2.0

Choose a tag to compare

@johnefemer johnefemer released this 19 Nov 18:48

Knowledge documents. Nothing in 0.1.0 changed its name or its shape.

  • Read and write the agent's knowledge base: list, read, add, change and delete a document, with how its indexing stands (queued, indexing, ready, failed). Reads need kb:read, writes kb:write.
  • Upload a file (PDF, spreadsheet, image or text) as a document.
  • List the websites a knowledge base is crawled from, add one, and crawl it again.
  • Export what changed in the knowledge base since a version, with the passages search uses, to keep a copy of your own.
  • The body of the kb.updated event is typed in the TypeScript client (KnowledgeUpdatedEvent). Verify it with the signature helper every client already has.
  • Knowledge writes are never sent again by a client after a failure. The reads are, as other reads are.
  • Fixed: the TypeScript and Go types named a voice job kind notes. The API takes transcribe and meeting_notes.

v0.1.0

Choose a tag to compare

@johnefemer johnefemer released this 19 Nov 14:15

First release.

  • Every Core API route over HTTP: completions (whole or streamed), knowledge search, agent turns, speech, outbound calls, voice jobs, customers, conversation messages, page publishing and session credentials.
  • The Core API's MCP server: list tools, call a tool, or get the URL and headers for another MCP client.
  • One error type with the status, the stable code, the message and the request id.
  • Retries on 429, 502, 503, 504 and dropped connections, only for routes that are safe to send twice.
  • The request id, the rate limit and the token's deadline readable after each call.
  • whoami reports the workspace's plan: its rate per minute and the AI turns used and included.
  • Signature verification for requests the platform sends to your server.
  • TypeScript only: @omazyai/sdk/server with the flow and context request shapes, block builders and an MCP tool server for a Worker.