@stackable-labs/sdk-extension-contracts 1.21.0 → 1.22.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +9 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -220,6 +220,11 @@ interface CapabilityResponse {
220
220
  data?: unknown;
221
221
  error?: string;
222
222
  }
223
+ /** Envelope for encrypted data.fetch payloads (SDK ↔ proxy) */
224
+ interface EncryptedPayload {
225
+ encrypted: true;
226
+ data: number[];
227
+ }
223
228
  /** All message types that can be sent between host and sandbox */
224
229
  type HostToSandboxMessage = {
225
230
  type: 'surface-lifecycle';
@@ -228,6 +233,9 @@ type HostToSandboxMessage = {
228
233
  type: 'context-update';
229
234
  surfaceId: string;
230
235
  context: Record<string, unknown>;
236
+ } | {
237
+ type: 'extension-encryption-key';
238
+ encryptionKey: string;
231
239
  };
232
240
  type SandboxToHostMessage = CapabilityRequest | {
233
241
  type: 'surface-ready';
@@ -474,4 +482,4 @@ interface Order {
474
482
  display_status?: OrderStatus;
475
483
  }
476
484
 
477
- export { ALLOWED_ICONS, type ActionInvokePayload, type Address, type AllowedIconName, type ApiError, type ApiRequest, type ApiResponse, CAPABILITY_PERMISSION_MAP, type CapabilityCall, type CapabilityRequest, type CapabilityResponse, type CapabilityType, type ContextData, type Customer, type DataField, type DataFieldType, type ExtensionManifest, type ExtensionRegistryEntry, type FetchRequest, type FetchRequestInit, type FetchResponse, type HostToSandboxMessage, type InstanceOption, type InstanceSettings, type MarketplaceExtension, 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, UI_TAGS, UI_TAG_ATTRIBUTES, UI_TAG_CHILDREN };
485
+ export { ALLOWED_ICONS, type ActionInvokePayload, type Address, type AllowedIconName, type ApiError, type ApiRequest, type ApiResponse, 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 InstanceOption, type InstanceSettings, type MarketplaceExtension, 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, UI_TAGS, UI_TAG_ATTRIBUTES, UI_TAG_CHILDREN };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackable-labs/sdk-extension-contracts",
3
- "version": "1.21.0",
3
+ "version": "1.22.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",