What's Changed
Breaking changes:
- Libs/All, CLI:
- Remove deprecated operations and most deprecated fields
- Default
with_contentquery parameter available in some message- and attempt-related operations tofalse
(for example: create-message no longer mirrors back the message payload, list message attempts by endpoint no longer returns response payloads by default) - Rename
filterTypestoeventTypesin endpoint and related models - Rename the "
update" operations for Applications, Endpoints, Event Types, Connectors, Ingest Sources, Streams, and Sinks toupsert;
they always were create-or-update operations and this new name reflects that - Rename
ingest.dashboardtoingest.authentication.consumer-portal-access - Rename
endpoint.update-headerstoendpoint.set-headers(same for ingest.endpoint etc.)
- Libs/All:
- Remove
svix.operationalWebhookEndpointin favor ofsvix.operationalWebhook.endpoint - Remove model types for operational webhooks (we might add them back later or provide a separate package - let us know if you want this!)
- Remove
- Libs/JavaScript:
- Drop support for CommonJS
- Change (sub)resource accessors from
snake_casetocamelCase, e.g.svix.operational_webhooktosvix.operationalWebhook - Remove
svix.endpoint.{headersUpdate, headersPatch}in favor ofsvix.endpoint.{setHeaders, patchHeaders} - Rename
EndpointRateLimitStatusOuttoEndpointThrottleRateStatusOut
- Libs/Python:
- Remove a handful of model type re-exports from the
svixnamespace; import them fromsvix.apiorsvix.modelsinstead - Stop returning a parsed JSON object from
Webhook.verify; if you were using this, simply calljson.loadson the passed-in data after theverifycall
- Remove a handful of model type re-exports from the
- Libs/Kotlin:
- Upgrade to Kotlin 2.3.20
- Change timestamps to be
kotlin.time.Instants
- Libs/Java:
- Change type of
throttleRate(inApplicationIn,EndpointInetc.) fromLongtoShort - Change type of
batchSizeandmaxWaitSecs(inStreamSinkInetc.) fromLongtoShort
- Change type of
- Libs/Go:
- Change (sub)resource accessors from properties to methods, e.g.
svix.Ingest.Endpointtosvix.Ingest().Endpoint()
- Change (sub)resource accessors from properties to methods, e.g.
- Libs/Rust:
- Reorder constructor parameters to a more natural order.
This only affects some structs with a::newfunction that takes more than one parameter.
Most notably,EventTypeIn::new()snameanddescriptionparameters have been swapped. - Update timestamp parameters from being represented as
Strings to beingchrono::DateTime<Utc>s - Some
i32s (most notably, thelimitparameter in list operation types) were updated to more appropriate integer types - Change some
Vecs toBTreeSets - Change some
HashMaps toBTreeMaps - Remove model re-exports from
svix::api; import them fromsvix::modelsinstead - Drop support for v0.2 of the
httpcrate - Remove non-sensical
Defaultimplementations - Remove constructors for
*Outmodels, which often had too many parameters to be readable, and could get broken by newly introduced fields - Remove
impl From<String> for svix::error::Error
- Reorder constructor parameters to a more natural order.
- Libs/Ruby:
- Stop returning a parsed JSON object from
Webhook.verify
- Stop returning a parsed JSON object from
- Libs/PHP:
- Make
optionsparameters onGEToperations non-nullable (but they still have a default value, so this only affects calls that explicitly passed a null)
- Make
Other improvements:
- Libs/(Java and Kotlin): Upgrade OkHttp to 5.4.0
Full Changelog: v1.99.1...sdks-v2.0.0-rc.1