@keystrokehq/_2chat 0.1.1 → 0.1.2
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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-contact.cjs +3 -3
- package/dist/actions/create-contact.cjs.map +1 -1
- package/dist/actions/create-contact.d.cts +4 -20
- package/dist/actions/create-contact.d.mts +4 -20
- package/dist/actions/create-contact.mjs +3 -3
- package/dist/actions/create-contact.mjs.map +1 -1
- package/dist/actions/get-api-usage-info.d.cts +1 -20
- package/dist/actions/get-api-usage-info.d.cts.map +1 -1
- package/dist/actions/get-api-usage-info.d.mts +1 -20
- package/dist/actions/get-api-usage-info.d.mts.map +1 -1
- package/dist/actions/list-contacts.cjs +5 -5
- package/dist/actions/list-contacts.cjs.map +1 -1
- package/dist/actions/list-contacts.d.cts +6 -25
- package/dist/actions/list-contacts.d.mts +6 -25
- package/dist/actions/list-contacts.mjs +5 -5
- package/dist/actions/list-contacts.mjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +1 -13
- package/dist/actions/list-webhooks.d.cts.map +1 -1
- package/dist/actions/list-webhooks.d.mts +1 -13
- package/dist/actions/list-webhooks.d.mts.map +1 -1
- package/dist/actions/test-api-key.d.cts +1 -20
- package/dist/actions/test-api-key.d.cts.map +1 -1
- package/dist/actions/test-api-key.d.mts +1 -20
- package/dist/actions/test-api-key.d.mts.map +1 -1
- package/package.json +1 -1
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["_2chat","execute_2chatTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { _2chat } from \"./app\";\nimport { execute_2chatTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["_2chat","execute_2chatTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { _2chat } from \"./app\";\nimport { execute_2chatTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return _2chat.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await execute_2chatTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { _2chat } from \"./app\";\nimport { execute_2chatTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { _2chat } from \"./app\";\nimport { execute_2chatTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return _2chat.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await execute_2chatTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
|
@@ -30,10 +30,10 @@ const _2chatCreateContactOutput = zod.z.object({
|
|
|
30
30
|
created_at: zod.z.number().int().describe("Creation timestamp (epoch seconds)").nullable(),
|
|
31
31
|
updated_at: zod.z.number().int().describe("Last update timestamp (epoch seconds)").nullable()
|
|
32
32
|
})).describe("List of detail entries for the contact"),
|
|
33
|
-
last_name: zod.z.
|
|
33
|
+
last_name: zod.z.string().describe("Last name of the contact").nullable().optional(),
|
|
34
34
|
first_name: zod.z.string().describe("First name of the contact").nullable(),
|
|
35
|
-
channel_uuid: zod.z.
|
|
36
|
-
profile_pic_url: zod.z.
|
|
35
|
+
channel_uuid: zod.z.string().describe("Channel UUID, if assigned").nullable().optional(),
|
|
36
|
+
profile_pic_url: zod.z.string().describe("URL of the contact's profile picture").nullable().optional()
|
|
37
37
|
}).describe("The newly created contact object"),
|
|
38
38
|
success: zod.z.boolean().describe("Indicates if the request was successful").nullable()
|
|
39
39
|
}).describe("Data from the action execution");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _2chatCreateContactInput = z.object({\n last_name: z.string().describe(\"Last name of the new contact\").optional(),\n first_name: z.string().describe(\"First name of the new contact\"),\n contact_detail: z.array(z.object({\n type: z.enum([\"E\", \"A\", \"PH\", \"WAPH\"]).describe(\"Type of contact detail: E=email, A=address, PH=phone, WAPH=WhatsApp phone\"),\n value: z.string().describe(\"Value of the contact detail. For phone numbers use international format; for email use a valid address\"),\n}).describe(\"A single contact detail entry, like an email or phone number.\")).describe(\"A list of contact detail entries; at least one entry is required\"),\n profile_pic_url: z.string().describe(\"Publicly accessible URL of the contact's profile picture\").optional(),\n}).describe(\"Request schema for creating a new 2Chat contact.\");\nexport const _2chatCreateContactOutput = z.object({\n contact: z.object({\n uuid: z.string().describe(\"Unique identifier of the contact\").nullable(),\n details: z.array(z.object({\n id: z.number().int().describe(\"Unique ID of the detail entry\").nullable(),\n type: z.enum([\"E\", \"A\", \"PH\", \"WAPH\"]).describe(\"Type code of the detail entry\").nullable(),\n value: z.string().describe(\"Value of the detail entry\").nullable(),\n created_at: z.number().int().describe(\"Creation timestamp (epoch seconds)\").nullable(),\n updated_at: z.number().int().describe(\"Last update timestamp (epoch seconds)\").nullable(),\n})).describe(\"List of detail entries for the contact\"),\n last_name: z.
|
|
1
|
+
{"version":3,"file":"create-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _2chatCreateContactInput = z.object({\n last_name: z.string().describe(\"Last name of the new contact\").optional(),\n first_name: z.string().describe(\"First name of the new contact\"),\n contact_detail: z.array(z.object({\n type: z.enum([\"E\", \"A\", \"PH\", \"WAPH\"]).describe(\"Type of contact detail: E=email, A=address, PH=phone, WAPH=WhatsApp phone\"),\n value: z.string().describe(\"Value of the contact detail. For phone numbers use international format; for email use a valid address\"),\n}).describe(\"A single contact detail entry, like an email or phone number.\")).describe(\"A list of contact detail entries; at least one entry is required\"),\n profile_pic_url: z.string().describe(\"Publicly accessible URL of the contact's profile picture\").optional(),\n}).describe(\"Request schema for creating a new 2Chat contact.\");\nexport const _2chatCreateContactOutput = z.object({\n contact: z.object({\n uuid: z.string().describe(\"Unique identifier of the contact\").nullable(),\n details: z.array(z.object({\n id: z.number().int().describe(\"Unique ID of the detail entry\").nullable(),\n type: z.enum([\"E\", \"A\", \"PH\", \"WAPH\"]).describe(\"Type code of the detail entry\").nullable(),\n value: z.string().describe(\"Value of the detail entry\").nullable(),\n created_at: z.number().int().describe(\"Creation timestamp (epoch seconds)\").nullable(),\n updated_at: z.number().int().describe(\"Last update timestamp (epoch seconds)\").nullable(),\n})).describe(\"List of detail entries for the contact\"),\n last_name: z.string().describe(\"Last name of the contact\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact\").nullable(),\n channel_uuid: z.string().describe(\"Channel UUID, if assigned\").nullable().optional(),\n profile_pic_url: z.string().describe(\"URL of the contact's profile picture\").nullable().optional(),\n}).describe(\"The newly created contact object\"),\n success: z.boolean().describe(\"Indicates if the request was successful\").nullable(),\n}).describe(\"Data from the action execution\");\n\nexport const _2chatCreateContact = action(\"_2CHAT_CREATE_CONTACT\", {\n slug: \"_2chat-create-contact\",\n name: \"Create Contact\",\n description: \"Tool to create a new contact in your 2Chat account. Use after gathering and verifying first name and at least one contact detail (email, phone, or address).\",\n input: _2chatCreateContactInput,\n output: _2chatCreateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC/D,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACjC,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAK;GAAK;GAAM;EAAM,CAAC,CAAC,CAAC,SAAS,2EAA2E;EAC3H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG;CACrI,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,CAAC,SAAS,kEAAkE;CACvJ,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC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pF,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAE5C,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -30,10 +30,10 @@ declare const _2chatCreateContactOutput: z.ZodObject<{
|
|
|
30
30
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
31
31
|
updated_at: z.ZodNullable<z.ZodNumber>;
|
|
32
32
|
}, z.core.$strip>>;
|
|
33
|
-
last_name: z.
|
|
33
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
first_name: z.ZodNullable<z.ZodString>;
|
|
35
|
-
channel_uuid: z.
|
|
36
|
-
profile_pic_url: z.
|
|
35
|
+
channel_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
profile_pic_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
39
39
|
}, z.core.$strip>;
|
|
@@ -45,23 +45,7 @@ declare const _2chatCreateContact: import("@keystrokehq/action").WorkflowActionD
|
|
|
45
45
|
}[];
|
|
46
46
|
last_name?: string | undefined;
|
|
47
47
|
profile_pic_url?: string | undefined;
|
|
48
|
-
},
|
|
49
|
-
contact: {
|
|
50
|
-
uuid: string | null;
|
|
51
|
-
details: {
|
|
52
|
-
id: number | null;
|
|
53
|
-
type: "E" | "A" | "PH" | "WAPH" | null;
|
|
54
|
-
value: string | null;
|
|
55
|
-
created_at: number | null;
|
|
56
|
-
updated_at: number | null;
|
|
57
|
-
}[];
|
|
58
|
-
first_name: string | null;
|
|
59
|
-
last_name?: string | undefined;
|
|
60
|
-
channel_uuid?: string | undefined;
|
|
61
|
-
profile_pic_url?: string | undefined;
|
|
62
|
-
};
|
|
63
|
-
success: boolean | null;
|
|
64
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
48
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
65
49
|
//#endregion
|
|
66
50
|
export { _2chatCreateContact };
|
|
67
51
|
//# sourceMappingURL=create-contact.d.cts.map
|
|
@@ -30,10 +30,10 @@ declare const _2chatCreateContactOutput: z.ZodObject<{
|
|
|
30
30
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
31
31
|
updated_at: z.ZodNullable<z.ZodNumber>;
|
|
32
32
|
}, z.core.$strip>>;
|
|
33
|
-
last_name: z.
|
|
33
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
first_name: z.ZodNullable<z.ZodString>;
|
|
35
|
-
channel_uuid: z.
|
|
36
|
-
profile_pic_url: z.
|
|
35
|
+
channel_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
profile_pic_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
39
39
|
}, z.core.$strip>;
|
|
@@ -45,23 +45,7 @@ declare const _2chatCreateContact: import("@keystrokehq/action").WorkflowActionD
|
|
|
45
45
|
}[];
|
|
46
46
|
last_name?: string | undefined;
|
|
47
47
|
profile_pic_url?: string | undefined;
|
|
48
|
-
},
|
|
49
|
-
contact: {
|
|
50
|
-
uuid: string | null;
|
|
51
|
-
details: {
|
|
52
|
-
id: number | null;
|
|
53
|
-
type: "E" | "A" | "PH" | "WAPH" | null;
|
|
54
|
-
value: string | null;
|
|
55
|
-
created_at: number | null;
|
|
56
|
-
updated_at: number | null;
|
|
57
|
-
}[];
|
|
58
|
-
first_name: string | null;
|
|
59
|
-
last_name?: string | undefined;
|
|
60
|
-
channel_uuid?: string | undefined;
|
|
61
|
-
profile_pic_url?: string | undefined;
|
|
62
|
-
};
|
|
63
|
-
success: boolean | null;
|
|
64
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
48
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
65
49
|
//#endregion
|
|
66
50
|
export { _2chatCreateContact };
|
|
67
51
|
//# sourceMappingURL=create-contact.d.mts.map
|
|
@@ -33,10 +33,10 @@ const _2chatCreateContact = action("_2CHAT_CREATE_CONTACT", {
|
|
|
33
33
|
created_at: z.number().int().describe("Creation timestamp (epoch seconds)").nullable(),
|
|
34
34
|
updated_at: z.number().int().describe("Last update timestamp (epoch seconds)").nullable()
|
|
35
35
|
})).describe("List of detail entries for the contact"),
|
|
36
|
-
last_name: z.
|
|
36
|
+
last_name: z.string().describe("Last name of the contact").nullable().optional(),
|
|
37
37
|
first_name: z.string().describe("First name of the contact").nullable(),
|
|
38
|
-
channel_uuid: z.
|
|
39
|
-
profile_pic_url: z.
|
|
38
|
+
channel_uuid: z.string().describe("Channel UUID, if assigned").nullable().optional(),
|
|
39
|
+
profile_pic_url: z.string().describe("URL of the contact's profile picture").nullable().optional()
|
|
40
40
|
}).describe("The newly created contact object"),
|
|
41
41
|
success: z.boolean().describe("Indicates if the request was successful").nullable()
|
|
42
42
|
}).describe("Data from the action execution")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-contact.mjs","names":[],"sources":["../../src/actions/create-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _2chatCreateContactInput = z.object({\n last_name: z.string().describe(\"Last name of the new contact\").optional(),\n first_name: z.string().describe(\"First name of the new contact\"),\n contact_detail: z.array(z.object({\n type: z.enum([\"E\", \"A\", \"PH\", \"WAPH\"]).describe(\"Type of contact detail: E=email, A=address, PH=phone, WAPH=WhatsApp phone\"),\n value: z.string().describe(\"Value of the contact detail. For phone numbers use international format; for email use a valid address\"),\n}).describe(\"A single contact detail entry, like an email or phone number.\")).describe(\"A list of contact detail entries; at least one entry is required\"),\n profile_pic_url: z.string().describe(\"Publicly accessible URL of the contact's profile picture\").optional(),\n}).describe(\"Request schema for creating a new 2Chat contact.\");\nexport const _2chatCreateContactOutput = z.object({\n contact: z.object({\n uuid: z.string().describe(\"Unique identifier of the contact\").nullable(),\n details: z.array(z.object({\n id: z.number().int().describe(\"Unique ID of the detail entry\").nullable(),\n type: z.enum([\"E\", \"A\", \"PH\", \"WAPH\"]).describe(\"Type code of the detail entry\").nullable(),\n value: z.string().describe(\"Value of the detail entry\").nullable(),\n created_at: z.number().int().describe(\"Creation timestamp (epoch seconds)\").nullable(),\n updated_at: z.number().int().describe(\"Last update timestamp (epoch seconds)\").nullable(),\n})).describe(\"List of detail entries for the contact\"),\n last_name: z.
|
|
1
|
+
{"version":3,"file":"create-contact.mjs","names":[],"sources":["../../src/actions/create-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _2chatCreateContactInput = z.object({\n last_name: z.string().describe(\"Last name of the new contact\").optional(),\n first_name: z.string().describe(\"First name of the new contact\"),\n contact_detail: z.array(z.object({\n type: z.enum([\"E\", \"A\", \"PH\", \"WAPH\"]).describe(\"Type of contact detail: E=email, A=address, PH=phone, WAPH=WhatsApp phone\"),\n value: z.string().describe(\"Value of the contact detail. For phone numbers use international format; for email use a valid address\"),\n}).describe(\"A single contact detail entry, like an email or phone number.\")).describe(\"A list of contact detail entries; at least one entry is required\"),\n profile_pic_url: z.string().describe(\"Publicly accessible URL of the contact's profile picture\").optional(),\n}).describe(\"Request schema for creating a new 2Chat contact.\");\nexport const _2chatCreateContactOutput = z.object({\n contact: z.object({\n uuid: z.string().describe(\"Unique identifier of the contact\").nullable(),\n details: z.array(z.object({\n id: z.number().int().describe(\"Unique ID of the detail entry\").nullable(),\n type: z.enum([\"E\", \"A\", \"PH\", \"WAPH\"]).describe(\"Type code of the detail entry\").nullable(),\n value: z.string().describe(\"Value of the detail entry\").nullable(),\n created_at: z.number().int().describe(\"Creation timestamp (epoch seconds)\").nullable(),\n updated_at: z.number().int().describe(\"Last update timestamp (epoch seconds)\").nullable(),\n})).describe(\"List of detail entries for the contact\"),\n last_name: z.string().describe(\"Last name of the contact\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact\").nullable(),\n channel_uuid: z.string().describe(\"Channel UUID, if assigned\").nullable().optional(),\n profile_pic_url: z.string().describe(\"URL of the contact's profile picture\").nullable().optional(),\n}).describe(\"The newly created contact object\"),\n success: z.boolean().describe(\"Indicates if the request was successful\").nullable(),\n}).describe(\"Data from the action execution\");\n\nexport const _2chatCreateContact = action(\"_2CHAT_CREATE_CONTACT\", {\n slug: \"_2chat-create-contact\",\n name: \"Create Contact\",\n description: \"Tool to create a new contact in your 2Chat account. Use after gathering and verifying first name and at least one contact detail (email, phone, or address).\",\n input: _2chatCreateContactInput,\n output: _2chatCreateContactOutput,\n});\n"],"mappings":";;AA+BA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/BsC,EAAE,OAAO;EAC/C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC/D,gBAAgB,EAAE,MAAM,EAAE,OAAO;GACjC,MAAM,EAAE,KAAK;IAAC;IAAK;IAAK;IAAM;GAAM,CAAC,CAAC,CAAC,SAAS,2EAA2E;GAC3H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG;EACrI,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,CAAC,SAAS,kEAAkE;EACvJ,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC5G,CAAC,CA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core.$strip>;
|
|
23
23
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
|
-
declare const _2chatGetApiUsageInfo: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>,
|
|
26
|
-
usage: {
|
|
27
|
-
api_requests_available: number | null;
|
|
28
|
-
api_requests_plan_default: number | null;
|
|
29
|
-
number_check_requests_available: number | null;
|
|
30
|
-
number_check_requests_plan_default: number | null;
|
|
31
|
-
};
|
|
32
|
-
limits: {
|
|
33
|
-
requests_per_minute: number | null;
|
|
34
|
-
};
|
|
35
|
-
account: {
|
|
36
|
-
name: string | null;
|
|
37
|
-
uuid: string | null;
|
|
38
|
-
blocked: boolean | null;
|
|
39
|
-
on_trial: boolean | null;
|
|
40
|
-
created_at: string | null;
|
|
41
|
-
expires_at: string | null;
|
|
42
|
-
};
|
|
43
|
-
success: boolean | null;
|
|
44
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
|
+
declare const _2chatGetApiUsageInfo: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
45
26
|
//#endregion
|
|
46
27
|
export { _2chatGetApiUsageInfo };
|
|
47
28
|
//# sourceMappingURL=get-api-usage-info.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-api-usage-info.d.cts","names":[],"sources":["../../src/actions/get-api-usage-info.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqB3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA"}
|
|
1
|
+
{"version":3,"file":"get-api-usage-info.d.cts","names":[],"sources":["../../src/actions/get-api-usage-info.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqB3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -22,26 +22,7 @@ declare const _2chatGetApiUsageInfoOutput: z.ZodObject<{
|
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
|
-
declare const _2chatGetApiUsageInfo: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>,
|
|
26
|
-
usage: {
|
|
27
|
-
api_requests_available: number | null;
|
|
28
|
-
api_requests_plan_default: number | null;
|
|
29
|
-
number_check_requests_available: number | null;
|
|
30
|
-
number_check_requests_plan_default: number | null;
|
|
31
|
-
};
|
|
32
|
-
limits: {
|
|
33
|
-
requests_per_minute: number | null;
|
|
34
|
-
};
|
|
35
|
-
account: {
|
|
36
|
-
name: string | null;
|
|
37
|
-
uuid: string | null;
|
|
38
|
-
blocked: boolean | null;
|
|
39
|
-
on_trial: boolean | null;
|
|
40
|
-
created_at: string | null;
|
|
41
|
-
expires_at: string | null;
|
|
42
|
-
};
|
|
43
|
-
success: boolean | null;
|
|
44
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
|
+
declare const _2chatGetApiUsageInfo: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
45
26
|
//#endregion
|
|
46
27
|
export { _2chatGetApiUsageInfo };
|
|
47
28
|
//# sourceMappingURL=get-api-usage-info.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-api-usage-info.d.mts","names":[],"sources":["../../src/actions/get-api-usage-info.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqB3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA"}
|
|
1
|
+
{"version":3,"file":"get-api-usage-info.d.mts","names":[],"sources":["../../src/actions/get-api-usage-info.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqB3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -18,12 +18,12 @@ const _2chatListContactsOutput = zod.z.object({
|
|
|
18
18
|
type: zod.z.string().describe("Detail type (e.g., 'WAPH' for WhatsApp phone, 'E' for email).").nullable(),
|
|
19
19
|
value: zod.z.string().describe("The contact detail value (e.g., phone number, email).").nullable(),
|
|
20
20
|
created_at: zod.z.string().describe("Timestamp when the detail was created.").nullable(),
|
|
21
|
-
updated_at: zod.z.
|
|
21
|
+
updated_at: zod.z.string().describe("Timestamp when the detail was last updated, if applicable.").nullable().optional()
|
|
22
22
|
}).describe("Detail information for a contact (e.g., phone or email).")).describe("List of contact details such as phone numbers and emails."),
|
|
23
|
-
last_name: zod.z.
|
|
24
|
-
first_name: zod.z.
|
|
25
|
-
channel_uuid: zod.z.
|
|
26
|
-
profile_pic_url: zod.z.
|
|
23
|
+
last_name: zod.z.string().describe("Last name of the contact.").nullable().optional(),
|
|
24
|
+
first_name: zod.z.string().describe("First name of the contact.").nullable().optional(),
|
|
25
|
+
channel_uuid: zod.z.string().describe("UUID of the channel (phone number) associated with this contact, if any.").nullable().optional(),
|
|
26
|
+
profile_pic_url: zod.z.string().describe("URL to the contact's profile picture, if available.").nullable().optional()
|
|
27
27
|
}).describe("Represents a contact in the 2Chat account.")).describe("List of contacts on this page.")
|
|
28
28
|
}).describe("Data from the action execution");
|
|
29
29
|
const _2chatListContacts = require_action.action("_2CHAT_LIST_CONTACTS", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-contacts.cjs","names":["z","action"],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _2chatListContactsInput = z.object({\n page_number: z.number().int().describe(\"Zero-indexed page number to retrieve.\").optional(),\n channel_uuid: z.string().describe(\"Optional. Used to filter contacts by connected number UUID.\").optional(),\n results_per_page: z.number().int().describe(\"Number of results returned per page. Must be between 1 and 50.\").optional(),\n}).describe(\"Request model for listing contacts in a 2Chat account.\");\nexport const _2chatListContactsOutput = z.object({\n page: z.number().int().describe(\"Zero-indexed page number of the returned results.\").nullable(),\n count: z.number().int().describe(\"Total number of contacts available.\").nullable(),\n success: z.boolean().describe(\"Indicates whether the request was successful.\").nullable(),\n contacts: z.array(z.object({\n id: z.number().int().describe(\"Internal contact ID.\").nullable(),\n uuid: z.string().describe(\"Universal unique identifier for the contact.\").nullable(),\n details: z.array(z.object({\n id: z.number().int().describe(\"Unique detail ID.\").nullable(),\n type: z.string().describe(\"Detail type (e.g., 'WAPH' for WhatsApp phone, 'E' for email).\").nullable(),\n value: z.string().describe(\"The contact detail value (e.g., phone number, email).\").nullable(),\n created_at: z.string().describe(\"Timestamp when the detail was created.\").nullable(),\n updated_at: z.
|
|
1
|
+
{"version":3,"file":"list-contacts.cjs","names":["z","action"],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _2chatListContactsInput = z.object({\n page_number: z.number().int().describe(\"Zero-indexed page number to retrieve.\").optional(),\n channel_uuid: z.string().describe(\"Optional. Used to filter contacts by connected number UUID.\").optional(),\n results_per_page: z.number().int().describe(\"Number of results returned per page. Must be between 1 and 50.\").optional(),\n}).describe(\"Request model for listing contacts in a 2Chat account.\");\nexport const _2chatListContactsOutput = z.object({\n page: z.number().int().describe(\"Zero-indexed page number of the returned results.\").nullable(),\n count: z.number().int().describe(\"Total number of contacts available.\").nullable(),\n success: z.boolean().describe(\"Indicates whether the request was successful.\").nullable(),\n contacts: z.array(z.object({\n id: z.number().int().describe(\"Internal contact ID.\").nullable(),\n uuid: z.string().describe(\"Universal unique identifier for the contact.\").nullable(),\n details: z.array(z.object({\n id: z.number().int().describe(\"Unique detail ID.\").nullable(),\n type: z.string().describe(\"Detail type (e.g., 'WAPH' for WhatsApp phone, 'E' for email).\").nullable(),\n value: z.string().describe(\"The contact detail value (e.g., phone number, email).\").nullable(),\n created_at: z.string().describe(\"Timestamp when the detail was created.\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the detail was last updated, if applicable.\").nullable().optional(),\n}).describe(\"Detail information for a contact (e.g., phone or email).\")).describe(\"List of contact details such as phone numbers and emails.\"),\n last_name: z.string().describe(\"Last name of the contact.\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact.\").nullable().optional(),\n channel_uuid: z.string().describe(\"UUID of the channel (phone number) associated with this contact, if any.\").nullable().optional(),\n profile_pic_url: z.string().describe(\"URL to the contact's profile picture, if available.\").nullable().optional(),\n}).describe(\"Represents a contact in the 2Chat account.\")).describe(\"List of contacts on this page.\"),\n}).describe(\"Data from the action execution\");\n\nexport const _2chatListContacts = action(\"_2CHAT_LIST_CONTACTS\", {\n slug: \"_2chat-list-contacts\",\n name: \"List Contacts\",\n description: \"Tool to list all contacts in your 2Chat account. Use when you need to retrieve your contact list after confirming your account connection.\",\n input: _2chatListContactsInput,\n output: _2chatListContactsOutput,\n});\n"],"mappings":";;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,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;GACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,CAAC,SAAS,2DAA2D;EAC3I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClI,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,CAAC,SAAS,gCAAgC;AACpG,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAE5C,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -18,38 +18,19 @@ declare const _2chatListContactsOutput: z.ZodObject<{
|
|
|
18
18
|
type: z.ZodNullable<z.ZodString>;
|
|
19
19
|
value: z.ZodNullable<z.ZodString>;
|
|
20
20
|
created_at: z.ZodNullable<z.ZodString>;
|
|
21
|
-
updated_at: z.
|
|
21
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
}, z.core.$strip>>;
|
|
23
|
-
last_name: z.
|
|
24
|
-
first_name: z.
|
|
25
|
-
channel_uuid: z.
|
|
26
|
-
profile_pic_url: z.
|
|
23
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
channel_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
profile_pic_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
}, z.core.$strip>>;
|
|
28
28
|
}, z.core.$strip>;
|
|
29
29
|
declare const _2chatListContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
30
|
page_number?: number | undefined;
|
|
31
31
|
channel_uuid?: string | undefined;
|
|
32
32
|
results_per_page?: number | undefined;
|
|
33
|
-
},
|
|
34
|
-
page: number | null;
|
|
35
|
-
count: number | null;
|
|
36
|
-
success: boolean | null;
|
|
37
|
-
contacts: {
|
|
38
|
-
id: number | null;
|
|
39
|
-
uuid: string | null;
|
|
40
|
-
details: {
|
|
41
|
-
id: number | null;
|
|
42
|
-
type: string | null;
|
|
43
|
-
value: string | null;
|
|
44
|
-
created_at: string | null;
|
|
45
|
-
updated_at?: string | undefined;
|
|
46
|
-
}[];
|
|
47
|
-
last_name?: string | undefined;
|
|
48
|
-
first_name?: string | undefined;
|
|
49
|
-
channel_uuid?: string | undefined;
|
|
50
|
-
profile_pic_url?: string | undefined;
|
|
51
|
-
}[];
|
|
52
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
53
34
|
//#endregion
|
|
54
35
|
export { _2chatListContacts };
|
|
55
36
|
//# sourceMappingURL=list-contacts.d.cts.map
|
|
@@ -18,38 +18,19 @@ declare const _2chatListContactsOutput: z.ZodObject<{
|
|
|
18
18
|
type: z.ZodNullable<z.ZodString>;
|
|
19
19
|
value: z.ZodNullable<z.ZodString>;
|
|
20
20
|
created_at: z.ZodNullable<z.ZodString>;
|
|
21
|
-
updated_at: z.
|
|
21
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
}, z.core.$strip>>;
|
|
23
|
-
last_name: z.
|
|
24
|
-
first_name: z.
|
|
25
|
-
channel_uuid: z.
|
|
26
|
-
profile_pic_url: z.
|
|
23
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
channel_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
profile_pic_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
}, z.core.$strip>>;
|
|
28
28
|
}, z.core.$strip>;
|
|
29
29
|
declare const _2chatListContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
30
|
page_number?: number | undefined;
|
|
31
31
|
channel_uuid?: string | undefined;
|
|
32
32
|
results_per_page?: number | undefined;
|
|
33
|
-
},
|
|
34
|
-
page: number | null;
|
|
35
|
-
count: number | null;
|
|
36
|
-
success: boolean | null;
|
|
37
|
-
contacts: {
|
|
38
|
-
id: number | null;
|
|
39
|
-
uuid: string | null;
|
|
40
|
-
details: {
|
|
41
|
-
id: number | null;
|
|
42
|
-
type: string | null;
|
|
43
|
-
value: string | null;
|
|
44
|
-
created_at: string | null;
|
|
45
|
-
updated_at?: string | undefined;
|
|
46
|
-
}[];
|
|
47
|
-
last_name?: string | undefined;
|
|
48
|
-
first_name?: string | undefined;
|
|
49
|
-
channel_uuid?: string | undefined;
|
|
50
|
-
profile_pic_url?: string | undefined;
|
|
51
|
-
}[];
|
|
52
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
53
34
|
//#endregion
|
|
54
35
|
export { _2chatListContacts };
|
|
55
36
|
//# sourceMappingURL=list-contacts.d.mts.map
|
|
@@ -21,12 +21,12 @@ const _2chatListContacts = action("_2CHAT_LIST_CONTACTS", {
|
|
|
21
21
|
type: z.string().describe("Detail type (e.g., 'WAPH' for WhatsApp phone, 'E' for email).").nullable(),
|
|
22
22
|
value: z.string().describe("The contact detail value (e.g., phone number, email).").nullable(),
|
|
23
23
|
created_at: z.string().describe("Timestamp when the detail was created.").nullable(),
|
|
24
|
-
updated_at: z.
|
|
24
|
+
updated_at: z.string().describe("Timestamp when the detail was last updated, if applicable.").nullable().optional()
|
|
25
25
|
}).describe("Detail information for a contact (e.g., phone or email).")).describe("List of contact details such as phone numbers and emails."),
|
|
26
|
-
last_name: z.
|
|
27
|
-
first_name: z.
|
|
28
|
-
channel_uuid: z.
|
|
29
|
-
profile_pic_url: z.
|
|
26
|
+
last_name: z.string().describe("Last name of the contact.").nullable().optional(),
|
|
27
|
+
first_name: z.string().describe("First name of the contact.").nullable().optional(),
|
|
28
|
+
channel_uuid: z.string().describe("UUID of the channel (phone number) associated with this contact, if any.").nullable().optional(),
|
|
29
|
+
profile_pic_url: z.string().describe("URL to the contact's profile picture, if available.").nullable().optional()
|
|
30
30
|
}).describe("Represents a contact in the 2Chat account.")).describe("List of contacts on this page.")
|
|
31
31
|
}).describe("Data from the action execution")
|
|
32
32
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-contacts.mjs","names":[],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _2chatListContactsInput = z.object({\n page_number: z.number().int().describe(\"Zero-indexed page number to retrieve.\").optional(),\n channel_uuid: z.string().describe(\"Optional. Used to filter contacts by connected number UUID.\").optional(),\n results_per_page: z.number().int().describe(\"Number of results returned per page. Must be between 1 and 50.\").optional(),\n}).describe(\"Request model for listing contacts in a 2Chat account.\");\nexport const _2chatListContactsOutput = z.object({\n page: z.number().int().describe(\"Zero-indexed page number of the returned results.\").nullable(),\n count: z.number().int().describe(\"Total number of contacts available.\").nullable(),\n success: z.boolean().describe(\"Indicates whether the request was successful.\").nullable(),\n contacts: z.array(z.object({\n id: z.number().int().describe(\"Internal contact ID.\").nullable(),\n uuid: z.string().describe(\"Universal unique identifier for the contact.\").nullable(),\n details: z.array(z.object({\n id: z.number().int().describe(\"Unique detail ID.\").nullable(),\n type: z.string().describe(\"Detail type (e.g., 'WAPH' for WhatsApp phone, 'E' for email).\").nullable(),\n value: z.string().describe(\"The contact detail value (e.g., phone number, email).\").nullable(),\n created_at: z.string().describe(\"Timestamp when the detail was created.\").nullable(),\n updated_at: z.
|
|
1
|
+
{"version":3,"file":"list-contacts.mjs","names":[],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _2chatListContactsInput = z.object({\n page_number: z.number().int().describe(\"Zero-indexed page number to retrieve.\").optional(),\n channel_uuid: z.string().describe(\"Optional. Used to filter contacts by connected number UUID.\").optional(),\n results_per_page: z.number().int().describe(\"Number of results returned per page. Must be between 1 and 50.\").optional(),\n}).describe(\"Request model for listing contacts in a 2Chat account.\");\nexport const _2chatListContactsOutput = z.object({\n page: z.number().int().describe(\"Zero-indexed page number of the returned results.\").nullable(),\n count: z.number().int().describe(\"Total number of contacts available.\").nullable(),\n success: z.boolean().describe(\"Indicates whether the request was successful.\").nullable(),\n contacts: z.array(z.object({\n id: z.number().int().describe(\"Internal contact ID.\").nullable(),\n uuid: z.string().describe(\"Universal unique identifier for the contact.\").nullable(),\n details: z.array(z.object({\n id: z.number().int().describe(\"Unique detail ID.\").nullable(),\n type: z.string().describe(\"Detail type (e.g., 'WAPH' for WhatsApp phone, 'E' for email).\").nullable(),\n value: z.string().describe(\"The contact detail value (e.g., phone number, email).\").nullable(),\n created_at: z.string().describe(\"Timestamp when the detail was created.\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the detail was last updated, if applicable.\").nullable().optional(),\n}).describe(\"Detail information for a contact (e.g., phone or email).\")).describe(\"List of contact details such as phone numbers and emails.\"),\n last_name: z.string().describe(\"Last name of the contact.\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact.\").nullable().optional(),\n channel_uuid: z.string().describe(\"UUID of the channel (phone number) associated with this contact, if any.\").nullable().optional(),\n profile_pic_url: z.string().describe(\"URL to the contact's profile picture, if available.\").nullable().optional(),\n}).describe(\"Represents a contact in the 2Chat account.\")).describe(\"List of contacts on this page.\"),\n}).describe(\"Data from the action execution\");\n\nexport const _2chatListContacts = action(\"_2CHAT_LIST_CONTACTS\", {\n slug: \"_2chat-list-contacts\",\n name: \"List Contacts\",\n description: \"Tool to list all contacts in your 2Chat account. Use when you need to retrieve your contact list after confirming your account connection.\",\n input: _2chatListContactsInput,\n output: _2chatListContactsOutput,\n});\n"],"mappings":";;AA8BA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9BqC,EAAE,OAAO;EAC9C,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACzF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAC1G,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,wDA0BH;CACP,QA1BsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACxF,UAAU,EAAE,MAAM,EAAE,OAA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|
}, z.core.$strip>>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
|
-
declare const _2chatListWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>,
|
|
19
|
-
success: boolean | null;
|
|
20
|
-
webhooks: {
|
|
21
|
-
uuid: string | null;
|
|
22
|
-
hook_url: string | null;
|
|
23
|
-
created_at: string | null;
|
|
24
|
-
event_name: string | null;
|
|
25
|
-
hook_params: {
|
|
26
|
-
waweb_uuid: string | null;
|
|
27
|
-
};
|
|
28
|
-
channel_uuid: string | null;
|
|
29
|
-
}[];
|
|
30
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
declare const _2chatListWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
19
|
//#endregion
|
|
32
20
|
export { _2chatListWebhooks };
|
|
33
21
|
//# sourceMappingURL=list-webhooks.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-webhooks.d.cts","names":[],"sources":["../../src/actions/list-webhooks.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAcxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA"}
|
|
1
|
+
{"version":3,"file":"list-webhooks.d.cts","names":[],"sources":["../../src/actions/list-webhooks.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAcxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -15,19 +15,7 @@ declare const _2chatListWebhooksOutput: z.ZodObject<{
|
|
|
15
15
|
channel_uuid: z.ZodNullable<z.ZodString>;
|
|
16
16
|
}, z.core.$strip>>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
|
-
declare const _2chatListWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>,
|
|
19
|
-
success: boolean | null;
|
|
20
|
-
webhooks: {
|
|
21
|
-
uuid: string | null;
|
|
22
|
-
hook_url: string | null;
|
|
23
|
-
created_at: string | null;
|
|
24
|
-
event_name: string | null;
|
|
25
|
-
hook_params: {
|
|
26
|
-
waweb_uuid: string | null;
|
|
27
|
-
};
|
|
28
|
-
channel_uuid: string | null;
|
|
29
|
-
}[];
|
|
30
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
declare const _2chatListWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
19
|
//#endregion
|
|
32
20
|
export { _2chatListWebhooks };
|
|
33
21
|
//# sourceMappingURL=list-webhooks.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-webhooks.d.mts","names":[],"sources":["../../src/actions/list-webhooks.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAcxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA"}
|
|
1
|
+
{"version":3,"file":"list-webhooks.d.mts","names":[],"sources":["../../src/actions/list-webhooks.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAcxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -22,26 +22,7 @@ declare const _2chatTestApiKeyOutput: z.ZodObject<{
|
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
|
-
declare const _2chatTestApiKey: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>,
|
|
26
|
-
usage: {
|
|
27
|
-
api_requests_available: number | null;
|
|
28
|
-
api_requests_plan_default: number | null;
|
|
29
|
-
number_check_requests_available: number | null;
|
|
30
|
-
number_check_requests_plan_default: number | null;
|
|
31
|
-
};
|
|
32
|
-
limits: {
|
|
33
|
-
requests_per_minute: number | null;
|
|
34
|
-
};
|
|
35
|
-
account: {
|
|
36
|
-
name: string | null;
|
|
37
|
-
uuid: string | null;
|
|
38
|
-
blocked: boolean | null;
|
|
39
|
-
on_trial: boolean | null;
|
|
40
|
-
created_at: string | null;
|
|
41
|
-
expires_at: string | null;
|
|
42
|
-
};
|
|
43
|
-
success: boolean | null;
|
|
44
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
|
+
declare const _2chatTestApiKey: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
45
26
|
//#endregion
|
|
46
27
|
export { _2chatTestApiKey };
|
|
47
28
|
//# sourceMappingURL=test-api-key.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-api-key.d.cts","names":[],"sources":["../../src/actions/test-api-key.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBtB,gBAAA,gCAAgB,wBAAA,CAAA,MAAA"}
|
|
1
|
+
{"version":3,"file":"test-api-key.d.cts","names":[],"sources":["../../src/actions/test-api-key.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBtB,gBAAA,gCAAgB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -22,26 +22,7 @@ declare const _2chatTestApiKeyOutput: z.ZodObject<{
|
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
|
-
declare const _2chatTestApiKey: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>,
|
|
26
|
-
usage: {
|
|
27
|
-
api_requests_available: number | null;
|
|
28
|
-
api_requests_plan_default: number | null;
|
|
29
|
-
number_check_requests_available: number | null;
|
|
30
|
-
number_check_requests_plan_default: number | null;
|
|
31
|
-
};
|
|
32
|
-
limits: {
|
|
33
|
-
requests_per_minute: number | null;
|
|
34
|
-
};
|
|
35
|
-
account: {
|
|
36
|
-
name: string | null;
|
|
37
|
-
uuid: string | null;
|
|
38
|
-
blocked: boolean | null;
|
|
39
|
-
on_trial: boolean | null;
|
|
40
|
-
created_at: string | null;
|
|
41
|
-
expires_at: string | null;
|
|
42
|
-
};
|
|
43
|
-
success: boolean | null;
|
|
44
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
|
+
declare const _2chatTestApiKey: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
45
26
|
//#endregion
|
|
46
27
|
export { _2chatTestApiKey };
|
|
47
28
|
//# sourceMappingURL=test-api-key.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-api-key.d.mts","names":[],"sources":["../../src/actions/test-api-key.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBtB,gBAAA,gCAAgB,wBAAA,CAAA,MAAA"}
|
|
1
|
+
{"version":3,"file":"test-api-key.d.mts","names":[],"sources":["../../src/actions/test-api-key.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBtB,gBAAA,gCAAgB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|