@wix/auto_sdk_data-extension-schema_schemas 1.0.317 → 1.0.319

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.
@@ -22758,18 +22758,21 @@ interface DispatchOrigin {
22758
22758
  declare enum VerificationSource {
22759
22759
  /**
22760
22760
  * One set of material covers every delivery of this connector: a single stored secret for the
22761
- * HMAC and callback-token methods, or the published key set at public_key_url for PUBLIC_KEY
22762
- * and OIDC_BEARER, where nothing is stored at all. The only legal scope for either.
22761
+ * HMAC and callback-token methods, or the published key set at the arm's public_key_url for
22762
+ * PUBLIC_KEY and OIDC_BEARER, where nothing is stored at all. The only legal scope for either.
22763
22763
  */
22764
22764
  CONNECTOR_WIDE = "CONNECTOR_WIDE",
22765
22765
  /**
22766
22766
  * Material is issued per registration and lives on the registration the delivery was sent to.
22767
- * Requires registration_required.
22767
+ * Requires registration_required. A registration is the provider-side one for a single
22768
+ * account, which is that account's subscription; there is no separate registration entity.
22768
22769
  */
22769
22770
  PER_REGISTRATION = "PER_REGISTRATION",
22770
22771
  /**
22771
22772
  * There is no material, because nothing is verified. The only legal scope for
22772
- * NO_VERIFICATION, and legal for nothing else.
22773
+ * NO_VERIFICATION, and legal for nothing else. Redundant with NO_VERIFICATION on purpose:
22774
+ * every enum in a valid config is explicitly set, so "nothing was declared" and "the
22775
+ * declaration is that nothing is verified" stay distinguishable.
22773
22776
  */
22774
22777
  UNSIGNED = "UNSIGNED"
22775
22778
  }
@@ -22814,7 +22817,7 @@ type SignedPayloadWithLiterals = SignedPayload | 'RAW_BODY' | 'TIMESTAMP_DOT_RAW
22814
22817
  /**
22815
22818
  * Per-method payload for the `verification` oneof above. Shared by HMAC_SHA256,
22816
22819
  * HMAC_SHA1, and (wrapped) PUBLIC_KEY - the three methods signatureMethods already groups
22817
- * together in the validator. timestamp_header / timestamp_tolerance_seconds stay flat on
22820
+ * together in the validator. timestamp_header / timestamp_tolerance_seconds stay on
22818
22821
  * WebhookConfig rather than moving in here, since BODY_HASH_WITHIN_TIMESTAMP_WINDOW borrows
22819
22822
  * them independently of which verification_method is selected.
22820
22823
  */
@@ -22828,13 +22831,20 @@ interface HmacConfig {
22828
22831
  signatureHeader?: string;
22829
22832
  /**
22830
22833
  * Literal prefix the provider places in front of the encoded signature, for example
22831
- * "sha256=" or "v0=". Empty when the header holds the bare signature.
22834
+ * "sha256=" or "v0=". Empty when the header holds the bare signature. A constant, never a
22835
+ * template: compared verbatim against the start of the header, and a delivery whose header
22836
+ * does not start with it is rejected.
22832
22837
  * @maxLength 20
22833
22838
  */
22834
22839
  signatureValuePrefix?: string;
22835
22840
  /** How the signature bytes are encoded in signature_header. */
22836
22841
  signatureEncoding?: SignatureEncodingWithLiterals;
22837
- /** Which canonical string the signature is computed over. */
22842
+ /**
22843
+ * Which canonical string the signature is computed over, from a closed set of recipes. There
22844
+ * is deliberately no free-form signing template, which would make the inbound path an
22845
+ * interpreter of app-owner input; a provider whose canonical string is not listed needs a new
22846
+ * enum value.
22847
+ */
22838
22848
  signedPayload?: SignedPayloadWithLiterals;
22839
22849
  }
22840
22850
  declare enum EventsLocation {
@@ -22854,7 +22864,7 @@ declare enum VerificationMethod {
22854
22864
  HMAC_SHA1 = "HMAC_SHA1",
22855
22865
  /**
22856
22866
  * Asymmetric signature over the canonical string, verified with a key fetched from
22857
- * public_key_url.
22867
+ * PublicKeyConfig.public_key_url.
22858
22868
  */
22859
22869
  PUBLIC_KEY = "PUBLIC_KEY",
22860
22870
  /**
@@ -22867,9 +22877,10 @@ declare enum VerificationMethod {
22867
22877
  NO_VERIFICATION = "NO_VERIFICATION",
22868
22878
  /**
22869
22879
  * OIDC bearer JWT in the Authorization header, verified against the key set at
22870
- * public_key_url with the expected audience, issuer and subject, for example Cloud Pub/Sub
22871
- * push authentication. Carries no payload binding, the same limitation CALLBACK_TOKEN
22872
- * documents for itself: it proves the sender's identity, not that the body is intact.
22880
+ * OidcBearerConfig.public_key_url with the expected audience, issuer and subject, for
22881
+ * example Cloud Pub/Sub push authentication. Carries no payload binding, the same
22882
+ * limitation CALLBACK_TOKEN documents for itself: it proves the sender's identity, not that
22883
+ * the body is intact.
22873
22884
  */
22874
22885
  OIDC_BEARER = "OIDC_BEARER"
22875
22886
  }
@@ -22878,8 +22889,8 @@ type VerificationMethodWithLiterals = VerificationMethod | 'HMAC_SHA256' | 'HMAC
22878
22889
  /** How a repeated delivery is recognized, so the same event is not processed twice. */
22879
22890
  declare enum ReplayProtection {
22880
22891
  /**
22881
- * The provider sends a per-delivery id, named by delivery_id_header, and a delivery already
22882
- * seen under that id is discarded.
22892
+ * The provider sends a per-delivery id, named by DeliveryIdHeaderConfig.delivery_id_header,
22893
+ * and a delivery already seen under that id is discarded.
22883
22894
  */
22884
22895
  DELIVERY_ID_HEADER = "DELIVERY_ID_HEADER",
22885
22896
  /**
@@ -23209,8 +23220,9 @@ interface DispatchConfig {
23209
23220
  *
23210
23221
  * No credential material is declared here. This config lives in the app component catalog and is
23211
23222
  * readable by app owners; signing secrets and callback tokens are stored separately and are
23212
- * located through verification_source. public_key_url is the only credential-adjacent field, and
23213
- * it points at material the provider publishes.
23223
+ * located through the selected verification arm's verification_source. The public_key_url on
23224
+ * PublicKeyConfig and OidcBearerConfig is the only credential-adjacent field, and it points at
23225
+ * material the provider publishes.
23214
23226
  *
23215
23227
  * Fields naming something the provider owns carry a provider_ prefix, so the identifiers a
23216
23228
  * delivery arrives with are never confused with the ones Wix mints.
@@ -23241,90 +23253,19 @@ interface WebhookConfig extends WebhookConfigVerificationOneOf, WebhookConfigRep
23241
23253
  * must select a concrete method — an unset method is rejected rather than treated as a default.
23242
23254
  */
23243
23255
  verificationMethod?: VerificationMethodWithLiterals;
23244
- /**
23245
- * Scope of the material used by verification_method: shared by the whole connector, or issued
23246
- * per registration. Names the scope rather than the kind of material, so it stays accurate for
23247
- * PUBLIC_KEY, where the connector-wide material is a published key URL and nothing is stored.
23248
- *
23249
- * "Per registration" is the provider-side registration for one account, which is that account's
23250
- * subscription - there is no separate registration entity to look for.
23251
- *
23252
- * The UNSIGNED arm is redundant with verification_method = NO_VERIFICATION, and deliberately so:
23253
- * every enum in a valid config is explicitly set, which keeps "nothing was declared" and "the
23254
- * declaration is that nothing is verified" distinguishable states rather than the same unset
23255
- * field. The alternative - dropping the arm and making this field conditionally required - moves
23256
- * the same fact into a validation rule instead of removing it.
23257
- *
23258
- * Deprecated: superseded by each `verification` arm's own verification_source field. Kept live
23259
- * and enforced for the flat-shape configs this migration has not yet moved off of.
23260
- * @deprecated
23261
- * @replacedBy verification (each arm's own verification_source field)
23262
- * @targetRemovalDate 2027-06-30
23263
- */
23264
- verificationSource?: VerificationSourceWithLiterals;
23265
- /**
23266
- * Header carrying the signature to verify. Required for HMAC_SHA256, HMAC_SHA1 and PUBLIC_KEY,
23267
- * and must be empty for every other method. For example: "X-Hub-Signature-256".
23268
- *
23269
- * Deprecated: superseded by HmacConfig.signature_header (via the `verification` oneof's
23270
- * hmac_sha256_config, hmac_sha1_config and public_key_config arms).
23271
- * @maxLength 120
23272
- * @deprecated
23273
- * @replacedBy HmacConfig.signature_header (via the verification oneof)
23274
- * @targetRemovalDate 2027-06-30
23275
- */
23276
- signatureHeader?: string;
23277
- /**
23278
- * Literal prefix the provider places in front of the encoded signature, for example "sha256="
23279
- * or "v0=". Empty when the header holds the bare signature.
23280
- *
23281
- * The value is a constant, never a template: it is compared verbatim against the start of the
23282
- * header and stripped before decoding, and a delivery whose header does not start with it is
23283
- * rejected. Nothing in it is interpreted or substituted.
23284
- *
23285
- * Deprecated: superseded by HmacConfig.signature_value_prefix.
23286
- * @maxLength 20
23287
- * @deprecated
23288
- * @replacedBy HmacConfig.signature_value_prefix (via the verification oneof)
23289
- * @targetRemovalDate 2027-06-30
23290
- */
23291
- signatureValuePrefix?: string;
23292
- /**
23293
- * How the signature bytes are encoded in signature_header. Required whenever signature_header
23294
- * is required.
23295
- *
23296
- * Deprecated: superseded by HmacConfig.signature_encoding.
23297
- * @deprecated
23298
- * @replacedBy HmacConfig.signature_encoding (via the verification oneof)
23299
- * @targetRemovalDate 2027-06-30
23300
- */
23301
- signatureEncoding?: SignatureEncodingWithLiterals;
23302
- /**
23303
- * Which canonical string the signature is computed over, selected from a closed set of recipes
23304
- * the server implements. Required whenever signature_header is required.
23305
- *
23306
- * There is deliberately no free-form signing template: a configurable template would make the
23307
- * inbound path an interpreter of app-owner input and an injection surface. A provider whose
23308
- * canonical string is not listed here needs a new enum value, not a new template.
23309
- *
23310
- * Deprecated: superseded by HmacConfig.signed_payload.
23311
- * @deprecated
23312
- * @replacedBy HmacConfig.signed_payload (via the verification oneof)
23313
- * @targetRemovalDate 2027-06-30
23314
- */
23315
- signedPayload?: SignedPayloadWithLiterals;
23316
23256
  /**
23317
23257
  * Header carrying the delivery timestamp, used to reject stale and replayed deliveries. For
23318
- * example: "X-Slack-Request-Timestamp". Required by the signed_payload recipes that include a
23319
- * timestamp, and must be set together with timestamp_tolerance_seconds. The header value is read
23320
- * as epoch seconds, except under METHOD_URI_BODY_TIMESTAMP, which reads it as epoch milliseconds.
23258
+ * example: "X-Slack-Request-Timestamp". Required by the HmacConfig.signed_payload recipes that
23259
+ * include a timestamp, and must be set together with timestamp_tolerance_seconds. The header
23260
+ * value is read as epoch seconds, except under METHOD_URI_BODY_TIMESTAMP, which reads it as
23261
+ * epoch milliseconds.
23321
23262
  * @maxLength 120
23322
23263
  */
23323
23264
  timestampHeader?: string;
23324
23265
  /**
23325
23266
  * How far the delivery timestamp may be from server time before the delivery is rejected. Must
23326
23267
  * be greater than zero when timestamp_header is set, and zero when it is not. Always in seconds,
23327
- * whatever unit the signed_payload recipe reads timestamp_header in.
23268
+ * whatever unit the HmacConfig.signed_payload recipe reads timestamp_header in.
23328
23269
  *
23329
23270
  * The tolerance is a floor on replay-protection retention, not only a freshness bound: whatever
23330
23271
  * remembers seen deliveries has to outlive this window, or a delivery still inside its accepted
@@ -23337,52 +23278,6 @@ interface WebhookConfig extends WebhookConfigVerificationOneOf, WebhookConfigRep
23337
23278
  * @max 3600
23338
23279
  */
23339
23280
  timestampToleranceSeconds?: number;
23340
- /**
23341
- * Header carrying the shared token the provider echoes on every delivery. Required for
23342
- * CALLBACK_TOKEN and must be empty for every other method. For example:
23343
- * "X-Goog-Channel-Token". The token itself is never declared here — it is located through
23344
- * verification_source.
23345
- *
23346
- * Deprecated: superseded by CallbackTokenConfig.callback_token_header.
23347
- * @maxLength 120
23348
- * @deprecated
23349
- * @replacedBy verification.callback_token_config.callback_token_header
23350
- * @targetRemovalDate 2027-06-30
23351
- */
23352
- callbackTokenHeader?: string;
23353
- /**
23354
- * Endpoint publishing the provider's public keys. Required for PUBLIC_KEY and OIDC_BEARER, and
23355
- * must be empty for every other method.
23356
- *
23357
- * Deliberately has no (wix.api.format), following revoke_url above: WEB_URL rejects the empty
23358
- * value this field carries for every other method. HTTPS and a parseable endpoint are enforced
23359
- * when the keys are fetched instead.
23360
- *
23361
- * Deprecated: superseded by PublicKeyConfig.public_key_url for PUBLIC_KEY, and by
23362
- * OidcBearerConfig.public_key_url for OIDC_BEARER.
23363
- * @maxLength 2000
23364
- * @deprecated
23365
- * @replacedBy verification.public_key_config.public_key_url (PUBLIC_KEY) or verification.oidc_bearer_config.public_key_url (OIDC_BEARER)
23366
- * @targetRemovalDate 2027-06-30
23367
- */
23368
- publicKeyUrl?: string;
23369
- /**
23370
- * Header carrying the provider's unique id for this delivery, for example "X-GitHub-Delivery".
23371
- * Required by, and legal only with, replay_protection = DELIVERY_ID_HEADER.
23372
- *
23373
- * The id is only as unique as the provider makes it. Google Calendar's X-Goog-Message-Number,
23374
- * for instance, counts per notification channel rather than globally, so a delivery is
23375
- * identified by the registration it arrived on together with this value, never by the value
23376
- * alone.
23377
- *
23378
- * Deprecated: superseded by DeliveryIdHeaderConfig.delivery_id_header (via the
23379
- * `replay_protection_config` oneof's delivery_id_header_config arm).
23380
- * @maxLength 120
23381
- * @deprecated
23382
- * @replacedBy replay_protection_config.delivery_id_header_config.delivery_id_header
23383
- * @targetRemovalDate 2027-06-30
23384
- */
23385
- deliveryIdHeader?: string;
23386
23281
  /**
23387
23282
  * Header carrying the event type of the delivery, for example "X-GitHub-Event". Optional: at
23388
23283
  * most one of event_type_header and event_type_json_pointer may be set, and a provider with no
@@ -23500,47 +23395,6 @@ interface WebhookConfig extends WebhookConfigVerificationOneOf, WebhookConfigRep
23500
23395
  * @immutable
23501
23396
  */
23502
23397
  deliveryTopic?: string;
23503
- /**
23504
- * Expected `aud` claim of an OIDC_BEARER token. An OIDC issuer's audience is chosen by whoever
23505
- * requested the token, not by the issuer, so pinning the value expected here is what stops a
23506
- * bearer token minted for a different audience — a different Pub/Sub push subscription, for
23507
- * instance — from authenticating against this one. Required for OIDC_BEARER and must be empty
23508
- * for every other method.
23509
- *
23510
- * Deprecated: superseded by OidcBearerConfig.oidc_expected_audience.
23511
- * @maxLength 2000
23512
- * @deprecated
23513
- * @replacedBy verification.oidc_bearer_config.oidc_expected_audience
23514
- * @targetRemovalDate 2027-06-30
23515
- */
23516
- oidcExpectedAudience?: string;
23517
- /**
23518
- * Expected `iss` claim of an OIDC_BEARER token, for example "https://accounts.google.com".
23519
- * Required for OIDC_BEARER and must be empty for every other method.
23520
- *
23521
- * Deprecated: superseded by OidcBearerConfig.oidc_expected_issuer.
23522
- * @maxLength 2000
23523
- * @deprecated
23524
- * @replacedBy verification.oidc_bearer_config.oidc_expected_issuer
23525
- * @targetRemovalDate 2027-06-30
23526
- */
23527
- oidcExpectedIssuer?: string;
23528
- /**
23529
- * Expected `sub` claim of an OIDC_BEARER token — the stable identifier of the specific caller
23530
- * trusted to send this connector's deliveries, for example a Pub/Sub push subscription's
23531
- * service account. iss and aud alone do not identify the sender: aud is a value the token
23532
- * *requester* chooses, not the issuer, so any principal able to mint a same-issuer,
23533
- * same-audience token — a different Google service account with permission to request an ID
23534
- * token for this audience, for instance — would otherwise pass. Required for OIDC_BEARER and
23535
- * must be empty for every other method.
23536
- *
23537
- * Deprecated: superseded by OidcBearerConfig.oidc_expected_subject.
23538
- * @maxLength 2000
23539
- * @deprecated
23540
- * @replacedBy verification.oidc_bearer_config.oidc_expected_subject
23541
- * @targetRemovalDate 2027-06-30
23542
- */
23543
- oidcExpectedSubject?: string;
23544
23398
  /**
23545
23399
  * Set when one delivery body is a batch of events, each possibly for a different provider tenant.
23546
23400
  * The whole request is verified once, then split into one delivery per element.