@wix/app-extensions 1.0.140 → 1.0.141

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.
@@ -26346,11 +26346,21 @@ declare enum VerificationMethod {
26346
26346
  */
26347
26347
  CALLBACK_TOKEN = "CALLBACK_TOKEN",
26348
26348
  /** Authenticity is not established at all. Requires unsigned_deliveries_accepted. */
26349
- NO_VERIFICATION = "NO_VERIFICATION"
26349
+ NO_VERIFICATION = "NO_VERIFICATION",
26350
+ /**
26351
+ * OIDC bearer JWT in the Authorization header, verified against the key set at
26352
+ * public_key_url with the expected audience, issuer and subject, for example Cloud Pub/Sub
26353
+ * push authentication. Carries no payload binding, the same limitation CALLBACK_TOKEN
26354
+ * documents for itself: it proves the sender's identity, not that the body is intact.
26355
+ *
26356
+ * Not yet implemented: the delivery path has no resolver for this method's key material, so
26357
+ * no config may select it yet.
26358
+ */
26359
+ OIDC_BEARER = "OIDC_BEARER"
26350
26360
  }
26351
26361
  /** @enumType */
26352
26362
  /** @internal */
26353
- type VerificationMethodWithLiterals = VerificationMethod | 'UNKNOWN_VERIFICATION_METHOD' | 'HMAC_SHA256' | 'HMAC_SHA1' | 'PUBLIC_KEY' | 'CALLBACK_TOKEN' | 'NO_VERIFICATION';
26363
+ type VerificationMethodWithLiterals = VerificationMethod | 'UNKNOWN_VERIFICATION_METHOD' | 'HMAC_SHA256' | 'HMAC_SHA1' | 'PUBLIC_KEY' | 'CALLBACK_TOKEN' | 'NO_VERIFICATION' | 'OIDC_BEARER';
26354
26364
  /** Scope of the material used by verification_method. */
26355
26365
  /** @internal */
26356
26366
  declare enum VerificationSource {
@@ -26710,8 +26720,8 @@ interface WebhookConfig {
26710
26720
  */
26711
26721
  callbackTokenHeader?: string;
26712
26722
  /**
26713
- * Endpoint publishing the provider's public keys, used to verify a PUBLIC_KEY signature.
26714
- * Required for PUBLIC_KEY and must be empty for every other method.
26723
+ * Endpoint publishing the provider's public keys. Required for PUBLIC_KEY and must be empty for
26724
+ * every other method.
26715
26725
  *
26716
26726
  * Deliberately has no (wix.api.format), following revoke_url above: WEB_URL rejects the empty
26717
26727
  * value this field carries for every other method. HTTPS and a parseable endpoint are enforced
@@ -26843,6 +26853,32 @@ interface WebhookConfig {
26843
26853
  * @immutable
26844
26854
  */
26845
26855
  deliveryTopic?: string;
26856
+ /**
26857
+ * Expected `aud` claim of an OIDC_BEARER token. An OIDC issuer's audience is chosen by whoever
26858
+ * requested the token, not by the issuer, so pinning the value expected here is what stops a
26859
+ * bearer token minted for a different audience — a different Pub/Sub push subscription, for
26860
+ * instance — from authenticating against this one. Required for OIDC_BEARER and must be empty
26861
+ * for every other method.
26862
+ * @maxLength 2000
26863
+ */
26864
+ oidcExpectedAudience?: string;
26865
+ /**
26866
+ * Expected `iss` claim of an OIDC_BEARER token, for example "https://accounts.google.com".
26867
+ * Required for OIDC_BEARER and must be empty for every other method.
26868
+ * @maxLength 2000
26869
+ */
26870
+ oidcExpectedIssuer?: string;
26871
+ /**
26872
+ * Expected `sub` claim of an OIDC_BEARER token — the stable identifier of the specific caller
26873
+ * trusted to send this connector's deliveries, for example a Pub/Sub push subscription's
26874
+ * service account. iss and aud alone do not identify the sender: aud is a value the token
26875
+ * *requester* chooses, not the issuer, so any principal able to mint a same-issuer,
26876
+ * same-audience token — a different Google service account with permission to request an ID
26877
+ * token for this audience, for instance — would otherwise pass. Required for OIDC_BEARER and
26878
+ * must be empty for every other method.
26879
+ * @maxLength 2000
26880
+ */
26881
+ oidcExpectedSubject?: string;
26846
26882
  }
26847
26883
  /**
26848
26884
  * Declares the connector's MCP (Model Context Protocol) surface: the endpoint connector dispatch
@@ -3129,6 +3129,7 @@ var VerificationMethod = /* @__PURE__ */ ((VerificationMethod2) => {
3129
3129
  VerificationMethod2["PUBLIC_KEY"] = "PUBLIC_KEY";
3130
3130
  VerificationMethod2["CALLBACK_TOKEN"] = "CALLBACK_TOKEN";
3131
3131
  VerificationMethod2["NO_VERIFICATION"] = "NO_VERIFICATION";
3132
+ VerificationMethod2["OIDC_BEARER"] = "OIDC_BEARER";
3132
3133
  return VerificationMethod2;
3133
3134
  })(VerificationMethod || {});
3134
3135
  var VerificationSource = /* @__PURE__ */ ((VerificationSource2) => {