@wix/app-extensions 1.0.174 → 1.0.176
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.
|
@@ -27481,18 +27481,21 @@ declare enum VerificationSource {
|
|
|
27481
27481
|
UNKNOWN_VERIFICATION_SOURCE = "UNKNOWN_VERIFICATION_SOURCE",
|
|
27482
27482
|
/**
|
|
27483
27483
|
* One set of material covers every delivery of this connector: a single stored secret for the
|
|
27484
|
-
* HMAC and callback-token methods, or the published key set at public_key_url for
|
|
27485
|
-
* and OIDC_BEARER, where nothing is stored at all. The only legal scope for either.
|
|
27484
|
+
* HMAC and callback-token methods, or the published key set at the arm's public_key_url for
|
|
27485
|
+
* PUBLIC_KEY and OIDC_BEARER, where nothing is stored at all. The only legal scope for either.
|
|
27486
27486
|
*/
|
|
27487
27487
|
CONNECTOR_WIDE = "CONNECTOR_WIDE",
|
|
27488
27488
|
/**
|
|
27489
27489
|
* Material is issued per registration and lives on the registration the delivery was sent to.
|
|
27490
|
-
* Requires registration_required.
|
|
27490
|
+
* Requires registration_required. A registration is the provider-side one for a single
|
|
27491
|
+
* account, which is that account's subscription; there is no separate registration entity.
|
|
27491
27492
|
*/
|
|
27492
27493
|
PER_REGISTRATION = "PER_REGISTRATION",
|
|
27493
27494
|
/**
|
|
27494
27495
|
* There is no material, because nothing is verified. The only legal scope for
|
|
27495
|
-
* NO_VERIFICATION, and legal for nothing else.
|
|
27496
|
+
* NO_VERIFICATION, and legal for nothing else. Redundant with NO_VERIFICATION on purpose:
|
|
27497
|
+
* every enum in a valid config is explicitly set, so "nothing was declared" and "the
|
|
27498
|
+
* declaration is that nothing is verified" stay distinguishable.
|
|
27496
27499
|
*/
|
|
27497
27500
|
UNSIGNED = "UNSIGNED"
|
|
27498
27501
|
}
|
|
@@ -27546,7 +27549,7 @@ type SignedPayloadWithLiterals = SignedPayload | 'UNKNOWN_SIGNED_PAYLOAD' | 'RAW
|
|
|
27546
27549
|
/**
|
|
27547
27550
|
* Per-method payload for the `verification` oneof above. Shared by HMAC_SHA256,
|
|
27548
27551
|
* HMAC_SHA1, and (wrapped) PUBLIC_KEY - the three methods signatureMethods already groups
|
|
27549
|
-
* together in the validator. timestamp_header / timestamp_tolerance_seconds stay
|
|
27552
|
+
* together in the validator. timestamp_header / timestamp_tolerance_seconds stay on
|
|
27550
27553
|
* WebhookConfig rather than moving in here, since BODY_HASH_WITHIN_TIMESTAMP_WINDOW borrows
|
|
27551
27554
|
* them independently of which verification_method is selected.
|
|
27552
27555
|
*/
|
|
@@ -27561,13 +27564,20 @@ interface HmacConfig {
|
|
|
27561
27564
|
signatureHeader?: string;
|
|
27562
27565
|
/**
|
|
27563
27566
|
* Literal prefix the provider places in front of the encoded signature, for example
|
|
27564
|
-
* "sha256=" or "v0=". Empty when the header holds the bare signature.
|
|
27567
|
+
* "sha256=" or "v0=". Empty when the header holds the bare signature. A constant, never a
|
|
27568
|
+
* template: compared verbatim against the start of the header, and a delivery whose header
|
|
27569
|
+
* does not start with it is rejected.
|
|
27565
27570
|
* @maxLength 20
|
|
27566
27571
|
*/
|
|
27567
27572
|
signatureValuePrefix?: string;
|
|
27568
27573
|
/** How the signature bytes are encoded in signature_header. */
|
|
27569
27574
|
signatureEncoding?: SignatureEncodingWithLiterals;
|
|
27570
|
-
/**
|
|
27575
|
+
/**
|
|
27576
|
+
* Which canonical string the signature is computed over, from a closed set of recipes. There
|
|
27577
|
+
* is deliberately no free-form signing template, which would make the inbound path an
|
|
27578
|
+
* interpreter of app-owner input; a provider whose canonical string is not listed needs a new
|
|
27579
|
+
* enum value.
|
|
27580
|
+
*/
|
|
27571
27581
|
signedPayload?: SignedPayloadWithLiterals;
|
|
27572
27582
|
}
|
|
27573
27583
|
/** @internal */
|
|
@@ -27593,7 +27603,7 @@ declare enum VerificationMethod {
|
|
|
27593
27603
|
HMAC_SHA1 = "HMAC_SHA1",
|
|
27594
27604
|
/**
|
|
27595
27605
|
* Asymmetric signature over the canonical string, verified with a key fetched from
|
|
27596
|
-
* public_key_url.
|
|
27606
|
+
* PublicKeyConfig.public_key_url.
|
|
27597
27607
|
*/
|
|
27598
27608
|
PUBLIC_KEY = "PUBLIC_KEY",
|
|
27599
27609
|
/**
|
|
@@ -27606,9 +27616,10 @@ declare enum VerificationMethod {
|
|
|
27606
27616
|
NO_VERIFICATION = "NO_VERIFICATION",
|
|
27607
27617
|
/**
|
|
27608
27618
|
* OIDC bearer JWT in the Authorization header, verified against the key set at
|
|
27609
|
-
* public_key_url with the expected audience, issuer and subject, for
|
|
27610
|
-
* push authentication. Carries no payload binding, the same
|
|
27611
|
-
* documents for itself: it proves the sender's identity, not that
|
|
27619
|
+
* OidcBearerConfig.public_key_url with the expected audience, issuer and subject, for
|
|
27620
|
+
* example Cloud Pub/Sub push authentication. Carries no payload binding, the same
|
|
27621
|
+
* limitation CALLBACK_TOKEN documents for itself: it proves the sender's identity, not that
|
|
27622
|
+
* the body is intact.
|
|
27612
27623
|
*/
|
|
27613
27624
|
OIDC_BEARER = "OIDC_BEARER"
|
|
27614
27625
|
}
|
|
@@ -27624,8 +27635,8 @@ declare enum ReplayProtection {
|
|
|
27624
27635
|
*/
|
|
27625
27636
|
UNKNOWN_REPLAY_PROTECTION = "UNKNOWN_REPLAY_PROTECTION",
|
|
27626
27637
|
/**
|
|
27627
|
-
* The provider sends a per-delivery id, named by delivery_id_header,
|
|
27628
|
-
* seen under that id is discarded.
|
|
27638
|
+
* The provider sends a per-delivery id, named by DeliveryIdHeaderConfig.delivery_id_header,
|
|
27639
|
+
* and a delivery already seen under that id is discarded.
|
|
27629
27640
|
*/
|
|
27630
27641
|
DELIVERY_ID_HEADER = "DELIVERY_ID_HEADER",
|
|
27631
27642
|
/**
|
|
@@ -27969,8 +27980,9 @@ interface DispatchConfig {
|
|
|
27969
27980
|
*
|
|
27970
27981
|
* No credential material is declared here. This config lives in the app component catalog and is
|
|
27971
27982
|
* readable by app owners; signing secrets and callback tokens are stored separately and are
|
|
27972
|
-
* located through
|
|
27973
|
-
*
|
|
27983
|
+
* located through the selected verification arm's verification_source. The public_key_url on
|
|
27984
|
+
* PublicKeyConfig and OidcBearerConfig is the only credential-adjacent field, and it points at
|
|
27985
|
+
* material the provider publishes.
|
|
27974
27986
|
*
|
|
27975
27987
|
* Fields naming something the provider owns carry a provider_ prefix, so the identifiers a
|
|
27976
27988
|
* delivery arrives with are never confused with the ones Wix mints.
|
|
@@ -28002,90 +28014,19 @@ interface WebhookConfig extends WebhookConfigVerificationOneOf, WebhookConfigRep
|
|
|
28002
28014
|
* must select a concrete method — an unset method is rejected rather than treated as a default.
|
|
28003
28015
|
*/
|
|
28004
28016
|
verificationMethod?: VerificationMethodWithLiterals;
|
|
28005
|
-
/**
|
|
28006
|
-
* Scope of the material used by verification_method: shared by the whole connector, or issued
|
|
28007
|
-
* per registration. Names the scope rather than the kind of material, so it stays accurate for
|
|
28008
|
-
* PUBLIC_KEY, where the connector-wide material is a published key URL and nothing is stored.
|
|
28009
|
-
*
|
|
28010
|
-
* "Per registration" is the provider-side registration for one account, which is that account's
|
|
28011
|
-
* subscription - there is no separate registration entity to look for.
|
|
28012
|
-
*
|
|
28013
|
-
* The UNSIGNED arm is redundant with verification_method = NO_VERIFICATION, and deliberately so:
|
|
28014
|
-
* every enum in a valid config is explicitly set, which keeps "nothing was declared" and "the
|
|
28015
|
-
* declaration is that nothing is verified" distinguishable states rather than the same unset
|
|
28016
|
-
* field. The alternative - dropping the arm and making this field conditionally required - moves
|
|
28017
|
-
* the same fact into a validation rule instead of removing it.
|
|
28018
|
-
*
|
|
28019
|
-
* Deprecated: superseded by each `verification` arm's own verification_source field. Kept live
|
|
28020
|
-
* and enforced for the flat-shape configs this migration has not yet moved off of.
|
|
28021
|
-
* @deprecated
|
|
28022
|
-
* @replacedBy verification (each arm's own verification_source field)
|
|
28023
|
-
* @targetRemovalDate 2027-06-30
|
|
28024
|
-
*/
|
|
28025
|
-
verificationSource?: VerificationSourceWithLiterals;
|
|
28026
|
-
/**
|
|
28027
|
-
* Header carrying the signature to verify. Required for HMAC_SHA256, HMAC_SHA1 and PUBLIC_KEY,
|
|
28028
|
-
* and must be empty for every other method. For example: "X-Hub-Signature-256".
|
|
28029
|
-
*
|
|
28030
|
-
* Deprecated: superseded by HmacConfig.signature_header (via the `verification` oneof's
|
|
28031
|
-
* hmac_sha256_config, hmac_sha1_config and public_key_config arms).
|
|
28032
|
-
* @maxLength 120
|
|
28033
|
-
* @deprecated
|
|
28034
|
-
* @replacedBy HmacConfig.signature_header (via the verification oneof)
|
|
28035
|
-
* @targetRemovalDate 2027-06-30
|
|
28036
|
-
*/
|
|
28037
|
-
signatureHeader?: string;
|
|
28038
|
-
/**
|
|
28039
|
-
* Literal prefix the provider places in front of the encoded signature, for example "sha256="
|
|
28040
|
-
* or "v0=". Empty when the header holds the bare signature.
|
|
28041
|
-
*
|
|
28042
|
-
* The value is a constant, never a template: it is compared verbatim against the start of the
|
|
28043
|
-
* header and stripped before decoding, and a delivery whose header does not start with it is
|
|
28044
|
-
* rejected. Nothing in it is interpreted or substituted.
|
|
28045
|
-
*
|
|
28046
|
-
* Deprecated: superseded by HmacConfig.signature_value_prefix.
|
|
28047
|
-
* @maxLength 20
|
|
28048
|
-
* @deprecated
|
|
28049
|
-
* @replacedBy HmacConfig.signature_value_prefix (via the verification oneof)
|
|
28050
|
-
* @targetRemovalDate 2027-06-30
|
|
28051
|
-
*/
|
|
28052
|
-
signatureValuePrefix?: string;
|
|
28053
|
-
/**
|
|
28054
|
-
* How the signature bytes are encoded in signature_header. Required whenever signature_header
|
|
28055
|
-
* is required.
|
|
28056
|
-
*
|
|
28057
|
-
* Deprecated: superseded by HmacConfig.signature_encoding.
|
|
28058
|
-
* @deprecated
|
|
28059
|
-
* @replacedBy HmacConfig.signature_encoding (via the verification oneof)
|
|
28060
|
-
* @targetRemovalDate 2027-06-30
|
|
28061
|
-
*/
|
|
28062
|
-
signatureEncoding?: SignatureEncodingWithLiterals;
|
|
28063
|
-
/**
|
|
28064
|
-
* Which canonical string the signature is computed over, selected from a closed set of recipes
|
|
28065
|
-
* the server implements. Required whenever signature_header is required.
|
|
28066
|
-
*
|
|
28067
|
-
* There is deliberately no free-form signing template: a configurable template would make the
|
|
28068
|
-
* inbound path an interpreter of app-owner input and an injection surface. A provider whose
|
|
28069
|
-
* canonical string is not listed here needs a new enum value, not a new template.
|
|
28070
|
-
*
|
|
28071
|
-
* Deprecated: superseded by HmacConfig.signed_payload.
|
|
28072
|
-
* @deprecated
|
|
28073
|
-
* @replacedBy HmacConfig.signed_payload (via the verification oneof)
|
|
28074
|
-
* @targetRemovalDate 2027-06-30
|
|
28075
|
-
*/
|
|
28076
|
-
signedPayload?: SignedPayloadWithLiterals;
|
|
28077
28017
|
/**
|
|
28078
28018
|
* Header carrying the delivery timestamp, used to reject stale and replayed deliveries. For
|
|
28079
|
-
* example: "X-Slack-Request-Timestamp". Required by the signed_payload recipes that
|
|
28080
|
-
* timestamp, and must be set together with timestamp_tolerance_seconds. The header
|
|
28081
|
-
* as epoch seconds, except under METHOD_URI_BODY_TIMESTAMP, which reads it as
|
|
28019
|
+
* example: "X-Slack-Request-Timestamp". Required by the HmacConfig.signed_payload recipes that
|
|
28020
|
+
* include a timestamp, and must be set together with timestamp_tolerance_seconds. The header
|
|
28021
|
+
* value is read as epoch seconds, except under METHOD_URI_BODY_TIMESTAMP, which reads it as
|
|
28022
|
+
* epoch milliseconds.
|
|
28082
28023
|
* @maxLength 120
|
|
28083
28024
|
*/
|
|
28084
28025
|
timestampHeader?: string;
|
|
28085
28026
|
/**
|
|
28086
28027
|
* How far the delivery timestamp may be from server time before the delivery is rejected. Must
|
|
28087
28028
|
* be greater than zero when timestamp_header is set, and zero when it is not. Always in seconds,
|
|
28088
|
-
* whatever unit the signed_payload recipe reads timestamp_header in.
|
|
28029
|
+
* whatever unit the HmacConfig.signed_payload recipe reads timestamp_header in.
|
|
28089
28030
|
*
|
|
28090
28031
|
* The tolerance is a floor on replay-protection retention, not only a freshness bound: whatever
|
|
28091
28032
|
* remembers seen deliveries has to outlive this window, or a delivery still inside its accepted
|
|
@@ -28098,52 +28039,6 @@ interface WebhookConfig extends WebhookConfigVerificationOneOf, WebhookConfigRep
|
|
|
28098
28039
|
* @max 3600
|
|
28099
28040
|
*/
|
|
28100
28041
|
timestampToleranceSeconds?: number;
|
|
28101
|
-
/**
|
|
28102
|
-
* Header carrying the shared token the provider echoes on every delivery. Required for
|
|
28103
|
-
* CALLBACK_TOKEN and must be empty for every other method. For example:
|
|
28104
|
-
* "X-Goog-Channel-Token". The token itself is never declared here — it is located through
|
|
28105
|
-
* verification_source.
|
|
28106
|
-
*
|
|
28107
|
-
* Deprecated: superseded by CallbackTokenConfig.callback_token_header.
|
|
28108
|
-
* @maxLength 120
|
|
28109
|
-
* @deprecated
|
|
28110
|
-
* @replacedBy verification.callback_token_config.callback_token_header
|
|
28111
|
-
* @targetRemovalDate 2027-06-30
|
|
28112
|
-
*/
|
|
28113
|
-
callbackTokenHeader?: string;
|
|
28114
|
-
/**
|
|
28115
|
-
* Endpoint publishing the provider's public keys. Required for PUBLIC_KEY and OIDC_BEARER, and
|
|
28116
|
-
* must be empty for every other method.
|
|
28117
|
-
*
|
|
28118
|
-
* Deliberately has no (wix.api.format), following revoke_url above: WEB_URL rejects the empty
|
|
28119
|
-
* value this field carries for every other method. HTTPS and a parseable endpoint are enforced
|
|
28120
|
-
* when the keys are fetched instead.
|
|
28121
|
-
*
|
|
28122
|
-
* Deprecated: superseded by PublicKeyConfig.public_key_url for PUBLIC_KEY, and by
|
|
28123
|
-
* OidcBearerConfig.public_key_url for OIDC_BEARER.
|
|
28124
|
-
* @maxLength 2000
|
|
28125
|
-
* @deprecated
|
|
28126
|
-
* @replacedBy verification.public_key_config.public_key_url (PUBLIC_KEY) or verification.oidc_bearer_config.public_key_url (OIDC_BEARER)
|
|
28127
|
-
* @targetRemovalDate 2027-06-30
|
|
28128
|
-
*/
|
|
28129
|
-
publicKeyUrl?: string;
|
|
28130
|
-
/**
|
|
28131
|
-
* Header carrying the provider's unique id for this delivery, for example "X-GitHub-Delivery".
|
|
28132
|
-
* Required by, and legal only with, replay_protection = DELIVERY_ID_HEADER.
|
|
28133
|
-
*
|
|
28134
|
-
* The id is only as unique as the provider makes it. Google Calendar's X-Goog-Message-Number,
|
|
28135
|
-
* for instance, counts per notification channel rather than globally, so a delivery is
|
|
28136
|
-
* identified by the registration it arrived on together with this value, never by the value
|
|
28137
|
-
* alone.
|
|
28138
|
-
*
|
|
28139
|
-
* Deprecated: superseded by DeliveryIdHeaderConfig.delivery_id_header (via the
|
|
28140
|
-
* `replay_protection_config` oneof's delivery_id_header_config arm).
|
|
28141
|
-
* @maxLength 120
|
|
28142
|
-
* @deprecated
|
|
28143
|
-
* @replacedBy replay_protection_config.delivery_id_header_config.delivery_id_header
|
|
28144
|
-
* @targetRemovalDate 2027-06-30
|
|
28145
|
-
*/
|
|
28146
|
-
deliveryIdHeader?: string;
|
|
28147
28042
|
/**
|
|
28148
28043
|
* Header carrying the event type of the delivery, for example "X-GitHub-Event". Optional: at
|
|
28149
28044
|
* most one of event_type_header and event_type_json_pointer may be set, and a provider with no
|
|
@@ -28261,47 +28156,6 @@ interface WebhookConfig extends WebhookConfigVerificationOneOf, WebhookConfigRep
|
|
|
28261
28156
|
* @immutable
|
|
28262
28157
|
*/
|
|
28263
28158
|
deliveryTopic?: string;
|
|
28264
|
-
/**
|
|
28265
|
-
* Expected `aud` claim of an OIDC_BEARER token. An OIDC issuer's audience is chosen by whoever
|
|
28266
|
-
* requested the token, not by the issuer, so pinning the value expected here is what stops a
|
|
28267
|
-
* bearer token minted for a different audience — a different Pub/Sub push subscription, for
|
|
28268
|
-
* instance — from authenticating against this one. Required for OIDC_BEARER and must be empty
|
|
28269
|
-
* for every other method.
|
|
28270
|
-
*
|
|
28271
|
-
* Deprecated: superseded by OidcBearerConfig.oidc_expected_audience.
|
|
28272
|
-
* @maxLength 2000
|
|
28273
|
-
* @deprecated
|
|
28274
|
-
* @replacedBy verification.oidc_bearer_config.oidc_expected_audience
|
|
28275
|
-
* @targetRemovalDate 2027-06-30
|
|
28276
|
-
*/
|
|
28277
|
-
oidcExpectedAudience?: string;
|
|
28278
|
-
/**
|
|
28279
|
-
* Expected `iss` claim of an OIDC_BEARER token, for example "https://accounts.google.com".
|
|
28280
|
-
* Required for OIDC_BEARER and must be empty for every other method.
|
|
28281
|
-
*
|
|
28282
|
-
* Deprecated: superseded by OidcBearerConfig.oidc_expected_issuer.
|
|
28283
|
-
* @maxLength 2000
|
|
28284
|
-
* @deprecated
|
|
28285
|
-
* @replacedBy verification.oidc_bearer_config.oidc_expected_issuer
|
|
28286
|
-
* @targetRemovalDate 2027-06-30
|
|
28287
|
-
*/
|
|
28288
|
-
oidcExpectedIssuer?: string;
|
|
28289
|
-
/**
|
|
28290
|
-
* Expected `sub` claim of an OIDC_BEARER token — the stable identifier of the specific caller
|
|
28291
|
-
* trusted to send this connector's deliveries, for example a Pub/Sub push subscription's
|
|
28292
|
-
* service account. iss and aud alone do not identify the sender: aud is a value the token
|
|
28293
|
-
* *requester* chooses, not the issuer, so any principal able to mint a same-issuer,
|
|
28294
|
-
* same-audience token — a different Google service account with permission to request an ID
|
|
28295
|
-
* token for this audience, for instance — would otherwise pass. Required for OIDC_BEARER and
|
|
28296
|
-
* must be empty for every other method.
|
|
28297
|
-
*
|
|
28298
|
-
* Deprecated: superseded by OidcBearerConfig.oidc_expected_subject.
|
|
28299
|
-
* @maxLength 2000
|
|
28300
|
-
* @deprecated
|
|
28301
|
-
* @replacedBy verification.oidc_bearer_config.oidc_expected_subject
|
|
28302
|
-
* @targetRemovalDate 2027-06-30
|
|
28303
|
-
*/
|
|
28304
|
-
oidcExpectedSubject?: string;
|
|
28305
28159
|
/**
|
|
28306
28160
|
* Set when one delivery body is a batch of events, each possibly for a different provider tenant.
|
|
28307
28161
|
* The whole request is verified once, then split into one delivery per element.
|