@vivoa/plugin-sdk 0.6.7 → 0.6.8

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.
@@ -540,6 +540,40 @@ interface WebhookSignatureResult {
540
540
  isValid: boolean;
541
541
  error?: string;
542
542
  }
543
+ /**
544
+ * "Connect" handshake (authorization code + PKCE) a gateway can offer so a
545
+ * merchant links their account with one click instead of pasting credentials.
546
+ * The HOST owns state, code_verifier and the callback route; the plugin only
547
+ * knows the gateway's URLs and wire format. STATELESS like every other verb.
548
+ */
549
+ interface PaymentConnectParams {
550
+ /** Opaque anti-CSRF value; echoed back on the callback. */
551
+ state: string;
552
+ /** base64url(SHA-256(code_verifier)) — S256. */
553
+ codeChallenge: string;
554
+ /** Host callback the gateway redirects the merchant to (`?code&state`). */
555
+ redirectUri: string;
556
+ /** Host webhook endpoint for this gateway, to register on the gateway side. */
557
+ webhookUrl: string;
558
+ /** Store origin (https://host) — the only origin the gateway may wire to. */
559
+ origin: string;
560
+ /** Store display name, shown on the gateway's consent screen. */
561
+ storeName: string;
562
+ }
563
+ interface PaymentConnectExchange {
564
+ code: string;
565
+ codeVerifier: string;
566
+ redirectUri: string;
567
+ }
568
+ interface PaymentConnect {
569
+ /** Where to send the merchant to log in and approve the store. */
570
+ authorizeUrl(params: PaymentConnectParams, ctx: DispatchContext): string;
571
+ /**
572
+ * Redeem the authorization code. Returns a CONFIG PATCH (credentials etc.)
573
+ * the host persists exactly like an admin save.
574
+ */
575
+ exchange(params: PaymentConnectExchange, ctx: DispatchContext): Promise<Record<string, unknown>>;
576
+ }
543
577
  interface IPaymentPlugin extends IPlugin {
544
578
  readonly gatewayCode: PaymentGatewayCode;
545
579
  readonly staticConfig: GatewayStaticConfig;
@@ -564,6 +598,8 @@ interface IPaymentPlugin extends IPlugin {
564
598
  * call via `ctx.config` (INV-4); no card data is ever passed here (INV-1).
565
599
  */
566
600
  createPaymentSession?(payload: PaymentSessionPayload, ctx: DispatchContext): Promise<PaymentSessionResult>;
601
+ /** OPTIONAL one-click account linking (see {@link PaymentConnect}). */
602
+ readonly connect?: PaymentConnect;
567
603
  }
568
604
 
569
605
  declare enum ShippingFeature {
@@ -1530,4 +1566,4 @@ interface HostApi {
1530
1566
  registerCapability<T = unknown>(cap: Capability<T>): void;
1531
1567
  }
1532
1568
 
1533
- export { type HttpClient as $, AUTHOR_HANDLE_RE as A, type BannerBlock$1 as B, ConfigScope as C, type ConditionalBlock as D, type ConditionalEquals as E, FieldType as F, type ConditionalWhen as G, type ConfigurablePlugin as H, ContentActionVariant as I, type ContentBlock as J, ContentBlockType as K, type CopyFieldBlock$1 as L, type CreateShipmentParams as M, type DispatchContext as N, type DividerBlock$1 as O, type PluginConfigField as P, type DomainEventHandler as Q, type DomainEventName as R, type SelectOption as S, type EmbedInit as T, type FieldBlock as U, type FieldOption as V, FieldVariant as W, GatewayEnvironment as X, type GatewayStaticConfig as Y, type GroupBlock as Z, type HostApi as _, type AccordionBlock as a, StepStatusFrom as a$, type HttpRequest as a0, type HttpResponse as a1, type IAnalyticsPlugin as a2, type IInvoicingPlugin as a3, type IPaymentPlugin as a4, type IPlugin as a5, type IShippingPlugin as a6, type ISuppliersPlugin as a7, type IUiPlugin as a8, type InlineRowBlock as a9, type PaymentSessionResult as aA, type PaymentVerifyPayload as aB, type PlaceSupplierOrderInput as aC, type Plugin as aD, type PluginActionContext as aE, type PluginActionResult as aF, type PluginAuthor as aG, type PluginConfigFieldDependency as aH, type PluginFactory as aI, type PluginManifest as aJ, type RepeaterBlock as aK, RepeaterSource as aL, type SecretStore as aM, type SequenceStore as aN, type SetupAction as aO, type SetupLayout as aP, type SetupLayoutValidation as aQ, type SetupStep as aR, type ShipmentAddress as aS, type ShipmentParcel as aT, type ShipmentResult as aU, type ShippingDefaultConfig as aV, ShippingFeature as aW, type ShippingPluginConfig as aX, type ShippingQuote as aY, type ShippingQuoteParams as aZ, type ShippingStaticConfig as a_, InvoiceDocumentType as aa, type InvoiceLine as ab, type InvoiceMoney as ac, type InvoiceParty as ad, type InvoiceRequest as ae, type InvoiceResult as af, InvoiceStatus as ag, type InvoiceTax as ah, type InvoicingDefaultConfig as ai, InvoicingFeature as aj, type InvoicingPluginConfig as ak, type InvoicingStaticConfig as al, type KeyValueBlock$1 as am, type KeyValueRow$1 as an, LayoutMode as ao, type Logger as ap, type MarkdownBlock as aq, MessageVariant as ar, type PaymentCard as as, type PaymentCustomer as at, type PaymentGatewayCode as au, type PaymentPayload as av, type PaymentPluginConfig as aw, type PaymentRenderMode as ax, type PaymentResult as ay, type PaymentSessionPayload as az, type AccordionSection as b, type StepStatusFromAction as b0, type StepStatusFromFields as b1, type StepStatusSource as b2, type StorageBroker as b3, type SupplierCatalogQuery as b4, type SupplierFulfillmentEvent as b5, type SupplierListing as b6, type SupplierListingAttribute as b7, type SupplierListingPage as b8, type SupplierListingVariant as b9, isConfigurablePlugin as bA, isPluginFactory as bB, paymentCapability as bC, shippingCapability as bD, suppliersCapability as bE, uiCapability as bF, validatePluginAuthor as bG, validateSetupLayout as bH, validateUiContributions as bI, type SupplierMoney as ba, type SupplierOrderAddressLevel as bb, type SupplierOrderCustomer as bc, type SupplierOrderLine as bd, type SupplierOrderResult as be, type SupplierOrderStatus as bf, type SupplierShipTo as bg, type SupplierStock as bh, type SuppliersDefaultConfig as bi, SuppliersFeature as bj, type SuppliersPluginConfig as bk, type SuppliersStaticConfig as bl, type TabItem as bm, type TabsBlock as bn, type ToggleBlock as bo, type TrackingEvent as bp, TransactionStatus as bq, type UiContribution as br, type UiContributionsValidation as bs, type VoidInvoiceInput as bt, type WebhookSignatureResult as bu, analyticsCapability as bv, capability as bw, crossValidateSetupLayout as bx, definePlugin as by, invoicingCapability as bz, type ActionBlock$1 as c, ActionVariant as d, type AnalyticsActionSource as e, type AnalyticsConsent as f, type AnalyticsEvent as g, type AnalyticsEventName as h, AnalyticsFeature as i, type AnalyticsItem as j, type AnalyticsMoney as k, type AnalyticsPluginConfig as l, type AnalyticsStaticConfig as m, type AnalyticsUserData as n, type AnalyticsUtm as o, type AuthorValidation as p, type Block as q, type BlockBase as r, BlockType as s, type CalloutBlock as t, type Capability as u, CapabilityKind as v, type CardBlock$1 as w, type CodConfig as x, type CodFeeConfig as y, CodFeeType as z };
1569
+ export { type HttpClient as $, AUTHOR_HANDLE_RE as A, type BannerBlock$1 as B, ConfigScope as C, type ConditionalBlock as D, type ConditionalEquals as E, FieldType as F, type ConditionalWhen as G, type ConfigurablePlugin as H, ContentActionVariant as I, type ContentBlock as J, ContentBlockType as K, type CopyFieldBlock$1 as L, type CreateShipmentParams as M, type DispatchContext as N, type DividerBlock$1 as O, type PluginConfigField as P, type DomainEventHandler as Q, type DomainEventName as R, type SelectOption as S, type EmbedInit as T, type FieldBlock as U, type FieldOption as V, FieldVariant as W, GatewayEnvironment as X, type GatewayStaticConfig as Y, type GroupBlock as Z, type HostApi as _, type AccordionBlock as a, type ShippingQuote as a$, type HttpRequest as a0, type HttpResponse as a1, type IAnalyticsPlugin as a2, type IInvoicingPlugin as a3, type IPaymentPlugin as a4, type IPlugin as a5, type IShippingPlugin as a6, type ISuppliersPlugin as a7, type IUiPlugin as a8, type InlineRowBlock as a9, type PaymentRenderMode as aA, type PaymentResult as aB, type PaymentSessionPayload as aC, type PaymentSessionResult as aD, type PaymentVerifyPayload as aE, type PlaceSupplierOrderInput as aF, type Plugin as aG, type PluginActionContext as aH, type PluginActionResult as aI, type PluginAuthor as aJ, type PluginConfigFieldDependency as aK, type PluginFactory as aL, type PluginManifest as aM, type RepeaterBlock as aN, RepeaterSource as aO, type SecretStore as aP, type SequenceStore as aQ, type SetupAction as aR, type SetupLayout as aS, type SetupLayoutValidation as aT, type SetupStep as aU, type ShipmentAddress as aV, type ShipmentParcel as aW, type ShipmentResult as aX, type ShippingDefaultConfig as aY, ShippingFeature as aZ, type ShippingPluginConfig as a_, InvoiceDocumentType as aa, type InvoiceLine as ab, type InvoiceMoney as ac, type InvoiceParty as ad, type InvoiceRequest as ae, type InvoiceResult as af, InvoiceStatus as ag, type InvoiceTax as ah, type InvoicingDefaultConfig as ai, InvoicingFeature as aj, type InvoicingPluginConfig as ak, type InvoicingStaticConfig as al, type KeyValueBlock$1 as am, type KeyValueRow$1 as an, LayoutMode as ao, type Logger as ap, type MarkdownBlock as aq, MessageVariant as ar, type PaymentCard as as, type PaymentConnect as at, type PaymentConnectExchange as au, type PaymentConnectParams as av, type PaymentCustomer as aw, type PaymentGatewayCode as ax, type PaymentPayload as ay, type PaymentPluginConfig as az, type AccordionSection as b, type ShippingQuoteParams as b0, type ShippingStaticConfig as b1, StepStatusFrom as b2, type StepStatusFromAction as b3, type StepStatusFromFields as b4, type StepStatusSource as b5, type StorageBroker as b6, type SupplierCatalogQuery as b7, type SupplierFulfillmentEvent as b8, type SupplierListing as b9, crossValidateSetupLayout as bA, definePlugin as bB, invoicingCapability as bC, isConfigurablePlugin as bD, isPluginFactory as bE, paymentCapability as bF, shippingCapability as bG, suppliersCapability as bH, uiCapability as bI, validatePluginAuthor as bJ, validateSetupLayout as bK, validateUiContributions as bL, type SupplierListingAttribute as ba, type SupplierListingPage as bb, type SupplierListingVariant as bc, type SupplierMoney as bd, type SupplierOrderAddressLevel as be, type SupplierOrderCustomer as bf, type SupplierOrderLine as bg, type SupplierOrderResult as bh, type SupplierOrderStatus as bi, type SupplierShipTo as bj, type SupplierStock as bk, type SuppliersDefaultConfig as bl, SuppliersFeature as bm, type SuppliersPluginConfig as bn, type SuppliersStaticConfig as bo, type TabItem as bp, type TabsBlock as bq, type ToggleBlock as br, type TrackingEvent as bs, TransactionStatus as bt, type UiContribution as bu, type UiContributionsValidation as bv, type VoidInvoiceInput as bw, type WebhookSignatureResult as bx, analyticsCapability as by, capability as bz, type ActionBlock$1 as c, ActionVariant as d, type AnalyticsActionSource as e, type AnalyticsConsent as f, type AnalyticsEvent as g, type AnalyticsEventName as h, AnalyticsFeature as i, type AnalyticsItem as j, type AnalyticsMoney as k, type AnalyticsPluginConfig as l, type AnalyticsStaticConfig as m, type AnalyticsUserData as n, type AnalyticsUtm as o, type AuthorValidation as p, type Block as q, type BlockBase as r, BlockType as s, type CalloutBlock as t, type Capability as u, CapabilityKind as v, type CardBlock$1 as w, type CodConfig as x, type CodFeeConfig as y, CodFeeType as z };
@@ -540,6 +540,40 @@ interface WebhookSignatureResult {
540
540
  isValid: boolean;
541
541
  error?: string;
542
542
  }
543
+ /**
544
+ * "Connect" handshake (authorization code + PKCE) a gateway can offer so a
545
+ * merchant links their account with one click instead of pasting credentials.
546
+ * The HOST owns state, code_verifier and the callback route; the plugin only
547
+ * knows the gateway's URLs and wire format. STATELESS like every other verb.
548
+ */
549
+ interface PaymentConnectParams {
550
+ /** Opaque anti-CSRF value; echoed back on the callback. */
551
+ state: string;
552
+ /** base64url(SHA-256(code_verifier)) — S256. */
553
+ codeChallenge: string;
554
+ /** Host callback the gateway redirects the merchant to (`?code&state`). */
555
+ redirectUri: string;
556
+ /** Host webhook endpoint for this gateway, to register on the gateway side. */
557
+ webhookUrl: string;
558
+ /** Store origin (https://host) — the only origin the gateway may wire to. */
559
+ origin: string;
560
+ /** Store display name, shown on the gateway's consent screen. */
561
+ storeName: string;
562
+ }
563
+ interface PaymentConnectExchange {
564
+ code: string;
565
+ codeVerifier: string;
566
+ redirectUri: string;
567
+ }
568
+ interface PaymentConnect {
569
+ /** Where to send the merchant to log in and approve the store. */
570
+ authorizeUrl(params: PaymentConnectParams, ctx: DispatchContext): string;
571
+ /**
572
+ * Redeem the authorization code. Returns a CONFIG PATCH (credentials etc.)
573
+ * the host persists exactly like an admin save.
574
+ */
575
+ exchange(params: PaymentConnectExchange, ctx: DispatchContext): Promise<Record<string, unknown>>;
576
+ }
543
577
  interface IPaymentPlugin extends IPlugin {
544
578
  readonly gatewayCode: PaymentGatewayCode;
545
579
  readonly staticConfig: GatewayStaticConfig;
@@ -564,6 +598,8 @@ interface IPaymentPlugin extends IPlugin {
564
598
  * call via `ctx.config` (INV-4); no card data is ever passed here (INV-1).
565
599
  */
566
600
  createPaymentSession?(payload: PaymentSessionPayload, ctx: DispatchContext): Promise<PaymentSessionResult>;
601
+ /** OPTIONAL one-click account linking (see {@link PaymentConnect}). */
602
+ readonly connect?: PaymentConnect;
567
603
  }
568
604
 
569
605
  declare enum ShippingFeature {
@@ -1530,4 +1566,4 @@ interface HostApi {
1530
1566
  registerCapability<T = unknown>(cap: Capability<T>): void;
1531
1567
  }
1532
1568
 
1533
- export { type HttpClient as $, AUTHOR_HANDLE_RE as A, type BannerBlock$1 as B, ConfigScope as C, type ConditionalBlock as D, type ConditionalEquals as E, FieldType as F, type ConditionalWhen as G, type ConfigurablePlugin as H, ContentActionVariant as I, type ContentBlock as J, ContentBlockType as K, type CopyFieldBlock$1 as L, type CreateShipmentParams as M, type DispatchContext as N, type DividerBlock$1 as O, type PluginConfigField as P, type DomainEventHandler as Q, type DomainEventName as R, type SelectOption as S, type EmbedInit as T, type FieldBlock as U, type FieldOption as V, FieldVariant as W, GatewayEnvironment as X, type GatewayStaticConfig as Y, type GroupBlock as Z, type HostApi as _, type AccordionBlock as a, StepStatusFrom as a$, type HttpRequest as a0, type HttpResponse as a1, type IAnalyticsPlugin as a2, type IInvoicingPlugin as a3, type IPaymentPlugin as a4, type IPlugin as a5, type IShippingPlugin as a6, type ISuppliersPlugin as a7, type IUiPlugin as a8, type InlineRowBlock as a9, type PaymentSessionResult as aA, type PaymentVerifyPayload as aB, type PlaceSupplierOrderInput as aC, type Plugin as aD, type PluginActionContext as aE, type PluginActionResult as aF, type PluginAuthor as aG, type PluginConfigFieldDependency as aH, type PluginFactory as aI, type PluginManifest as aJ, type RepeaterBlock as aK, RepeaterSource as aL, type SecretStore as aM, type SequenceStore as aN, type SetupAction as aO, type SetupLayout as aP, type SetupLayoutValidation as aQ, type SetupStep as aR, type ShipmentAddress as aS, type ShipmentParcel as aT, type ShipmentResult as aU, type ShippingDefaultConfig as aV, ShippingFeature as aW, type ShippingPluginConfig as aX, type ShippingQuote as aY, type ShippingQuoteParams as aZ, type ShippingStaticConfig as a_, InvoiceDocumentType as aa, type InvoiceLine as ab, type InvoiceMoney as ac, type InvoiceParty as ad, type InvoiceRequest as ae, type InvoiceResult as af, InvoiceStatus as ag, type InvoiceTax as ah, type InvoicingDefaultConfig as ai, InvoicingFeature as aj, type InvoicingPluginConfig as ak, type InvoicingStaticConfig as al, type KeyValueBlock$1 as am, type KeyValueRow$1 as an, LayoutMode as ao, type Logger as ap, type MarkdownBlock as aq, MessageVariant as ar, type PaymentCard as as, type PaymentCustomer as at, type PaymentGatewayCode as au, type PaymentPayload as av, type PaymentPluginConfig as aw, type PaymentRenderMode as ax, type PaymentResult as ay, type PaymentSessionPayload as az, type AccordionSection as b, type StepStatusFromAction as b0, type StepStatusFromFields as b1, type StepStatusSource as b2, type StorageBroker as b3, type SupplierCatalogQuery as b4, type SupplierFulfillmentEvent as b5, type SupplierListing as b6, type SupplierListingAttribute as b7, type SupplierListingPage as b8, type SupplierListingVariant as b9, isConfigurablePlugin as bA, isPluginFactory as bB, paymentCapability as bC, shippingCapability as bD, suppliersCapability as bE, uiCapability as bF, validatePluginAuthor as bG, validateSetupLayout as bH, validateUiContributions as bI, type SupplierMoney as ba, type SupplierOrderAddressLevel as bb, type SupplierOrderCustomer as bc, type SupplierOrderLine as bd, type SupplierOrderResult as be, type SupplierOrderStatus as bf, type SupplierShipTo as bg, type SupplierStock as bh, type SuppliersDefaultConfig as bi, SuppliersFeature as bj, type SuppliersPluginConfig as bk, type SuppliersStaticConfig as bl, type TabItem as bm, type TabsBlock as bn, type ToggleBlock as bo, type TrackingEvent as bp, TransactionStatus as bq, type UiContribution as br, type UiContributionsValidation as bs, type VoidInvoiceInput as bt, type WebhookSignatureResult as bu, analyticsCapability as bv, capability as bw, crossValidateSetupLayout as bx, definePlugin as by, invoicingCapability as bz, type ActionBlock$1 as c, ActionVariant as d, type AnalyticsActionSource as e, type AnalyticsConsent as f, type AnalyticsEvent as g, type AnalyticsEventName as h, AnalyticsFeature as i, type AnalyticsItem as j, type AnalyticsMoney as k, type AnalyticsPluginConfig as l, type AnalyticsStaticConfig as m, type AnalyticsUserData as n, type AnalyticsUtm as o, type AuthorValidation as p, type Block as q, type BlockBase as r, BlockType as s, type CalloutBlock as t, type Capability as u, CapabilityKind as v, type CardBlock$1 as w, type CodConfig as x, type CodFeeConfig as y, CodFeeType as z };
1569
+ export { type HttpClient as $, AUTHOR_HANDLE_RE as A, type BannerBlock$1 as B, ConfigScope as C, type ConditionalBlock as D, type ConditionalEquals as E, FieldType as F, type ConditionalWhen as G, type ConfigurablePlugin as H, ContentActionVariant as I, type ContentBlock as J, ContentBlockType as K, type CopyFieldBlock$1 as L, type CreateShipmentParams as M, type DispatchContext as N, type DividerBlock$1 as O, type PluginConfigField as P, type DomainEventHandler as Q, type DomainEventName as R, type SelectOption as S, type EmbedInit as T, type FieldBlock as U, type FieldOption as V, FieldVariant as W, GatewayEnvironment as X, type GatewayStaticConfig as Y, type GroupBlock as Z, type HostApi as _, type AccordionBlock as a, type ShippingQuote as a$, type HttpRequest as a0, type HttpResponse as a1, type IAnalyticsPlugin as a2, type IInvoicingPlugin as a3, type IPaymentPlugin as a4, type IPlugin as a5, type IShippingPlugin as a6, type ISuppliersPlugin as a7, type IUiPlugin as a8, type InlineRowBlock as a9, type PaymentRenderMode as aA, type PaymentResult as aB, type PaymentSessionPayload as aC, type PaymentSessionResult as aD, type PaymentVerifyPayload as aE, type PlaceSupplierOrderInput as aF, type Plugin as aG, type PluginActionContext as aH, type PluginActionResult as aI, type PluginAuthor as aJ, type PluginConfigFieldDependency as aK, type PluginFactory as aL, type PluginManifest as aM, type RepeaterBlock as aN, RepeaterSource as aO, type SecretStore as aP, type SequenceStore as aQ, type SetupAction as aR, type SetupLayout as aS, type SetupLayoutValidation as aT, type SetupStep as aU, type ShipmentAddress as aV, type ShipmentParcel as aW, type ShipmentResult as aX, type ShippingDefaultConfig as aY, ShippingFeature as aZ, type ShippingPluginConfig as a_, InvoiceDocumentType as aa, type InvoiceLine as ab, type InvoiceMoney as ac, type InvoiceParty as ad, type InvoiceRequest as ae, type InvoiceResult as af, InvoiceStatus as ag, type InvoiceTax as ah, type InvoicingDefaultConfig as ai, InvoicingFeature as aj, type InvoicingPluginConfig as ak, type InvoicingStaticConfig as al, type KeyValueBlock$1 as am, type KeyValueRow$1 as an, LayoutMode as ao, type Logger as ap, type MarkdownBlock as aq, MessageVariant as ar, type PaymentCard as as, type PaymentConnect as at, type PaymentConnectExchange as au, type PaymentConnectParams as av, type PaymentCustomer as aw, type PaymentGatewayCode as ax, type PaymentPayload as ay, type PaymentPluginConfig as az, type AccordionSection as b, type ShippingQuoteParams as b0, type ShippingStaticConfig as b1, StepStatusFrom as b2, type StepStatusFromAction as b3, type StepStatusFromFields as b4, type StepStatusSource as b5, type StorageBroker as b6, type SupplierCatalogQuery as b7, type SupplierFulfillmentEvent as b8, type SupplierListing as b9, crossValidateSetupLayout as bA, definePlugin as bB, invoicingCapability as bC, isConfigurablePlugin as bD, isPluginFactory as bE, paymentCapability as bF, shippingCapability as bG, suppliersCapability as bH, uiCapability as bI, validatePluginAuthor as bJ, validateSetupLayout as bK, validateUiContributions as bL, type SupplierListingAttribute as ba, type SupplierListingPage as bb, type SupplierListingVariant as bc, type SupplierMoney as bd, type SupplierOrderAddressLevel as be, type SupplierOrderCustomer as bf, type SupplierOrderLine as bg, type SupplierOrderResult as bh, type SupplierOrderStatus as bi, type SupplierShipTo as bj, type SupplierStock as bk, type SuppliersDefaultConfig as bl, SuppliersFeature as bm, type SuppliersPluginConfig as bn, type SuppliersStaticConfig as bo, type TabItem as bp, type TabsBlock as bq, type ToggleBlock as br, type TrackingEvent as bs, TransactionStatus as bt, type UiContribution as bu, type UiContributionsValidation as bv, type VoidInvoiceInput as bw, type WebhookSignatureResult as bx, analyticsCapability as by, capability as bz, type ActionBlock$1 as c, ActionVariant as d, type AnalyticsActionSource as e, type AnalyticsConsent as f, type AnalyticsEvent as g, type AnalyticsEventName as h, AnalyticsFeature as i, type AnalyticsItem as j, type AnalyticsMoney as k, type AnalyticsPluginConfig as l, type AnalyticsStaticConfig as m, type AnalyticsUserData as n, type AnalyticsUtm as o, type AuthorValidation as p, type Block as q, type BlockBase as r, BlockType as s, type CalloutBlock as t, type Capability as u, CapabilityKind as v, type CardBlock$1 as w, type CodConfig as x, type CodFeeConfig as y, CodFeeType as z };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FieldType, C as ConfigScope, S as SelectOption, P as PluginConfigField } from './host-api-yX49e7zE.mjs';
2
- export { A as AUTHOR_HANDLE_RE, a as AccordionBlock, b as AccordionSection, c as ActionBlock, d as ActionVariant, e as AnalyticsActionSource, f as AnalyticsConsent, g as AnalyticsEvent, h as AnalyticsEventName, i as AnalyticsFeature, j as AnalyticsItem, k as AnalyticsMoney, l as AnalyticsPluginConfig, m as AnalyticsStaticConfig, n as AnalyticsUserData, o as AnalyticsUtm, p as AuthorValidation, B as BannerBlock, q as Block, r as BlockBase, s as BlockType, t as CalloutBlock, u as Capability, v as CapabilityKind, w as CardBlock, x as CodConfig, y as CodFeeConfig, z as CodFeeType, D as ConditionalBlock, E as ConditionalEquals, G as ConditionalWhen, H as ConfigurablePlugin, I as ContentActionVariant, J as ContentBlock, K as ContentBlockType, L as CopyFieldBlock, M as CreateShipmentParams, N as DispatchContext, O as DividerBlock, Q as DomainEventHandler, R as DomainEventName, T as EmbedInit, U as FieldBlock, V as FieldOption, W as FieldVariant, X as GatewayEnvironment, Y as GatewayStaticConfig, Z as GroupBlock, _ as HostApi, $ as HttpClient, a0 as HttpRequest, a1 as HttpResponse, a2 as IAnalyticsPlugin, a3 as IInvoicingPlugin, a4 as IPaymentPlugin, a5 as IPlugin, a6 as IShippingPlugin, a7 as ISuppliersPlugin, a8 as IUiPlugin, a9 as InlineRowBlock, aa as InvoiceDocumentType, ab as InvoiceLine, ac as InvoiceMoney, ad as InvoiceParty, ae as InvoiceRequest, af as InvoiceResult, ag as InvoiceStatus, ah as InvoiceTax, ai as InvoicingDefaultConfig, aj as InvoicingFeature, ak as InvoicingPluginConfig, al as InvoicingStaticConfig, am as KeyValueBlock, an as KeyValueRow, ao as LayoutMode, ap as Logger, aq as MarkdownBlock, ar as MessageVariant, as as PaymentCard, at as PaymentCustomer, au as PaymentGatewayCode, av as PaymentPayload, aw as PaymentPluginConfig, ax as PaymentRenderMode, ay as PaymentResult, az as PaymentSessionPayload, aA as PaymentSessionResult, aB as PaymentVerifyPayload, aC as PlaceSupplierOrderInput, aD as Plugin, aE as PluginActionContext, aF as PluginActionResult, aG as PluginAuthor, aH as PluginConfigFieldDependency, aI as PluginFactory, aJ as PluginManifest, aK as RepeaterBlock, aL as RepeaterSource, aM as SecretStore, aN as SequenceStore, aO as SetupAction, aP as SetupLayout, aQ as SetupLayoutValidation, aR as SetupStep, aS as ShipmentAddress, aT as ShipmentParcel, aU as ShipmentResult, aV as ShippingDefaultConfig, aW as ShippingFeature, aX as ShippingPluginConfig, aY as ShippingQuote, aZ as ShippingQuoteParams, a_ as ShippingStaticConfig, a$ as StepStatusFrom, b0 as StepStatusFromAction, b1 as StepStatusFromFields, b2 as StepStatusSource, b3 as StorageBroker, b4 as SupplierCatalogQuery, b5 as SupplierFulfillmentEvent, b6 as SupplierListing, b7 as SupplierListingAttribute, b8 as SupplierListingPage, b9 as SupplierListingVariant, ba as SupplierMoney, bb as SupplierOrderAddressLevel, bc as SupplierOrderCustomer, bd as SupplierOrderLine, be as SupplierOrderResult, bf as SupplierOrderStatus, bg as SupplierShipTo, bh as SupplierStock, bi as SuppliersDefaultConfig, bj as SuppliersFeature, bk as SuppliersPluginConfig, bl as SuppliersStaticConfig, bm as TabItem, bn as TabsBlock, bo as ToggleBlock, bp as TrackingEvent, bq as TransactionStatus, br as UiContribution, bs as UiContributionsValidation, bt as VoidInvoiceInput, bu as WebhookSignatureResult, bv as analyticsCapability, bw as capability, bx as crossValidateSetupLayout, by as definePlugin, bz as invoicingCapability, bA as isConfigurablePlugin, bB as isPluginFactory, bC as paymentCapability, bD as shippingCapability, bE as suppliersCapability, bF as uiCapability, bG as validatePluginAuthor, bH as validateSetupLayout, bI as validateUiContributions } from './host-api-yX49e7zE.mjs';
1
+ import { F as FieldType, C as ConfigScope, S as SelectOption, P as PluginConfigField } from './host-api-BbIT_sLc.mjs';
2
+ export { A as AUTHOR_HANDLE_RE, a as AccordionBlock, b as AccordionSection, c as ActionBlock, d as ActionVariant, e as AnalyticsActionSource, f as AnalyticsConsent, g as AnalyticsEvent, h as AnalyticsEventName, i as AnalyticsFeature, j as AnalyticsItem, k as AnalyticsMoney, l as AnalyticsPluginConfig, m as AnalyticsStaticConfig, n as AnalyticsUserData, o as AnalyticsUtm, p as AuthorValidation, B as BannerBlock, q as Block, r as BlockBase, s as BlockType, t as CalloutBlock, u as Capability, v as CapabilityKind, w as CardBlock, x as CodConfig, y as CodFeeConfig, z as CodFeeType, D as ConditionalBlock, E as ConditionalEquals, G as ConditionalWhen, H as ConfigurablePlugin, I as ContentActionVariant, J as ContentBlock, K as ContentBlockType, L as CopyFieldBlock, M as CreateShipmentParams, N as DispatchContext, O as DividerBlock, Q as DomainEventHandler, R as DomainEventName, T as EmbedInit, U as FieldBlock, V as FieldOption, W as FieldVariant, X as GatewayEnvironment, Y as GatewayStaticConfig, Z as GroupBlock, _ as HostApi, $ as HttpClient, a0 as HttpRequest, a1 as HttpResponse, a2 as IAnalyticsPlugin, a3 as IInvoicingPlugin, a4 as IPaymentPlugin, a5 as IPlugin, a6 as IShippingPlugin, a7 as ISuppliersPlugin, a8 as IUiPlugin, a9 as InlineRowBlock, aa as InvoiceDocumentType, ab as InvoiceLine, ac as InvoiceMoney, ad as InvoiceParty, ae as InvoiceRequest, af as InvoiceResult, ag as InvoiceStatus, ah as InvoiceTax, ai as InvoicingDefaultConfig, aj as InvoicingFeature, ak as InvoicingPluginConfig, al as InvoicingStaticConfig, am as KeyValueBlock, an as KeyValueRow, ao as LayoutMode, ap as Logger, aq as MarkdownBlock, ar as MessageVariant, as as PaymentCard, at as PaymentConnect, au as PaymentConnectExchange, av as PaymentConnectParams, aw as PaymentCustomer, ax as PaymentGatewayCode, ay as PaymentPayload, az as PaymentPluginConfig, aA as PaymentRenderMode, aB as PaymentResult, aC as PaymentSessionPayload, aD as PaymentSessionResult, aE as PaymentVerifyPayload, aF as PlaceSupplierOrderInput, aG as Plugin, aH as PluginActionContext, aI as PluginActionResult, aJ as PluginAuthor, aK as PluginConfigFieldDependency, aL as PluginFactory, aM as PluginManifest, aN as RepeaterBlock, aO as RepeaterSource, aP as SecretStore, aQ as SequenceStore, aR as SetupAction, aS as SetupLayout, aT as SetupLayoutValidation, aU as SetupStep, aV as ShipmentAddress, aW as ShipmentParcel, aX as ShipmentResult, aY as ShippingDefaultConfig, aZ as ShippingFeature, a_ as ShippingPluginConfig, a$ as ShippingQuote, b0 as ShippingQuoteParams, b1 as ShippingStaticConfig, b2 as StepStatusFrom, b3 as StepStatusFromAction, b4 as StepStatusFromFields, b5 as StepStatusSource, b6 as StorageBroker, b7 as SupplierCatalogQuery, b8 as SupplierFulfillmentEvent, b9 as SupplierListing, ba as SupplierListingAttribute, bb as SupplierListingPage, bc as SupplierListingVariant, bd as SupplierMoney, be as SupplierOrderAddressLevel, bf as SupplierOrderCustomer, bg as SupplierOrderLine, bh as SupplierOrderResult, bi as SupplierOrderStatus, bj as SupplierShipTo, bk as SupplierStock, bl as SuppliersDefaultConfig, bm as SuppliersFeature, bn as SuppliersPluginConfig, bo as SuppliersStaticConfig, bp as TabItem, bq as TabsBlock, br as ToggleBlock, bs as TrackingEvent, bt as TransactionStatus, bu as UiContribution, bv as UiContributionsValidation, bw as VoidInvoiceInput, bx as WebhookSignatureResult, by as analyticsCapability, bz as capability, bA as crossValidateSetupLayout, bB as definePlugin, bC as invoicingCapability, bD as isConfigurablePlugin, bE as isPluginFactory, bF as paymentCapability, bG as shippingCapability, bH as suppliersCapability, bI as uiCapability, bJ as validatePluginAuthor, bK as validateSetupLayout, bL as validateUiContributions } from './host-api-BbIT_sLc.mjs';
3
3
 
4
4
  declare const PAYMENT_PLUGIN_TOKEN: "PAYMENT_PLUGINS";
5
5
  declare const SHIPPING_PLUGIN_TOKEN: "SHIPPING_PLUGINS";
@@ -74,7 +74,7 @@ declare function checkPermissions(required: string[], grantedRaw: string[]): Per
74
74
  * - MINOR: additive (new optional fields, new tokens) — backwards compatible.
75
75
  * - PATCH: docs/fixes with zero shape changes.
76
76
  */
77
- declare const SDK_VERSION = "0.6.7";
77
+ declare const SDK_VERSION = "0.6.8";
78
78
  /**
79
79
  * True when a plugin built against `pluginSdkVersion` can run on a host that
80
80
  * ships `hostSdkVersion`. Rule: same major, host minor >= plugin minor.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FieldType, C as ConfigScope, S as SelectOption, P as PluginConfigField } from './host-api-yX49e7zE.js';
2
- export { A as AUTHOR_HANDLE_RE, a as AccordionBlock, b as AccordionSection, c as ActionBlock, d as ActionVariant, e as AnalyticsActionSource, f as AnalyticsConsent, g as AnalyticsEvent, h as AnalyticsEventName, i as AnalyticsFeature, j as AnalyticsItem, k as AnalyticsMoney, l as AnalyticsPluginConfig, m as AnalyticsStaticConfig, n as AnalyticsUserData, o as AnalyticsUtm, p as AuthorValidation, B as BannerBlock, q as Block, r as BlockBase, s as BlockType, t as CalloutBlock, u as Capability, v as CapabilityKind, w as CardBlock, x as CodConfig, y as CodFeeConfig, z as CodFeeType, D as ConditionalBlock, E as ConditionalEquals, G as ConditionalWhen, H as ConfigurablePlugin, I as ContentActionVariant, J as ContentBlock, K as ContentBlockType, L as CopyFieldBlock, M as CreateShipmentParams, N as DispatchContext, O as DividerBlock, Q as DomainEventHandler, R as DomainEventName, T as EmbedInit, U as FieldBlock, V as FieldOption, W as FieldVariant, X as GatewayEnvironment, Y as GatewayStaticConfig, Z as GroupBlock, _ as HostApi, $ as HttpClient, a0 as HttpRequest, a1 as HttpResponse, a2 as IAnalyticsPlugin, a3 as IInvoicingPlugin, a4 as IPaymentPlugin, a5 as IPlugin, a6 as IShippingPlugin, a7 as ISuppliersPlugin, a8 as IUiPlugin, a9 as InlineRowBlock, aa as InvoiceDocumentType, ab as InvoiceLine, ac as InvoiceMoney, ad as InvoiceParty, ae as InvoiceRequest, af as InvoiceResult, ag as InvoiceStatus, ah as InvoiceTax, ai as InvoicingDefaultConfig, aj as InvoicingFeature, ak as InvoicingPluginConfig, al as InvoicingStaticConfig, am as KeyValueBlock, an as KeyValueRow, ao as LayoutMode, ap as Logger, aq as MarkdownBlock, ar as MessageVariant, as as PaymentCard, at as PaymentCustomer, au as PaymentGatewayCode, av as PaymentPayload, aw as PaymentPluginConfig, ax as PaymentRenderMode, ay as PaymentResult, az as PaymentSessionPayload, aA as PaymentSessionResult, aB as PaymentVerifyPayload, aC as PlaceSupplierOrderInput, aD as Plugin, aE as PluginActionContext, aF as PluginActionResult, aG as PluginAuthor, aH as PluginConfigFieldDependency, aI as PluginFactory, aJ as PluginManifest, aK as RepeaterBlock, aL as RepeaterSource, aM as SecretStore, aN as SequenceStore, aO as SetupAction, aP as SetupLayout, aQ as SetupLayoutValidation, aR as SetupStep, aS as ShipmentAddress, aT as ShipmentParcel, aU as ShipmentResult, aV as ShippingDefaultConfig, aW as ShippingFeature, aX as ShippingPluginConfig, aY as ShippingQuote, aZ as ShippingQuoteParams, a_ as ShippingStaticConfig, a$ as StepStatusFrom, b0 as StepStatusFromAction, b1 as StepStatusFromFields, b2 as StepStatusSource, b3 as StorageBroker, b4 as SupplierCatalogQuery, b5 as SupplierFulfillmentEvent, b6 as SupplierListing, b7 as SupplierListingAttribute, b8 as SupplierListingPage, b9 as SupplierListingVariant, ba as SupplierMoney, bb as SupplierOrderAddressLevel, bc as SupplierOrderCustomer, bd as SupplierOrderLine, be as SupplierOrderResult, bf as SupplierOrderStatus, bg as SupplierShipTo, bh as SupplierStock, bi as SuppliersDefaultConfig, bj as SuppliersFeature, bk as SuppliersPluginConfig, bl as SuppliersStaticConfig, bm as TabItem, bn as TabsBlock, bo as ToggleBlock, bp as TrackingEvent, bq as TransactionStatus, br as UiContribution, bs as UiContributionsValidation, bt as VoidInvoiceInput, bu as WebhookSignatureResult, bv as analyticsCapability, bw as capability, bx as crossValidateSetupLayout, by as definePlugin, bz as invoicingCapability, bA as isConfigurablePlugin, bB as isPluginFactory, bC as paymentCapability, bD as shippingCapability, bE as suppliersCapability, bF as uiCapability, bG as validatePluginAuthor, bH as validateSetupLayout, bI as validateUiContributions } from './host-api-yX49e7zE.js';
1
+ import { F as FieldType, C as ConfigScope, S as SelectOption, P as PluginConfigField } from './host-api-BbIT_sLc.js';
2
+ export { A as AUTHOR_HANDLE_RE, a as AccordionBlock, b as AccordionSection, c as ActionBlock, d as ActionVariant, e as AnalyticsActionSource, f as AnalyticsConsent, g as AnalyticsEvent, h as AnalyticsEventName, i as AnalyticsFeature, j as AnalyticsItem, k as AnalyticsMoney, l as AnalyticsPluginConfig, m as AnalyticsStaticConfig, n as AnalyticsUserData, o as AnalyticsUtm, p as AuthorValidation, B as BannerBlock, q as Block, r as BlockBase, s as BlockType, t as CalloutBlock, u as Capability, v as CapabilityKind, w as CardBlock, x as CodConfig, y as CodFeeConfig, z as CodFeeType, D as ConditionalBlock, E as ConditionalEquals, G as ConditionalWhen, H as ConfigurablePlugin, I as ContentActionVariant, J as ContentBlock, K as ContentBlockType, L as CopyFieldBlock, M as CreateShipmentParams, N as DispatchContext, O as DividerBlock, Q as DomainEventHandler, R as DomainEventName, T as EmbedInit, U as FieldBlock, V as FieldOption, W as FieldVariant, X as GatewayEnvironment, Y as GatewayStaticConfig, Z as GroupBlock, _ as HostApi, $ as HttpClient, a0 as HttpRequest, a1 as HttpResponse, a2 as IAnalyticsPlugin, a3 as IInvoicingPlugin, a4 as IPaymentPlugin, a5 as IPlugin, a6 as IShippingPlugin, a7 as ISuppliersPlugin, a8 as IUiPlugin, a9 as InlineRowBlock, aa as InvoiceDocumentType, ab as InvoiceLine, ac as InvoiceMoney, ad as InvoiceParty, ae as InvoiceRequest, af as InvoiceResult, ag as InvoiceStatus, ah as InvoiceTax, ai as InvoicingDefaultConfig, aj as InvoicingFeature, ak as InvoicingPluginConfig, al as InvoicingStaticConfig, am as KeyValueBlock, an as KeyValueRow, ao as LayoutMode, ap as Logger, aq as MarkdownBlock, ar as MessageVariant, as as PaymentCard, at as PaymentConnect, au as PaymentConnectExchange, av as PaymentConnectParams, aw as PaymentCustomer, ax as PaymentGatewayCode, ay as PaymentPayload, az as PaymentPluginConfig, aA as PaymentRenderMode, aB as PaymentResult, aC as PaymentSessionPayload, aD as PaymentSessionResult, aE as PaymentVerifyPayload, aF as PlaceSupplierOrderInput, aG as Plugin, aH as PluginActionContext, aI as PluginActionResult, aJ as PluginAuthor, aK as PluginConfigFieldDependency, aL as PluginFactory, aM as PluginManifest, aN as RepeaterBlock, aO as RepeaterSource, aP as SecretStore, aQ as SequenceStore, aR as SetupAction, aS as SetupLayout, aT as SetupLayoutValidation, aU as SetupStep, aV as ShipmentAddress, aW as ShipmentParcel, aX as ShipmentResult, aY as ShippingDefaultConfig, aZ as ShippingFeature, a_ as ShippingPluginConfig, a$ as ShippingQuote, b0 as ShippingQuoteParams, b1 as ShippingStaticConfig, b2 as StepStatusFrom, b3 as StepStatusFromAction, b4 as StepStatusFromFields, b5 as StepStatusSource, b6 as StorageBroker, b7 as SupplierCatalogQuery, b8 as SupplierFulfillmentEvent, b9 as SupplierListing, ba as SupplierListingAttribute, bb as SupplierListingPage, bc as SupplierListingVariant, bd as SupplierMoney, be as SupplierOrderAddressLevel, bf as SupplierOrderCustomer, bg as SupplierOrderLine, bh as SupplierOrderResult, bi as SupplierOrderStatus, bj as SupplierShipTo, bk as SupplierStock, bl as SuppliersDefaultConfig, bm as SuppliersFeature, bn as SuppliersPluginConfig, bo as SuppliersStaticConfig, bp as TabItem, bq as TabsBlock, br as ToggleBlock, bs as TrackingEvent, bt as TransactionStatus, bu as UiContribution, bv as UiContributionsValidation, bw as VoidInvoiceInput, bx as WebhookSignatureResult, by as analyticsCapability, bz as capability, bA as crossValidateSetupLayout, bB as definePlugin, bC as invoicingCapability, bD as isConfigurablePlugin, bE as isPluginFactory, bF as paymentCapability, bG as shippingCapability, bH as suppliersCapability, bI as uiCapability, bJ as validatePluginAuthor, bK as validateSetupLayout, bL as validateUiContributions } from './host-api-BbIT_sLc.js';
3
3
 
4
4
  declare const PAYMENT_PLUGIN_TOKEN: "PAYMENT_PLUGINS";
5
5
  declare const SHIPPING_PLUGIN_TOKEN: "SHIPPING_PLUGINS";
@@ -74,7 +74,7 @@ declare function checkPermissions(required: string[], grantedRaw: string[]): Per
74
74
  * - MINOR: additive (new optional fields, new tokens) — backwards compatible.
75
75
  * - PATCH: docs/fixes with zero shape changes.
76
76
  */
77
- declare const SDK_VERSION = "0.6.7";
77
+ declare const SDK_VERSION = "0.6.8";
78
78
  /**
79
79
  * True when a plugin built against `pluginSdkVersion` can run on a host that
80
80
  * ships `hostSdkVersion`. Rule: same major, host minor >= plugin minor.
package/dist/index.js CHANGED
@@ -717,7 +717,7 @@ function checkPermissions(required, grantedRaw) {
717
717
  }
718
718
 
719
719
  // src/version.ts
720
- var SDK_VERSION = "0.6.7";
720
+ var SDK_VERSION = "0.6.8";
721
721
  function isSdkCompatible(pluginSdkVersion, hostSdkVersion) {
722
722
  const parse = (v) => {
723
723
  const m = /^(\d+)\.(\d+)\.(\d+)/.exec(v);
package/dist/index.mjs CHANGED
@@ -651,7 +651,7 @@ function isPluginFactory(value) {
651
651
  }
652
652
 
653
653
  // src/version.ts
654
- var SDK_VERSION = "0.6.7";
654
+ var SDK_VERSION = "0.6.8";
655
655
  function isSdkCompatible(pluginSdkVersion, hostSdkVersion) {
656
656
  const parse = (v) => {
657
657
  const m = /^(\d+)\.(\d+)\.(\d+)/.exec(v);
@@ -1,4 +1,4 @@
1
- import { _ as HostApi, a0 as HttpRequest, R as DomainEventName, u as Capability, Q as DomainEventHandler, a1 as HttpResponse, N as DispatchContext } from '../host-api-yX49e7zE.mjs';
1
+ import { _ as HostApi, a0 as HttpRequest, R as DomainEventName, u as Capability, Q as DomainEventHandler, a1 as HttpResponse, N as DispatchContext } from '../host-api-BbIT_sLc.mjs';
2
2
 
3
3
  /** Every recorded interaction, keyed by `"port.method"`. */
4
4
  interface MockHostCalls {
@@ -1,4 +1,4 @@
1
- import { _ as HostApi, a0 as HttpRequest, R as DomainEventName, u as Capability, Q as DomainEventHandler, a1 as HttpResponse, N as DispatchContext } from '../host-api-yX49e7zE.js';
1
+ import { _ as HostApi, a0 as HttpRequest, R as DomainEventName, u as Capability, Q as DomainEventHandler, a1 as HttpResponse, N as DispatchContext } from '../host-api-BbIT_sLc.js';
2
2
 
3
3
  /** Every recorded interaction, keyed by `"port.method"`. */
4
4
  interface MockHostCalls {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vivoa/plugin-sdk",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "Public contracts for Vivoa plugins (types, DI tokens, config + setup-layout validators)",
5
5
  "license": "MIT",
6
6
  "author": "Vivoa",