@floegence/floe-webapp-protocol 0.1.2 → 0.1.7

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.
@@ -4,10 +4,10 @@ export interface ControlplaneConfig {
4
4
  endpointId: string;
5
5
  }
6
6
  /**
7
- * 向控制面请求隧道连接凭证(grant)。
7
+ * Request a tunnel grant (ChannelInitGrant) from the controlplane.
8
8
  *
9
- * 说明:
10
- * - `.design.md` 约定的接口为 POST `${baseUrl}/v1/channel/init`,body: { endpoint_id }
11
- * - 返回体结构按设计约定:`{ grant_client: ChannelInitGrant }`
9
+ * HTTP contract (documented in `docs/protocol.md`):
10
+ * - POST `${baseUrl}/v1/channel/init`, body: { endpoint_id }
11
+ * - Response: `{ grant_client: ChannelInitGrant }`
12
12
  */
13
13
  export declare function requestChannelGrant(config: ControlplaneConfig): Promise<ChannelInitGrant>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floegence/floe-webapp-protocol",
3
- "version": "0.1.2",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",