@canonmsg/core 0.4.0 → 0.5.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/client.d.ts CHANGED
@@ -47,6 +47,7 @@ export declare class CanonClient {
47
47
  developerInfo: string;
48
48
  avatarUrl?: string;
49
49
  clientType?: string;
50
+ requestedAgentId?: string;
50
51
  }): Promise<{
51
52
  requestId: string;
52
53
  }>;
@@ -17,6 +17,7 @@ export async function registerAndWaitForApproval(input, callbacks) {
17
17
  developerInfo: input.developerInfo || 'Canon agent',
18
18
  avatarUrl: input.avatarUrl,
19
19
  clientType: input.clientType,
20
+ requestedAgentId: input.requestedAgentId,
20
21
  });
21
22
  callbacks?.onSubmitted?.(requestId);
22
23
  const deadline = Date.now() + POLL_TIMEOUT_MS;
package/dist/types.d.ts CHANGED
@@ -202,6 +202,7 @@ export interface RegistrationInput {
202
202
  avatarUrl?: string;
203
203
  baseUrl?: string;
204
204
  clientType?: AgentClientType;
205
+ requestedAgentId?: string;
205
206
  }
206
207
  export interface RegistrationResult {
207
208
  status: 'approved' | 'rejected' | 'timeout';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonmsg/core",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Canon core — shared types, REST client, SSE stream, and registration for Canon messaging",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",