@cmssy/ai-tools 0.58.0 → 0.58.1
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,7 +4,7 @@ const inputSchema = z.object({
|
|
|
4
4
|
});
|
|
5
5
|
export const sendCustomerPasswordResetTool = {
|
|
6
6
|
name: "send_customer_password_reset",
|
|
7
|
-
description: "Email a customer a password reset link, the same one the site's forgot-password flow sends; it works for one hour. For an active customer who cannot sign in. Refused for a suspended customer, for one who has not verified yet (use resend_customer_verification), when the workspace has no public site URL to link to, and after five account emails to the same customer in an hour. `emailSent: false` means the link was issued but the mailer did not take the email. Only call after the user confirms.",
|
|
7
|
+
description: "Email a customer a password reset link, the same one the site's forgot-password flow sends; it works for one hour. For an active customer who cannot sign in. Refused for a suspended customer, for one who has not verified yet (use resend_customer_verification), for a customer whose account model has no password sign-in, when the workspace has no public site URL to link to, and after five account emails to the same customer in an hour. `emailSent: false` means the link was issued but the mailer did not take the email. Only call after the user confirms.",
|
|
8
8
|
inputSchema,
|
|
9
9
|
requiredPermissions: ["customers:manage"],
|
|
10
10
|
execute: async ({ id }, ops) => ops.customers.sendPasswordReset(id),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-customer-password-reset.tool.js","sourceRoot":"","sources":["../../src/tools/send-customer-password-reset.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,yCAAyC,CAAC;CAC1E,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,6BAA6B,GAA8C;IACtF,IAAI,EAAE,8BAA8B;IACpC,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"send-customer-password-reset.tool.js","sourceRoot":"","sources":["../../src/tools/send-customer-password-reset.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,yCAAyC,CAAC;CAC1E,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,6BAA6B,GAA8C;IACtF,IAAI,EAAE,8BAA8B;IACpC,WAAW,EACT,8iBAA8iB;IAChjB,WAAW;IACX,mBAAmB,EAAE,CAAC,kBAAkB,CAAC;IACzC,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,EAAE,CAAC;CACpE,CAAC"}
|
|
@@ -4,7 +4,7 @@ const inputSchema = z.object({
|
|
|
4
4
|
});
|
|
5
5
|
export const unlockCustomerTool = {
|
|
6
6
|
name: "unlock_customer",
|
|
7
|
-
description: "Unlock a customer who was locked out after too many failed sign-ins: clears the failed-attempt counter
|
|
7
|
+
description: "Unlock a customer who was locked out after too many failed sign-ins: clears the failed-attempt counter, `lockedUntil` and the sign-in throttle for that identity, so the next sign-in with the right password succeeds. Does not change the password and does not reinstate a suspended customer (that is unsuspend_customer, which also clears the lock). Only call after the user confirms.",
|
|
8
8
|
inputSchema,
|
|
9
9
|
requiredPermissions: ["customers:manage"],
|
|
10
10
|
execute: async ({ id }, ops) => ops.customers.unlock(id),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unlock-customer.tool.js","sourceRoot":"","sources":["../../src/tools/unlock-customer.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,yCAAyC,CAAC;CAC1E,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAAmC;IAChE,IAAI,EAAE,iBAAiB;IACvB,WAAW,EACT
|
|
1
|
+
{"version":3,"file":"unlock-customer.tool.js","sourceRoot":"","sources":["../../src/tools/unlock-customer.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,yCAAyC,CAAC;CAC1E,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAAmC;IAChE,IAAI,EAAE,iBAAiB;IACvB,WAAW,EACT,+XAA+X;IACjY,WAAW;IACX,mBAAmB,EAAE,CAAC,kBAAkB,CAAC;IACzC,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;CACzD,CAAC"}
|