@keystrokehq/superchat 0.1.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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/create-contact.cjs +55 -0
- package/dist/actions/create-contact.cjs.map +1 -0
- package/dist/actions/create-contact.d.cts +9 -0
- package/dist/actions/create-contact.d.cts.map +1 -0
- package/dist/actions/create-contact.d.mts +9 -0
- package/dist/actions/create-contact.d.mts.map +1 -0
- package/dist/actions/create-contact.mjs +54 -0
- package/dist/actions/create-contact.mjs.map +1 -0
- package/dist/actions/create-template-folder.cjs +20 -0
- package/dist/actions/create-template-folder.cjs.map +1 -0
- package/dist/actions/create-template-folder.d.cts +9 -0
- package/dist/actions/create-template-folder.d.cts.map +1 -0
- package/dist/actions/create-template-folder.d.mts +9 -0
- package/dist/actions/create-template-folder.d.mts.map +1 -0
- package/dist/actions/create-template-folder.mjs +17 -0
- package/dist/actions/create-template-folder.mjs.map +1 -0
- package/dist/actions/delete-webhook.cjs +16 -0
- package/dist/actions/delete-webhook.cjs.map +1 -0
- package/dist/actions/delete-webhook.d.cts +9 -0
- package/dist/actions/delete-webhook.d.cts.map +1 -0
- package/dist/actions/delete-webhook.d.mts +9 -0
- package/dist/actions/delete-webhook.d.mts.map +1 -0
- package/dist/actions/delete-webhook.mjs +13 -0
- package/dist/actions/delete-webhook.mjs.map +1 -0
- package/dist/actions/get-contact.cjs +39 -0
- package/dist/actions/get-contact.cjs.map +1 -0
- package/dist/actions/get-contact.d.cts +9 -0
- package/dist/actions/get-contact.d.cts.map +1 -0
- package/dist/actions/get-contact.d.mts +9 -0
- package/dist/actions/get-contact.d.mts.map +1 -0
- package/dist/actions/get-contact.mjs +38 -0
- package/dist/actions/get-contact.mjs.map +1 -0
- package/dist/actions/get-file.cjs +26 -0
- package/dist/actions/get-file.cjs.map +1 -0
- package/dist/actions/get-file.d.cts +9 -0
- package/dist/actions/get-file.d.cts.map +1 -0
- package/dist/actions/get-file.d.mts +9 -0
- package/dist/actions/get-file.d.mts.map +1 -0
- package/dist/actions/get-file.mjs +25 -0
- package/dist/actions/get-file.mjs.map +1 -0
- package/dist/actions/get-user.cjs +25 -0
- package/dist/actions/get-user.cjs.map +1 -0
- package/dist/actions/get-user.d.cts +9 -0
- package/dist/actions/get-user.d.cts.map +1 -0
- package/dist/actions/get-user.d.mts +9 -0
- package/dist/actions/get-user.d.mts.map +1 -0
- package/dist/actions/get-user.mjs +22 -0
- package/dist/actions/get-user.mjs.map +1 -0
- package/dist/actions/index.cjs +35 -0
- package/dist/actions/index.d.cts +18 -0
- package/dist/actions/index.d.mts +18 -0
- package/dist/actions/index.mjs +18 -0
- package/dist/actions/list-channels.cjs +37 -0
- package/dist/actions/list-channels.cjs.map +1 -0
- package/dist/actions/list-channels.d.cts +9 -0
- package/dist/actions/list-channels.d.cts.map +1 -0
- package/dist/actions/list-channels.d.mts +9 -0
- package/dist/actions/list-channels.d.mts.map +1 -0
- package/dist/actions/list-channels.mjs +36 -0
- package/dist/actions/list-channels.mjs.map +1 -0
- package/dist/actions/list-contacts.cjs +63 -0
- package/dist/actions/list-contacts.cjs.map +1 -0
- package/dist/actions/list-contacts.d.cts +9 -0
- package/dist/actions/list-contacts.d.cts.map +1 -0
- package/dist/actions/list-contacts.d.mts +9 -0
- package/dist/actions/list-contacts.d.mts.map +1 -0
- package/dist/actions/list-contacts.mjs +62 -0
- package/dist/actions/list-contacts.mjs.map +1 -0
- package/dist/actions/list-conversations.cjs +70 -0
- package/dist/actions/list-conversations.cjs.map +1 -0
- package/dist/actions/list-conversations.d.cts +9 -0
- package/dist/actions/list-conversations.d.cts.map +1 -0
- package/dist/actions/list-conversations.d.mts +9 -0
- package/dist/actions/list-conversations.d.mts.map +1 -0
- package/dist/actions/list-conversations.mjs +69 -0
- package/dist/actions/list-conversations.mjs.map +1 -0
- package/dist/actions/list-custom-attributes.cjs +37 -0
- package/dist/actions/list-custom-attributes.cjs.map +1 -0
- package/dist/actions/list-custom-attributes.d.cts +9 -0
- package/dist/actions/list-custom-attributes.d.cts.map +1 -0
- package/dist/actions/list-custom-attributes.d.mts +9 -0
- package/dist/actions/list-custom-attributes.d.mts.map +1 -0
- package/dist/actions/list-custom-attributes.mjs +36 -0
- package/dist/actions/list-custom-attributes.mjs.map +1 -0
- package/dist/actions/list-inboxes.cjs +41 -0
- package/dist/actions/list-inboxes.cjs.map +1 -0
- package/dist/actions/list-inboxes.d.cts +9 -0
- package/dist/actions/list-inboxes.d.cts.map +1 -0
- package/dist/actions/list-inboxes.d.mts +9 -0
- package/dist/actions/list-inboxes.d.mts.map +1 -0
- package/dist/actions/list-inboxes.mjs +40 -0
- package/dist/actions/list-inboxes.mjs.map +1 -0
- package/dist/actions/list-labels.cjs +37 -0
- package/dist/actions/list-labels.cjs.map +1 -0
- package/dist/actions/list-labels.d.cts +9 -0
- package/dist/actions/list-labels.d.cts.map +1 -0
- package/dist/actions/list-labels.d.mts +9 -0
- package/dist/actions/list-labels.d.mts.map +1 -0
- package/dist/actions/list-labels.mjs +36 -0
- package/dist/actions/list-labels.mjs.map +1 -0
- package/dist/actions/list-templates.cjs +38 -0
- package/dist/actions/list-templates.cjs.map +1 -0
- package/dist/actions/list-templates.d.cts +9 -0
- package/dist/actions/list-templates.d.cts.map +1 -0
- package/dist/actions/list-templates.d.mts +9 -0
- package/dist/actions/list-templates.d.mts.map +1 -0
- package/dist/actions/list-templates.mjs +37 -0
- package/dist/actions/list-templates.mjs.map +1 -0
- package/dist/actions/list-users.cjs +40 -0
- package/dist/actions/list-users.cjs.map +1 -0
- package/dist/actions/list-users.d.cts +9 -0
- package/dist/actions/list-users.d.cts.map +1 -0
- package/dist/actions/list-users.d.mts +9 -0
- package/dist/actions/list-users.d.mts.map +1 -0
- package/dist/actions/list-users.mjs +39 -0
- package/dist/actions/list-users.mjs.map +1 -0
- package/dist/actions/list-webhooks.cjs +47 -0
- package/dist/actions/list-webhooks.cjs.map +1 -0
- package/dist/actions/list-webhooks.d.cts +9 -0
- package/dist/actions/list-webhooks.d.cts.map +1 -0
- package/dist/actions/list-webhooks.d.mts +9 -0
- package/dist/actions/list-webhooks.d.mts.map +1 -0
- package/dist/actions/list-webhooks.mjs +46 -0
- package/dist/actions/list-webhooks.mjs.map +1 -0
- package/dist/actions/update-contact.cjs +68 -0
- package/dist/actions/update-contact.cjs.map +1 -0
- package/dist/actions/update-contact.d.cts +9 -0
- package/dist/actions/update-contact.d.cts.map +1 -0
- package/dist/actions/update-contact.d.mts +9 -0
- package/dist/actions/update-contact.d.mts.map +1 -0
- package/dist/actions/update-contact.mjs +67 -0
- package/dist/actions/update-contact.mjs.map +1 -0
- package/dist/actions/update-webhook.cjs +27 -0
- package/dist/actions/update-webhook.cjs.map +1 -0
- package/dist/actions/update-webhook.d.cts +9 -0
- package/dist/actions/update-webhook.d.cts.map +1 -0
- package/dist/actions/update-webhook.d.mts +9 -0
- package/dist/actions/update-webhook.d.mts.map +1 -0
- package/dist/actions/update-webhook.mjs +24 -0
- package/dist/actions/update-webhook.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +40 -0
- package/dist/index.d.cts +20 -0
- package/dist/index.d.mts +20 -0
- package/dist/index.mjs +21 -0
- package/package.json +49 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-contact.d.mts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAcU;AAAA,cAWzC,4BAAA,EAA8B,CAAA,CAAE,UAUU;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/update-contact.ts
|
|
4
|
+
const SuperchatUpdateContactInput = z.object({
|
|
5
|
+
gender: z.enum([
|
|
6
|
+
"female",
|
|
7
|
+
"male",
|
|
8
|
+
"diverse"
|
|
9
|
+
]).describe("Gender of the contact.").optional(),
|
|
10
|
+
handles: z.array(z.object({
|
|
11
|
+
id: z.string().describe("Optional contact_handle_id to update an existing handle. If not provided, a new handle is created.").optional(),
|
|
12
|
+
type: z.enum(["phone", "mail"]).describe("Handle type. Only 'phone' and 'mail' are supported for updates."),
|
|
13
|
+
value: z.string().describe("The handle value (phone number or email address).")
|
|
14
|
+
}).describe("Contact handle for update request. Only phone and email handles are supported.")).describe("List of contact handles to update. Only phone and email handles are supported. Include 'id' to update existing handles.").optional(),
|
|
15
|
+
last_name: z.string().describe("Last name of the contact.").optional(),
|
|
16
|
+
contact_id: z.string().describe("Unique identifier of the contact to update, prefixed with 'ct_'. Example: 'ct_abc123'."),
|
|
17
|
+
first_name: z.string().describe("First name of the contact.").optional(),
|
|
18
|
+
custom_attributes: z.array(z.object({
|
|
19
|
+
id: z.string().describe("Identifier of the custom attribute to update."),
|
|
20
|
+
value: z.union([
|
|
21
|
+
z.string(),
|
|
22
|
+
z.number().int(),
|
|
23
|
+
z.number(),
|
|
24
|
+
z.array(z.string())
|
|
25
|
+
])
|
|
26
|
+
}).describe("Custom attribute update object.")).describe("List of custom attributes to update. Each attribute needs an 'id' and 'value'.").optional()
|
|
27
|
+
}).describe("Request model for UpdateContact action.");
|
|
28
|
+
const SuperchatUpdateContact_ContactHandleResponseSchema = z.object({
|
|
29
|
+
id: z.string().describe("Unique identifier of the contact handle."),
|
|
30
|
+
type: z.string().describe("Handle type (phone, mail, instagram, etc.)."),
|
|
31
|
+
value: z.string().describe("The handle value.")
|
|
32
|
+
}).describe("Contact handle object returned in response.");
|
|
33
|
+
const SuperchatUpdateContact_CustomAttributeResponseSchema = z.object({
|
|
34
|
+
id: z.string().describe("Identifier of the custom attribute."),
|
|
35
|
+
name: z.string().describe("Name/key of the custom attribute.").nullable().optional(),
|
|
36
|
+
value: z.union([
|
|
37
|
+
z.string(),
|
|
38
|
+
z.number().int(),
|
|
39
|
+
z.number(),
|
|
40
|
+
z.array(z.string())
|
|
41
|
+
])
|
|
42
|
+
}).describe("Custom attribute object returned in response.");
|
|
43
|
+
const superchatUpdateContact = action("SUPERCHAT_UPDATE_CONTACT", {
|
|
44
|
+
slug: "superchat-update-contact",
|
|
45
|
+
name: "Update Contact",
|
|
46
|
+
description: "Update information for a specific contact in Superchat. Use this tool to modify a contact's name, gender, handles (phone/email), or custom attributes. Requires the contact_id (prefixed with 'ct_') which can be obtained from List Contacts or Create Contact. Examples: - Update first name: {\"contact_id\": \"ct_abc123\", \"first_name\": \"Jane\"} - Update gender: {\"contact_id\": \"ct_abc123\", \"gender\": \"female\"} - Update phone handle: {\"contact_id\": \"ct_abc123\", \"handles\": [{\"type\": \"phone\", \"value\": \"+1234567890\"}]}",
|
|
47
|
+
input: SuperchatUpdateContactInput,
|
|
48
|
+
output: z.object({
|
|
49
|
+
id: z.string().describe("Unique identifier for the contact (prefixed with 'ct_')."),
|
|
50
|
+
url: z.string().describe("Resource URL of the contact.").nullable().optional(),
|
|
51
|
+
gender: z.enum([
|
|
52
|
+
"female",
|
|
53
|
+
"male",
|
|
54
|
+
"diverse"
|
|
55
|
+
]).describe("Gender of the contact.").nullable().optional(),
|
|
56
|
+
handles: z.array(SuperchatUpdateContact_ContactHandleResponseSchema).describe("List of contact handles associated with this contact.").nullable().optional(),
|
|
57
|
+
last_name: z.string().describe("Last name of the contact.").nullable().optional(),
|
|
58
|
+
created_at: z.string().describe("UTC datetime when the contact was created.").nullable().optional(),
|
|
59
|
+
first_name: z.string().describe("First name of the contact.").nullable().optional(),
|
|
60
|
+
updated_at: z.string().describe("UTC datetime when the contact was last updated.").nullable().optional(),
|
|
61
|
+
custom_attributes: z.array(SuperchatUpdateContact_CustomAttributeResponseSchema).describe("Custom attributes associated with the contact.").nullable().optional()
|
|
62
|
+
}).describe("Response model for UpdateContact action.")
|
|
63
|
+
});
|
|
64
|
+
//#endregion
|
|
65
|
+
export { superchatUpdateContact };
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=update-contact.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-contact.mjs","names":[],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatUpdateContactInput: z.ZodTypeAny = z.object({\n gender: z.enum([\"female\", \"male\", \"diverse\"]).describe(\"Gender of the contact.\").optional(),\n handles: z.array(z.object({\n id: z.string().describe(\"Optional contact_handle_id to update an existing handle. If not provided, a new handle is created.\").optional(),\n type: z.enum([\"phone\", \"mail\"]).describe(\"Handle type. Only 'phone' and 'mail' are supported for updates.\"),\n value: z.string().describe(\"The handle value (phone number or email address).\"),\n}).describe(\"Contact handle for update request. Only phone and email handles are supported.\")).describe(\"List of contact handles to update. Only phone and email handles are supported. Include 'id' to update existing handles.\").optional(),\n last_name: z.string().describe(\"Last name of the contact.\").optional(),\n contact_id: z.string().describe(\"Unique identifier of the contact to update, prefixed with 'ct_'. Example: 'ct_abc123'.\"),\n first_name: z.string().describe(\"First name of the contact.\").optional(),\n custom_attributes: z.array(z.object({\n id: z.string().describe(\"Identifier of the custom attribute to update.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.array(z.string())]),\n}).describe(\"Custom attribute update object.\")).describe(\"List of custom attributes to update. Each attribute needs an 'id' and 'value'.\").optional(),\n}).describe(\"Request model for UpdateContact action.\");\nconst SuperchatUpdateContact_ContactHandleResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the contact handle.\"),\n type: z.string().describe(\"Handle type (phone, mail, instagram, etc.).\"),\n value: z.string().describe(\"The handle value.\"),\n}).describe(\"Contact handle object returned in response.\");\nconst SuperchatUpdateContact_CustomAttributeResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Identifier of the custom attribute.\"),\n name: z.string().describe(\"Name/key of the custom attribute.\").nullable().optional(),\n value: z.union([z.string(), z.number().int(), z.number(), z.array(z.string())]),\n}).describe(\"Custom attribute object returned in response.\");\nexport const SuperchatUpdateContactOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the contact (prefixed with 'ct_').\"),\n url: z.string().describe(\"Resource URL of the contact.\").nullable().optional(),\n gender: z.enum([\"female\", \"male\", \"diverse\"]).describe(\"Gender of the contact.\").nullable().optional(),\n handles: z.array(SuperchatUpdateContact_ContactHandleResponseSchema).describe(\"List of contact handles associated with this contact.\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the contact.\").nullable().optional(),\n created_at: z.string().describe(\"UTC datetime when the contact was created.\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact.\").nullable().optional(),\n updated_at: z.string().describe(\"UTC datetime when the contact was last updated.\").nullable().optional(),\n custom_attributes: z.array(SuperchatUpdateContact_CustomAttributeResponseSchema).describe(\"Custom attributes associated with the contact.\").nullable().optional(),\n}).describe(\"Response model for UpdateContact action.\");\n\nexport const superchatUpdateContact = action(\"SUPERCHAT_UPDATE_CONTACT\", {\n slug: \"superchat-update-contact\",\n name: \"Update Contact\",\n description: \"Update information for a specific contact in Superchat. Use this tool to modify a contact's name, gender, handles (phone/email), or custom attributes. Requires the contact_id (prefixed with 'ct_') which can be obtained from List Contacts or Create Contact. Examples: - Update first name: {\\\"contact_id\\\": \\\"ct_abc123\\\", \\\"first_name\\\": \\\"Jane\\\"} - Update gender: {\\\"contact_id\\\": \\\"ct_abc123\\\", \\\"gender\\\": \\\"female\\\"} - Update phone handle: {\\\"contact_id\\\": \\\"ct_abc123\\\", \\\"handles\\\": [{\\\"type\\\": \\\"phone\\\", \\\"value\\\": \\\"+1234567890\\\"}]}\",\n input: SuperchatUpdateContactInput,\n output: SuperchatUpdateContactOutput,\n});\n"],"mappings":"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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-webhook.ts
|
|
4
|
+
const SuperchatUpdateWebhookInput = zod.z.object({
|
|
5
|
+
url: zod.z.string().describe("New target URL for the webhook. Must use HTTPS protocol. If omitted, the existing URL is preserved.").optional(),
|
|
6
|
+
events: zod.z.array(zod.z.string()).describe("List of event types to subscribe to. Valid events: 'message_inbound', 'contact_updated', 'contact_created', 'message_outbound', 'message_failed', 'note_created', 'conversation_done', 'conversation_opened', 'conversation_snoozed'. If omitted, the existing events are preserved.").optional(),
|
|
7
|
+
webhook_id: zod.z.string().describe("Unique identifier of the webhook to update, prefixed with 'wh_' (e.g., 'wh_abc123').")
|
|
8
|
+
}).describe("Request model for UpdateWebhook action.");
|
|
9
|
+
const SuperchatUpdateWebhookOutput = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("Unique identifier of the webhook."),
|
|
11
|
+
url: zod.z.string().describe("Callback URL where webhook events are sent."),
|
|
12
|
+
events: zod.z.array(zod.z.string()).describe("List of event names the webhook is subscribed to."),
|
|
13
|
+
status: zod.z.string().describe("Current status of the webhook."),
|
|
14
|
+
created_at: zod.z.string().describe("Timestamp when the webhook was created."),
|
|
15
|
+
updated_at: zod.z.string().describe("Timestamp when the webhook was last updated.")
|
|
16
|
+
}).describe("Response model for UpdateWebhook action.");
|
|
17
|
+
const superchatUpdateWebhook = require_action.action("SUPERCHAT_UPDATE_WEBHOOK", {
|
|
18
|
+
slug: "superchat-update-webhook",
|
|
19
|
+
name: "Update Webhook",
|
|
20
|
+
description: "Update an existing webhook's target URL and/or event subscriptions. Use this tool to: - Change the webhook delivery URL - Add or remove event subscriptions - Update event types the webhook listens to Note: Webhook status (ACTIVE/PAUSED) is automatically managed by the API and cannot be manually changed. Webhooks become PAUSED after 7 days of consistent delivery failures.",
|
|
21
|
+
input: SuperchatUpdateWebhookInput,
|
|
22
|
+
output: SuperchatUpdateWebhookOutput
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.superchatUpdateWebhook = superchatUpdateWebhook;
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=update-webhook.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-webhook.cjs","names":["z","action"],"sources":["../../src/actions/update-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatUpdateWebhookInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"New target URL for the webhook. Must use HTTPS protocol. If omitted, the existing URL is preserved.\").optional(),\n events: z.array(z.string()).describe(\"List of event types to subscribe to. Valid events: 'message_inbound', 'contact_updated', 'contact_created', 'message_outbound', 'message_failed', 'note_created', 'conversation_done', 'conversation_opened', 'conversation_snoozed'. If omitted, the existing events are preserved.\").optional(),\n webhook_id: z.string().describe(\"Unique identifier of the webhook to update, prefixed with 'wh_' (e.g., 'wh_abc123').\"),\n}).describe(\"Request model for UpdateWebhook action.\");\nexport const SuperchatUpdateWebhookOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the webhook.\"),\n url: z.string().describe(\"Callback URL where webhook events are sent.\"),\n events: z.array(z.string()).describe(\"List of event names the webhook is subscribed to.\"),\n status: z.string().describe(\"Current status of the webhook.\"),\n created_at: z.string().describe(\"Timestamp when the webhook was created.\"),\n updated_at: z.string().describe(\"Timestamp when the webhook was last updated.\"),\n}).describe(\"Response model for UpdateWebhook action.\");\n\nexport const superchatUpdateWebhook = action(\"SUPERCHAT_UPDATE_WEBHOOK\", {\n slug: \"superchat-update-webhook\",\n name: \"Update Webhook\",\n description: \"Update an existing webhook's target URL and/or event subscriptions. Use this tool to: - Change the webhook delivery URL - Add or remove event subscriptions - Update event types the webhook listens to Note: Webhook status (ACTIVE/PAUSED) is automatically managed by the API and cannot be manually changed. Webhooks become PAUSED after 7 days of consistent delivery failures.\",\n input: SuperchatUpdateWebhookInput,\n output: SuperchatUpdateWebhookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CACzI,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sRAAsR,CAAC,CAAC,SAAS;CACtU,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;AACxH,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACtE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AAChF,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-webhook.d.ts
|
|
4
|
+
declare const SuperchatUpdateWebhookInput: z.ZodTypeAny;
|
|
5
|
+
declare const SuperchatUpdateWebhookOutput: z.ZodTypeAny;
|
|
6
|
+
declare const superchatUpdateWebhook: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { superchatUpdateWebhook };
|
|
9
|
+
//# sourceMappingURL=update-webhook.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-webhook.d.cts","names":[],"sources":["../../src/actions/update-webhook.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAIU;AAAA,cACzC,4BAAA,EAA8B,CAAA,CAAE,UAOU;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-webhook.d.ts
|
|
4
|
+
declare const SuperchatUpdateWebhookInput: z.ZodTypeAny;
|
|
5
|
+
declare const SuperchatUpdateWebhookOutput: z.ZodTypeAny;
|
|
6
|
+
declare const superchatUpdateWebhook: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { superchatUpdateWebhook };
|
|
9
|
+
//# sourceMappingURL=update-webhook.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-webhook.d.mts","names":[],"sources":["../../src/actions/update-webhook.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAIU;AAAA,cACzC,4BAAA,EAA8B,CAAA,CAAE,UAOU;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const superchatUpdateWebhook = action("SUPERCHAT_UPDATE_WEBHOOK", {
|
|
4
|
+
slug: "superchat-update-webhook",
|
|
5
|
+
name: "Update Webhook",
|
|
6
|
+
description: "Update an existing webhook's target URL and/or event subscriptions. Use this tool to: - Change the webhook delivery URL - Add or remove event subscriptions - Update event types the webhook listens to Note: Webhook status (ACTIVE/PAUSED) is automatically managed by the API and cannot be manually changed. Webhooks become PAUSED after 7 days of consistent delivery failures.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
url: z.string().describe("New target URL for the webhook. Must use HTTPS protocol. If omitted, the existing URL is preserved.").optional(),
|
|
9
|
+
events: z.array(z.string()).describe("List of event types to subscribe to. Valid events: 'message_inbound', 'contact_updated', 'contact_created', 'message_outbound', 'message_failed', 'note_created', 'conversation_done', 'conversation_opened', 'conversation_snoozed'. If omitted, the existing events are preserved.").optional(),
|
|
10
|
+
webhook_id: z.string().describe("Unique identifier of the webhook to update, prefixed with 'wh_' (e.g., 'wh_abc123').")
|
|
11
|
+
}).describe("Request model for UpdateWebhook action."),
|
|
12
|
+
output: z.object({
|
|
13
|
+
id: z.string().describe("Unique identifier of the webhook."),
|
|
14
|
+
url: z.string().describe("Callback URL where webhook events are sent."),
|
|
15
|
+
events: z.array(z.string()).describe("List of event names the webhook is subscribed to."),
|
|
16
|
+
status: z.string().describe("Current status of the webhook."),
|
|
17
|
+
created_at: z.string().describe("Timestamp when the webhook was created."),
|
|
18
|
+
updated_at: z.string().describe("Timestamp when the webhook was last updated.")
|
|
19
|
+
}).describe("Response model for UpdateWebhook action.")
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { superchatUpdateWebhook };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=update-webhook.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-webhook.mjs","names":[],"sources":["../../src/actions/update-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatUpdateWebhookInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"New target URL for the webhook. Must use HTTPS protocol. If omitted, the existing URL is preserved.\").optional(),\n events: z.array(z.string()).describe(\"List of event types to subscribe to. Valid events: 'message_inbound', 'contact_updated', 'contact_created', 'message_outbound', 'message_failed', 'note_created', 'conversation_done', 'conversation_opened', 'conversation_snoozed'. If omitted, the existing events are preserved.\").optional(),\n webhook_id: z.string().describe(\"Unique identifier of the webhook to update, prefixed with 'wh_' (e.g., 'wh_abc123').\"),\n}).describe(\"Request model for UpdateWebhook action.\");\nexport const SuperchatUpdateWebhookOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the webhook.\"),\n url: z.string().describe(\"Callback URL where webhook events are sent.\"),\n events: z.array(z.string()).describe(\"List of event names the webhook is subscribed to.\"),\n status: z.string().describe(\"Current status of the webhook.\"),\n created_at: z.string().describe(\"Timestamp when the webhook was created.\"),\n updated_at: z.string().describe(\"Timestamp when the webhook was last updated.\"),\n}).describe(\"Response model for UpdateWebhook action.\");\n\nexport const superchatUpdateWebhook = action(\"SUPERCHAT_UPDATE_WEBHOOK\", {\n slug: \"superchat-update-webhook\",\n name: \"Update Webhook\",\n description: \"Update an existing webhook's target URL and/or event subscriptions. Use this tool to: - Change the webhook delivery URL - Add or remove event subscriptions - Update event types the webhook listens to Note: Webhook status (ACTIVE/PAUSED) is automatically managed by the API and cannot be manually changed. Webhooks become PAUSED after 7 days of consistent delivery failures.\",\n input: SuperchatUpdateWebhookInput,\n output: SuperchatUpdateWebhookOutput,\n});\n"],"mappings":";;AAkBA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBuD,EAAE,OAAO;EAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EACzI,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sRAAsR,CAAC,CAAC,SAAS;EACtU,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACxH,CAAC,CAAC,CAAC,SAAS,yCAcH;CACP,QAdwD,EAAE,OAAO;EACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EACtE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD;EACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAChF,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const superchat = defineApp({\n slug: \"superchat\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,aAAA,uCAAA,CAAA,CAAA,UAAA,CAAsB;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const superchat = defineApp({\n slug: \"superchat\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,YAAY,UAAU;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const superchatCatalog = {
|
|
4
|
+
"slug": "superchat",
|
|
5
|
+
"name": "Superchat",
|
|
6
|
+
"description": "Superchat is a unified messaging platform that enables businesses to communicate with customers across multiple channels, including WhatsApp, Instagram Direct, Facebook Messenger, Email, and more.",
|
|
7
|
+
"category": "Team Chat",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/superchat",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.superchatCatalog = superchatCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const superchatCatalog = {\n \"slug\": \"superchat\",\n \"name\": \"Superchat\",\n \"description\": \"Superchat is a unified messaging platform that enables businesses to communicate with customers across multiple channels, including WhatsApp, Instagram Direct, Facebook Messenger, Email, and more.\",\n \"category\": \"Team Chat\",\n \"logo\": \"https://logos.composio.dev/api/superchat\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const superchatCatalog: {
|
|
4
|
+
readonly slug: "superchat";
|
|
5
|
+
readonly name: "Superchat";
|
|
6
|
+
readonly description: "Superchat is a unified messaging platform that enables businesses to communicate with customers across multiple channels, including WhatsApp, Instagram Direct, Facebook Messenger, Email, and more.";
|
|
7
|
+
readonly category: "Team Chat";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/superchat";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { superchatCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,gBAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const superchatCatalog: {
|
|
4
|
+
readonly slug: "superchat";
|
|
5
|
+
readonly name: "Superchat";
|
|
6
|
+
readonly description: "Superchat is a unified messaging platform that enables businesses to communicate with customers across multiple channels, including WhatsApp, Instagram Direct, Facebook Messenger, Email, and more.";
|
|
7
|
+
readonly category: "Team Chat";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/superchat";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { superchatCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,gBAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const superchatCatalog = {
|
|
4
|
+
"slug": "superchat",
|
|
5
|
+
"name": "Superchat",
|
|
6
|
+
"description": "Superchat is a unified messaging platform that enables businesses to communicate with customers across multiple channels, including WhatsApp, Instagram Direct, Facebook Messenger, Email, and more.",
|
|
7
|
+
"category": "Team Chat",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/superchat",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { superchatCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const superchatCatalog = {\n \"slug\": \"superchat\",\n \"name\": \"Superchat\",\n \"description\": \"Superchat is a unified messaging platform that enables businesses to communicate with customers across multiple channels, including WhatsApp, Instagram Direct, Facebook Messenger, Email, and more.\",\n \"category\": \"Team Chat\",\n \"logo\": \"https://logos.composio.dev/api/superchat\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "superchat";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeSuperchatTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executeSuperchatTool = executeSuperchatTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"superchat\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSuperchatTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,qBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "superchat";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeSuperchatTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executeSuperchatTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"superchat\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSuperchatTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,qBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_app = require("./app.cjs");
|
|
3
|
+
const require_catalog = require("./catalog.cjs");
|
|
4
|
+
const require_create_contact = require("./actions/create-contact.cjs");
|
|
5
|
+
const require_create_template_folder = require("./actions/create-template-folder.cjs");
|
|
6
|
+
const require_delete_webhook = require("./actions/delete-webhook.cjs");
|
|
7
|
+
const require_get_contact = require("./actions/get-contact.cjs");
|
|
8
|
+
const require_get_file = require("./actions/get-file.cjs");
|
|
9
|
+
const require_get_user = require("./actions/get-user.cjs");
|
|
10
|
+
const require_list_channels = require("./actions/list-channels.cjs");
|
|
11
|
+
const require_list_contacts = require("./actions/list-contacts.cjs");
|
|
12
|
+
const require_list_conversations = require("./actions/list-conversations.cjs");
|
|
13
|
+
const require_list_custom_attributes = require("./actions/list-custom-attributes.cjs");
|
|
14
|
+
const require_list_inboxes = require("./actions/list-inboxes.cjs");
|
|
15
|
+
const require_list_labels = require("./actions/list-labels.cjs");
|
|
16
|
+
const require_list_templates = require("./actions/list-templates.cjs");
|
|
17
|
+
const require_list_users = require("./actions/list-users.cjs");
|
|
18
|
+
const require_list_webhooks = require("./actions/list-webhooks.cjs");
|
|
19
|
+
const require_update_contact = require("./actions/update-contact.cjs");
|
|
20
|
+
const require_update_webhook = require("./actions/update-webhook.cjs");
|
|
21
|
+
require("./actions/index.cjs");
|
|
22
|
+
exports.superchat = require_app.superchat;
|
|
23
|
+
exports.superchatCatalog = require_catalog.superchatCatalog;
|
|
24
|
+
exports.superchatCreateContact = require_create_contact.superchatCreateContact;
|
|
25
|
+
exports.superchatCreateTemplateFolder = require_create_template_folder.superchatCreateTemplateFolder;
|
|
26
|
+
exports.superchatDeleteWebhook = require_delete_webhook.superchatDeleteWebhook;
|
|
27
|
+
exports.superchatGetContact = require_get_contact.superchatGetContact;
|
|
28
|
+
exports.superchatGetFile = require_get_file.superchatGetFile;
|
|
29
|
+
exports.superchatGetUser = require_get_user.superchatGetUser;
|
|
30
|
+
exports.superchatListChannels = require_list_channels.superchatListChannels;
|
|
31
|
+
exports.superchatListContacts = require_list_contacts.superchatListContacts;
|
|
32
|
+
exports.superchatListConversations = require_list_conversations.superchatListConversations;
|
|
33
|
+
exports.superchatListCustomAttributes = require_list_custom_attributes.superchatListCustomAttributes;
|
|
34
|
+
exports.superchatListInboxes = require_list_inboxes.superchatListInboxes;
|
|
35
|
+
exports.superchatListLabels = require_list_labels.superchatListLabels;
|
|
36
|
+
exports.superchatListTemplates = require_list_templates.superchatListTemplates;
|
|
37
|
+
exports.superchatListUsers = require_list_users.superchatListUsers;
|
|
38
|
+
exports.superchatListWebhooks = require_list_webhooks.superchatListWebhooks;
|
|
39
|
+
exports.superchatUpdateContact = require_update_contact.superchatUpdateContact;
|
|
40
|
+
exports.superchatUpdateWebhook = require_update_webhook.superchatUpdateWebhook;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { superchatCreateContact } from "./actions/create-contact.cjs";
|
|
2
|
+
import { superchatCreateTemplateFolder } from "./actions/create-template-folder.cjs";
|
|
3
|
+
import { superchatDeleteWebhook } from "./actions/delete-webhook.cjs";
|
|
4
|
+
import { superchatGetContact } from "./actions/get-contact.cjs";
|
|
5
|
+
import { superchatGetFile } from "./actions/get-file.cjs";
|
|
6
|
+
import { superchatGetUser } from "./actions/get-user.cjs";
|
|
7
|
+
import { superchatListChannels } from "./actions/list-channels.cjs";
|
|
8
|
+
import { superchatListContacts } from "./actions/list-contacts.cjs";
|
|
9
|
+
import { superchatListConversations } from "./actions/list-conversations.cjs";
|
|
10
|
+
import { superchatListCustomAttributes } from "./actions/list-custom-attributes.cjs";
|
|
11
|
+
import { superchatListInboxes } from "./actions/list-inboxes.cjs";
|
|
12
|
+
import { superchatListLabels } from "./actions/list-labels.cjs";
|
|
13
|
+
import { superchatListTemplates } from "./actions/list-templates.cjs";
|
|
14
|
+
import { superchatListUsers } from "./actions/list-users.cjs";
|
|
15
|
+
import { superchatListWebhooks } from "./actions/list-webhooks.cjs";
|
|
16
|
+
import { superchatUpdateContact } from "./actions/update-contact.cjs";
|
|
17
|
+
import { superchatUpdateWebhook } from "./actions/update-webhook.cjs";
|
|
18
|
+
import { superchat } from "./app.cjs";
|
|
19
|
+
import { superchatCatalog } from "./catalog.cjs";
|
|
20
|
+
export { superchat, superchatCatalog, superchatCreateContact, superchatCreateTemplateFolder, superchatDeleteWebhook, superchatGetContact, superchatGetFile, superchatGetUser, superchatListChannels, superchatListContacts, superchatListConversations, superchatListCustomAttributes, superchatListInboxes, superchatListLabels, superchatListTemplates, superchatListUsers, superchatListWebhooks, superchatUpdateContact, superchatUpdateWebhook };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { superchatCreateContact } from "./actions/create-contact.mjs";
|
|
2
|
+
import { superchatCreateTemplateFolder } from "./actions/create-template-folder.mjs";
|
|
3
|
+
import { superchatDeleteWebhook } from "./actions/delete-webhook.mjs";
|
|
4
|
+
import { superchatGetContact } from "./actions/get-contact.mjs";
|
|
5
|
+
import { superchatGetFile } from "./actions/get-file.mjs";
|
|
6
|
+
import { superchatGetUser } from "./actions/get-user.mjs";
|
|
7
|
+
import { superchatListChannels } from "./actions/list-channels.mjs";
|
|
8
|
+
import { superchatListContacts } from "./actions/list-contacts.mjs";
|
|
9
|
+
import { superchatListConversations } from "./actions/list-conversations.mjs";
|
|
10
|
+
import { superchatListCustomAttributes } from "./actions/list-custom-attributes.mjs";
|
|
11
|
+
import { superchatListInboxes } from "./actions/list-inboxes.mjs";
|
|
12
|
+
import { superchatListLabels } from "./actions/list-labels.mjs";
|
|
13
|
+
import { superchatListTemplates } from "./actions/list-templates.mjs";
|
|
14
|
+
import { superchatListUsers } from "./actions/list-users.mjs";
|
|
15
|
+
import { superchatListWebhooks } from "./actions/list-webhooks.mjs";
|
|
16
|
+
import { superchatUpdateContact } from "./actions/update-contact.mjs";
|
|
17
|
+
import { superchatUpdateWebhook } from "./actions/update-webhook.mjs";
|
|
18
|
+
import { superchat } from "./app.mjs";
|
|
19
|
+
import { superchatCatalog } from "./catalog.mjs";
|
|
20
|
+
export { superchat, superchatCatalog, superchatCreateContact, superchatCreateTemplateFolder, superchatDeleteWebhook, superchatGetContact, superchatGetFile, superchatGetUser, superchatListChannels, superchatListContacts, superchatListConversations, superchatListCustomAttributes, superchatListInboxes, superchatListLabels, superchatListTemplates, superchatListUsers, superchatListWebhooks, superchatUpdateContact, superchatUpdateWebhook };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { superchat } from "./app.mjs";
|
|
2
|
+
import { superchatCatalog } from "./catalog.mjs";
|
|
3
|
+
import { superchatCreateContact } from "./actions/create-contact.mjs";
|
|
4
|
+
import { superchatCreateTemplateFolder } from "./actions/create-template-folder.mjs";
|
|
5
|
+
import { superchatDeleteWebhook } from "./actions/delete-webhook.mjs";
|
|
6
|
+
import { superchatGetContact } from "./actions/get-contact.mjs";
|
|
7
|
+
import { superchatGetFile } from "./actions/get-file.mjs";
|
|
8
|
+
import { superchatGetUser } from "./actions/get-user.mjs";
|
|
9
|
+
import { superchatListChannels } from "./actions/list-channels.mjs";
|
|
10
|
+
import { superchatListContacts } from "./actions/list-contacts.mjs";
|
|
11
|
+
import { superchatListConversations } from "./actions/list-conversations.mjs";
|
|
12
|
+
import { superchatListCustomAttributes } from "./actions/list-custom-attributes.mjs";
|
|
13
|
+
import { superchatListInboxes } from "./actions/list-inboxes.mjs";
|
|
14
|
+
import { superchatListLabels } from "./actions/list-labels.mjs";
|
|
15
|
+
import { superchatListTemplates } from "./actions/list-templates.mjs";
|
|
16
|
+
import { superchatListUsers } from "./actions/list-users.mjs";
|
|
17
|
+
import { superchatListWebhooks } from "./actions/list-webhooks.mjs";
|
|
18
|
+
import { superchatUpdateContact } from "./actions/update-contact.mjs";
|
|
19
|
+
import { superchatUpdateWebhook } from "./actions/update-webhook.mjs";
|
|
20
|
+
import "./actions/index.mjs";
|
|
21
|
+
export { superchat, superchatCatalog, superchatCreateContact, superchatCreateTemplateFolder, superchatDeleteWebhook, superchatGetContact, superchatGetFile, superchatGetUser, superchatListChannels, superchatListContacts, superchatListConversations, superchatListCustomAttributes, superchatListInboxes, superchatListLabels, superchatListTemplates, superchatListUsers, superchatListWebhooks, superchatUpdateContact, superchatUpdateWebhook };
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@keystrokehq/superchat",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public",
|
|
6
|
+
"registry": "https://registry.npmjs.org"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/keystrokehq/keystroke.git",
|
|
11
|
+
"directory": "packages/integrations/superchat"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.mjs",
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./actions": {
|
|
28
|
+
"types": "./dist/actions/index.d.mts",
|
|
29
|
+
"import": "./dist/actions/index.mjs",
|
|
30
|
+
"require": "./dist/actions/index.cjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@keystrokehq/keystroke": "^0.1.4",
|
|
35
|
+
"zod": "^4.4.3"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@keystrokehq/keystroke": "link:../../keystroke",
|
|
39
|
+
"@types/node": "^25.9.1",
|
|
40
|
+
"tsdown": "^0.22.0",
|
|
41
|
+
"typescript": "^6.0.3",
|
|
42
|
+
"zod": "^4.4.3"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsdown",
|
|
46
|
+
"dev": "tsdown --watch --no-clean",
|
|
47
|
+
"typecheck": "tsc --noEmit"
|
|
48
|
+
}
|
|
49
|
+
}
|