Module: Zavudev::Models::SenderUpdateParams::WebhookSignatureVersion

Extended by:
Internal::Type::Enum
Defined in:
lib/zavudev/models/sender_update_params.rb,
sig/zavudev/models/sender_update_params.rbs

Overview

Which X-Zavu-Signature scheme this receiver is sent.

  • v1: v1=HMAC_SHA256(secret, body). The scheme used before this was configurable. Existing webhooks stay on it until you move them.
  • v2: v2=HMAC_SHA256(secret, "{t}.{body}"). The current scheme, and the default for new senders. It signs the timestamp together with the body.
  • v1+v2: both signatures, sharing one t. The migration setting: a receiver reading either one works, so you can deploy and confirm your new verifier before switching over.

Moving from v1 straight to v2 returns 400. Set v1+v2 first. See https://docs.zavu.dev/guides/receiving-messages/signature-migration

Constant Summary collapse

V1 =

Returns:

  • (:v1)
:v1
V1_V2 =

Returns:

  • (:"v1+v2")
:"v1+v2"
V2 =

Returns:

  • (:v2)
:v2

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/zavudev/models/sender_update_params.rb', line 167

Instance Method Details

#self?.values::Array[Zavudev::Models::SenderUpdateParams::webhook_signature_version]

Returns:

  • (::Array[Zavudev::Models::SenderUpdateParams::webhook_signature_version])


127
# File 'sig/zavudev/models/sender_update_params.rbs', line 127

def self?.values: -> ::Array[Zavudev::Models::SenderUpdateParams::webhook_signature_version]