@keystrokehq/_2chat 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-contact.cjs +11 -11
- package/dist/actions/create-contact.cjs.map +1 -1
- package/dist/actions/create-contact.d.cts +61 -3
- package/dist/actions/create-contact.d.cts.map +1 -1
- package/dist/actions/create-contact.d.mts +61 -3
- package/dist/actions/create-contact.d.mts.map +1 -1
- package/dist/actions/create-contact.mjs +11 -11
- package/dist/actions/create-contact.mjs.map +1 -1
- package/dist/actions/get-api-usage-info.cjs +12 -12
- package/dist/actions/get-api-usage-info.cjs.map +1 -1
- package/dist/actions/get-api-usage-info.d.cts +41 -3
- package/dist/actions/get-api-usage-info.d.cts.map +1 -1
- package/dist/actions/get-api-usage-info.d.mts +41 -3
- package/dist/actions/get-api-usage-info.d.mts.map +1 -1
- package/dist/actions/get-api-usage-info.mjs +12 -12
- package/dist/actions/get-api-usage-info.mjs.map +1 -1
- package/dist/actions/list-contacts.cjs +14 -14
- package/dist/actions/list-contacts.cjs.map +1 -1
- package/dist/actions/list-contacts.d.cts +49 -3
- package/dist/actions/list-contacts.d.cts.map +1 -1
- package/dist/actions/list-contacts.d.mts +49 -3
- package/dist/actions/list-contacts.d.mts.map +1 -1
- package/dist/actions/list-contacts.mjs +14 -14
- package/dist/actions/list-contacts.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +7 -7
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +27 -3
- package/dist/actions/list-webhooks.d.cts.map +1 -1
- package/dist/actions/list-webhooks.d.mts +27 -3
- package/dist/actions/list-webhooks.d.mts.map +1 -1
- package/dist/actions/list-webhooks.mjs +7 -7
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/test-api-key.cjs +12 -12
- package/dist/actions/test-api-key.cjs.map +1 -1
- package/dist/actions/test-api-key.d.cts +41 -3
- package/dist/actions/test-api-key.d.cts.map +1 -1
- package/dist/actions/test-api-key.d.mts +41 -3
- package/dist/actions/test-api-key.d.mts.map +1 -1
- package/dist/actions/test-api-key.mjs +12 -12
- package/dist/actions/test-api-key.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,55 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-contacts.d.ts
|
|
4
|
-
declare const _2chatListContactsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const _2chatListContactsInput: z.ZodObject<{
|
|
5
|
+
page_number: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
channel_uuid: z.ZodOptional<z.ZodString>;
|
|
7
|
+
results_per_page: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const _2chatListContactsOutput: z.ZodObject<{
|
|
10
|
+
page: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
13
|
+
contacts: z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
16
|
+
details: z.ZodArray<z.ZodObject<{
|
|
17
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
18
|
+
type: z.ZodNullable<z.ZodString>;
|
|
19
|
+
value: z.ZodNullable<z.ZodString>;
|
|
20
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
21
|
+
updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
last_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
first_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
25
|
+
channel_uuid: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
profile_pic_url: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const _2chatListContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
|
+
page_number?: number | undefined;
|
|
31
|
+
channel_uuid?: string | undefined;
|
|
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]>;
|
|
7
53
|
//#endregion
|
|
8
54
|
export { _2chatListContacts };
|
|
9
55
|
//# sourceMappingURL=list-contacts.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-contacts.d.cts","names":[],"sources":["../../src/actions/list-contacts.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"list-contacts.d.cts","names":[],"sources":["../../src/actions/list-contacts.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;cAKvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,55 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-contacts.d.ts
|
|
4
|
-
declare const _2chatListContactsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const _2chatListContactsInput: z.ZodObject<{
|
|
5
|
+
page_number: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
channel_uuid: z.ZodOptional<z.ZodString>;
|
|
7
|
+
results_per_page: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const _2chatListContactsOutput: z.ZodObject<{
|
|
10
|
+
page: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
count: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
13
|
+
contacts: z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
16
|
+
details: z.ZodArray<z.ZodObject<{
|
|
17
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
18
|
+
type: z.ZodNullable<z.ZodString>;
|
|
19
|
+
value: z.ZodNullable<z.ZodString>;
|
|
20
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
21
|
+
updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
last_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
first_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
25
|
+
channel_uuid: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
profile_pic_url: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const _2chatListContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
|
+
page_number?: number | undefined;
|
|
31
|
+
channel_uuid?: string | undefined;
|
|
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]>;
|
|
7
53
|
//#endregion
|
|
8
54
|
export { _2chatListContacts };
|
|
9
55
|
//# sourceMappingURL=list-contacts.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-contacts.d.mts","names":[],"sources":["../../src/actions/list-contacts.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"list-contacts.d.mts","names":[],"sources":["../../src/actions/list-contacts.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;cAKvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -10,23 +10,23 @@ const _2chatListContacts = action("_2CHAT_LIST_CONTACTS", {
|
|
|
10
10
|
results_per_page: z.number().int().describe("Number of results returned per page. Must be between 1 and 50.").optional()
|
|
11
11
|
}).describe("Request model for listing contacts in a 2Chat account."),
|
|
12
12
|
output: z.object({
|
|
13
|
-
page: z.number().int().describe("Zero-indexed page number of the returned results."),
|
|
14
|
-
count: z.number().int().describe("Total number of contacts available."),
|
|
15
|
-
success: z.boolean().describe("Indicates whether the request was successful."),
|
|
13
|
+
page: z.number().int().describe("Zero-indexed page number of the returned results.").nullable(),
|
|
14
|
+
count: z.number().int().describe("Total number of contacts available.").nullable(),
|
|
15
|
+
success: z.boolean().describe("Indicates whether the request was successful.").nullable(),
|
|
16
16
|
contacts: z.array(z.object({
|
|
17
|
-
id: z.number().int().describe("Internal contact ID."),
|
|
18
|
-
uuid: z.string().describe("Universal unique identifier for the contact."),
|
|
17
|
+
id: z.number().int().describe("Internal contact ID.").nullable(),
|
|
18
|
+
uuid: z.string().describe("Universal unique identifier for the contact.").nullable(),
|
|
19
19
|
details: z.array(z.object({
|
|
20
|
-
id: z.number().int().describe("Unique detail ID."),
|
|
21
|
-
type: z.string().describe("Detail type (e.g., 'WAPH' for WhatsApp phone, 'E' for email)."),
|
|
22
|
-
value: z.string().describe("The contact detail value (e.g., phone number, email)."),
|
|
23
|
-
created_at: z.string().describe("Timestamp when the detail was created."),
|
|
24
|
-
updated_at: z.string().describe("Timestamp when the detail was last updated, if applicable.").
|
|
20
|
+
id: z.number().int().describe("Unique detail ID.").nullable(),
|
|
21
|
+
type: z.string().describe("Detail type (e.g., 'WAPH' for WhatsApp phone, 'E' for email).").nullable(),
|
|
22
|
+
value: z.string().describe("The contact detail value (e.g., phone number, email).").nullable(),
|
|
23
|
+
created_at: z.string().describe("Timestamp when the detail was created.").nullable(),
|
|
24
|
+
updated_at: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Timestamp when the detail was last updated, if applicable.").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.string().describe("Last name of the contact.").
|
|
27
|
-
first_name: z.string().describe("First name of the contact.").
|
|
28
|
-
channel_uuid: z.string().describe("UUID of the channel (phone number) associated with this contact, if any.").
|
|
29
|
-
profile_pic_url: z.string().describe("URL to the contact's profile picture, if available.").
|
|
26
|
+
last_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Last name of the contact.").optional()),
|
|
27
|
+
first_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("First name of the contact.").optional()),
|
|
28
|
+
channel_uuid: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("UUID of the channel (phone number) associated with this contact, if any.").optional()),
|
|
29
|
+
profile_pic_url: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("URL to the contact's profile picture, if available.").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
|
|
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.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the detail was last updated, if applicable.\").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.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name of the contact.\").optional()),\n first_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name of the contact.\").optional()),\n channel_uuid: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"UUID of the channel (phone number) associated with this contact, if any.\").optional()),\n profile_pic_url: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL to the contact's profile picture, if available.\").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,OAAO;GAC3B,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;GAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;GACnF,SAAS,EAAE,MAAM,EAAE,OAAO;IAC1B,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;IAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;IACpG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;IAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;IACnF,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC;GACxK,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,CAAC,SAAS,2DAA2D;GAC3I,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC;GACpI,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC;GACtI,cAAc,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC;GACtL,iBAAiB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC;EACtK,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,CAAC,SAAS,gCAAgC;CACpG,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
|
|
@@ -3,14 +3,14 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/list-webhooks.ts
|
|
4
4
|
const _2chatListWebhooksInput = zod.z.object({}).describe("Request model for listing all configured webhook subscriptions.");
|
|
5
5
|
const _2chatListWebhooksOutput = zod.z.object({
|
|
6
|
-
success: zod.z.boolean().describe("Whether the API request succeeded. True indicates successful retrieval."),
|
|
6
|
+
success: zod.z.boolean().describe("Whether the API request succeeded. True indicates successful retrieval.").nullable(),
|
|
7
7
|
webhooks: zod.z.array(zod.z.object({
|
|
8
|
-
uuid: zod.z.string().describe("Unique webhook subscription identifier. Required for deletion or management operations."),
|
|
9
|
-
hook_url: zod.z.string().describe("Callback URL where 2Chat sends event notifications via HTTP POST."),
|
|
10
|
-
created_at: zod.z.string().describe("Webhook creation timestamp in ISO 8601 format (UTC)."),
|
|
11
|
-
event_name: zod.z.string().describe("Event type this webhook listens to (e.g., 'whatsapp.message.received', 'whatsapp.call.received')."),
|
|
12
|
-
hook_params: zod.z.object({ waweb_uuid: zod.z.string().describe("Channel UUID used for webhook routing. This value is automatically included by 2Chat in webhook payloads.") }).describe("Additional parameters automatically included in webhook payloads by 2Chat."),
|
|
13
|
-
channel_uuid: zod.z.string().describe("WhatsApp channel/phone number UUID this webhook monitors.")
|
|
8
|
+
uuid: zod.z.string().describe("Unique webhook subscription identifier. Required for deletion or management operations.").nullable(),
|
|
9
|
+
hook_url: zod.z.string().describe("Callback URL where 2Chat sends event notifications via HTTP POST.").nullable(),
|
|
10
|
+
created_at: zod.z.string().describe("Webhook creation timestamp in ISO 8601 format (UTC).").nullable(),
|
|
11
|
+
event_name: zod.z.string().describe("Event type this webhook listens to (e.g., 'whatsapp.message.received', 'whatsapp.call.received').").nullable(),
|
|
12
|
+
hook_params: zod.z.object({ waweb_uuid: zod.z.string().describe("Channel UUID used for webhook routing. This value is automatically included by 2Chat in webhook payloads.").nullable() }).describe("Additional parameters automatically included in webhook payloads by 2Chat."),
|
|
13
|
+
channel_uuid: zod.z.string().describe("WhatsApp channel/phone number UUID this webhook monitors.").nullable()
|
|
14
14
|
})).describe("Array of active webhook subscriptions. Empty list if no webhooks are configured.")
|
|
15
15
|
}).describe("Data from the action execution");
|
|
16
16
|
const _2chatListWebhooks = require_action.action("_2CHAT_LIST_WEBHOOKS", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _2chatListWebhooksInput
|
|
1
|
+
{"version":3,"file":"list-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _2chatListWebhooksInput = z.object({}).describe(\"Request model for listing all configured webhook subscriptions.\");\nexport const _2chatListWebhooksOutput = z.object({\n success: z.boolean().describe(\"Whether the API request succeeded. True indicates successful retrieval.\").nullable(),\n webhooks: z.array(z.object({\n uuid: z.string().describe(\"Unique webhook subscription identifier. Required for deletion or management operations.\").nullable(),\n hook_url: z.string().describe(\"Callback URL where 2Chat sends event notifications via HTTP POST.\").nullable(),\n created_at: z.string().describe(\"Webhook creation timestamp in ISO 8601 format (UTC).\").nullable(),\n event_name: z.string().describe(\"Event type this webhook listens to (e.g., 'whatsapp.message.received', 'whatsapp.call.received').\").nullable(),\n hook_params: z.object({\n waweb_uuid: z.string().describe(\"Channel UUID used for webhook routing. This value is automatically included by 2Chat in webhook payloads.\").nullable(),\n}).describe(\"Additional parameters automatically included in webhook payloads by 2Chat.\"),\n channel_uuid: z.string().describe(\"WhatsApp channel/phone number UUID this webhook monitors.\").nullable(),\n})).describe(\"Array of active webhook subscriptions. Empty list if no webhooks are configured.\"),\n}).describe(\"Data from the action execution\");\n\nexport const _2chatListWebhooks = action(\"_2CHAT_LIST_WEBHOOKS\", {\n slug: \"_2chat-list-webhooks\",\n name: \"List Webhook Subscriptions\",\n description: \"List all configured webhook subscriptions for WhatsApp and phone call events. Use this when you need to audit, review, or retrieve UUIDs of your active webhook subscriptions. Returns details including webhook UUID, event type, channel UUID, callback URL, and creation timestamp.\",\n input: _2chatListWebhooksInput,\n output: _2chatListWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC9H,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAClH,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EAC9H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAC5G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACjG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;EAC9I,aAAaA,IAAAA,EAAE,OAAO,EACtB,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS,EACxJ,CAAC,CAAC,CAAC,SAAS,4EAA4E;EACtF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC/F,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAE5C,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-webhooks.d.ts
|
|
4
|
-
declare const _2chatListWebhooksInput: z.
|
|
5
|
-
declare const _2chatListWebhooksOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const _2chatListWebhooksInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const _2chatListWebhooksOutput: z.ZodObject<{
|
|
6
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
7
|
+
webhooks: z.ZodArray<z.ZodObject<{
|
|
8
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
9
|
+
hook_url: z.ZodNullable<z.ZodString>;
|
|
10
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
11
|
+
event_name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
hook_params: z.ZodObject<{
|
|
13
|
+
waweb_uuid: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
channel_uuid: z.ZodNullable<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
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]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { _2chatListWebhooks };
|
|
9
33
|
//# 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,
|
|
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,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-webhooks.d.ts
|
|
4
|
-
declare const _2chatListWebhooksInput: z.
|
|
5
|
-
declare const _2chatListWebhooksOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const _2chatListWebhooksInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const _2chatListWebhooksOutput: z.ZodObject<{
|
|
6
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
7
|
+
webhooks: z.ZodArray<z.ZodObject<{
|
|
8
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
9
|
+
hook_url: z.ZodNullable<z.ZodString>;
|
|
10
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
11
|
+
event_name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
hook_params: z.ZodObject<{
|
|
13
|
+
waweb_uuid: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
channel_uuid: z.ZodNullable<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
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]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { _2chatListWebhooks };
|
|
9
33
|
//# 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,
|
|
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"}
|
|
@@ -6,14 +6,14 @@ const _2chatListWebhooks = action("_2CHAT_LIST_WEBHOOKS", {
|
|
|
6
6
|
description: "List all configured webhook subscriptions for WhatsApp and phone call events. Use this when you need to audit, review, or retrieve UUIDs of your active webhook subscriptions. Returns details including webhook UUID, event type, channel UUID, callback URL, and creation timestamp.",
|
|
7
7
|
input: z.object({}).describe("Request model for listing all configured webhook subscriptions."),
|
|
8
8
|
output: z.object({
|
|
9
|
-
success: z.boolean().describe("Whether the API request succeeded. True indicates successful retrieval."),
|
|
9
|
+
success: z.boolean().describe("Whether the API request succeeded. True indicates successful retrieval.").nullable(),
|
|
10
10
|
webhooks: z.array(z.object({
|
|
11
|
-
uuid: z.string().describe("Unique webhook subscription identifier. Required for deletion or management operations."),
|
|
12
|
-
hook_url: z.string().describe("Callback URL where 2Chat sends event notifications via HTTP POST."),
|
|
13
|
-
created_at: z.string().describe("Webhook creation timestamp in ISO 8601 format (UTC)."),
|
|
14
|
-
event_name: z.string().describe("Event type this webhook listens to (e.g., 'whatsapp.message.received', 'whatsapp.call.received')."),
|
|
15
|
-
hook_params: z.object({ waweb_uuid: z.string().describe("Channel UUID used for webhook routing. This value is automatically included by 2Chat in webhook payloads.") }).describe("Additional parameters automatically included in webhook payloads by 2Chat."),
|
|
16
|
-
channel_uuid: z.string().describe("WhatsApp channel/phone number UUID this webhook monitors.")
|
|
11
|
+
uuid: z.string().describe("Unique webhook subscription identifier. Required for deletion or management operations.").nullable(),
|
|
12
|
+
hook_url: z.string().describe("Callback URL where 2Chat sends event notifications via HTTP POST.").nullable(),
|
|
13
|
+
created_at: z.string().describe("Webhook creation timestamp in ISO 8601 format (UTC).").nullable(),
|
|
14
|
+
event_name: z.string().describe("Event type this webhook listens to (e.g., 'whatsapp.message.received', 'whatsapp.call.received').").nullable(),
|
|
15
|
+
hook_params: z.object({ waweb_uuid: z.string().describe("Channel UUID used for webhook routing. This value is automatically included by 2Chat in webhook payloads.").nullable() }).describe("Additional parameters automatically included in webhook payloads by 2Chat."),
|
|
16
|
+
channel_uuid: z.string().describe("WhatsApp channel/phone number UUID this webhook monitors.").nullable()
|
|
17
17
|
})).describe("Array of active webhook subscriptions. Empty list if no webhooks are configured.")
|
|
18
18
|
}).describe("Data from the action execution")
|
|
19
19
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-webhooks.mjs","names":[],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _2chatListWebhooksInput
|
|
1
|
+
{"version":3,"file":"list-webhooks.mjs","names":[],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _2chatListWebhooksInput = z.object({}).describe(\"Request model for listing all configured webhook subscriptions.\");\nexport const _2chatListWebhooksOutput = z.object({\n success: z.boolean().describe(\"Whether the API request succeeded. True indicates successful retrieval.\").nullable(),\n webhooks: z.array(z.object({\n uuid: z.string().describe(\"Unique webhook subscription identifier. Required for deletion or management operations.\").nullable(),\n hook_url: z.string().describe(\"Callback URL where 2Chat sends event notifications via HTTP POST.\").nullable(),\n created_at: z.string().describe(\"Webhook creation timestamp in ISO 8601 format (UTC).\").nullable(),\n event_name: z.string().describe(\"Event type this webhook listens to (e.g., 'whatsapp.message.received', 'whatsapp.call.received').\").nullable(),\n hook_params: z.object({\n waweb_uuid: z.string().describe(\"Channel UUID used for webhook routing. This value is automatically included by 2Chat in webhook payloads.\").nullable(),\n}).describe(\"Additional parameters automatically included in webhook payloads by 2Chat.\"),\n channel_uuid: z.string().describe(\"WhatsApp channel/phone number UUID this webhook monitors.\").nullable(),\n})).describe(\"Array of active webhook subscriptions. Empty list if no webhooks are configured.\"),\n}).describe(\"Data from the action execution\");\n\nexport const _2chatListWebhooks = action(\"_2CHAT_LIST_WEBHOOKS\", {\n slug: \"_2chat-list-webhooks\",\n name: \"List Webhook Subscriptions\",\n description: \"List all configured webhook subscriptions for WhatsApp and phone call events. Use this when you need to audit, review, or retrieve UUIDs of your active webhook subscriptions. Returns details including webhook UUID, event type, channel UUID, callback URL, and creation timestamp.\",\n input: _2chatListWebhooksInput,\n output: _2chatListWebhooksOutput,\n});\n"],"mappings":";;AAmBA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBqC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iEAmBpD;CACP,QAnBsC,EAAE,OAAO;EAC/C,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EAClH,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;GAC9H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;GAC5G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;GACjG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;GAC9I,aAAa,EAAE,OAAO,EACtB,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS,EACxJ,CAAC,CAAC,CAAC,SAAS,4EAA4E;GACtF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EAC1G,CAAC,CAAC,CAAC,CAAC,SAAS,kFAAkF;CAC/F,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
|
|
@@ -4,21 +4,21 @@ let zod = require("zod");
|
|
|
4
4
|
const _2chatTestApiKeyInput = zod.z.object({}).describe("Request model for validating API key and retrieving account information. No parameters required.");
|
|
5
5
|
const _2chatTestApiKeyOutput = zod.z.object({
|
|
6
6
|
usage: zod.z.object({
|
|
7
|
-
api_requests_available: zod.z.number().int().describe("Number of API requests remaining in current period"),
|
|
8
|
-
api_requests_plan_default: zod.z.number().int().describe("Total number of API requests allocated in the plan"),
|
|
9
|
-
number_check_requests_available: zod.z.number().int().describe("Number of phone number check requests remaining"),
|
|
10
|
-
number_check_requests_plan_default: zod.z.number().int().describe("Total number of phone number check requests allocated in the plan")
|
|
7
|
+
api_requests_available: zod.z.number().int().describe("Number of API requests remaining in current period").nullable(),
|
|
8
|
+
api_requests_plan_default: zod.z.number().int().describe("Total number of API requests allocated in the plan").nullable(),
|
|
9
|
+
number_check_requests_available: zod.z.number().int().describe("Number of phone number check requests remaining").nullable(),
|
|
10
|
+
number_check_requests_plan_default: zod.z.number().int().describe("Total number of phone number check requests allocated in the plan").nullable()
|
|
11
11
|
}).describe("Current API usage statistics and remaining quotas"),
|
|
12
|
-
limits: zod.z.object({ requests_per_minute: zod.z.number().int().describe("Maximum number of API requests allowed per minute") }).describe("API rate limits (requests per minute)"),
|
|
12
|
+
limits: zod.z.object({ requests_per_minute: zod.z.number().int().describe("Maximum number of API requests allowed per minute").nullable() }).describe("API rate limits (requests per minute)"),
|
|
13
13
|
account: zod.z.object({
|
|
14
|
-
name: zod.z.string().describe("Account name"),
|
|
15
|
-
uuid: zod.z.string().describe("Unique account identifier (UUID format)"),
|
|
16
|
-
blocked: zod.z.boolean().describe("Whether the account is blocked"),
|
|
17
|
-
on_trial: zod.z.boolean().describe("Whether the account is currently on a trial period"),
|
|
18
|
-
created_at: zod.z.string().describe("Account creation timestamp in ISO 8601 format"),
|
|
19
|
-
expires_at: zod.z.string().describe("Account expiration timestamp in ISO 8601 format")
|
|
14
|
+
name: zod.z.string().describe("Account name").nullable(),
|
|
15
|
+
uuid: zod.z.string().describe("Unique account identifier (UUID format)").nullable(),
|
|
16
|
+
blocked: zod.z.boolean().describe("Whether the account is blocked").nullable(),
|
|
17
|
+
on_trial: zod.z.boolean().describe("Whether the account is currently on a trial period").nullable(),
|
|
18
|
+
created_at: zod.z.string().describe("Account creation timestamp in ISO 8601 format").nullable(),
|
|
19
|
+
expires_at: zod.z.string().describe("Account expiration timestamp in ISO 8601 format").nullable()
|
|
20
20
|
}).describe("Detailed account information including name, UUID, trial status, and timestamps"),
|
|
21
|
-
success: zod.z.boolean().describe("Indicates if the API key is valid")
|
|
21
|
+
success: zod.z.boolean().describe("Indicates if the API key is valid").nullable()
|
|
22
22
|
}).describe("Data from the action execution");
|
|
23
23
|
const _2chatTestApiKey = require_action.action("_2CHAT_TEST_API_KEY", {
|
|
24
24
|
slug: "_2chat-test-api-key",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-api-key.cjs","names":["z","action"],"sources":["../../src/actions/test-api-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _2chatTestApiKeyInput
|
|
1
|
+
{"version":3,"file":"test-api-key.cjs","names":["z","action"],"sources":["../../src/actions/test-api-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _2chatTestApiKeyInput = z.object({}).describe(\"Request model for validating API key and retrieving account information. No parameters required.\");\nexport const _2chatTestApiKeyOutput = z.object({\n usage: z.object({\n api_requests_available: z.number().int().describe(\"Number of API requests remaining in current period\").nullable(),\n api_requests_plan_default: z.number().int().describe(\"Total number of API requests allocated in the plan\").nullable(),\n number_check_requests_available: z.number().int().describe(\"Number of phone number check requests remaining\").nullable(),\n number_check_requests_plan_default: z.number().int().describe(\"Total number of phone number check requests allocated in the plan\").nullable(),\n}).describe(\"Current API usage statistics and remaining quotas\"),\n limits: z.object({\n requests_per_minute: z.number().int().describe(\"Maximum number of API requests allowed per minute\").nullable(),\n}).describe(\"API rate limits (requests per minute)\"),\n account: z.object({\n name: z.string().describe(\"Account name\").nullable(),\n uuid: z.string().describe(\"Unique account identifier (UUID format)\").nullable(),\n blocked: z.boolean().describe(\"Whether the account is blocked\").nullable(),\n on_trial: z.boolean().describe(\"Whether the account is currently on a trial period\").nullable(),\n created_at: z.string().describe(\"Account creation timestamp in ISO 8601 format\").nullable(),\n expires_at: z.string().describe(\"Account expiration timestamp in ISO 8601 format\").nullable(),\n}).describe(\"Detailed account information including name, UUID, trial status, and timestamps\"),\n success: z.boolean().describe(\"Indicates if the API key is valid\").nullable(),\n}).describe(\"Data from the action execution\");\n\nexport const _2chatTestApiKey = action(\"_2CHAT_TEST_API_KEY\", {\n slug: \"_2chat-test-api-key\",\n name: \"Test API Key\",\n description: \"Tool to validate your API key and retrieve account info. Use when confirming credentials before performing other operations.\",\n input: _2chatTestApiKeyInput,\n output: _2chatTestApiKeyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kGAAkG;AAC7J,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,OAAOA,IAAAA,EAAE,OAAO;EAChB,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EACjH,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EACpH,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACvH,oCAAoCA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC9I,CAAC,CAAC,CAAC,SAAS,mDAAmD;CAC7D,QAAQA,IAAAA,EAAE,OAAO,EACjB,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,SAAS,uCAAuC;CACjD,SAASA,IAAAA,EAAE,OAAO;EAClB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC9E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACzE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,iFAAiF;CAC3F,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAE5C,MAAa,mBAAmBC,eAAAA,OAAO,uBAAuB;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,47 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/test-api-key.d.ts
|
|
4
|
-
declare const _2chatTestApiKeyInput: z.
|
|
5
|
-
declare const _2chatTestApiKeyOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const _2chatTestApiKeyInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const _2chatTestApiKeyOutput: z.ZodObject<{
|
|
6
|
+
usage: z.ZodObject<{
|
|
7
|
+
api_requests_available: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
api_requests_plan_default: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
number_check_requests_available: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
number_check_requests_plan_default: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
limits: z.ZodObject<{
|
|
13
|
+
requests_per_minute: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
account: z.ZodObject<{
|
|
16
|
+
name: z.ZodNullable<z.ZodString>;
|
|
17
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
18
|
+
blocked: z.ZodNullable<z.ZodBoolean>;
|
|
19
|
+
on_trial: z.ZodNullable<z.ZodBoolean>;
|
|
20
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
21
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
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]>;
|
|
7
45
|
//#endregion
|
|
8
46
|
export { _2chatTestApiKey };
|
|
9
47
|
//# 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,
|
|
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,9 +1,47 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/test-api-key.d.ts
|
|
4
|
-
declare const _2chatTestApiKeyInput: z.
|
|
5
|
-
declare const _2chatTestApiKeyOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const _2chatTestApiKeyInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const _2chatTestApiKeyOutput: z.ZodObject<{
|
|
6
|
+
usage: z.ZodObject<{
|
|
7
|
+
api_requests_available: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
api_requests_plan_default: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
number_check_requests_available: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
number_check_requests_plan_default: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
limits: z.ZodObject<{
|
|
13
|
+
requests_per_minute: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
account: z.ZodObject<{
|
|
16
|
+
name: z.ZodNullable<z.ZodString>;
|
|
17
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
18
|
+
blocked: z.ZodNullable<z.ZodBoolean>;
|
|
19
|
+
on_trial: z.ZodNullable<z.ZodBoolean>;
|
|
20
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
21
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
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]>;
|
|
7
45
|
//#endregion
|
|
8
46
|
export { _2chatTestApiKey };
|
|
9
47
|
//# 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,
|
|
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"}
|
|
@@ -7,21 +7,21 @@ const _2chatTestApiKey = action("_2CHAT_TEST_API_KEY", {
|
|
|
7
7
|
input: z.object({}).describe("Request model for validating API key and retrieving account information. No parameters required."),
|
|
8
8
|
output: z.object({
|
|
9
9
|
usage: z.object({
|
|
10
|
-
api_requests_available: z.number().int().describe("Number of API requests remaining in current period"),
|
|
11
|
-
api_requests_plan_default: z.number().int().describe("Total number of API requests allocated in the plan"),
|
|
12
|
-
number_check_requests_available: z.number().int().describe("Number of phone number check requests remaining"),
|
|
13
|
-
number_check_requests_plan_default: z.number().int().describe("Total number of phone number check requests allocated in the plan")
|
|
10
|
+
api_requests_available: z.number().int().describe("Number of API requests remaining in current period").nullable(),
|
|
11
|
+
api_requests_plan_default: z.number().int().describe("Total number of API requests allocated in the plan").nullable(),
|
|
12
|
+
number_check_requests_available: z.number().int().describe("Number of phone number check requests remaining").nullable(),
|
|
13
|
+
number_check_requests_plan_default: z.number().int().describe("Total number of phone number check requests allocated in the plan").nullable()
|
|
14
14
|
}).describe("Current API usage statistics and remaining quotas"),
|
|
15
|
-
limits: z.object({ requests_per_minute: z.number().int().describe("Maximum number of API requests allowed per minute") }).describe("API rate limits (requests per minute)"),
|
|
15
|
+
limits: z.object({ requests_per_minute: z.number().int().describe("Maximum number of API requests allowed per minute").nullable() }).describe("API rate limits (requests per minute)"),
|
|
16
16
|
account: z.object({
|
|
17
|
-
name: z.string().describe("Account name"),
|
|
18
|
-
uuid: z.string().describe("Unique account identifier (UUID format)"),
|
|
19
|
-
blocked: z.boolean().describe("Whether the account is blocked"),
|
|
20
|
-
on_trial: z.boolean().describe("Whether the account is currently on a trial period"),
|
|
21
|
-
created_at: z.string().describe("Account creation timestamp in ISO 8601 format"),
|
|
22
|
-
expires_at: z.string().describe("Account expiration timestamp in ISO 8601 format")
|
|
17
|
+
name: z.string().describe("Account name").nullable(),
|
|
18
|
+
uuid: z.string().describe("Unique account identifier (UUID format)").nullable(),
|
|
19
|
+
blocked: z.boolean().describe("Whether the account is blocked").nullable(),
|
|
20
|
+
on_trial: z.boolean().describe("Whether the account is currently on a trial period").nullable(),
|
|
21
|
+
created_at: z.string().describe("Account creation timestamp in ISO 8601 format").nullable(),
|
|
22
|
+
expires_at: z.string().describe("Account expiration timestamp in ISO 8601 format").nullable()
|
|
23
23
|
}).describe("Detailed account information including name, UUID, trial status, and timestamps"),
|
|
24
|
-
success: z.boolean().describe("Indicates if the API key is valid")
|
|
24
|
+
success: z.boolean().describe("Indicates if the API key is valid").nullable()
|
|
25
25
|
}).describe("Data from the action execution")
|
|
26
26
|
});
|
|
27
27
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-api-key.mjs","names":[],"sources":["../../src/actions/test-api-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _2chatTestApiKeyInput
|
|
1
|
+
{"version":3,"file":"test-api-key.mjs","names":[],"sources":["../../src/actions/test-api-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const _2chatTestApiKeyInput = z.object({}).describe(\"Request model for validating API key and retrieving account information. No parameters required.\");\nexport const _2chatTestApiKeyOutput = z.object({\n usage: z.object({\n api_requests_available: z.number().int().describe(\"Number of API requests remaining in current period\").nullable(),\n api_requests_plan_default: z.number().int().describe(\"Total number of API requests allocated in the plan\").nullable(),\n number_check_requests_available: z.number().int().describe(\"Number of phone number check requests remaining\").nullable(),\n number_check_requests_plan_default: z.number().int().describe(\"Total number of phone number check requests allocated in the plan\").nullable(),\n}).describe(\"Current API usage statistics and remaining quotas\"),\n limits: z.object({\n requests_per_minute: z.number().int().describe(\"Maximum number of API requests allowed per minute\").nullable(),\n}).describe(\"API rate limits (requests per minute)\"),\n account: z.object({\n name: z.string().describe(\"Account name\").nullable(),\n uuid: z.string().describe(\"Unique account identifier (UUID format)\").nullable(),\n blocked: z.boolean().describe(\"Whether the account is blocked\").nullable(),\n on_trial: z.boolean().describe(\"Whether the account is currently on a trial period\").nullable(),\n created_at: z.string().describe(\"Account creation timestamp in ISO 8601 format\").nullable(),\n expires_at: z.string().describe(\"Account expiration timestamp in ISO 8601 format\").nullable(),\n}).describe(\"Detailed account information including name, UUID, trial status, and timestamps\"),\n success: z.boolean().describe(\"Indicates if the API key is valid\").nullable(),\n}).describe(\"Data from the action execution\");\n\nexport const _2chatTestApiKey = action(\"_2CHAT_TEST_API_KEY\", {\n slug: \"_2chat-test-api-key\",\n name: \"Test API Key\",\n description: \"Tool to validate your API key and retrieve account info. Use when confirming credentials before performing other operations.\",\n input: _2chatTestApiKeyInput,\n output: _2chatTestApiKeyOutput,\n});\n"],"mappings":";;AA0BA,MAAa,mBAAmB,OAAO,uBAAuB;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1BmC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kGA0BlD;CACP,QA1BoC,EAAE,OAAO;EAC7C,OAAO,EAAE,OAAO;GAChB,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;GACjH,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;GACpH,iCAAiC,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;GACvH,oCAAoC,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAC9I,CAAC,CAAC,CAAC,SAAS,mDAAmD;EAC7D,QAAQ,EAAE,OAAO,EACjB,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,SAAS,uCAAuC;EACjD,SAAS,EAAE,OAAO;GAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;GACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;GAC9E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;GACzE,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;GAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;GAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC9F,CAAC,CAAC,CAAC,SAAS,iFAAiF;EAC3F,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
|