@wix/auto_sdk_app-components_components-catalog 1.0.109 → 1.0.110

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.
@@ -22609,12 +22609,15 @@ declare enum VerificationSource {
22609
22609
  CONNECTOR_WIDE = "CONNECTOR_WIDE",
22610
22610
  /**
22611
22611
  * Material is issued per registration and lives on the registration the delivery was sent to.
22612
- * Requires registration_required.
22612
+ * Requires registration_required. A registration is the provider-side one for a single
22613
+ * account, which is that account's subscription; there is no separate registration entity.
22613
22614
  */
22614
22615
  PER_REGISTRATION = "PER_REGISTRATION",
22615
22616
  /**
22616
22617
  * There is no material, because nothing is verified. The only legal scope for
22617
- * NO_VERIFICATION, and legal for nothing else.
22618
+ * NO_VERIFICATION, and legal for nothing else. Redundant with NO_VERIFICATION on purpose:
22619
+ * every enum in a valid config is explicitly set, so "nothing was declared" and "the
22620
+ * declaration is that nothing is verified" stay distinguishable.
22618
22621
  */
22619
22622
  UNSIGNED = "UNSIGNED"
22620
22623
  }
@@ -22659,7 +22662,7 @@ type SignedPayloadWithLiterals = SignedPayload | 'RAW_BODY' | 'TIMESTAMP_DOT_RAW
22659
22662
  /**
22660
22663
  * Per-method payload for the `verification` oneof above. Shared by HMAC_SHA256,
22661
22664
  * HMAC_SHA1, and (wrapped) PUBLIC_KEY - the three methods signatureMethods already groups
22662
- * together in the validator. timestamp_header / timestamp_tolerance_seconds stay flat on
22665
+ * together in the validator. timestamp_header / timestamp_tolerance_seconds stay on
22663
22666
  * WebhookConfig rather than moving in here, since BODY_HASH_WITHIN_TIMESTAMP_WINDOW borrows
22664
22667
  * them independently of which verification_method is selected.
22665
22668
  */
@@ -22673,13 +22676,20 @@ interface HmacConfig {
22673
22676
  signatureHeader?: string;
22674
22677
  /**
22675
22678
  * Literal prefix the provider places in front of the encoded signature, for example
22676
- * "sha256=" or "v0=". Empty when the header holds the bare signature.
22679
+ * "sha256=" or "v0=". Empty when the header holds the bare signature. A constant, never a
22680
+ * template: compared verbatim against the start of the header, and a delivery whose header
22681
+ * does not start with it is rejected.
22677
22682
  * @maxLength 20
22678
22683
  */
22679
22684
  signatureValuePrefix?: string;
22680
22685
  /** How the signature bytes are encoded in signature_header. */
22681
22686
  signatureEncoding?: SignatureEncodingWithLiterals;
22682
- /** Which canonical string the signature is computed over. */
22687
+ /**
22688
+ * Which canonical string the signature is computed over, from a closed set of recipes. There
22689
+ * is deliberately no free-form signing template, which would make the inbound path an
22690
+ * interpreter of app-owner input; a provider whose canonical string is not listed needs a new
22691
+ * enum value.
22692
+ */
22683
22693
  signedPayload?: SignedPayloadWithLiterals;
22684
22694
  }
