@wix/app-extensions 1.0.174 → 1.0.175

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27487,12 +27487,15 @@ declare enum VerificationSource {
27487
27487
  CONNECTOR_WIDE = "CONNECTOR_WIDE",
27488
27488
  /**
27489
27489
  * Material is issued per registration and lives on the registration the delivery was sent to.
27490
- * Requires registration_required.
27490
+ * Requires registration_required. A registration is the provider-side one for a single
27491
+ * account, which is that account's subscription; there is no separate registration entity.
27491
27492
  */
27492
27493
  PER_REGISTRATION = "PER_REGISTRATION",
27493
27494
  /**
27494
27495
  * There is no material, because nothing is verified. The only legal scope for
27495
- * NO_VERIFICATION, and legal for nothing else.
27496
+ * NO_VERIFICATION, and legal for nothing else. Redundant with NO_VERIFICATION on purpose:
27497
+ * every enum in a valid config is explicitly set, so "nothing was declared" and "the
27498
+ * declaration is that nothing is verified" stay distinguishable.
27496
27499
  */
27497
27500
  UNSIGNED = "UNSIGNED"
27498
27501
  }
@@ -27546,7 +27549,7 @@ type SignedPayloadWithLiterals = SignedPayload | 'UNKNOWN_SIGNED_PAYLOAD' | 'RAW
27546
27549
  /**
27547
27550
  * Per-method payload for the `verification` oneof above. Shared by HMAC_SHA256,
27548
27551
  * HMAC_SHA1, and (wrapped) PUBLIC_KEY - the three methods signatureMethods already groups
27549
- * together in the validator. timestamp_header / timestamp_tolerance_seconds stay flat on
27552
+ * together in the validator. timestamp_header / timestamp_tolerance_seconds stay on
27550
27553
  * WebhookConfig rather than moving in here, since BODY_HASH_WITHIN_TIMESTAMP_WINDOW borrows
27551
27554
  * them independently of which verification_method is selected.
27552
27555
  */
@@ -27561,13 +27564,20 @@ interface HmacConfig {
27561
27564
  signatureHeader?: string;
27562
27565
  /**
27563
27566
  * Literal prefix the provider places in front of the encoded signature, for example
27564
- * "sha256=" or "v0=". Empty when the header holds the bare signature.
27567
+ * "sha256=" or "v0=". Empty when the header holds the bare signature. A constant, never a
27568
+ * template: compared verbatim against the start of the header, and a delivery whose header
27569
+ * does not start with it is rejected.
27565
27570
  * @maxLength 20
27566
27571
  */
27567
27572
  signatureValuePrefix?: string;
27568
27573
  /** How the signature bytes are encoded in signature_header. */
27569
27574
  signatureEncoding?: SignatureEncodingWithLiterals;
27570
- /** Which canonical string the signature is computed over. */
27575
+ /**
27576
+ * Which canonical string the signature is computed over, from a closed set of recipes. There
27577
+ * is deliberately no free-form signing template, which would make the inbound path an
27578
+ * interpreter of app-owner input; a provider whose canonical string is not listed needs a new
27579
+ * enum value.
27580
+ */
27571
27581
  signedPayload?: SignedPayloadWithLiterals;
27572
27582
  }
27573
27583
  /** @internal */
