@wix/auto_sdk_app-components_components-catalog 1.0.109 → 1.0.111

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.
@@ -22603,18 +22603,21 @@ interface DispatchOrigin {
22603
22603
  declare enum VerificationSource {
22604
22604
  /**
22605
22605
  * One set of material covers every delivery of this connector: a single stored secret for the
22606
- * HMAC and callback-token methods, or the published key set at public_key_url for PUBLIC_KEY
22607
- * and OIDC_BEARER, where nothing is stored at all. The only legal scope for either.
22606
+ * HMAC and callback-token methods, or the published key set at the arm's public_key_url for
22607
+ * PUBLIC_KEY and OIDC_BEARER, where nothing is stored at all. The only legal scope for either.
22608
22608
  */
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 {
@@ -22699,7 +22709,7 @@ declare enum VerificationMethod {
22699
22709
  HMAC_SHA1 = "HMAC_SHA1",
22700
22710
  /**
22701
22711
  * Asymmetric signature over the canonical string, verified with a key fetched from
22702
- * public_key_url.
22712
+ * PublicKeyConfig.public_key_url.
22703
22713
  */
22704
22714
  PUBLIC_KEY = "PUBLIC_KEY",
22705
22715
  /**
@@ -22712,9 +22722,10 @@ declare enum VerificationMethod {
22712
22722
  NO_VERIFICATION = "NO_VERIFICATION",
22713
22723
  /**
22714
22724
  * OIDC bearer JWT in the Authorization header, verified against the key set at
22715
- * public_key_url with the expected audience, issuer and subject, for example Cloud Pub/Sub
22716
- * push authentication. Carries no payload binding, the same limitation CALLBACK_TOKEN
22717
- * documents for itself: it proves the sender's identity, not that the body is intact.
22725
+ * OidcBearerConfig.public_key_url with the expected audience, issuer and subject, for
22726
+ * example Cloud Pub/Sub push authentication. Carries no payload binding, the same
22727
+ * limitation CALLBACK_TOKEN documents for itself: it proves the sender's identity, not that
22728
+ * the body is intact.
22718
22729
  */
22719
22730
  OIDC_BEARER = "OIDC_BEARER"
22720
22731
  }
@@ -22723,8 +22734,8 @@ type VerificationMethodWithLiterals = VerificationMethod | 'HMAC_SHA256' | 'HMAC
22723
22734
  /** How a repeated delivery is recognized, so the same event is not processed twice. */
22724
22735
  declare enum ReplayProtection {
22725
22736
  /**
22726
- * The provider sends a per-delivery id, named by delivery_id_header, and a delivery already
22727
- * seen under that id is discarded.
22737
+ * The provider sends a per-delivery id, named by DeliveryIdHeaderConfig.delivery_id_header,
22738
+ * and a delivery already seen under that id is discarded.
22728
22739
  */
22729
22740
  DELIVERY_ID_HEADER = "DELIVERY_ID_HEADER",
22730
22741
  /**
@@ -23054,8 +23065,9 @@ interface DispatchConfig {
23054
23065
  *
23055
23066
  * No credential material is declared here. This config lives in the app component catalog and is
23056
23067
  * 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.
23068
+ * located through the selected verification arm's verification_source. The public_key_url on
23069
+ * PublicKeyConfig and OidcBearerConfig is the only credential-adjacent field, and it points at
23070
+ * material the provider publishes.
23059
23071
  *
23060
23072
  * Fields naming something the provider owns carry a provider_ prefix, so the identifiers a
23061
23073
  * delivery arrives with are never confused with the ones Wix mints.
@@ -23086,90 +23098,19 @@ interface WebhookConfig extends WebhookConfigVerificationOneOf, WebhookConfigRep
23086
23098
  * must select a concrete method — an unset method is rejected rather than treated as a default.
23087
23099
  */
23088
23100
  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
23101
  /**
23162
23102
  * 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.
23103
+ * example: "X-Slack-Request-Timestamp". Required by the HmacConfig.signed_payload recipes that
23104
+ * include a timestamp, and must be set together with timestamp_tolerance_seconds. The header
23105
+ * value is read as epoch seconds, except under METHOD_URI_BODY_TIMESTAMP, which reads it as
23106
+ * epoch milliseconds.
23166
23107
  * @maxLength 120
23167
23108
  */
23168
23109
  timestampHeader?: string;
23169
23110
  /**
23170
23111
  * How far the delivery timestamp may be from server time before the delivery is rejected. Must
23171
23112
  * 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.
23113
+ * whatever unit the HmacConfig.signed_payload recipe reads timestamp_header in.
23173
23114
  *
23174
23115
  * The tolerance is a floor on replay-protection retention, not only a freshness bound: whatever
23175
23116
  * remembers seen deliveries has to outlive this window, or a delivery still inside its accepted
@@ -23182,52 +23123,6 @@ interface WebhookConfig extends WebhookConfigVerificationOneOf, WebhookConfigRep
23182
23123
  * @max 3600
23183
23124
  */
23184
23125
  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
- /**
23199
- * Endpoint publishing the provider's public keys. Required for PUBLIC_KEY and OIDC_BEARER, and
23200
- * must be empty for every other method.
23201
- *
23202
- * Deliberately has no (wix.api.format), following revoke_url above: WEB_URL rejects the empty
23203
- * value this field carries for every other method. HTTPS and a parseable endpoint are enforced
23204
- * when the keys are fetched instead.
23205
- *
23206
- * Deprecated: superseded by PublicKeyConfig.public_key_url for PUBLIC_KEY, and by
23207
- * OidcBearerConfig.public_key_url for OIDC_BEARER.
23208
- * @maxLength 2000
23209
- * @deprecated
23210
- * @replacedBy verification.public_key_config.public_key_url (PUBLIC_KEY) or verification.oidc_bearer_config.public_key_url (OIDC_BEARER)
23211
- * @targetRemovalDate 2027-06-30
23212
- */
23213
- publicKeyUrl?: string;
23214
- /**
23215
- * Header carrying the provider's unique id for this delivery, for example "X-GitHub-Delivery".
23216
- * Required by, and legal only with, replay_protection = DELIVERY_ID_HEADER.
23217
- *
23218
- * The id is only as unique as the provider makes it. Google Calendar's X-Goog-Message-Number,
23219
- * for instance, counts per notification channel rather than globally, so a delivery is
23220
- * identified by the registration it arrived on together with this value, never by the value
23221
- * alone.
23222
- *
23223
- * Deprecated: superseded by DeliveryIdHeaderConfig.delivery_id_header (via the
23224
- * `replay_protection_config` oneof's delivery_id_header_config arm).
23225
- * @maxLength 120
23226
- * @deprecated
23227
- * @replacedBy replay_protection_config.delivery_id_header_config.delivery_id_header
23228
- * @targetRemovalDate 2027-06-30
23229
- */
23230
- deliveryIdHeader?: string;
23231
23126
  /**
23232
23127
  * Header carrying the event type of the delivery, for example "X-GitHub-Event". Optional: at
23233
23128
  * most one of event_type_header and event_type_json_pointer may be set, and a provider with no
@@ -23345,47 +23240,6 @@ interface WebhookConfig extends WebhookConfigVerificationOneOf, WebhookConfigRep
23345
23240
  * @immutable
23346
23241
  */
23347
23242
  deliveryTopic?: string;
23348
- /**
23349
- * Expected `aud` claim of an OIDC_BEARER token. An OIDC issuer's audience is chosen by whoever
23350
- * requested the token, not by the issuer, so pinning the value expected here is what stops a
23351
- * bearer token minted for a different audience — a different Pub/Sub push subscription, for
23352
- * instance — from authenticating against this one. Required for OIDC_BEARER and must be empty
23353
- * for every other method.
23354
- *
23355
- * Deprecated: superseded by OidcBearerConfig.oidc_expected_audience.
23356
- * @maxLength 2000
23357
- * @deprecated
23358
- * @replacedBy verification.oidc_bearer_config.oidc_expected_audience
23359
- * @targetRemovalDate 2027-06-30
23360
- */
23361
- oidcExpectedAudience?: string;
23362
- /**
23363
- * Expected `iss` claim of an OIDC_BEARER token, for example "https://accounts.google.com".
23364
- * Required for OIDC_BEARER and must be empty for every other method.
23365
- *
23366
- * Deprecated: superseded by OidcBearerConfig.oidc_expected_issuer.
23367
- * @maxLength 2000
23368
- * @deprecated
23369
- * @replacedBy verification.oidc_bearer_config.oidc_expected_issuer
23370
- * @targetRemovalDate 2027-06-30
23371
- */
23372
- oidcExpectedIssuer?: string;
23373
- /**
23374
- * Expected `sub` claim of an OIDC_BEARER token — the stable identifier of the specific caller
23375
- * trusted to send this connector's deliveries, for example a Pub/Sub push subscription's
23376
- * service account. iss and aud alone do not identify the sender: aud is a value the token
23377
- * *requester* chooses, not the issuer, so any principal able to mint a same-issuer,
23378
- * same-audience token — a different Google service account with permission to request an ID
23379
- * token for this audience, for instance — would otherwise pass. Required for OIDC_BEARER and
23380
- * must be empty for every other method.
23381
- *
23382
- * Deprecated: superseded by OidcBearerConfig.oidc_expected_subject.
23383
- * @maxLength 2000
23384
- * @deprecated
23385
- * @replacedBy verification.oidc_bearer_config.oidc_expected_subject
23386
- * @targetRemovalDate 2027-06-30
23387
- */
23388
- oidcExpectedSubject?: string;
23389
23243
  /**
23390
23244
  * Set when one delivery body is a batch of events, each possibly for a different provider tenant.
23391
23245
  * The whole request is verified once, then split into one delivery per element.