@stackable-labs/sdk-extension-contracts 1.9.0 → 1.10.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.
@@ -3,10 +3,8 @@
3
3
  * Defines the host-mediated APIs that extensions can call via RPC.
4
4
  */
5
5
  import type { ApiRequest } from './api';
6
- /** Payload for data.fetch capability */
7
- export interface FetchRequest {
8
- /** Full URL to fetch — must be on the extension's allowedDomains */
9
- url: string;
6
+ /** Optional init for data.fetch mirrors RequestInit subset */
7
+ export interface FetchRequestInit {
10
8
  /** HTTP method (default: 'GET') */
11
9
  method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
12
10
  /** Optional request headers */
@@ -14,6 +12,11 @@ export interface FetchRequest {
14
12
  /** Optional request body (JSON-serializable) */
15
13
  body?: unknown;
16
14
  }
15
+ /** Internal wire payload sent over RPC (url merged back in from positional args) */
16
+ export interface FetchRequest extends FetchRequestInit {
17
+ /** Full URL to fetch — must be on the extension's allowedDomains */
18
+ url: string;
19
+ }
17
20
  /** Response returned to the extension */
18
21
  export interface FetchResponse {
19
22
  status: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackable-labs/sdk-extension-contracts",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",