@stackable-labs/sdk-extension-contracts 1.44.0 → 1.45.0
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/dist/index.d.ts +15 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -560,6 +560,18 @@ interface EncryptedPayload {
|
|
|
560
560
|
encrypted: true;
|
|
561
561
|
data: number[];
|
|
562
562
|
}
|
|
563
|
+
/** Host asks extension to enrich identity claims before signing */
|
|
564
|
+
interface IdentityExtendRequest {
|
|
565
|
+
type: 'identity-extend-request';
|
|
566
|
+
id: string;
|
|
567
|
+
claims: Record<string, unknown>;
|
|
568
|
+
}
|
|
569
|
+
/** Extension responds with additional claims to merge into the JWT */
|
|
570
|
+
interface IdentityExtendResponse {
|
|
571
|
+
type: 'identity-extend-response';
|
|
572
|
+
id: string;
|
|
573
|
+
additionalClaims: Record<string, unknown>;
|
|
574
|
+
}
|
|
563
575
|
/** All message types that can be sent between host and sandbox */
|
|
564
576
|
type HostToSandboxMessage = {
|
|
565
577
|
type: 'surface-lifecycle';
|
|
@@ -575,7 +587,7 @@ type HostToSandboxMessage = {
|
|
|
575
587
|
type: 'extension-event';
|
|
576
588
|
eventType: string;
|
|
577
589
|
payload: EncryptedPayload | unknown;
|
|
578
|
-
};
|
|
590
|
+
} | IdentityExtendRequest;
|
|
579
591
|
type SandboxToHostMessage = CapabilityRequest | {
|
|
580
592
|
type: 'surface-ready';
|
|
581
593
|
extensionId: string;
|
|
@@ -583,7 +595,7 @@ type SandboxToHostMessage = CapabilityRequest | {
|
|
|
583
595
|
} | {
|
|
584
596
|
type: 'extension-ready';
|
|
585
597
|
extensionId: string;
|
|
586
|
-
};
|
|
598
|
+
} | IdentityExtendResponse;
|
|
587
599
|
|
|
588
600
|
/**
|
|
589
601
|
* Ecommerce Type Definitions
|
|
@@ -821,4 +833,4 @@ interface Order {
|
|
|
821
833
|
display_status?: OrderStatus;
|
|
822
834
|
}
|
|
823
835
|
|
|
824
|
-
export { ALLOWED_ICONS, type ActionInvokePayload, type Address, type AllowedIconName, type ApiError, type ApiRequest, type ApiResponse, type AuthEvent, type AuthEventType, type AuthState, CAPABILITY_PERMISSION_MAP, type CapabilityCall, type CapabilityRequest, type CapabilityResponse, type CapabilityType, type ContextData, type Customer, type DataField, type DataFieldType, type EncryptedPayload, type ExtensionManifest, type ExtensionRegistryEntry, type FetchRequest, type FetchRequestInit, type FetchResponse, type HostToSandboxMessage, type InstanceConfig, type InstanceOption, type InvokeAction, type MarketplaceExtension, type MessengerCommand, type NamedEntity, type Order, type OrderAction, type OrderItem, type OrderStatus, type OrderStatuses, PERMISSIONS, type Permission, type Price, type SandboxToHostMessage, type Shipment, type SurfaceContext, type SurfaceLifecycleMessage, type Target, type Theme, type ToastPayload, type UITag, type UITagCategory, UI_TAGS, UI_TAG_ATTRIBUTES, UI_TAG_ATTRIBUTE_VALUES, UI_TAG_CATEGORIES, UI_TAG_CHILDREN, UI_TAG_DEFINITIONS, type UserIdentity, type WidgetAction, tagToComponentName };
|
|
836
|
+
export { ALLOWED_ICONS, type ActionInvokePayload, type Address, type AllowedIconName, type ApiError, type ApiRequest, type ApiResponse, type AuthEvent, type AuthEventType, type AuthState, CAPABILITY_PERMISSION_MAP, type CapabilityCall, type CapabilityRequest, type CapabilityResponse, type CapabilityType, type ContextData, type Customer, type DataField, type DataFieldType, type EncryptedPayload, type ExtensionManifest, type ExtensionRegistryEntry, type FetchRequest, type FetchRequestInit, type FetchResponse, type HostToSandboxMessage, type IdentityExtendRequest, type IdentityExtendResponse, type InstanceConfig, type InstanceOption, type InvokeAction, type MarketplaceExtension, type MessengerCommand, type NamedEntity, type Order, type OrderAction, type OrderItem, type OrderStatus, type OrderStatuses, PERMISSIONS, type Permission, type Price, type SandboxToHostMessage, type Shipment, type SurfaceContext, type SurfaceLifecycleMessage, type Target, type Theme, type ToastPayload, type UITag, type UITagCategory, UI_TAGS, UI_TAG_ATTRIBUTES, UI_TAG_ATTRIBUTE_VALUES, UI_TAG_CATEGORIES, UI_TAG_CHILDREN, UI_TAG_DEFINITIONS, type UserIdentity, type WidgetAction, tagToComponentName };
|