@wix/app-extensions 1.0.139 → 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.
- package/build/cjs/index.d.ts +30 -1
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.d.mts +30 -1
- package/build/es/index.mjs +1 -0
- package/build/es/index.mjs.map +1 -1
- package/build/trusted/cjs/index.d.ts +46 -11
- package/build/trusted/cjs/index.js +1 -0
- package/build/trusted/cjs/index.js.map +1 -1
- package/build/trusted/es/index.d.mts +46 -11
- package/build/trusted/es/index.mjs +1 -0
- package/build/trusted/es/index.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -986,8 +986,8 @@ interface ComponentData extends ComponentDataDataOneOf {
|
|
|
986
986
|
*/
|
|
987
987
|
bookingsPlatformConfiguration?: BookingsPlatformConfig;
|
|
988
988
|
/**
|
|
989
|
-
* Bookings Validation Provider SPI -
|
|
990
|
-
*
|
|
989
|
+
* Bookings Validation Provider SPI - integrate with Wix Bookings to enforce your own booking rules, by validating bookings before they are created, canceled, or rescheduled.
|
|
990
|
+
* Learn More: https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-validation-service-plugin/introduction
|
|
991
991
|
*/
|
|
992
992
|
bookingsValidationProvider?: BookingsValidationProviderConfig;
|
|
993
993
|
/**
|
|
@@ -2170,8 +2170,8 @@ interface ComponentDataDataOneOf {
|
|
|
2170
2170
|
*/
|
|
2171
2171
|
bookingsPlatformConfiguration?: BookingsPlatformConfig;
|
|
2172
2172
|
/**
|
|
2173
|
-
* Bookings Validation Provider SPI -
|
|
2174
|
-
*
|
|
2173
|
+
* Bookings Validation Provider SPI - integrate with Wix Bookings to enforce your own booking rules, by validating bookings before they are created, canceled, or rescheduled.
|
|
2174
|
+
* Learn More: https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-validation-service-plugin/introduction
|
|
2175
2175
|
*/
|
|
2176
2176
|
bookingsValidationProvider?: BookingsValidationProviderConfig;
|
|
2177
2177
|
/**
|
|
@@ -24843,7 +24843,6 @@ interface FieldOverride {
|
|
|
24843
24843
|
targetFieldName?: string | null;
|
|
24844
24844
|
}
|
|
24845
24845
|
/** Configuration for the bookings validation provider. */
|
|
24846
|
-
/** @internal */
|
|
24847
24846
|
interface BookingsValidationProviderConfig {
|
|
24848
24847
|
/** The base URI to reach the provider's service. */
|
|
24849
24848
|
baseUri?: SpiBaseUri;
|
|
@@ -26347,11 +26346,21 @@ declare enum VerificationMethod {
|
|
|
26347
26346
|
*/
|
|
26348
26347
|
CALLBACK_TOKEN = "CALLBACK_TOKEN",
|
|
26349
26348
|
/** Authenticity is not established at all. Requires unsigned_deliveries_accepted. */
|
|
26350
|
-
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"
|
|
26351
26360
|
}
|
|
26352
26361
|
/** @enumType */
|
|
26353
26362
|
/** @internal */
|
|
26354
|
-
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';
|
|
26355
26364
|
/** Scope of the material used by verification_method. */
|
|
26356
26365
|
/** @internal */
|
|
26357
26366
|
declare enum VerificationSource {
|
|
@@ -26711,8 +26720,8 @@ interface WebhookConfig {
|
|
|
26711
26720
|
*/
|
|
26712
26721
|
callbackTokenHeader?: string;
|
|
26713
26722
|
/**
|
|
26714
|
-
* Endpoint publishing the provider's public keys
|
|
26715
|
-
*
|
|
26723
|
+
* Endpoint publishing the provider's public keys. Required for PUBLIC_KEY and must be empty for
|
|
26724
|
+
* every other method.
|
|
26716
26725
|
*
|
|
26717
26726
|
* Deliberately has no (wix.api.format), following revoke_url above: WEB_URL rejects the empty
|
|
26718
26727
|
* value this field carries for every other method. HTTPS and a parseable endpoint are enforced
|
|
@@ -26844,6 +26853,32 @@ interface WebhookConfig {
|
|
|
26844
26853
|
* @immutable
|
|
26845
26854
|
*/
|
|
26846
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;
|
|
26847
26882
|
}
|
|
26848
26883
|
/**
|
|
26849
26884
|
* Declares the connector's MCP (Model Context Protocol) surface: the endpoint connector dispatch
|
|
@@ -29706,13 +29741,13 @@ declare function bookingsPlatformConfiguration({ id, data, name, }: {
|
|
|
29706
29741
|
name?: string;
|
|
29707
29742
|
}): ExtensionData;
|
|
29708
29743
|
/**
|
|
29709
|
-
* Bookings Validation Provider SPI -
|
|
29744
|
+
* Bookings Validation Provider SPI - integrate with Wix Bookings to enforce your own booking rules, by validating bookings before they are created, canceled, or rescheduled.
|
|
29745
|
+
* Learn More: https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-validation-service-plugin/introduction
|
|
29710
29746
|
* @param id - A unique identifier for the extension
|
|
29711
29747
|
* @param data - Configuration for the bookings validation provider.
|
|
29712
29748
|
* @param name - Optional - A human readable name for the extension
|
|
29713
29749
|
* @returns A general form of extensions
|
|
29714
29750
|
*/
|
|
29715
|
-
/** @internal */
|
|
29716
29751
|
declare function bookingsValidationProvider({ id, data, name, }: {
|
|
29717
29752
|
id: string;
|
|
29718
29753
|
data: BookingsValidationProviderConfig;
|
|
@@ -3706,6 +3706,7 @@ var VerificationMethod = /* @__PURE__ */ ((VerificationMethod2) => {
|
|
|
3706
3706
|
VerificationMethod2["PUBLIC_KEY"] = "PUBLIC_KEY";
|
|
3707
3707
|
VerificationMethod2["CALLBACK_TOKEN"] = "CALLBACK_TOKEN";
|
|
3708
3708
|
VerificationMethod2["NO_VERIFICATION"] = "NO_VERIFICATION";
|
|
3709
|
+
VerificationMethod2["OIDC_BEARER"] = "OIDC_BEARER";
|
|
3709
3710
|
return VerificationMethod2;
|
|
3710
3711
|
})(VerificationMethod || {});
|
|
3711
3712
|
var VerificationSource = /* @__PURE__ */ ((VerificationSource2) => {
|