@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.
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.mjs +1 -0
- package/build/es/index.mjs.map +1 -1
- package/build/trusted/cjs/index.d.ts +13 -4
- package/build/trusted/cjs/index.js +1 -0
- package/build/trusted/cjs/index.js.map +1 -1
- package/build/trusted/es/index.d.mts +13 -4
- package/build/trusted/es/index.mjs +1 -0
- package/build/trusted/es/index.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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
|
|
@@ -3796,6 +3796,7 @@ var SignedPayload = /* @__PURE__ */ ((SignedPayload2) => {
|
|
|
3796
3796
|
SignedPayload2["RAW_BODY"] = "RAW_BODY";
|
|
3797
3797
|
SignedPayload2["TIMESTAMP_DOT_RAW_BODY"] = "TIMESTAMP_DOT_RAW_BODY";
|
|
3798
3798
|
SignedPayload2["VERSION_TIMESTAMP_BODY"] = "VERSION_TIMESTAMP_BODY";
|
|
3799
|
+
SignedPayload2["METHOD_URI_BODY_TIMESTAMP"] = "METHOD_URI_BODY_TIMESTAMP";
|
|
3799
3800
|
return SignedPayload2;
|
|
3800
3801
|
})(SignedPayload || {});
|
|
3801
3802
|
var VerificationMethod = /* @__PURE__ */ ((VerificationMethod2) => {
|