@stackable-labs/sdk-extension-contracts 1.68.1 → 1.69.1
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 +12 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -582,6 +582,11 @@ type SurfaceLifecycleMessage = {
|
|
|
582
582
|
surfaceId: string;
|
|
583
583
|
};
|
|
584
584
|
|
|
585
|
+
/**
|
|
586
|
+
* RPC Protocol Types
|
|
587
|
+
* Messages exchanged between sandbox (extension) and host for capability calls.
|
|
588
|
+
*/
|
|
589
|
+
|
|
585
590
|
/** Request from extension sandbox to host */
|
|
586
591
|
interface CapabilityRequest {
|
|
587
592
|
type: 'capability-request';
|
|
@@ -617,12 +622,15 @@ interface ExtendIdentityResponse {
|
|
|
617
622
|
}
|
|
618
623
|
/** All message types that can be sent between host and sandbox */
|
|
619
624
|
type HostToSandboxMessage = {
|
|
620
|
-
type: '
|
|
621
|
-
|
|
622
|
-
} |
|
|
625
|
+
type: 'context-push';
|
|
626
|
+
context: ContextData;
|
|
627
|
+
} | {
|
|
623
628
|
type: 'context-update';
|
|
624
629
|
surfaceId: string;
|
|
625
630
|
context: Record<string, unknown>;
|
|
631
|
+
} | {
|
|
632
|
+
type: 'surface-lifecycle';
|
|
633
|
+
data: SurfaceLifecycleMessage;
|
|
626
634
|
} | {
|
|
627
635
|
type: 'extension-encryption-key';
|
|
628
636
|
encryptionKey: string;
|
|
@@ -630,7 +638,7 @@ type HostToSandboxMessage = {
|
|
|
630
638
|
type: 'extension-event';
|
|
631
639
|
eventType: string;
|
|
632
640
|
payload: EncryptedPayload | unknown;
|
|
633
|
-
} | ExtendIdentityRequest;
|
|
641
|
+
} | ExtendIdentityRequest | CapabilityResponse;
|
|
634
642
|
type SandboxToHostMessage = CapabilityRequest | {
|
|
635
643
|
type: 'surface-ready';
|
|
636
644
|
extensionId: string;
|