@@ -27969,8 +27979,8 @@ interface DispatchConfig {
27969
27979
  *
27970
27980
  * No credential material is declared here. This config lives in the app component catalog and is
27971
27981
  * readable by app owners; signing secrets and callback tokens are stored separately and are
27972
- * located through verification_source. public_key_url is the only credential-adjacent field, and
27973
- * it points at material the provider publishes.
27982
+ * located through the selected verification arm's verification_source. public_key_url is the
27983
+ * only credential-adjacent field, and it points at material the provider publishes.
27974
27984
  *
27975
27985
  * Fields naming something the provider owns carry a provider_ prefix, so the identifiers a
27976
27986
  * delivery arrives with are never confused with the ones Wix mints.
@@ -28002,90 +28012,19 @@ interface WebhookConfig extends WebhookConfigVerificationOneOf, WebhookConfigRep
28002
28012
  * must select a concrete method — an unset method is rejected rather than treated as a default.
28003
28013
  */
28004
28014
  verificationMethod?: VerificationMethodWithLiterals;
28005
- /**
28006
- * Scope of the material used by verification_method: shared by the whole connector, or issued
28007
- * per registration. Names the scope rather than the kind of material, so it stays accurate for
28008
- * PUBLIC_KEY, where the connector-wide material is a published key URL and nothing is stored.
28009
- *
28010
- * "Per registration" is the provider-side registration for one account, which is that account's
28011
- * subscription - there is no separate registration entity to look for.
28012
- *
28013
- * The UNSIGNED arm is redundant with verification_method = NO_VERIFICATION, and deliberately so:
28014
- * every enum in a valid config is explicitly set, which keeps "nothing was declared" and "the
28015
- * declaration is that nothing is verified" distinguishable states rather than the same unset
28016
- * field. The alternative - dropping the arm and making this field conditionally required - moves
28017
- * the same fact into a validation rule instead of removing it.
28018
- *
28019
- * Deprecated: superseded by each `verification` arm's own verification_source field. Kept live
28020
- * and enforced for the flat-shape configs this migration has not yet moved off of.
28021
- * @deprecated
28022
- * @replacedBy verification (each arm's own verification_source field)
28023
- * @targetRemovalDate 2027-06-30
28024
- */
28025
- verificationSource?: VerificationSourceWithLiterals;
28026
- /**
28027
- * Header carrying the signature to verify. Required for HMAC_SHA256, HMAC_SHA1 and PUBLIC_KEY,
28028
- * and must be empty for every other method. For example: "X-Hub-Signature-256".
28029
- *
28030
- * Deprecated: superseded by HmacConfig.signature_header (via the `verification` oneof's
28031
- * hmac_sha256_config, hmac_sha1_config and public_key_config arms).
28032
- * @maxLength 120
28033
- * @deprecated
28034
- * @replacedBy HmacConfig.signature_header (via the verification oneof)
28035
- * @targetRemovalDate 2027-06-30
28036
- */
28037
- signatureHeader?: string;
28038
- /**
28039
- * Literal prefix the provider places in front of the encoded signature, for example "sha256="
28040
- * or "v0=". Empty when the header holds the bare signature.
28041
- *
28042
- * The value is a constant, never a template: it is compared verbatim against the start of the
28043
- * header and stripped before decoding, and a delivery whose header does not start with it is
28044
- * rejected. Nothing in it is interpreted or substituted.
28045
- *
28046
- * Deprecated: superseded by HmacConfig.signature_value_prefix.
28047
- * @maxLength 20
28048
- * @deprecated
28049
- * @replacedBy HmacConfig.signature_value_prefix (via the verification oneof)
28050
- * @targetRemovalDate 2027-06-30
28051
- */
28052
- signatureValuePrefix?: string;
28053
- /**
28054
- * How the signature bytes are encoded in signature_header. Required whenever signature_header
28055
- * is required.
28056
- *
28057
- * Deprecated: superseded by HmacConfig.signature_encoding.
28058
- * @deprecated
28059
- * @replacedBy HmacConfig.signature_encoding (via the verification oneof)
28060
- * @targetRemovalDate 2027-06-30
28061
- */
28062
- signatureEncoding?: SignatureEncodingWithLiterals;
28063
- /**
28064
- * Which canonical string the signature is computed over, selected from a closed set of recipes
28065
- * the server implements. Required whenever signature_header is required.
28066
- *
28067
- * There is deliberately no free-form signing template: a configurable template would make the
28068
- * inbound path an interpreter of app-owner input and an injection surface. A provider whose
28069
- * canonical string is not listed here needs a new enum value, not a new template.
28070
- *
28071
- * Deprecated: superseded by HmacConfig.signed_payload.
28072
- * @deprecated
28073
- * @replacedBy HmacConfig.signed_payload (via the verification oneof)
28074
- * @targetRemovalDate 2027-06-30
28075
- */
28076
- signedPayload?: SignedPayloadWithLiterals;
28077
28015
  /**
28078
28016
  * Header carrying the delivery timestamp, used to reject stale and replayed deliveries. For
28079
- * example: "X-Slack-Request-Timestamp". Required by the signed_payload recipes that include a
28080
- * timestamp, and must be set together with timestamp_tolerance_seconds. The header value is read
28081
- * as epoch seconds, except under METHOD_URI_BODY_TIMESTAMP, which reads it as epoch milliseconds.
28017
+ * example: "X-Slack-Request-Timestamp". Required by the HmacConfig.signed_payload recipes that
28018
+ * include a timestamp, and must be set together with timestamp_tolerance_seconds. The header
28019
+ * value is read as epoch seconds, except under METHOD_URI_BODY_TIMESTAMP, which reads it as
28020
+ * epoch milliseconds.
28082
28021
  * @maxLength 120
28083
28022
  */
28084
28023
  timestampHeader?: string;
28085
28024
  /**
28086
28025
  * How far the delivery timestamp may be from server time before the delivery is rejected. Must
28087
28026
  * be greater than zero when timestamp_header is set, and zero when it is not. Always in seconds,
28088
- * whatever unit the signed_payload recipe reads timestamp_header in.
28027
+ * whatever unit the HmacConfig.signed_payload recipe reads timestamp_header in.
28089
28028
  *
28090
28029
  * The tolerance is a floor on replay-protection retention, not only a freshness bound: whatever
28091
28030
  * remembers seen deliveries has to outlive this window, or a delivery still inside its accepted
@@ -28098,19 +28037,6 @@ interface WebhookConfig extends WebhookConfigVerificationOneOf, WebhookConfigRep
28098
28037
  * @max 3600
28099
28038
  */
28100
28039
  timestampToleranceSeconds?: number;
28101
- /**
28102
- * Header carrying the shared token the provider echoes on every delivery. Required for
28103
- * CALLBACK_TOKEN and must be empty for every other method. For example:
28104
- * "X-Goog-Channel-Token". The token itself is never declared here — it is located through
28105
- * verification_source.
28106
- *
28107
- * Deprecated: superseded by CallbackTokenConfig.callback_token_header.
28108
- * @maxLength 120
28109
- * @deprecated
28110
- * @replacedBy verification.callback_token_config.callback_token_header
28111
- * @targetRemovalDate 2027-06-30
28112
- */
28113
- callbackTokenHeader?: string;
28114
28040
  /**
28115
28041
  * Endpoint publishing the provider's public keys. Required for PUBLIC_KEY and OIDC_BEARER, and
28116
28042
  * must be empty for every other method.