22685
22695
  declare enum EventsLocation {
@@ -23054,8 +23064,8 @@ interface DispatchConfig {
23054
23064
  *
23055
23065
  * No credential material is declared here. This config lives in the app component catalog and is
23056
23066
  * readable by app owners; signing secrets and callback tokens are stored separately and are
23057
- * located through verification_source. public_key_url is the only credential-adjacent field, and
23058
- * it points at material the provider publishes.
23067
+ * located through the selected verification arm's verification_source. public_key_url is the
23068
+ * only credential-adjacent field, and it points at material the provider publishes.
23059
23069
  *
23060
23070
  * Fields naming something the provider owns carry a provider_ prefix, so the identifiers a
23061
23071
  * delivery arrives with are never confused with the ones Wix mints.
@@ -23086,90 +23096,19 @@ interface WebhookConfig extends WebhookConfigVerificationOneOf, WebhookConfigRep
23086
23096
  * must select a concrete method — an unset method is rejected rather than treated as a default.
23087
23097
  */
23088
23098
  verificationMethod?: VerificationMethodWithLiterals;
23089
- /**
23090
- * Scope of the material used by verification_method: shared by the whole connector, or issued
23091
- * per registration. Names the scope rather than the kind of material, so it stays accurate for
23092
- * PUBLIC_KEY, where the connector-wide material is a published key URL and nothing is stored.
23093
- *
23094
- * "Per registration" is the provider-side registration for one account, which is that account's
23095
- * subscription - there is no separate registration entity to look for.
23096
- *
23097
- * The UNSIGNED arm is redundant with verification_method = NO_VERIFICATION, and deliberately so:
23098
- * every enum in a valid config is explicitly set, which keeps "nothing was declared" and "the
23099
- * declaration is that nothing is verified" distinguishable states rather than the same unset
23100
- * field. The alternative - dropping the arm and making this field conditionally required - moves
23101
- * the same fact into a validation rule instead of removing it.
23102
- *
23103
- * Deprecated: superseded by each `verification` arm's own verification_source field. Kept live
23104
- * and enforced for the flat-shape configs this migration has not yet moved off of.
23105
- * @deprecated
23106
- * @replacedBy verification (each arm's own verification_source field)
23107
- * @targetRemovalDate 2027-06-30
23108
- */
23109
- verificationSource?: VerificationSourceWithLiterals;
23110
- /**
23111
- * Header carrying the signature to verify. Required for HMAC_SHA256, HMAC_SHA1 and PUBLIC_KEY,
23112
- * and must be empty for every other method. For example: "X-Hub-Signature-256".
23113
- *
23114
- * Deprecated: superseded by HmacConfig.signature_header (via the `verification` oneof's
23115
- * hmac_sha256_config, hmac_sha1_config and public_key_config arms).
23116
- * @maxLength 120
23117
- * @deprecated
23118
- * @replacedBy HmacConfig.signature_header (via the verification oneof)
23119
- * @targetRemovalDate 2027-06-30
23120
- */
23121
- signatureHeader?: string;
23122
- /**
23123
- * Literal prefix the provider places in front of the encoded signature, for example "sha256="
23124
- * or "v0=". Empty when the header holds the bare signature.
23125
- *
23126
- * The value is a constant, never a template: it is compared verbatim against the start of the
23127
- * header and stripped before decoding, and a delivery whose header does not start with it is
23128
- * rejected. Nothing in it is interpreted or substituted.
23129
- *
23130
- * Deprecated: superseded by HmacConfig.signature_value_prefix.
23131
- * @maxLength 20
23132
- * @deprecated
23133
- * @replacedBy HmacConfig.signature_value_prefix (via the verification oneof)
23134
- * @targetRemovalDate 2027-06-30
23135
- */
23136
- signatureValuePrefix?: string;
23137
- /**
23138
- * How the signature bytes are encoded in signature_header. Required whenever signature_header
23139
- * is required.
23140
- *
23141
- * Deprecated: superseded by HmacConfig.signature_encoding.
23142
- * @deprecated
23143
- * @replacedBy HmacConfig.signature_encoding (via the verification oneof)
23144
- * @targetRemovalDate 2027-06-30
23145
- */
23146
- signatureEncoding?: SignatureEncodingWithLiterals;
23147
- /**
23148
- * Which canonical string the signature is computed over, selected from a closed set of recipes
23149
- * the server implements. Required whenever signature_header is required.
23150
- *
23151
- * There is deliberately no free-form signing template: a configurable template would make the
23152
- * inbound path an interpreter of app-owner input and an injection surface. A provider whose
23153
- * canonical string is not listed here needs a new enum value, not a new template.
23154
- *
23155
- * Deprecated: superseded by HmacConfig.signed_payload.
23156
- * @deprecated
23157
- * @replacedBy HmacConfig.signed_payload (via the verification oneof)
23158
- * @targetRemovalDate 2027-06-30
23159
- */
23160
- signedPayload?: SignedPayloadWithLiterals;
23161
23099
  /**
23162
23100
  * Header carrying the delivery timestamp, used to reject stale and replayed deliveries. For
23163
- * example: "X-Slack-Request-Timestamp". Required by the signed_payload recipes that include a
23164
- * timestamp, and must be set together with timestamp_tolerance_seconds. The header value is read
23165
- * as epoch seconds, except under METHOD_URI_BODY_TIMESTAMP, which reads it as epoch milliseconds.
23101
+ * example: "X-Slack-Request-Timestamp". Required by the HmacConfig.signed_payload recipes that
23102
+ * include a timestamp, and must be set together with timestamp_tolerance_seconds. The header
23103
+ * value is read as epoch seconds, except under METHOD_URI_BODY_TIMESTAMP, which reads it as
23104
+ * epoch milliseconds.
23166
23105
  * @maxLength 120
23167
23106
  */
23168
23107
  timestampHeader?: string;
23169
23108
  /**
23170
23109
  * How far the delivery timestamp may be from server time before the delivery is rejected. Must
23171
23110
  * be greater than zero when timestamp_header is set, and zero when it is not. Always in seconds,
23172
- * whatever unit the signed_payload recipe reads timestamp_header in.
23111
+ * whatever unit the HmacConfig.signed_payload recipe reads timestamp_header in.
23173
23112
  *
23174
23113
  * The tolerance is a floor on replay-protection retention, not only a freshness bound: whatever
23175
23114
  * remembers seen deliveries has to outlive this window, or a delivery still inside its accepted
@@ -23182,19 +23121,6 @@ interface WebhookConfig extends WebhookConfigVerificationOneOf, WebhookConfigRep
23182
23121
  * @max 3600
23183
23122
  */
23184
23123
  timestampToleranceSeconds?: number;
23185
- /**
23186
- * Header carrying the shared token the provider echoes on every delivery. Required for
23187
- * CALLBACK_TOKEN and must be empty for every other method. For example:
23188
- * "X-Goog-Channel-Token". The token itself is never declared here — it is located through
23189
- * verification_source.
23190
- *
23191
- * Deprecated: superseded by CallbackTokenConfig.callback_token_header.
23192
- * @maxLength 120
23193
- * @deprecated
23194
- * @replacedBy verification.callback_token_config.callback_token_header
23195
- * @targetRemovalDate 2027-06-30
23196
- */
23197
- callbackTokenHeader?: string;
23198
23124
  /**
23199
23125
  * Endpoint publishing the provider's public keys. Required for PUBLIC_KEY and OIDC_BEARER, and
23200
23126
  * must be empty for every other method.