@peers-app/peers-sdk 0.25.2 → 0.25.3
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/contracts/__tests__/contract-resolvers.test.js +35 -2
- package/dist/contracts/__tests__/host-contract-consumer.test.d.ts +1 -0
- package/dist/contracts/__tests__/host-contract-consumer.test.js +163 -0
- package/dist/contracts/__tests__/system-contracts.test.js +14 -0
- package/dist/contracts/contract-resolvers.d.ts +14 -2
- package/dist/contracts/contract-resolvers.js +69 -6
- package/dist/contracts/host-contract-consumer.d.ts +40 -0
- package/dist/contracts/host-contract-consumer.js +105 -0
- package/dist/contracts/index.d.ts +2 -0
- package/dist/contracts/index.js +7 -2
- package/dist/contracts/system/identity-contract.d.ts +43 -0
- package/dist/contracts/system/identity-contract.js +133 -0
- package/dist/contracts/system/index.d.ts +2 -0
- package/dist/contracts/system/index.js +5 -1
- package/dist/contracts/types.d.ts +6 -0
- package/dist/data/devices.d.ts +4 -4
- package/dist/data/group-share.js +0 -38
- package/dist/data/index.d.ts +1 -0
- package/dist/data/index.js +1 -0
- package/dist/data/invites.d.ts +40 -40
- package/dist/data/invites.js +4 -2
- package/dist/data/peers-services-registration.pvar.d.ts +37 -0
- package/dist/data/peers-services-registration.pvar.js +57 -0
- package/dist/data/tool-access-approvals.d.ts +3 -3
- package/dist/device/connection.d.ts +1 -1
- package/dist/device/device.d.ts +1 -1
- package/dist/device-pairing/constants.d.ts +0 -2
- package/dist/device-pairing/constants.js +1 -3
- package/dist/device-pairing/types.d.ts +80 -80
- package/dist/invites/invite-messages.d.ts +12 -12
- package/dist/rpc-types.d.ts +0 -14
- package/dist/rpc-types.js +0 -13
- package/dist/system-ids.d.ts +17 -0
- package/dist/system-ids.js +18 -1
- package/package.json +1 -1
|
@@ -48,10 +48,10 @@ export declare const toolAccessApprovalSchema: z.ZodObject<{
|
|
|
48
48
|
status: ToolAccessApprovalStatus;
|
|
49
49
|
scope: ToolAccessApprovalScope;
|
|
50
50
|
userId: string;
|
|
51
|
-
expiresAt: Date;
|
|
52
51
|
toolId: string;
|
|
53
52
|
dataContextId: string;
|
|
54
53
|
createdAt: Date;
|
|
54
|
+
expiresAt: Date;
|
|
55
55
|
toolAccessApprovalId: string;
|
|
56
56
|
toolName: string;
|
|
57
57
|
argsHash: string;
|
|
@@ -70,9 +70,9 @@ export declare const toolAccessApprovalSchema: z.ZodObject<{
|
|
|
70
70
|
}, {
|
|
71
71
|
nonce: string;
|
|
72
72
|
userId: string;
|
|
73
|
-
expiresAt: Date;
|
|
74
73
|
toolId: string;
|
|
75
74
|
dataContextId: string;
|
|
75
|
+
expiresAt: Date;
|
|
76
76
|
toolAccessApprovalId: string;
|
|
77
77
|
toolName: string;
|
|
78
78
|
argsHash: string;
|
|
@@ -104,10 +104,10 @@ export declare function ToolAccessApprovals(dataContext?: DataContext): import("
|
|
|
104
104
|
status: ToolAccessApprovalStatus;
|
|
105
105
|
scope: ToolAccessApprovalScope;
|
|
106
106
|
userId: string;
|
|
107
|
-
expiresAt: Date;
|
|
108
107
|
toolId: string;
|
|
109
108
|
dataContextId: string;
|
|
110
109
|
createdAt: Date;
|
|
110
|
+
expiresAt: Date;
|
|
111
111
|
toolAccessApprovalId: string;
|
|
112
112
|
toolName: string;
|
|
113
113
|
argsHash: string;
|
package/dist/device/device.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ export declare class Device implements IDeviceInfo {
|
|
|
37
37
|
deviceId: string;
|
|
38
38
|
connectionId: string;
|
|
39
39
|
serverAddress: string;
|
|
40
|
-
deviceName?: string | undefined;
|
|
41
40
|
userName?: string | undefined;
|
|
41
|
+
deviceName?: string | undefined;
|
|
42
42
|
};
|
|
43
43
|
private deviceInfoSigned;
|
|
44
44
|
/** Returns cached signed identity information, refreshing after display metadata changes. */
|
|
@@ -39,8 +39,6 @@ export declare const DEVICE_PAIRING_MAX_WEBSOCKET_URLS = 8;
|
|
|
39
39
|
export declare const DEVICE_PAIRING_WEBSOCKET_NAMESPACE = "/device-pairing-transport-v1";
|
|
40
40
|
/** Maximum tolerated source/destination wall-clock difference. */
|
|
41
41
|
export declare const DEVICE_PAIRING_CLOCK_SKEW_MS: number;
|
|
42
|
-
/** Event name used to publish renderer-safe pairing state. */
|
|
43
|
-
export declare const DEVICE_PAIRING_STATE_EVENT = "device-pairing:state";
|
|
44
42
|
/** Domain-separation label for the PAKE-derived signaling authentication key. */
|
|
45
43
|
export declare const DEVICE_PAIRING_SIGNALING_LABEL = "peers-pairing-signaling-v3";
|
|
46
44
|
/** Domain-separation label for the PAKE-derived transcript confirmation key. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEVICE_PAIRING_WEBSOCKET_TOKEN_LABEL = exports.DEVICE_PAIRING_CONFIRM_LABEL = exports.DEVICE_PAIRING_SIGNALING_LABEL = exports.
|
|
3
|
+
exports.DEVICE_PAIRING_WEBSOCKET_TOKEN_LABEL = exports.DEVICE_PAIRING_CONFIRM_LABEL = exports.DEVICE_PAIRING_SIGNALING_LABEL = exports.DEVICE_PAIRING_CLOCK_SKEW_MS = exports.DEVICE_PAIRING_WEBSOCKET_NAMESPACE = exports.DEVICE_PAIRING_MAX_WEBSOCKET_URLS = exports.DEVICE_PAIRING_MAX_ICE_CANDIDATES_PER_ROLE = exports.DEVICE_PAIRING_MAX_TRANSPORT_BYTES = exports.DEVICE_PAIRING_MAX_SIGNAL_BYTES = exports.DEVICE_PAIRING_SIGNALING_EVENTS = exports.DEVICE_PAIRING_SIGNALING_PATH = exports.DEVICE_PAIRING_SIGNALING_NAMESPACE = exports.DEVICE_PAIRING_MAX_NAMEPLATE = exports.DEVICE_PAIRING_TTL_MS = exports.DEVICE_PAIRING_PROTOCOL_VERSION = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Wire-protocol version for the temporary device-pairing ceremony.
|
|
6
6
|
*
|
|
@@ -42,8 +42,6 @@ exports.DEVICE_PAIRING_MAX_WEBSOCKET_URLS = 8;
|
|
|
42
42
|
exports.DEVICE_PAIRING_WEBSOCKET_NAMESPACE = "/device-pairing-transport-v1";
|
|
43
43
|
/** Maximum tolerated source/destination wall-clock difference. */
|
|
44
44
|
exports.DEVICE_PAIRING_CLOCK_SKEW_MS = 2 * 60 * 1000;
|
|
45
|
-
/** Event name used to publish renderer-safe pairing state. */
|
|
46
|
-
exports.DEVICE_PAIRING_STATE_EVENT = "device-pairing:state";
|
|
47
45
|
/** Domain-separation label for the PAKE-derived signaling authentication key. */
|
|
48
46
|
exports.DEVICE_PAIRING_SIGNALING_LABEL = "peers-pairing-signaling-v3";
|
|
49
47
|
/** Domain-separation label for the PAKE-derived transcript confirmation key. */
|