@wix/app-extensions 1.0.162 → 1.0.164

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.
@@ -27420,11 +27420,18 @@ declare enum SignedPayload {
27420
27420
  * "v0" + ":" + timestamp + ":" + body, where timestamp is the value of timestamp_header
27421
27421
  * verbatim. Requires timestamp_header.
27422
27422
  */
27423
- VERSION_TIMESTAMP_BODY = "VERSION_TIMESTAMP_BODY"
27423
+ VERSION_TIMESTAMP_BODY = "VERSION_TIMESTAMP_BODY",
27424
+ /**
27425
+ * method + uri + body + timestamp, where method is the HTTP method, uri is the callback URL
27426
+ * Wix issued plus the delivery's query string with HubSpot's twelve reserved escapes decoded,
27427
+ * and timestamp is the value of timestamp_header verbatim, read as epoch milliseconds.
27428
+ * Requires timestamp_header.
27429
+ */
27430
+ METHOD_URI_BODY_TIMESTAMP = "METHOD_URI_BODY_TIMESTAMP"
27424
27431
  }
27425
27432
  /** @enumType */
27426
27433
  /** @internal */
27427
- type SignedPayloadWithLiterals = SignedPayload | 'UNKNOWN_SIGNED_PAYLOAD' | 'RAW_BODY' | 'TIMESTAMP_DOT_RAW_BODY' | 'VERSION_TIMESTAMP_BODY';
27434
+ type SignedPayloadWithLiterals = SignedPayload | 'UNKNOWN_SIGNED_PAYLOAD' | 'RAW_BODY' | 'TIMESTAMP_DOT_RAW_BODY' | 'VERSION_TIMESTAMP_BODY' | 'METHOD_URI_BODY_TIMESTAMP';
27428
27435
  /**
27429
27436
  * Per-method payload for the `verification` oneof above. Shared by HMAC_SHA256,
27430
27437
  * HMAC_SHA1, and (wrapped) PUBLIC_KEY - the three methods signatureMethods already groups
@@ -27906,13 +27913,15 @@ interface WebhookConfig extends WebhookConfigVerificationOneOf, WebhookConfigRep
27906
27913
  /**
27907
27914
  * Header carrying the delivery timestamp, used to reject stale and replayed deliveries. For
27908
27915
  * example: "X-Slack-Request-Timestamp". Required by the signed_payload recipes that include a
27909
- * timestamp, and must be set together with timestamp_tolerance_seconds.
27916
+ * timestamp, and must be set together with timestamp_tolerance_seconds. The header value is read
27917
+ * as epoch seconds, except under METHOD_URI_BODY_TIMESTAMP, which reads it as epoch milliseconds.
27910
27918
  * @maxLength 120
27911
27919
  */
27912
27920
  timestampHeader?: string;
27913
27921
  /**
27914
27922
  * How far the delivery timestamp may be from server time before the delivery is rejected. Must
27915
- * be greater than zero when timestamp_header is set, and zero when it is not.
27923
+ * be greater than zero when timestamp_header is set, and zero when it is not. Always in seconds,
27924
+ * whatever unit the signed_payload recipe reads timestamp_header in.
27916
27925
  *
27917
27926
  * The tolerance is a floor on replay-protection retention, not only a freshness bound: whatever
27918
27927
  * remembers seen deliveries has to outlive this window, or a delivery still inside its accepted
@@ -3209,6 +3209,7 @@ var SignedPayload = /* @__PURE__ */ ((SignedPayload2) => {
3209
3209
  SignedPayload2["RAW_BODY"] = "RAW_BODY";
3210
3210
  SignedPayload2["TIMESTAMP_DOT_RAW_BODY"] = "TIMESTAMP_DOT_RAW_BODY";
3211
3211
  SignedPayload2["VERSION_TIMESTAMP_BODY"] = "VERSION_TIMESTAMP_BODY";
3212
+ SignedPayload2["METHOD_URI_BODY_TIMESTAMP"] = "METHOD_URI_BODY_TIMESTAMP";
3212
3213
  return SignedPayload2;
3213
3214
  })(SignedPayload || {});
3214
3215
  var VerificationMethod = /* @__PURE__ */ ((VerificationMethod2) => {