@keystrokehq/specific 0.1.0 → 0.1.3
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-company.cjs +3 -3
- package/dist/actions/create-company.cjs.map +1 -1
- package/dist/actions/create-company.d.cts +18 -3
- package/dist/actions/create-company.d.cts.map +1 -1
- package/dist/actions/create-company.d.mts +18 -3
- package/dist/actions/create-company.d.mts.map +1 -1
- package/dist/actions/create-company.mjs +3 -3
- package/dist/actions/create-company.mjs.map +1 -1
- package/dist/actions/create-conversation.cjs +16 -16
- package/dist/actions/create-conversation.cjs.map +1 -1
- package/dist/actions/create-conversation.d.cts +92 -3
- package/dist/actions/create-conversation.d.cts.map +1 -1
- package/dist/actions/create-conversation.d.mts +92 -3
- package/dist/actions/create-conversation.d.mts.map +1 -1
- package/dist/actions/create-conversation.mjs +16 -16
- package/dist/actions/create-conversation.mjs.map +1 -1
- package/dist/actions/create-or-update-company.cjs +10 -10
- package/dist/actions/create-or-update-company.cjs.map +1 -1
- package/dist/actions/create-or-update-company.d.cts +32 -3
- package/dist/actions/create-or-update-company.d.cts.map +1 -1
- package/dist/actions/create-or-update-company.d.mts +32 -3
- package/dist/actions/create-or-update-company.d.mts.map +1 -1
- package/dist/actions/create-or-update-company.mjs +10 -10
- package/dist/actions/create-or-update-company.mjs.map +1 -1
- package/dist/actions/create-or-update-user.cjs +7 -7
- package/dist/actions/create-or-update-user.cjs.map +1 -1
- package/dist/actions/create-or-update-user.d.cts +44 -3
- package/dist/actions/create-or-update-user.d.cts.map +1 -1
- package/dist/actions/create-or-update-user.d.mts +44 -3
- package/dist/actions/create-or-update-user.d.mts.map +1 -1
- package/dist/actions/create-or-update-user.mjs +7 -7
- package/dist/actions/create-or-update-user.mjs.map +1 -1
- package/dist/actions/create-user.cjs +3 -3
- package/dist/actions/create-user.cjs.map +1 -1
- package/dist/actions/create-user.d.cts +35 -3
- package/dist/actions/create-user.d.cts.map +1 -1
- package/dist/actions/create-user.d.mts +35 -3
- package/dist/actions/create-user.d.mts.map +1 -1
- package/dist/actions/create-user.mjs +3 -3
- package/dist/actions/create-user.mjs.map +1 -1
- package/dist/actions/delete-company-attributes.cjs +5 -5
- package/dist/actions/delete-company-attributes.cjs.map +1 -1
- package/dist/actions/delete-company-attributes.d.cts +14 -3
- package/dist/actions/delete-company-attributes.d.cts.map +1 -1
- package/dist/actions/delete-company-attributes.d.mts +14 -3
- package/dist/actions/delete-company-attributes.d.mts.map +1 -1
- package/dist/actions/delete-company-attributes.mjs +5 -5
- package/dist/actions/delete-company-attributes.mjs.map +1 -1
- package/dist/actions/delete-company.cjs +5 -5
- package/dist/actions/delete-company.cjs.map +1 -1
- package/dist/actions/delete-company.d.cts +12 -3
- package/dist/actions/delete-company.d.cts.map +1 -1
- package/dist/actions/delete-company.d.mts +12 -3
- package/dist/actions/delete-company.d.mts.map +1 -1
- package/dist/actions/delete-company.mjs +5 -5
- package/dist/actions/delete-company.mjs.map +1 -1
- package/dist/actions/delete-user-attributes.cjs +7 -7
- package/dist/actions/delete-user-attributes.cjs.map +1 -1
- package/dist/actions/delete-user-attributes.d.cts +32 -3
- package/dist/actions/delete-user-attributes.d.cts.map +1 -1
- package/dist/actions/delete-user-attributes.d.mts +32 -3
- package/dist/actions/delete-user-attributes.d.mts.map +1 -1
- package/dist/actions/delete-user-attributes.mjs +7 -7
- package/dist/actions/delete-user-attributes.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +5 -5
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +18 -3
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +18 -3
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +5 -5
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/get-my-workspace.cjs +5 -5
- package/dist/actions/get-my-workspace.cjs.map +1 -1
- package/dist/actions/get-my-workspace.d.cts +10 -3
- package/dist/actions/get-my-workspace.d.cts.map +1 -1
- package/dist/actions/get-my-workspace.d.mts +10 -3
- package/dist/actions/get-my-workspace.d.mts.map +1 -1
- package/dist/actions/get-my-workspace.mjs +5 -5
- package/dist/actions/get-my-workspace.mjs.map +1 -1
- package/dist/actions/list-companies.cjs +6 -6
- package/dist/actions/list-companies.cjs.map +1 -1
- package/dist/actions/list-companies.d.cts +76 -3
- package/dist/actions/list-companies.d.cts.map +1 -1
- package/dist/actions/list-companies.d.mts +76 -3
- package/dist/actions/list-companies.d.mts.map +1 -1
- package/dist/actions/list-companies.mjs +6 -6
- package/dist/actions/list-companies.mjs.map +1 -1
- package/dist/actions/list-conversations.cjs +21 -21
- package/dist/actions/list-conversations.cjs.map +1 -1
- package/dist/actions/list-conversations.d.cts +47 -3
- package/dist/actions/list-conversations.d.cts.map +1 -1
- package/dist/actions/list-conversations.d.mts +47 -3
- package/dist/actions/list-conversations.d.mts.map +1 -1
- package/dist/actions/list-conversations.mjs +21 -21
- package/dist/actions/list-conversations.mjs.map +1 -1
- package/dist/actions/list-custom-fields.cjs +5 -5
- package/dist/actions/list-custom-fields.cjs.map +1 -1
- package/dist/actions/list-custom-fields.d.cts +21 -3
- package/dist/actions/list-custom-fields.d.cts.map +1 -1
- package/dist/actions/list-custom-fields.d.mts +21 -3
- package/dist/actions/list-custom-fields.d.mts.map +1 -1
- package/dist/actions/list-custom-fields.mjs +5 -5
- package/dist/actions/list-custom-fields.mjs.map +1 -1
- package/dist/actions/list-sources.cjs +5 -5
- package/dist/actions/list-sources.cjs.map +1 -1
- package/dist/actions/list-sources.d.cts +10 -3
- package/dist/actions/list-sources.d.cts.map +1 -1
- package/dist/actions/list-sources.d.mts +10 -3
- package/dist/actions/list-sources.d.mts.map +1 -1
- package/dist/actions/list-sources.mjs +5 -5
- package/dist/actions/list-sources.mjs.map +1 -1
- package/dist/actions/list-surveys.cjs +16 -16
- package/dist/actions/list-surveys.cjs.map +1 -1
- package/dist/actions/list-surveys.d.cts +23 -3
- package/dist/actions/list-surveys.d.cts.map +1 -1
- package/dist/actions/list-surveys.d.mts +23 -3
- package/dist/actions/list-surveys.d.mts.map +1 -1
- package/dist/actions/list-surveys.mjs +16 -16
- package/dist/actions/list-surveys.mjs.map +1 -1
- package/dist/actions/list-users.cjs +11 -11
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +84 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +84 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +11 -11
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/update-company.cjs +6 -6
- package/dist/actions/update-company.cjs.map +1 -1
- package/dist/actions/update-company.d.cts +18 -3
- package/dist/actions/update-company.d.cts.map +1 -1
- package/dist/actions/update-company.d.mts +18 -3
- package/dist/actions/update-company.d.mts.map +1 -1
- package/dist/actions/update-company.mjs +6 -6
- package/dist/actions/update-company.mjs.map +1 -1
- package/dist/actions/update-user.cjs +7 -7
- package/dist/actions/update-user.cjs.map +1 -1
- package/dist/actions/update-user.d.cts +44 -3
- package/dist/actions/update-user.d.cts.map +1 -1
- package/dist/actions/update-user.d.mts +44 -3
- package/dist/actions/update-user.d.mts.map +1 -1
- package/dist/actions/update-user.mjs +7 -7
- package/dist/actions/update-user.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
|
@@ -3,27 +3,27 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/list-surveys.ts
|
|
4
4
|
const SpecificListSurveysInput = zod.z.object({}).describe("Request model for listing surveys from Specific platform.");
|
|
5
5
|
const SpecificListSurveys_SurveyMessageSchema = zod.z.object({
|
|
6
|
-
id: zod.z.string().describe("Unique identifier for the survey message."),
|
|
7
|
-
text: zod.z.string().describe("The textual content of the message."),
|
|
8
|
-
answer: zod.z.string().describe("The response provided to a survey question."),
|
|
9
|
-
createdAt: zod.z.string().describe("Timestamp indicating when the message was created in ISO 8601 format."),
|
|
10
|
-
questionId: zod.z.string().describe("Reference identifier linking to the associated survey question.")
|
|
11
|
-
}).describe("Individual message within a survey conversation.");
|
|
6
|
+
id: zod.z.string().describe("Unique identifier for the survey message.").nullable(),
|
|
7
|
+
text: zod.z.string().describe("The textual content of the message.").nullable(),
|
|
8
|
+
answer: zod.z.string().describe("The response provided to a survey question.").nullable(),
|
|
9
|
+
createdAt: zod.z.string().describe("Timestamp indicating when the message was created in ISO 8601 format.").nullable(),
|
|
10
|
+
questionId: zod.z.string().describe("Reference identifier linking to the associated survey question.").nullable()
|
|
11
|
+
}).passthrough().describe("Individual message within a survey conversation.");
|
|
12
12
|
const SpecificListSurveys_SurveyConversationSchema = zod.z.object({
|
|
13
|
-
id: zod.z.string().describe("Unique identifier for the conversation."),
|
|
13
|
+
id: zod.z.string().describe("Unique identifier for the conversation.").nullable(),
|
|
14
14
|
chat: zod.z.array(SpecificListSurveys_SurveyMessageSchema).describe("Array of survey messages in the conversation."),
|
|
15
|
-
createdAt: zod.z.string().describe("Timestamp when the conversation was created in ISO 8601 format."),
|
|
15
|
+
createdAt: zod.z.string().describe("Timestamp when the conversation was created in ISO 8601 format.").nullable(),
|
|
16
16
|
finishedAt: zod.z.string().describe("Timestamp when the conversation ended in ISO 8601 format.").nullable().optional(),
|
|
17
|
-
isCompleted: zod.z.boolean().describe("Flag indicating completion status of the conversation.")
|
|
18
|
-
}).describe("Conversation associated with a survey.");
|
|
17
|
+
isCompleted: zod.z.boolean().describe("Flag indicating completion status of the conversation.").nullable()
|
|
18
|
+
}).passthrough().describe("Conversation associated with a survey.");
|
|
19
19
|
const SpecificListSurveys_SurveySchema = zod.z.object({
|
|
20
|
-
id: zod.z.string().describe("The unique identifier of the survey."),
|
|
21
|
-
name: zod.z.string().describe("The name of the survey."),
|
|
22
|
-
tone: zod.z.string().describe("The tone of the survey."),
|
|
23
|
-
context: zod.z.string().describe("The context of the survey."),
|
|
20
|
+
id: zod.z.string().describe("The unique identifier of the survey.").nullable(),
|
|
21
|
+
name: zod.z.string().describe("The name of the survey.").nullable(),
|
|
22
|
+
tone: zod.z.string().describe("The tone of the survey.").nullable(),
|
|
23
|
+
context: zod.z.string().describe("The context of the survey.").nullable(),
|
|
24
24
|
conversations: zod.z.array(SpecificListSurveys_SurveyConversationSchema).describe("Array of conversations associated with the survey.")
|
|
25
|
-
}).describe("Survey object with complete details.");
|
|
26
|
-
const SpecificListSurveysOutput = zod.z.object({ surveys: zod.z.array(SpecificListSurveys_SurveySchema).describe("List of survey objects from the Specific platform.") }).describe("Response model for listing surveys.");
|
|
25
|
+
}).passthrough().describe("Survey object with complete details.");
|
|
26
|
+
const SpecificListSurveysOutput = zod.z.object({ surveys: zod.z.array(SpecificListSurveys_SurveySchema).describe("List of survey objects from the Specific platform.") }).passthrough().describe("Response model for listing surveys.");
|
|
27
27
|
const specificListSurveys = require_action.action("SPECIFIC_LIST_SURVEYS", {
|
|
28
28
|
slug: "specific-list-surveys",
|
|
29
29
|
name: "List Surveys",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-surveys.cjs","names":["z","action"],"sources":["../../src/actions/list-surveys.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificListSurveysInput
|
|
1
|
+
{"version":3,"file":"list-surveys.cjs","names":["z","action"],"sources":["../../src/actions/list-surveys.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificListSurveysInput = z.object({}).describe(\"Request model for listing surveys from Specific platform.\");\nconst SpecificListSurveys_SurveyMessageSchema = z.object({\n id: z.string().describe(\"Unique identifier for the survey message.\").nullable(),\n text: z.string().describe(\"The textual content of the message.\").nullable(),\n answer: z.string().describe(\"The response provided to a survey question.\").nullable(),\n createdAt: z.string().describe(\"Timestamp indicating when the message was created in ISO 8601 format.\").nullable(),\n questionId: z.string().describe(\"Reference identifier linking to the associated survey question.\").nullable(),\n}).passthrough().describe(\"Individual message within a survey conversation.\");\nconst SpecificListSurveys_SurveyConversationSchema = z.object({\n id: z.string().describe(\"Unique identifier for the conversation.\").nullable(),\n chat: z.array(SpecificListSurveys_SurveyMessageSchema).describe(\"Array of survey messages in the conversation.\"),\n createdAt: z.string().describe(\"Timestamp when the conversation was created in ISO 8601 format.\").nullable(),\n finishedAt: z.string().describe(\"Timestamp when the conversation ended in ISO 8601 format.\").nullable().optional(),\n isCompleted: z.boolean().describe(\"Flag indicating completion status of the conversation.\").nullable(),\n}).passthrough().describe(\"Conversation associated with a survey.\");\nconst SpecificListSurveys_SurveySchema = z.object({\n id: z.string().describe(\"The unique identifier of the survey.\").nullable(),\n name: z.string().describe(\"The name of the survey.\").nullable(),\n tone: z.string().describe(\"The tone of the survey.\").nullable(),\n context: z.string().describe(\"The context of the survey.\").nullable(),\n conversations: z.array(SpecificListSurveys_SurveyConversationSchema).describe(\"Array of conversations associated with the survey.\"),\n}).passthrough().describe(\"Survey object with complete details.\");\nexport const SpecificListSurveysOutput = z.object({\n surveys: z.array(SpecificListSurveys_SurveySchema).describe(\"List of survey objects from the Specific platform.\"),\n}).passthrough().describe(\"Response model for listing surveys.\");\n\nexport const specificListSurveys = action(\"SPECIFIC_LIST_SURVEYS\", {\n slug: \"specific-list-surveys\",\n name: \"List Surveys\",\n description: \"Tool to retrieve multiple survey records from the Specific platform via GraphQL. Use when you need to fetch all available surveys with their metadata, including names, contexts, tones, and associated conversation data.\",\n input: SpecificListSurveysInput,\n output: SpecificListSurveysOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACzH,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IA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E,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpE,eAAeA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,oDAAoD;AACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAASA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,oDAAoD,EAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAE/D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-surveys.d.ts
|
|
4
|
-
declare const SpecificListSurveysInput: z.
|
|
5
|
-
declare const SpecificListSurveysOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SpecificListSurveysInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SpecificListSurveysOutput: z.ZodObject<{
|
|
6
|
+
surveys: z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodString>;
|
|
8
|
+
name: z.ZodNullable<z.ZodString>;
|
|
9
|
+
tone: z.ZodNullable<z.ZodString>;
|
|
10
|
+
context: z.ZodNullable<z.ZodString>;
|
|
11
|
+
conversations: z.ZodArray<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
chat: z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodString>;
|
|
15
|
+
text: z.ZodNullable<z.ZodString>;
|
|
16
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
17
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
18
|
+
questionId: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
21
|
+
finishedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
isCompleted: z.ZodNullable<z.ZodBoolean>;
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
declare const specificListSurveys: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { specificListSurveys };
|
|
9
29
|
//# sourceMappingURL=list-surveys.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-surveys.d.cts","names":[],"sources":["../../src/actions/list-surveys.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"list-surveys.d.cts","names":[],"sources":["../../src/actions/list-surveys.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAsBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-surveys.d.ts
|
|
4
|
-
declare const SpecificListSurveysInput: z.
|
|
5
|
-
declare const SpecificListSurveysOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SpecificListSurveysInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SpecificListSurveysOutput: z.ZodObject<{
|
|
6
|
+
surveys: z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodString>;
|
|
8
|
+
name: z.ZodNullable<z.ZodString>;
|
|
9
|
+
tone: z.ZodNullable<z.ZodString>;
|
|
10
|
+
context: z.ZodNullable<z.ZodString>;
|
|
11
|
+
conversations: z.ZodArray<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
chat: z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodString>;
|
|
15
|
+
text: z.ZodNullable<z.ZodString>;
|
|
16
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
17
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
18
|
+
questionId: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
21
|
+
finishedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
isCompleted: z.ZodNullable<z.ZodBoolean>;
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
declare const specificListSurveys: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { specificListSurveys };
|
|
9
29
|
//# sourceMappingURL=list-surveys.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-surveys.d.mts","names":[],"sources":["../../src/actions/list-surveys.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"list-surveys.d.mts","names":[],"sources":["../../src/actions/list-surveys.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAsBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -3,32 +3,32 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/list-surveys.ts
|
|
4
4
|
const SpecificListSurveysInput = z.object({}).describe("Request model for listing surveys from Specific platform.");
|
|
5
5
|
const SpecificListSurveys_SurveyMessageSchema = z.object({
|
|
6
|
-
id: z.string().describe("Unique identifier for the survey message."),
|
|
7
|
-
text: z.string().describe("The textual content of the message."),
|
|
8
|
-
answer: z.string().describe("The response provided to a survey question."),
|
|
9
|
-
createdAt: z.string().describe("Timestamp indicating when the message was created in ISO 8601 format."),
|
|
10
|
-
questionId: z.string().describe("Reference identifier linking to the associated survey question.")
|
|
11
|
-
}).describe("Individual message within a survey conversation.");
|
|
6
|
+
id: z.string().describe("Unique identifier for the survey message.").nullable(),
|
|
7
|
+
text: z.string().describe("The textual content of the message.").nullable(),
|
|
8
|
+
answer: z.string().describe("The response provided to a survey question.").nullable(),
|
|
9
|
+
createdAt: z.string().describe("Timestamp indicating when the message was created in ISO 8601 format.").nullable(),
|
|
10
|
+
questionId: z.string().describe("Reference identifier linking to the associated survey question.").nullable()
|
|
11
|
+
}).passthrough().describe("Individual message within a survey conversation.");
|
|
12
12
|
const SpecificListSurveys_SurveyConversationSchema = z.object({
|
|
13
|
-
id: z.string().describe("Unique identifier for the conversation."),
|
|
13
|
+
id: z.string().describe("Unique identifier for the conversation.").nullable(),
|
|
14
14
|
chat: z.array(SpecificListSurveys_SurveyMessageSchema).describe("Array of survey messages in the conversation."),
|
|
15
|
-
createdAt: z.string().describe("Timestamp when the conversation was created in ISO 8601 format."),
|
|
15
|
+
createdAt: z.string().describe("Timestamp when the conversation was created in ISO 8601 format.").nullable(),
|
|
16
16
|
finishedAt: z.string().describe("Timestamp when the conversation ended in ISO 8601 format.").nullable().optional(),
|
|
17
|
-
isCompleted: z.boolean().describe("Flag indicating completion status of the conversation.")
|
|
18
|
-
}).describe("Conversation associated with a survey.");
|
|
17
|
+
isCompleted: z.boolean().describe("Flag indicating completion status of the conversation.").nullable()
|
|
18
|
+
}).passthrough().describe("Conversation associated with a survey.");
|
|
19
19
|
const SpecificListSurveys_SurveySchema = z.object({
|
|
20
|
-
id: z.string().describe("The unique identifier of the survey."),
|
|
21
|
-
name: z.string().describe("The name of the survey."),
|
|
22
|
-
tone: z.string().describe("The tone of the survey."),
|
|
23
|
-
context: z.string().describe("The context of the survey."),
|
|
20
|
+
id: z.string().describe("The unique identifier of the survey.").nullable(),
|
|
21
|
+
name: z.string().describe("The name of the survey.").nullable(),
|
|
22
|
+
tone: z.string().describe("The tone of the survey.").nullable(),
|
|
23
|
+
context: z.string().describe("The context of the survey.").nullable(),
|
|
24
24
|
conversations: z.array(SpecificListSurveys_SurveyConversationSchema).describe("Array of conversations associated with the survey.")
|
|
25
|
-
}).describe("Survey object with complete details.");
|
|
25
|
+
}).passthrough().describe("Survey object with complete details.");
|
|
26
26
|
const specificListSurveys = action("SPECIFIC_LIST_SURVEYS", {
|
|
27
27
|
slug: "specific-list-surveys",
|
|
28
28
|
name: "List Surveys",
|
|
29
29
|
description: "Tool to retrieve multiple survey records from the Specific platform via GraphQL. Use when you need to fetch all available surveys with their metadata, including names, contexts, tones, and associated conversation data.",
|
|
30
30
|
input: SpecificListSurveysInput,
|
|
31
|
-
output: z.object({ surveys: z.array(SpecificListSurveys_SurveySchema).describe("List of survey objects from the Specific platform.") }).describe("Response model for listing surveys.")
|
|
31
|
+
output: z.object({ surveys: z.array(SpecificListSurveys_SurveySchema).describe("List of survey objects from the Specific platform.") }).passthrough().describe("Response model for listing surveys.")
|
|
32
32
|
});
|
|
33
33
|
//#endregion
|
|
34
34
|
export { specificListSurveys };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-surveys.mjs","names":[],"sources":["../../src/actions/list-surveys.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificListSurveysInput
|
|
1
|
+
{"version":3,"file":"list-surveys.mjs","names":[],"sources":["../../src/actions/list-surveys.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificListSurveysInput = z.object({}).describe(\"Request model for listing surveys from Specific platform.\");\nconst SpecificListSurveys_SurveyMessageSchema = z.object({\n id: z.string().describe(\"Unique identifier for the survey message.\").nullable(),\n text: z.string().describe(\"The textual content of the message.\").nullable(),\n answer: z.string().describe(\"The response provided to a survey question.\").nullable(),\n createdAt: z.string().describe(\"Timestamp indicating when the message was created in ISO 8601 format.\").nullable(),\n questionId: z.string().describe(\"Reference identifier linking to the associated survey question.\").nullable(),\n}).passthrough().describe(\"Individual message within a survey conversation.\");\nconst SpecificListSurveys_SurveyConversationSchema = z.object({\n id: z.string().describe(\"Unique identifier for the conversation.\").nullable(),\n chat: z.array(SpecificListSurveys_SurveyMessageSchema).describe(\"Array of survey messages in the conversation.\"),\n createdAt: z.string().describe(\"Timestamp when the conversation was created in ISO 8601 format.\").nullable(),\n finishedAt: z.string().describe(\"Timestamp when the conversation ended in ISO 8601 format.\").nullable().optional(),\n isCompleted: z.boolean().describe(\"Flag indicating completion status of the conversation.\").nullable(),\n}).passthrough().describe(\"Conversation associated with a survey.\");\nconst SpecificListSurveys_SurveySchema = z.object({\n id: z.string().describe(\"The unique identifier of the survey.\").nullable(),\n name: z.string().describe(\"The name of the survey.\").nullable(),\n tone: z.string().describe(\"The tone of the survey.\").nullable(),\n context: z.string().describe(\"The context of the survey.\").nullable(),\n conversations: z.array(SpecificListSurveys_SurveyConversationSchema).describe(\"Array of conversations associated with the survey.\"),\n}).passthrough().describe(\"Survey object with complete details.\");\nexport const SpecificListSurveysOutput = z.object({\n surveys: z.array(SpecificListSurveys_SurveySchema).describe(\"List of survey objects from the Specific platform.\"),\n}).passthrough().describe(\"Response model for listing surveys.\");\n\nexport const specificListSurveys = action(\"SPECIFIC_LIST_SURVEYS\", {\n slug: \"specific-list-surveys\",\n name: \"List Surveys\",\n description: \"Tool to retrieve multiple survey records from the Specific platform via GraphQL. Use when you need to fetch all available surveys with their metadata, including names, contexts, tones, and associated conversation data.\",\n input: SpecificListSurveysInput,\n output: SpecificListSurveysOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACzH,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACjH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAM,+CAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,MAAM,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,+CAA+C;CAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC3G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpE,eAAe,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,oDAAoD;AACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAKhE,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,SAAS,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,oDAAoD,EAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAOhB;AACV,CAAC"}
|
|
@@ -32,22 +32,22 @@ const SpecificListUsersInput = zod.z.object({ where: zod.z.object({
|
|
|
32
32
|
endsWith: zod.z.string().describe("Suffix that the field should end with.").optional(),
|
|
33
33
|
startsWith: zod.z.string().describe("Prefix that the field should start with.").optional()
|
|
34
34
|
}).describe("Filter for string fields supporting various operators.").optional(),
|
|
35
|
-
attributes: zod.z.
|
|
35
|
+
attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Filter by contact's custom attributes as key-value pairs.").optional()
|
|
36
36
|
}).describe("Filter for contact/user fields.").optional() }).describe("Request model for listing users from Specific platform.");
|
|
37
37
|
const SpecificListUsers_CompanySchema = zod.z.object({
|
|
38
|
-
id: zod.z.string().describe("Company's unique identifier."),
|
|
39
|
-
name: zod.z.string().describe("Company's name."),
|
|
40
|
-
visitorId: zod.z.string().describe("Internal Specific visitor ID for the company."),
|
|
41
|
-
usersCount: zod.z.number().int().describe("Number of users in the company.")
|
|
42
|
-
}).describe("Company information associated with a user.");
|
|
38
|
+
id: zod.z.string().describe("Company's unique identifier.").nullable(),
|
|
39
|
+
name: zod.z.string().describe("Company's name.").nullable(),
|
|
40
|
+
visitorId: zod.z.string().describe("Internal Specific visitor ID for the company.").nullable(),
|
|
41
|
+
usersCount: zod.z.number().int().describe("Number of users in the company.").nullable()
|
|
42
|
+
}).passthrough().describe("Company information associated with a user.");
|
|
43
43
|
const SpecificListUsers_UserSchema = zod.z.object({
|
|
44
|
-
id: zod.z.string().describe("Contact's unique identifier."),
|
|
45
|
-
name: zod.z.string().describe("Contact's full name."),
|
|
44
|
+
id: zod.z.string().describe("Contact's unique identifier.").nullable(),
|
|
45
|
+
name: zod.z.string().describe("Contact's full name.").nullable(),
|
|
46
46
|
email: zod.z.string().describe("Contact's email address.").nullable().optional(),
|
|
47
47
|
company: SpecificListUsers_CompanySchema.nullable().optional(),
|
|
48
|
-
visitorId: zod.z.string().describe("Internal Specific visitor ID.")
|
|
49
|
-
}).describe("User object from Specific platform.");
|
|
50
|
-
const SpecificListUsersOutput = zod.z.object({ users: zod.z.array(SpecificListUsers_UserSchema).describe("List of user accounts from the Specific platform.") }).describe("Response model for listing users.");
|
|
48
|
+
visitorId: zod.z.string().describe("Internal Specific visitor ID.").nullable()
|
|
49
|
+
}).passthrough().describe("User object from Specific platform.");
|
|
50
|
+
const SpecificListUsersOutput = zod.z.object({ users: zod.z.array(SpecificListUsers_UserSchema).describe("List of user accounts from the Specific platform.") }).passthrough().describe("Response model for listing users.");
|
|
51
51
|
const specificListUsers = require_action.action("SPECIFIC_LIST_USERS", {
|
|
52
52
|
slug: "specific-list-users",
|
|
53
53
|
name: "List Users",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.cjs","names":["z","action"],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificListUsersInput
|
|
1
|
+
{"version":3,"file":"list-users.cjs","names":["z","action"],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificListUsersInput = z.object({\n where: z.object({\n id: z.object({\n gt: z.string().describe(\"Greater than comparison.\").optional(),\n \"in\": z.array(z.string()).describe(\"List of values the field should match.\").optional(),\n is: z.string().describe(\"Type check for the field.\").optional(),\n lt: z.string().describe(\"Less than comparison.\").optional(),\n gte: z.string().describe(\"Greater than or equal comparison.\").optional(),\n lte: z.string().describe(\"Less than or equal comparison.\").optional(),\n not: z.string().describe(\"Value that the field should not equal.\").optional(),\n isNot: z.string().describe(\"Negated type check for the field.\").optional(),\n notIn: z.array(z.string()).describe(\"List of values the field should not match.\").optional(),\n equals: z.string().describe(\"Exact match for the field value.\").optional(),\n contains: z.string().describe(\"Substring that the field should contain.\").optional(),\n endsWith: z.string().describe(\"Suffix that the field should end with.\").optional(),\n startsWith: z.string().describe(\"Prefix that the field should start with.\").optional(),\n}).describe(\"Filter for string fields supporting various operators.\").optional(),\n email: z.object({\n gt: z.string().describe(\"Greater than comparison.\").optional(),\n \"in\": z.array(z.string()).describe(\"List of values the field should match.\").optional(),\n is: z.string().describe(\"Type check for the field.\").optional(),\n lt: z.string().describe(\"Less than comparison.\").optional(),\n gte: z.string().describe(\"Greater than or equal comparison.\").optional(),\n lte: z.string().describe(\"Less than or equal comparison.\").optional(),\n not: z.string().describe(\"Value that the field should not equal.\").optional(),\n isNot: z.string().describe(\"Negated type check for the field.\").optional(),\n notIn: z.array(z.string()).describe(\"List of values the field should not match.\").optional(),\n equals: z.string().describe(\"Exact match for the field value.\").optional(),\n contains: z.string().describe(\"Substring that the field should contain.\").optional(),\n endsWith: z.string().describe(\"Suffix that the field should end with.\").optional(),\n startsWith: z.string().describe(\"Prefix that the field should start with.\").optional(),\n}).describe(\"Filter for string fields supporting various operators.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Filter by contact's custom attributes as key-value pairs.\").optional(),\n}).describe(\"Filter for contact/user fields.\").optional(),\n}).describe(\"Request model for listing users from Specific platform.\");\nconst SpecificListUsers_CompanySchema = z.object({\n id: z.string().describe(\"Company's unique identifier.\").nullable(),\n name: z.string().describe(\"Company's name.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific visitor ID for the company.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users in the company.\").nullable(),\n}).passthrough().describe(\"Company information associated with a user.\");\nconst SpecificListUsers_UserSchema = z.object({\n id: z.string().describe(\"Contact's unique identifier.\").nullable(),\n name: z.string().describe(\"Contact's full name.\").nullable(),\n email: z.string().describe(\"Contact's email address.\").nullable().optional(),\n company: SpecificListUsers_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific visitor ID.\").nullable(),\n}).passthrough().describe(\"User object from Specific platform.\");\nexport const SpecificListUsersOutput = z.object({\n users: z.array(SpecificListUsers_UserSchema).describe(\"List of user accounts from the Specific platform.\"),\n}).passthrough().describe(\"Response model for listing users.\");\n\nexport const specificListUsers = action(\"SPECIFIC_LIST_USERS\", {\n slug: \"specific-list-users\",\n name: \"List Users\",\n description: \"Tool to query user accounts from the Specific platform via GraphQL. Use when you need to retrieve user information, optionally filtering by ID, email, or custom attributes.\",\n input: SpecificListUsersInput,\n output: SpecificListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,OAAOA,IAAAA,EAAE,OAAO;CAChB,IAAIA,IAAAA,EAAE,OAAO;EACb,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC7D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACtF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CA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CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAM,+BAA+BA,IAAAA,EAAE,OAAO;CAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,SAAS,gCAAgC,SAAS,CAAC,CAAC,SAAS;CAC7D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,OAAOA,IAAAA,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,mDAAmD,EAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAE7D,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,90 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-users.d.ts
|
|
4
|
-
declare const SpecificListUsersInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpecificListUsersInput: z.ZodObject<{
|
|
5
|
+
where: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
id: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
8
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
+
is: z.ZodOptional<z.ZodString>;
|
|
10
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
11
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
12
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
13
|
+
not: z.ZodOptional<z.ZodString>;
|
|
14
|
+
isNot: z.ZodOptional<z.ZodString>;
|
|
15
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
17
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
18
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
19
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
23
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
+
is: z.ZodOptional<z.ZodString>;
|
|
25
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
26
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
27
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
28
|
+
not: z.ZodOptional<z.ZodString>;
|
|
29
|
+
isNot: z.ZodOptional<z.ZodString>;
|
|
30
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
32
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
33
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
34
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
declare const SpecificListUsersOutput: z.ZodObject<{
|
|
40
|
+
users: z.ZodArray<z.ZodObject<{
|
|
41
|
+
id: z.ZodNullable<z.ZodString>;
|
|
42
|
+
name: z.ZodNullable<z.ZodString>;
|
|
43
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
45
|
+
id: z.ZodNullable<z.ZodString>;
|
|
46
|
+
name: z.ZodNullable<z.ZodString>;
|
|
47
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
48
|
+
usersCount: z.ZodNullable<z.ZodNumber>;
|
|
49
|
+
}, z.core.$loose>>>;
|
|
50
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
51
|
+
}, z.core.$loose>>;
|
|
52
|
+
}, z.core.$loose>;
|
|
53
|
+
declare const specificListUsers: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
54
|
+
where?: {
|
|
55
|
+
id?: {
|
|
56
|
+
gt?: string | undefined;
|
|
57
|
+
in?: string[] | undefined;
|
|
58
|
+
is?: string | undefined;
|
|
59
|
+
lt?: string | undefined;
|
|
60
|
+
gte?: string | undefined;
|
|
61
|
+
lte?: string | undefined;
|
|
62
|
+
not?: string | undefined;
|
|
63
|
+
isNot?: string | undefined;
|
|
64
|
+
notIn?: string[] | undefined;
|
|
65
|
+
equals?: string | undefined;
|
|
66
|
+
contains?: string | undefined;
|
|
67
|
+
endsWith?: string | undefined;
|
|
68
|
+
startsWith?: string | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
email?: {
|
|
71
|
+
gt?: string | undefined;
|
|
72
|
+
in?: string[] | undefined;
|
|
73
|
+
is?: string | undefined;
|
|
74
|
+
lt?: string | undefined;
|
|
75
|
+
gte?: string | undefined;
|
|
76
|
+
lte?: string | undefined;
|
|
77
|
+
not?: string | undefined;
|
|
78
|
+
isNot?: string | undefined;
|
|
79
|
+
notIn?: string[] | undefined;
|
|
80
|
+
equals?: string | undefined;
|
|
81
|
+
contains?: string | undefined;
|
|
82
|
+
endsWith?: string | undefined;
|
|
83
|
+
startsWith?: string | undefined;
|
|
84
|
+
} | undefined;
|
|
85
|
+
attributes?: Record<string, unknown> | undefined;
|
|
86
|
+
} | undefined;
|
|
87
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
88
|
//#endregion
|
|
8
89
|
export { specificListUsers };
|
|
9
90
|
//# sourceMappingURL=list-users.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgDtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM5B,MAAA;EAAA;AAAA"}
|
|
@@ -1,9 +1,90 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-users.d.ts
|
|
4
|
-
declare const SpecificListUsersInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpecificListUsersInput: z.ZodObject<{
|
|
5
|
+
where: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
id: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
8
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
+
is: z.ZodOptional<z.ZodString>;
|
|
10
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
11
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
12
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
13
|
+
not: z.ZodOptional<z.ZodString>;
|
|
14
|
+
isNot: z.ZodOptional<z.ZodString>;
|
|
15
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
17
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
18
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
19
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
23
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
+
is: z.ZodOptional<z.ZodString>;
|
|
25
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
26
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
27
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
28
|
+
not: z.ZodOptional<z.ZodString>;
|
|
29
|
+
isNot: z.ZodOptional<z.ZodString>;
|
|
30
|
+
notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
|
+
equals: z.ZodOptional<z.ZodString>;
|
|
32
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
33
|
+
endsWith: z.ZodOptional<z.ZodString>;
|
|
34
|
+
startsWith: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
declare const SpecificListUsersOutput: z.ZodObject<{
|
|
40
|
+
users: z.ZodArray<z.ZodObject<{
|
|
41
|
+
id: z.ZodNullable<z.ZodString>;
|
|
42
|
+
name: z.ZodNullable<z.ZodString>;
|
|
43
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
45
|
+
id: z.ZodNullable<z.ZodString>;
|
|
46
|
+
name: z.ZodNullable<z.ZodString>;
|
|
47
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
48
|
+
usersCount: z.ZodNullable<z.ZodNumber>;
|
|
49
|
+
}, z.core.$loose>>>;
|
|
50
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
51
|
+
}, z.core.$loose>>;
|
|
52
|
+
}, z.core.$loose>;
|
|
53
|
+
declare const specificListUsers: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
54
|
+
where?: {
|
|
55
|
+
id?: {
|
|
56
|
+
gt?: string | undefined;
|
|
57
|
+
in?: string[] | undefined;
|
|
58
|
+
is?: string | undefined;
|
|
59
|
+
lt?: string | undefined;
|
|
60
|
+
gte?: string | undefined;
|
|
61
|
+
lte?: string | undefined;
|
|
62
|
+
not?: string | undefined;
|
|
63
|
+
isNot?: string | undefined;
|
|
64
|
+
notIn?: string[] | undefined;
|
|
65
|
+
equals?: string | undefined;
|
|
66
|
+
contains?: string | undefined;
|
|
67
|
+
endsWith?: string | undefined;
|
|
68
|
+
startsWith?: string | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
email?: {
|
|
71
|
+
gt?: string | undefined;
|
|
72
|
+
in?: string[] | undefined;
|
|
73
|
+
is?: string | undefined;
|
|
74
|
+
lt?: string | undefined;
|
|
75
|
+
gte?: string | undefined;
|
|
76
|
+
lte?: string | undefined;
|
|
77
|
+
not?: string | undefined;
|
|
78
|
+
isNot?: string | undefined;
|
|
79
|
+
notIn?: string[] | undefined;
|
|
80
|
+
equals?: string | undefined;
|
|
81
|
+
contains?: string | undefined;
|
|
82
|
+
endsWith?: string | undefined;
|
|
83
|
+
startsWith?: string | undefined;
|
|
84
|
+
} | undefined;
|
|
85
|
+
attributes?: Record<string, unknown> | undefined;
|
|
86
|
+
} | undefined;
|
|
87
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
88
|
//#endregion
|
|
8
89
|
export { specificListUsers };
|
|
9
90
|
//# sourceMappingURL=list-users.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgDtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM5B,MAAA;EAAA;AAAA"}
|
|
@@ -32,27 +32,27 @@ const SpecificListUsersInput = z.object({ where: z.object({
|
|
|
32
32
|
endsWith: z.string().describe("Suffix that the field should end with.").optional(),
|
|
33
33
|
startsWith: z.string().describe("Prefix that the field should start with.").optional()
|
|
34
34
|
}).describe("Filter for string fields supporting various operators.").optional(),
|
|
35
|
-
attributes: z.
|
|
35
|
+
attributes: z.record(z.string(), z.unknown()).describe("Filter by contact's custom attributes as key-value pairs.").optional()
|
|
36
36
|
}).describe("Filter for contact/user fields.").optional() }).describe("Request model for listing users from Specific platform.");
|
|
37
37
|
const SpecificListUsers_CompanySchema = z.object({
|
|
38
|
-
id: z.string().describe("Company's unique identifier."),
|
|
39
|
-
name: z.string().describe("Company's name."),
|
|
40
|
-
visitorId: z.string().describe("Internal Specific visitor ID for the company."),
|
|
41
|
-
usersCount: z.number().int().describe("Number of users in the company.")
|
|
42
|
-
}).describe("Company information associated with a user.");
|
|
38
|
+
id: z.string().describe("Company's unique identifier.").nullable(),
|
|
39
|
+
name: z.string().describe("Company's name.").nullable(),
|
|
40
|
+
visitorId: z.string().describe("Internal Specific visitor ID for the company.").nullable(),
|
|
41
|
+
usersCount: z.number().int().describe("Number of users in the company.").nullable()
|
|
42
|
+
}).passthrough().describe("Company information associated with a user.");
|
|
43
43
|
const SpecificListUsers_UserSchema = z.object({
|
|
44
|
-
id: z.string().describe("Contact's unique identifier."),
|
|
45
|
-
name: z.string().describe("Contact's full name."),
|
|
44
|
+
id: z.string().describe("Contact's unique identifier.").nullable(),
|
|
45
|
+
name: z.string().describe("Contact's full name.").nullable(),
|
|
46
46
|
email: z.string().describe("Contact's email address.").nullable().optional(),
|
|
47
47
|
company: SpecificListUsers_CompanySchema.nullable().optional(),
|
|
48
|
-
visitorId: z.string().describe("Internal Specific visitor ID.")
|
|
49
|
-
}).describe("User object from Specific platform.");
|
|
48
|
+
visitorId: z.string().describe("Internal Specific visitor ID.").nullable()
|
|
49
|
+
}).passthrough().describe("User object from Specific platform.");
|
|
50
50
|
const specificListUsers = action("SPECIFIC_LIST_USERS", {
|
|
51
51
|
slug: "specific-list-users",
|
|
52
52
|
name: "List Users",
|
|
53
53
|
description: "Tool to query user accounts from the Specific platform via GraphQL. Use when you need to retrieve user information, optionally filtering by ID, email, or custom attributes.",
|
|
54
54
|
input: SpecificListUsersInput,
|
|
55
|
-
output: z.object({ users: z.array(SpecificListUsers_UserSchema).describe("List of user accounts from the Specific platform.") }).describe("Response model for listing users.")
|
|
55
|
+
output: z.object({ users: z.array(SpecificListUsers_UserSchema).describe("List of user accounts from the Specific platform.") }).passthrough().describe("Response model for listing users.")
|
|
56
56
|
});
|
|
57
57
|
//#endregion
|
|
58
58
|
export { specificListUsers };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.mjs","names":[],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificListUsersInput
|
|
1
|
+
{"version":3,"file":"list-users.mjs","names":[],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpecificListUsersInput = z.object({\n where: z.object({\n id: z.object({\n gt: z.string().describe(\"Greater than comparison.\").optional(),\n \"in\": z.array(z.string()).describe(\"List of values the field should match.\").optional(),\n is: z.string().describe(\"Type check for the field.\").optional(),\n lt: z.string().describe(\"Less than comparison.\").optional(),\n gte: z.string().describe(\"Greater than or equal comparison.\").optional(),\n lte: z.string().describe(\"Less than or equal comparison.\").optional(),\n not: z.string().describe(\"Value that the field should not equal.\").optional(),\n isNot: z.string().describe(\"Negated type check for the field.\").optional(),\n notIn: z.array(z.string()).describe(\"List of values the field should not match.\").optional(),\n equals: z.string().describe(\"Exact match for the field value.\").optional(),\n contains: z.string().describe(\"Substring that the field should contain.\").optional(),\n endsWith: z.string().describe(\"Suffix that the field should end with.\").optional(),\n startsWith: z.string().describe(\"Prefix that the field should start with.\").optional(),\n}).describe(\"Filter for string fields supporting various operators.\").optional(),\n email: z.object({\n gt: z.string().describe(\"Greater than comparison.\").optional(),\n \"in\": z.array(z.string()).describe(\"List of values the field should match.\").optional(),\n is: z.string().describe(\"Type check for the field.\").optional(),\n lt: z.string().describe(\"Less than comparison.\").optional(),\n gte: z.string().describe(\"Greater than or equal comparison.\").optional(),\n lte: z.string().describe(\"Less than or equal comparison.\").optional(),\n not: z.string().describe(\"Value that the field should not equal.\").optional(),\n isNot: z.string().describe(\"Negated type check for the field.\").optional(),\n notIn: z.array(z.string()).describe(\"List of values the field should not match.\").optional(),\n equals: z.string().describe(\"Exact match for the field value.\").optional(),\n contains: z.string().describe(\"Substring that the field should contain.\").optional(),\n endsWith: z.string().describe(\"Suffix that the field should end with.\").optional(),\n startsWith: z.string().describe(\"Prefix that the field should start with.\").optional(),\n}).describe(\"Filter for string fields supporting various operators.\").optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Filter by contact's custom attributes as key-value pairs.\").optional(),\n}).describe(\"Filter for contact/user fields.\").optional(),\n}).describe(\"Request model for listing users from Specific platform.\");\nconst SpecificListUsers_CompanySchema = z.object({\n id: z.string().describe(\"Company's unique identifier.\").nullable(),\n name: z.string().describe(\"Company's name.\").nullable(),\n visitorId: z.string().describe(\"Internal Specific visitor ID for the company.\").nullable(),\n usersCount: z.number().int().describe(\"Number of users in the company.\").nullable(),\n}).passthrough().describe(\"Company information associated with a user.\");\nconst SpecificListUsers_UserSchema = z.object({\n id: z.string().describe(\"Contact's unique identifier.\").nullable(),\n name: z.string().describe(\"Contact's full name.\").nullable(),\n email: z.string().describe(\"Contact's email address.\").nullable().optional(),\n company: SpecificListUsers_CompanySchema.nullable().optional(),\n visitorId: z.string().describe(\"Internal Specific visitor ID.\").nullable(),\n}).passthrough().describe(\"User object from Specific platform.\");\nexport const SpecificListUsersOutput = z.object({\n users: z.array(SpecificListUsers_UserSchema).describe(\"List of user accounts from the Specific platform.\"),\n}).passthrough().describe(\"Response model for listing users.\");\n\nexport const specificListUsers = action(\"SPECIFIC_LIST_USERS\", {\n slug: \"specific-list-users\",\n name: \"List Users\",\n description: \"Tool to query user accounts from the Specific platform via GraphQL. Use when you need to retrieve user information, optionally filtering by ID, email, or custom attributes.\",\n input: SpecificListUsersInput,\n output: SpecificListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,OAAO,EAAE,OAAO;CAChB,IAAI,EAAE,OAAO;EACb,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC7D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACtF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,m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,SAAS,qCAAqC;AAK/D,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqC,EAAE,OAAO,EAC9C,OAAO,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,mDAAmD,EAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAOhB;AACV,CAAC"}
|
|
@@ -7,12 +7,12 @@ const SpecificUpdateCompanyInput = zod.z.object({
|
|
|
7
7
|
attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field values to update on the company. Merges with existing values.").optional()
|
|
8
8
|
}).describe("Request model for updating a company in Specific.");
|
|
9
9
|
const SpecificUpdateCompany_CompanySchema = zod.z.object({
|
|
10
|
-
id: zod.z.string().describe("The unique ID of the company."),
|
|
11
|
-
name: zod.z.string().describe("The name of the company."),
|
|
12
|
-
visitorId: zod.z.string().describe("Internal Specific visitor ID."),
|
|
13
|
-
usersCount: zod.z.number().int().describe("Number of users belonging to this company.")
|
|
14
|
-
}).describe("Represents a company object in Specific.");
|
|
15
|
-
const SpecificUpdateCompanyOutput = zod.z.object({ companies: zod.z.array(SpecificUpdateCompany_CompanySchema).describe("List of updated company objects.") }).describe("Response model for updating a company in Specific.");
|
|
10
|
+
id: zod.z.string().describe("The unique ID of the company.").nullable(),
|
|
11
|
+
name: zod.z.string().describe("The name of the company.").nullable(),
|
|
12
|
+
visitorId: zod.z.string().describe("Internal Specific visitor ID.").nullable(),
|
|
13
|
+
usersCount: zod.z.number().int().describe("Number of users belonging to this company.").nullable()
|
|
14
|
+
}).passthrough().describe("Represents a company object in Specific.");
|
|
15
|
+
const SpecificUpdateCompanyOutput = zod.z.object({ companies: zod.z.array(SpecificUpdateCompany_CompanySchema).describe("List of updated company objects.") }).passthrough().describe("Response model for updating a company in Specific.");
|
|
16
16
|
const specificUpdateCompany = require_action.action("SPECIFIC_UPDATE_COMPANY", {
|
|
17
17
|
slug: "specific-update-company",
|
|
18
18
|
name: "Update Company",
|