@alfe.ai/openclaw-identity 0.0.5 → 0.0.6
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/plugin.cjs +30 -0
- package/dist/plugin.js +30 -0
- package/package.json +2 -2
package/dist/plugin.cjs
CHANGED
|
@@ -264,6 +264,36 @@ const plugin = {
|
|
|
264
264
|
senderId: params.senderId,
|
|
265
265
|
toolName: params.toolName
|
|
266
266
|
})
|
|
267
|
+
}),
|
|
268
|
+
defineTool({
|
|
269
|
+
name: "request_identity_verification",
|
|
270
|
+
description: "Send a verification phrase to the claimed identity's phone (SMS) or email. The person must relay the phrase back to confirm they own that identity.",
|
|
271
|
+
parameters: _sinclair_typebox.Type.Object({
|
|
272
|
+
claimedIdentityId: _sinclair_typebox.Type.String({ description: "Identity being claimed" }),
|
|
273
|
+
requestingIdentityId: _sinclair_typebox.Type.String({ description: "Identity of the person making the claim" }),
|
|
274
|
+
requestingPlatform: _sinclair_typebox.Type.String({ description: "Platform the requester is on (discord, slack, chat, etc.)" }),
|
|
275
|
+
requestingPlatformId: _sinclair_typebox.Type.String({ description: "Requester's platform-specific user ID" }),
|
|
276
|
+
preferredChannel: _sinclair_typebox.Type.Optional(_sinclair_typebox.Type.String({ description: "'sms' or 'email'" }))
|
|
277
|
+
}),
|
|
278
|
+
handler: (params) => client.requestIdentityVerification({
|
|
279
|
+
claimedIdentityId: params.claimedIdentityId,
|
|
280
|
+
requestingIdentityId: params.requestingIdentityId,
|
|
281
|
+
requestingPlatform: params.requestingPlatform,
|
|
282
|
+
requestingPlatformId: params.requestingPlatformId,
|
|
283
|
+
preferredChannel: params.preferredChannel
|
|
284
|
+
})
|
|
285
|
+
}),
|
|
286
|
+
defineTool({
|
|
287
|
+
name: "confirm_identity_verification",
|
|
288
|
+
description: "Confirm a verification by providing the three-word phrase. On success, the requesting identity is merged into the claimed identity.",
|
|
289
|
+
parameters: _sinclair_typebox.Type.Object({
|
|
290
|
+
verificationId: _sinclair_typebox.Type.String({ description: "Verification ID returned from request_identity_verification" }),
|
|
291
|
+
phrase: _sinclair_typebox.Type.String({ description: "Three-word phrase the person received via SMS or email" })
|
|
292
|
+
}),
|
|
293
|
+
handler: (params) => client.confirmIdentityVerification({
|
|
294
|
+
verificationId: params.verificationId,
|
|
295
|
+
phrase: params.phrase
|
|
296
|
+
})
|
|
267
297
|
})
|
|
268
298
|
];
|
|
269
299
|
for (const tool of tools) {
|
package/dist/plugin.js
CHANGED
|
@@ -264,6 +264,36 @@ const plugin = {
|
|
|
264
264
|
senderId: params.senderId,
|
|
265
265
|
toolName: params.toolName
|
|
266
266
|
})
|
|
267
|
+
}),
|
|
268
|
+
defineTool({
|
|
269
|
+
name: "request_identity_verification",
|
|
270
|
+
description: "Send a verification phrase to the claimed identity's phone (SMS) or email. The person must relay the phrase back to confirm they own that identity.",
|
|
271
|
+
parameters: Type.Object({
|
|
272
|
+
claimedIdentityId: Type.String({ description: "Identity being claimed" }),
|
|
273
|
+
requestingIdentityId: Type.String({ description: "Identity of the person making the claim" }),
|
|
274
|
+
requestingPlatform: Type.String({ description: "Platform the requester is on (discord, slack, chat, etc.)" }),
|
|
275
|
+
requestingPlatformId: Type.String({ description: "Requester's platform-specific user ID" }),
|
|
276
|
+
preferredChannel: Type.Optional(Type.String({ description: "'sms' or 'email'" }))
|
|
277
|
+
}),
|
|
278
|
+
handler: (params) => client.requestIdentityVerification({
|
|
279
|
+
claimedIdentityId: params.claimedIdentityId,
|
|
280
|
+
requestingIdentityId: params.requestingIdentityId,
|
|
281
|
+
requestingPlatform: params.requestingPlatform,
|
|
282
|
+
requestingPlatformId: params.requestingPlatformId,
|
|
283
|
+
preferredChannel: params.preferredChannel
|
|
284
|
+
})
|
|
285
|
+
}),
|
|
286
|
+
defineTool({
|
|
287
|
+
name: "confirm_identity_verification",
|
|
288
|
+
description: "Confirm a verification by providing the three-word phrase. On success, the requesting identity is merged into the claimed identity.",
|
|
289
|
+
parameters: Type.Object({
|
|
290
|
+
verificationId: Type.String({ description: "Verification ID returned from request_identity_verification" }),
|
|
291
|
+
phrase: Type.String({ description: "Three-word phrase the person received via SMS or email" })
|
|
292
|
+
}),
|
|
293
|
+
handler: (params) => client.confirmIdentityVerification({
|
|
294
|
+
verificationId: params.verificationId,
|
|
295
|
+
phrase: params.phrase
|
|
296
|
+
})
|
|
267
297
|
})
|
|
268
298
|
];
|
|
269
299
|
for (const tool of tools) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/openclaw-identity",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "OpenClaw identity plugin — identity resolution, access gating, permission enforcement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/plugin.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@sinclair/typebox": "^0.34.48",
|
|
31
|
-
"@alfe.ai/agent-api-client": "0.0.
|
|
31
|
+
"@alfe.ai/agent-api-client": "0.0.10",
|
|
32
32
|
"@alfe.ai/config": "0.0.8"
|
|
33
33
|
},
|
|
34
34
|
"license": "UNLICENSED",
|