@keystrokehq/segment 0.0.16 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -104
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-labels-to-source.cjs +27 -0
- package/dist/actions/add-labels-to-source.cjs.map +1 -0
- package/dist/actions/add-labels-to-source.d.cts +28 -0
- package/dist/actions/add-labels-to-source.d.cts.map +1 -0
- package/dist/actions/add-labels-to-source.d.mts +28 -0
- package/dist/actions/add-labels-to-source.d.mts.map +1 -0
- package/dist/actions/add-labels-to-source.mjs +26 -0
- package/dist/actions/add-labels-to-source.mjs.map +1 -0
- package/dist/actions/alias.cjs +23 -0
- package/dist/actions/alias.cjs.map +1 -0
- package/dist/actions/alias.d.cts +23 -0
- package/dist/actions/alias.d.cts.map +1 -0
- package/dist/actions/alias.d.mts +23 -0
- package/dist/actions/alias.d.mts.map +1 -0
- package/dist/actions/alias.mjs +20 -0
- package/dist/actions/alias.mjs.map +1 -0
- package/dist/actions/batch.cjs +21 -0
- package/dist/actions/batch.cjs.map +1 -0
- package/dist/actions/batch.d.cts +19 -0
- package/dist/actions/batch.d.cts.map +1 -0
- package/dist/actions/batch.d.mts +19 -0
- package/dist/actions/batch.d.mts.map +1 -0
- package/dist/actions/batch.mjs +18 -0
- package/dist/actions/batch.mjs.map +1 -0
- package/dist/actions/delete-source.cjs +17 -0
- package/dist/actions/delete-source.cjs.map +1 -0
- package/dist/actions/delete-source.d.cts +17 -0
- package/dist/actions/delete-source.d.cts.map +1 -0
- package/dist/actions/delete-source.d.mts +17 -0
- package/dist/actions/delete-source.d.mts.map +1 -0
- package/dist/actions/delete-source.mjs +16 -0
- package/dist/actions/delete-source.mjs.map +1 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.cjs +37 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.cjs.map +1 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.d.cts +35 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.d.cts.map +1 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.d.mts +35 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.d.mts.map +1 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.mjs +36 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.mjs.map +1 -0
- package/dist/actions/get-destination.cjs +78 -0
- package/dist/actions/get-destination.cjs.map +1 -0
- package/dist/actions/get-destination.d.cts +71 -0
- package/dist/actions/get-destination.d.cts.map +1 -0
- package/dist/actions/get-destination.d.mts +71 -0
- package/dist/actions/get-destination.d.mts.map +1 -0
- package/dist/actions/get-destination.mjs +77 -0
- package/dist/actions/get-destination.mjs.map +1 -0
- package/dist/actions/group.cjs +25 -0
- package/dist/actions/group.cjs.map +1 -0
- package/dist/actions/group.d.cts +27 -0
- package/dist/actions/group.d.cts.map +1 -0
- package/dist/actions/group.d.mts +27 -0
- package/dist/actions/group.d.mts.map +1 -0
- package/dist/actions/group.mjs +22 -0
- package/dist/actions/group.mjs.map +1 -0
- package/dist/actions/identify.cjs +25 -0
- package/dist/actions/identify.cjs.map +1 -0
- package/dist/actions/identify.d.cts +27 -0
- package/dist/actions/identify.d.cts.map +1 -0
- package/dist/actions/identify.d.mts +27 -0
- package/dist/actions/identify.d.mts.map +1 -0
- package/dist/actions/identify.mjs +22 -0
- package/dist/actions/identify.mjs.map +1 -0
- package/dist/actions/import-historical-data.cjs +20 -0
- package/dist/actions/import-historical-data.cjs.map +1 -0
- package/dist/actions/import-historical-data.d.cts +19 -0
- package/dist/actions/import-historical-data.d.cts.map +1 -0
- package/dist/actions/import-historical-data.d.mts +19 -0
- package/dist/actions/import-historical-data.d.mts.map +1 -0
- package/dist/actions/import-historical-data.mjs +17 -0
- package/dist/actions/import-historical-data.mjs.map +1 -0
- package/dist/actions/index.cjs +35 -0
- package/dist/actions/index.d.cts +18 -0
- package/dist/actions/index.d.mts +18 -0
- package/dist/actions/index.mjs +18 -0
- package/dist/actions/list-connected-warehouses-from-source.cjs +55 -0
- package/dist/actions/list-connected-warehouses-from-source.cjs.map +1 -0
- package/dist/actions/list-connected-warehouses-from-source.d.cts +50 -0
- package/dist/actions/list-connected-warehouses-from-source.d.cts.map +1 -0
- package/dist/actions/list-connected-warehouses-from-source.d.mts +50 -0
- package/dist/actions/list-connected-warehouses-from-source.d.mts.map +1 -0
- package/dist/actions/list-connected-warehouses-from-source.mjs +54 -0
- package/dist/actions/list-connected-warehouses-from-source.mjs.map +1 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.cjs +41 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.cjs.map +1 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts +40 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts.map +1 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts +40 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts.map +1 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.mjs +40 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.mjs.map +1 -0
- package/dist/actions/list-schema-settings-in-source.cjs +44 -0
- package/dist/actions/list-schema-settings-in-source.cjs.map +1 -0
- package/dist/actions/list-schema-settings-in-source.d.cts +38 -0
- package/dist/actions/list-schema-settings-in-source.d.cts.map +1 -0
- package/dist/actions/list-schema-settings-in-source.d.mts +38 -0
- package/dist/actions/list-schema-settings-in-source.d.mts.map +1 -0
- package/dist/actions/list-schema-settings-in-source.mjs +43 -0
- package/dist/actions/list-schema-settings-in-source.mjs.map +1 -0
- package/dist/actions/page.cjs +26 -0
- package/dist/actions/page.cjs.map +1 -0
- package/dist/actions/page.d.cts +29 -0
- package/dist/actions/page.d.cts.map +1 -0
- package/dist/actions/page.d.mts +29 -0
- package/dist/actions/page.d.mts.map +1 -0
- package/dist/actions/page.mjs +23 -0
- package/dist/actions/page.mjs.map +1 -0
- package/dist/actions/remove-source-write-key.cjs +20 -0
- package/dist/actions/remove-source-write-key.cjs.map +1 -0
- package/dist/actions/remove-source-write-key.d.cts +19 -0
- package/dist/actions/remove-source-write-key.d.cts.map +1 -0
- package/dist/actions/remove-source-write-key.d.mts +19 -0
- package/dist/actions/remove-source-write-key.d.mts.map +1 -0
- package/dist/actions/remove-source-write-key.mjs +19 -0
- package/dist/actions/remove-source-write-key.mjs.map +1 -0
- package/dist/actions/screen.cjs +25 -0
- package/dist/actions/screen.cjs.map +1 -0
- package/dist/actions/screen.d.cts +27 -0
- package/dist/actions/screen.d.cts.map +1 -0
- package/dist/actions/screen.d.mts +27 -0
- package/dist/actions/screen.d.mts.map +1 -0
- package/dist/actions/screen.mjs +22 -0
- package/dist/actions/screen.mjs.map +1 -0
- package/dist/actions/track.cjs +25 -0
- package/dist/actions/track.cjs.map +1 -0
- package/dist/actions/track.d.cts +27 -0
- package/dist/actions/track.d.cts.map +1 -0
- package/dist/actions/track.d.mts +27 -0
- package/dist/actions/track.d.mts.map +1 -0
- package/dist/actions/track.mjs +22 -0
- package/dist/actions/track.mjs.map +1 -0
- package/dist/actions/update-source.cjs +51 -0
- package/dist/actions/update-source.cjs.map +1 -0
- package/dist/actions/update-source.d.cts +50 -0
- package/dist/actions/update-source.d.cts.map +1 -0
- package/dist/actions/update-source.d.mts +50 -0
- package/dist/actions/update-source.d.mts.map +1 -0
- package/dist/actions/update-source.mjs +50 -0
- package/dist/actions/update-source.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +27 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +26 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +26 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +27 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +40 -0
- package/dist/index.d.cts +20 -0
- package/dist/index.d.mts +20 -4
- package/dist/index.mjs +21 -5
- package/package.json +31 -60
- package/LICENSE +0 -21
- package/dist/client-DQfeZzLR.mjs +0 -362
- package/dist/common-DUU0airJ.mjs +0 -56
- package/dist/credential-sets/index.d.mts +0 -2
- package/dist/credential-sets/index.mjs +0 -3
- package/dist/operations/index.d.mts +0 -2
- package/dist/operations/index.mjs +0 -3
- package/dist/schemas/index.d.mts +0 -57
- package/dist/schemas/index.mjs +0 -3
- package/dist/segment.credential-set-BTTrkHO7.mjs +0 -33
- package/dist/segment.credential-set-BgROtI_9.d.mts +0 -57
- package/dist/triggers/index.d.mts +0 -110
- package/dist/triggers/index.mjs +0 -367
- package/dist/workspace-list-spaces.operation-DKWX3vl5.mjs +0 -5200
- package/dist/workspace-list-spaces.operation-DNIUfIuv.d.mts +0 -6548
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/remove-source-write-key.ts
|
|
4
|
+
const SegmentRemoveSourceWriteKeyInput = zod.z.object({
|
|
5
|
+
sourceId: zod.z.string().describe("The unique identifier of the Source."),
|
|
6
|
+
writeKey: zod.z.string().describe("The write key to remove from the Source.")
|
|
7
|
+
}).describe("Request parameters for removing a write key from a Segment Source.");
|
|
8
|
+
const SegmentRemoveSourceWriteKey_RemoveStatusSchema = zod.z.object({ status: zod.z.string().describe("Status of the removal operation, e.g., 'SUCCESS'.").nullable() });
|
|
9
|
+
const SegmentRemoveSourceWriteKeyOutput = zod.z.object({ data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable() }).describe("Response schema for removing a write key from a Source.");
|
|
10
|
+
const segmentRemoveSourceWriteKey = require_action.action("SEGMENT_REMOVE_SOURCE_WRITE_KEY", {
|
|
11
|
+
slug: "segment-remove-source-write-key",
|
|
12
|
+
name: "Remove Source Write Key",
|
|
13
|
+
description: "Tool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.",
|
|
14
|
+
input: SegmentRemoveSourceWriteKeyInput,
|
|
15
|
+
output: SegmentRemoveSourceWriteKeyOutput
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.segmentRemoveSourceWriteKey = segmentRemoveSourceWriteKey;
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=remove-source-write-key.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-source-write-key.cjs","names":["z","action"],"sources":["../../src/actions/remove-source-write-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentRemoveSourceWriteKeyInput = z.object({\n sourceId: z.string().describe(\"The unique identifier of the Source.\"),\n writeKey: z.string().describe(\"The write key to remove from the Source.\"),\n}).describe(\"Request parameters for removing a write key from a Segment Source.\");\nconst SegmentRemoveSourceWriteKey_RemoveStatusSchema = z.object({\n status: z.string().describe(\"Status of the removal operation, e.g., 'SUCCESS'.\").nullable(),\n});\nexport const SegmentRemoveSourceWriteKeyOutput = z.object({\n data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable(),\n}).describe(\"Response schema for removing a write key from a Source.\");\n\nexport const segmentRemoveSourceWriteKey = action(\"SEGMENT_REMOVE_SOURCE_WRITE_KEY\", {\n slug: \"segment-remove-source-write-key\",\n name: \"Remove Source Write Key\",\n description: \"Tool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.\",\n input: SegmentRemoveSourceWriteKeyInput,\n output: SegmentRemoveSourceWriteKeyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC1E,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,iDAAiDA,IAAAA,EAAE,OAAO,EAC9D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC5F,CAAC;AACD,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/remove-source-write-key.d.ts
|
|
4
|
+
declare const SegmentRemoveSourceWriteKeyInput: z.ZodObject<{
|
|
5
|
+
sourceId: z.ZodString;
|
|
6
|
+
writeKey: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SegmentRemoveSourceWriteKeyOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
status: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const segmentRemoveSourceWriteKey: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
sourceId: string;
|
|
15
|
+
writeKey: string;
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { segmentRemoveSourceWriteKey };
|
|
19
|
+
//# sourceMappingURL=remove-source-write-key.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-source-write-key.d.cts","names":[],"sources":["../../src/actions/remove-source-write-key.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAOhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/remove-source-write-key.d.ts
|
|
4
|
+
declare const SegmentRemoveSourceWriteKeyInput: z.ZodObject<{
|
|
5
|
+
sourceId: z.ZodString;
|
|
6
|
+
writeKey: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SegmentRemoveSourceWriteKeyOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
status: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const segmentRemoveSourceWriteKey: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
sourceId: string;
|
|
15
|
+
writeKey: string;
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { segmentRemoveSourceWriteKey };
|
|
19
|
+
//# sourceMappingURL=remove-source-write-key.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-source-write-key.d.mts","names":[],"sources":["../../src/actions/remove-source-write-key.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAOhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/remove-source-write-key.ts
|
|
4
|
+
const SegmentRemoveSourceWriteKeyInput = z.object({
|
|
5
|
+
sourceId: z.string().describe("The unique identifier of the Source."),
|
|
6
|
+
writeKey: z.string().describe("The write key to remove from the Source.")
|
|
7
|
+
}).describe("Request parameters for removing a write key from a Segment Source.");
|
|
8
|
+
const SegmentRemoveSourceWriteKey_RemoveStatusSchema = z.object({ status: z.string().describe("Status of the removal operation, e.g., 'SUCCESS'.").nullable() });
|
|
9
|
+
const segmentRemoveSourceWriteKey = action("SEGMENT_REMOVE_SOURCE_WRITE_KEY", {
|
|
10
|
+
slug: "segment-remove-source-write-key",
|
|
11
|
+
name: "Remove Source Write Key",
|
|
12
|
+
description: "Tool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.",
|
|
13
|
+
input: SegmentRemoveSourceWriteKeyInput,
|
|
14
|
+
output: z.object({ data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable() }).describe("Response schema for removing a write key from a Source.")
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { segmentRemoveSourceWriteKey };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=remove-source-write-key.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-source-write-key.mjs","names":[],"sources":["../../src/actions/remove-source-write-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentRemoveSourceWriteKeyInput = z.object({\n sourceId: z.string().describe(\"The unique identifier of the Source.\"),\n writeKey: z.string().describe(\"The write key to remove from the Source.\"),\n}).describe(\"Request parameters for removing a write key from a Segment Source.\");\nconst SegmentRemoveSourceWriteKey_RemoveStatusSchema = z.object({\n status: z.string().describe(\"Status of the removal operation, e.g., 'SUCCESS'.\").nullable(),\n});\nexport const SegmentRemoveSourceWriteKeyOutput = z.object({\n data: SegmentRemoveSourceWriteKey_RemoveStatusSchema.nullable(),\n}).describe(\"Response schema for removing a write key from a Source.\");\n\nexport const segmentRemoveSourceWriteKey = action(\"SEGMENT_REMOVE_SOURCE_WRITE_KEY\", {\n slug: \"segment-remove-source-write-key\",\n name: \"Remove Source Write Key\",\n description: \"Tool to remove a write key from a Source. Use when you need to revoke an existing write key for security or rotation.\",\n input: SegmentRemoveSourceWriteKeyInput,\n output: SegmentRemoveSourceWriteKeyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC1E,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,iDAAiD,EAAE,OAAO,EAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EAC5F,CAAC;AAKD,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+C,EAAE,OAAO,EACxD,MAAM,+CAA+C,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/screen.ts
|
|
4
|
+
const SegmentScreenInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Name of the screen.").optional(),
|
|
6
|
+
userId: zod.z.string().describe("Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
7
|
+
context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional contextual information (e.g., ip, locale, device).").optional(),
|
|
8
|
+
writeKey: zod.z.string().describe("Write key for authentication if not using Basic or OAuth headers.").optional(),
|
|
9
|
+
timestamp: zod.z.string().describe("ISO-8601 timestamp when the screen event occurred; if omitted, server time is used.").optional(),
|
|
10
|
+
properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Free-form dictionary of screen properties.").optional(),
|
|
11
|
+
anonymousId: zod.z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
12
|
+
integrations: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
|
|
13
|
+
}).describe("Request model for recording a screen view via Segment HTTP Tracking API.\nExactly one of 'userId' or 'anonymousId' must be provided.");
|
|
14
|
+
const SegmentScreenOutput = zod.z.object({}).describe("Empty response indicating the screen event was accepted. Success is indicated by HTTP 200 status code.");
|
|
15
|
+
const segmentScreen = require_action.action("SEGMENT_SCREEN", {
|
|
16
|
+
slug: "segment-screen",
|
|
17
|
+
name: "Segment Screen Event",
|
|
18
|
+
description: "Tool to record a mobile app screen view. Use when tracking screen views in a mobile app via Segment HTTP Tracking API.",
|
|
19
|
+
input: SegmentScreenInput,
|
|
20
|
+
output: SegmentScreenOutput
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.segmentScreen = segmentScreen;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=screen.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screen.cjs","names":["z","action"],"sources":["../../src/actions/screen.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentScreenInput = z.object({\n name: z.string().describe(\"Name of the screen.\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or OAuth headers.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the screen event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of screen properties.\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a screen view via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentScreenOutput = z.object({}).describe(\"Empty response indicating the screen event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentScreen = action(\"SEGMENT_SCREEN\", {\n slug: \"segment-screen\",\n name: \"Segment Screen Event\",\n description: \"Tool to record a mobile app screen view. Use when tracking screen views in a mobile app via Segment HTTP Tracking API.\",\n input: SegmentScreenInput,\n output: SegmentScreenOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3H,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC9H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC/H,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC9G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,sIAAsI;AAClJ,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wGAAwG;AAEjK,MAAa,gBAAgBC,eAAAA,OAAO,kBAAkB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/screen.d.ts
|
|
4
|
+
declare const SegmentScreenInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
writeKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
10
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
|
+
anonymousId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const SegmentScreenOutput: z.ZodObject<{}, z.core.$strip>;
|
|
15
|
+
declare const segmentScreen: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
name?: string | undefined;
|
|
17
|
+
userId?: string | undefined;
|
|
18
|
+
context?: Record<string, unknown> | undefined;
|
|
19
|
+
writeKey?: string | undefined;
|
|
20
|
+
timestamp?: string | undefined;
|
|
21
|
+
properties?: Record<string, unknown> | undefined;
|
|
22
|
+
anonymousId?: string | undefined;
|
|
23
|
+
integrations?: Record<string, unknown> | undefined;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { segmentScreen };
|
|
27
|
+
//# sourceMappingURL=screen.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screen.d.cts","names":[],"sources":["../../src/actions/screen.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;cAUlB,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAEnB,aAAA,gCAAa,wBAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/screen.d.ts
|
|
4
|
+
declare const SegmentScreenInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
writeKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
10
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
|
+
anonymousId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const SegmentScreenOutput: z.ZodObject<{}, z.core.$strip>;
|
|
15
|
+
declare const segmentScreen: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
name?: string | undefined;
|
|
17
|
+
userId?: string | undefined;
|
|
18
|
+
context?: Record<string, unknown> | undefined;
|
|
19
|
+
writeKey?: string | undefined;
|
|
20
|
+
timestamp?: string | undefined;
|
|
21
|
+
properties?: Record<string, unknown> | undefined;
|
|
22
|
+
anonymousId?: string | undefined;
|
|
23
|
+
integrations?: Record<string, unknown> | undefined;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { segmentScreen };
|
|
27
|
+
//# sourceMappingURL=screen.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screen.d.mts","names":[],"sources":["../../src/actions/screen.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;cAUlB,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAEnB,aAAA,gCAAa,wBAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const segmentScreen = action("SEGMENT_SCREEN", {
|
|
4
|
+
slug: "segment-screen",
|
|
5
|
+
name: "Segment Screen Event",
|
|
6
|
+
description: "Tool to record a mobile app screen view. Use when tracking screen views in a mobile app via Segment HTTP Tracking API.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
name: z.string().describe("Name of the screen.").optional(),
|
|
9
|
+
userId: z.string().describe("Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
10
|
+
context: z.record(z.string(), z.unknown()).describe("Additional contextual information (e.g., ip, locale, device).").optional(),
|
|
11
|
+
writeKey: z.string().describe("Write key for authentication if not using Basic or OAuth headers.").optional(),
|
|
12
|
+
timestamp: z.string().describe("ISO-8601 timestamp when the screen event occurred; if omitted, server time is used.").optional(),
|
|
13
|
+
properties: z.record(z.string(), z.unknown()).describe("Free-form dictionary of screen properties.").optional(),
|
|
14
|
+
anonymousId: z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
15
|
+
integrations: z.record(z.string(), z.unknown()).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
|
|
16
|
+
}).describe("Request model for recording a screen view via Segment HTTP Tracking API.\nExactly one of 'userId' or 'anonymousId' must be provided."),
|
|
17
|
+
output: z.object({}).describe("Empty response indicating the screen event was accepted. Success is indicated by HTTP 200 status code.")
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { segmentScreen };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=screen.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screen.mjs","names":[],"sources":["../../src/actions/screen.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentScreenInput = z.object({\n name: z.string().describe(\"Name of the screen.\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or OAuth headers.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the screen event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of screen properties.\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a screen view via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentScreenOutput = z.object({}).describe(\"Empty response indicating the screen event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentScreen = action(\"SEGMENT_SCREEN\", {\n slug: \"segment-screen\",\n name: \"Segment Screen Event\",\n description: \"Tool to record a mobile app screen view. Use when tracking screen views in a mobile app via Segment HTTP Tracking API.\",\n input: SegmentScreenInput,\n output: SegmentScreenOutput,\n});\n"],"mappings":";;AAgBA,MAAa,gBAAgB,OAAO,kBAAkB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBgC,EAAE,OAAO;EACzC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC3H,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC9H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC/H,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC9G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC9I,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAAS,sIAOH;CACP,QAPiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wGAO/C;AACV,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/track.ts
|
|
4
|
+
const SegmentTrackInput = zod.z.object({
|
|
5
|
+
event: zod.z.string().describe("Name of the action performed (e.g., 'Item Purchased')."),
|
|
6
|
+
userId: zod.z.string().describe("Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
7
|
+
context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional contextual information (e.g., ip, locale, device).").optional(),
|
|
8
|
+
writeKey: zod.z.string().describe("Write key for authentication if not using Basic or OAuth headers.").optional(),
|
|
9
|
+
timestamp: zod.z.string().describe("ISO-8601 timestamp when the event occurred; if omitted, server time is used.").optional(),
|
|
10
|
+
properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Free-form dictionary of event-specific properties (e.g., revenue).").optional(),
|
|
11
|
+
anonymousId: zod.z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
12
|
+
integrations: zod.z.object({}).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
|
|
13
|
+
}).describe("Request model for recording a user event via Segment HTTP Tracking API.\nExactly one of 'userId' or 'anonymousId' must be provided.");
|
|
14
|
+
const SegmentTrackOutput = zod.z.object({}).describe("Empty response indicating the event was accepted. Success is indicated by HTTP 200 status code.");
|
|
15
|
+
const segmentTrack = require_action.action("SEGMENT_TRACK", {
|
|
16
|
+
slug: "segment-track",
|
|
17
|
+
name: "Segment Track Event",
|
|
18
|
+
description: "Tool to record a custom user event via Segment HTTP Tracking API. Use when sending events to Segment with valid identity.",
|
|
19
|
+
input: SegmentTrackInput,
|
|
20
|
+
output: SegmentTrackOutput
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.segmentTrack = segmentTrack;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=track.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"track.cjs","names":["z","action"],"sources":["../../src/actions/track.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentTrackInput = z.object({\n event: z.string().describe(\"Name of the action performed (e.g., 'Item Purchased').\"),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or OAuth headers.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of event-specific properties (e.g., revenue).\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.object({}).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a user event via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentTrackOutput = z.object({}).describe(\"Empty response indicating the event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentTrack = action(\"SEGMENT_TRACK\", {\n slug: \"segment-track\",\n name: \"Segment Track Event\",\n description: \"Tool to record a custom user event via Segment HTTP Tracking API. Use when sending events to Segment with valid identity.\",\n input: SegmentTrackInput,\n output: SegmentTrackOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3H,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC9H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACtI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,qIAAqI;AACjJ,MAAa,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iGAAiG;AAEzJ,MAAa,eAAeC,eAAAA,OAAO,iBAAiB;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/track.d.ts
|
|
4
|
+
declare const SegmentTrackInput: z.ZodObject<{
|
|
5
|
+
event: z.ZodString;
|
|
6
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
writeKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
10
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
|
+
anonymousId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
integrations: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const SegmentTrackOutput: z.ZodObject<{}, z.core.$strip>;
|
|
15
|
+
declare const segmentTrack: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
event: string;
|
|
17
|
+
userId?: string | undefined;
|
|
18
|
+
context?: Record<string, unknown> | undefined;
|
|
19
|
+
writeKey?: string | undefined;
|
|
20
|
+
timestamp?: string | undefined;
|
|
21
|
+
properties?: Record<string, unknown> | undefined;
|
|
22
|
+
anonymousId?: string | undefined;
|
|
23
|
+
integrations?: Record<string, never> | undefined;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { segmentTrack };
|
|
27
|
+
//# sourceMappingURL=track.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"track.d.cts","names":[],"sources":["../../src/actions/track.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;cAUjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAElB,YAAA,gCAAY,wBAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/track.d.ts
|
|
4
|
+
declare const SegmentTrackInput: z.ZodObject<{
|
|
5
|
+
event: z.ZodString;
|
|
6
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
writeKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
10
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
|
+
anonymousId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
integrations: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const SegmentTrackOutput: z.ZodObject<{}, z.core.$strip>;
|
|
15
|
+
declare const segmentTrack: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
event: string;
|
|
17
|
+
userId?: string | undefined;
|
|
18
|
+
context?: Record<string, unknown> | undefined;
|
|
19
|
+
writeKey?: string | undefined;
|
|
20
|
+
timestamp?: string | undefined;
|
|
21
|
+
properties?: Record<string, unknown> | undefined;
|
|
22
|
+
anonymousId?: string | undefined;
|
|
23
|
+
integrations?: Record<string, never> | undefined;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { segmentTrack };
|
|
27
|
+
//# sourceMappingURL=track.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"track.d.mts","names":[],"sources":["../../src/actions/track.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;cAUjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAElB,YAAA,gCAAY,wBAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const segmentTrack = action("SEGMENT_TRACK", {
|
|
4
|
+
slug: "segment-track",
|
|
5
|
+
name: "Segment Track Event",
|
|
6
|
+
description: "Tool to record a custom user event via Segment HTTP Tracking API. Use when sending events to Segment with valid identity.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
event: z.string().describe("Name of the action performed (e.g., 'Item Purchased')."),
|
|
9
|
+
userId: z.string().describe("Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
10
|
+
context: z.record(z.string(), z.unknown()).describe("Additional contextual information (e.g., ip, locale, device).").optional(),
|
|
11
|
+
writeKey: z.string().describe("Write key for authentication if not using Basic or OAuth headers.").optional(),
|
|
12
|
+
timestamp: z.string().describe("ISO-8601 timestamp when the event occurred; if omitted, server time is used.").optional(),
|
|
13
|
+
properties: z.record(z.string(), z.unknown()).describe("Free-form dictionary of event-specific properties (e.g., revenue).").optional(),
|
|
14
|
+
anonymousId: z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
15
|
+
integrations: z.object({}).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
|
|
16
|
+
}).describe("Request model for recording a user event via Segment HTTP Tracking API.\nExactly one of 'userId' or 'anonymousId' must be provided."),
|
|
17
|
+
output: z.object({}).describe("Empty response indicating the event was accepted. Success is indicated by HTTP 200 status code.")
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { segmentTrack };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=track.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"track.mjs","names":[],"sources":["../../src/actions/track.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentTrackInput = z.object({\n event: z.string().describe(\"Name of the action performed (e.g., 'Item Purchased').\"),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or OAuth headers.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of event-specific properties (e.g., revenue).\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.object({}).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for recording a user event via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentTrackOutput = z.object({}).describe(\"Empty response indicating the event was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentTrack = action(\"SEGMENT_TRACK\", {\n slug: \"segment-track\",\n name: \"Segment Track Event\",\n description: \"Tool to record a custom user event via Segment HTTP Tracking API. Use when sending events to Segment with valid identity.\",\n input: SegmentTrackInput,\n output: SegmentTrackOutput,\n});\n"],"mappings":";;AAgBA,MAAa,eAAe,OAAO,iBAAiB;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB+B,EAAE,OAAO;EACxC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;EACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC3H,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC9H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACxH,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EACtI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC9I,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,qIAOH;CACP,QAPgC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iGAO9C;AACV,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-source.ts
|
|
4
|
+
const SegmentUpdateSourceInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Human-readable name for the Source (displayName).").optional(),
|
|
6
|
+
slug: zod.z.string().describe("Slug that identifies the Source (config name).").optional(),
|
|
7
|
+
enabled: zod.z.boolean().describe("Whether the Source can send data.").optional(),
|
|
8
|
+
settings: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value settings specific to the Source type; see Sources catalog for required options.").optional(),
|
|
9
|
+
sourceId: zod.z.string().describe("The Source ID. Length 1–255 characters.")
|
|
10
|
+
}).describe("Parameters to update a Segment Source. Use alias 'sourceId' to identify the Source.");
|
|
11
|
+
const SegmentUpdateSource_LogosSchema = zod.z.object({
|
|
12
|
+
alt: zod.z.string().nullable().optional(),
|
|
13
|
+
mark: zod.z.string().nullable().optional(),
|
|
14
|
+
"default": zod.z.string().nullable().optional()
|
|
15
|
+
});
|
|
16
|
+
const SegmentUpdateSource_MetadataDetailSchema = zod.z.object({
|
|
17
|
+
id: zod.z.string().nullable().optional(),
|
|
18
|
+
name: zod.z.string().nullable().optional(),
|
|
19
|
+
slug: zod.z.string().nullable().optional(),
|
|
20
|
+
logos: SegmentUpdateSource_LogosSchema.nullable().optional(),
|
|
21
|
+
status: zod.z.string().nullable().optional(),
|
|
22
|
+
options: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).nullable().optional(),
|
|
23
|
+
categories: zod.z.array(zod.z.string()).nullable().optional(),
|
|
24
|
+
description: zod.z.string().nullable().optional(),
|
|
25
|
+
partnerOwned: zod.z.boolean().nullable().optional(),
|
|
26
|
+
isCloudEventSource: zod.z.boolean().nullable().optional()
|
|
27
|
+
});
|
|
28
|
+
const SegmentUpdateSource_SourceModelSchema = zod.z.object({
|
|
29
|
+
id: zod.z.string().nullable(),
|
|
30
|
+
name: zod.z.string().nullable().optional(),
|
|
31
|
+
slug: zod.z.string().nullable().optional(),
|
|
32
|
+
labels: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).nullable().optional(),
|
|
33
|
+
enabled: zod.z.boolean().nullable().optional(),
|
|
34
|
+
metadata: SegmentUpdateSource_MetadataDetailSchema.nullable().optional(),
|
|
35
|
+
settings: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
|
|
36
|
+
writeKeys: zod.z.array(zod.z.string()).nullable().optional(),
|
|
37
|
+
workspaceId: zod.z.string().nullable().optional()
|
|
38
|
+
});
|
|
39
|
+
const SegmentUpdateSource_UpdateSourceDataSchema = zod.z.object({ source: SegmentUpdateSource_SourceModelSchema.nullable() }).describe("Envelope for the updated Source.");
|
|
40
|
+
const SegmentUpdateSourceOutput = zod.z.object({ data: SegmentUpdateSource_UpdateSourceDataSchema.nullable() }).describe("Response model for updated Source.");
|
|
41
|
+
const segmentUpdateSource = require_action.action("SEGMENT_UPDATE_SOURCE", {
|
|
42
|
+
slug: "segment-update-source",
|
|
43
|
+
name: "Update Source",
|
|
44
|
+
description: "Tool to update a Source's metadata and settings. Use when you need to modify an existing Source after confirming its ID.",
|
|
45
|
+
input: SegmentUpdateSourceInput,
|
|
46
|
+
output: SegmentUpdateSourceOutput
|
|
47
|
+
});
|
|
48
|
+
//#endregion
|
|
49
|
+
exports.segmentUpdateSource = segmentUpdateSource;
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=update-source.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-source.cjs","names":["z","action"],"sources":["../../src/actions/update-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentUpdateSourceInput = z.object({\n name: z.string().describe(\"Human-readable name for the Source (displayName).\").optional(),\n slug: z.string().describe(\"Slug that identifies the Source (config name).\").optional(),\n enabled: z.boolean().describe(\"Whether the Source can send data.\").optional(),\n settings: z.record(z.string(), z.unknown()).describe(\"Key-value settings specific to the Source type; see Sources catalog for required options.\").optional(),\n sourceId: z.string().describe(\"The Source ID. Length 1–255 characters.\"),\n}).describe(\"Parameters to update a Segment Source. Use alias 'sourceId' to identify the Source.\");\nconst SegmentUpdateSource_LogosSchema = z.object({\n alt: z.string().nullable().optional(),\n mark: z.string().nullable().optional(),\n \"default\": z.string().nullable().optional(),\n});\nconst SegmentUpdateSource_MetadataDetailSchema = z.object({\n id: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n slug: z.string().nullable().optional(),\n logos: SegmentUpdateSource_LogosSchema.nullable().optional(),\n status: z.string().nullable().optional(),\n options: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n categories: z.array(z.string()).nullable().optional(),\n description: z.string().nullable().optional(),\n partnerOwned: z.boolean().nullable().optional(),\n isCloudEventSource: z.boolean().nullable().optional(),\n});\nconst SegmentUpdateSource_SourceModelSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable().optional(),\n slug: z.string().nullable().optional(),\n labels: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n enabled: z.boolean().nullable().optional(),\n metadata: SegmentUpdateSource_MetadataDetailSchema.nullable().optional(),\n settings: z.record(z.string(), z.unknown()).nullable().optional(),\n writeKeys: z.array(z.string()).nullable().optional(),\n workspaceId: z.string().nullable().optional(),\n});\nconst SegmentUpdateSource_UpdateSourceDataSchema = z.object({\n source: SegmentUpdateSource_SourceModelSchema.nullable(),\n}).describe(\"Envelope for the updated Source.\");\nexport const SegmentUpdateSourceOutput = z.object({\n data: SegmentUpdateSource_UpdateSourceDataSchema.nullable(),\n}).describe(\"Response model for updated Source.\");\n\nexport const segmentUpdateSource = action(\"SEGMENT_UPDATE_SOURCE\", {\n slug: \"segment-update-source\",\n name: \"Update Source\",\n description: \"Tool to update a Source's metadata and settings. Use when you need to modify an existing Source after confirming its ID.\",\n input: SegmentUpdateSourceInput,\n output: SegmentUpdateSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC3J,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AACzE,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5C,CAAC;AACD,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,OAAO,gCAAgC,SAAS,CAAC,CAAC,SAAS;CAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvC,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5C,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9C,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtD,CAAC;AACD,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACxB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzC,UAAU,yCAAyC,SAAS,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9C,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO,EAC1D,QAAQ,sCAAsC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAEhD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-source.d.ts
|
|
4
|
+
declare const SegmentUpdateSourceInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
7
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
|
+
sourceId: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const SegmentUpdateSourceOutput: z.ZodObject<{
|
|
12
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
13
|
+
source: z.ZodNullable<z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodString>;
|
|
15
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
18
|
+
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
19
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
logos: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
24
|
+
alt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
mark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
}, z.core.$strip>>>;
|
|
28
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
30
|
+
categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
31
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
partnerOwned: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
33
|
+
isCloudEventSource: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
35
|
+
settings: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
36
|
+
writeKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
37
|
+
workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
declare const segmentUpdateSource: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
|
+
sourceId: string;
|
|
43
|
+
name?: string | undefined;
|
|
44
|
+
slug?: string | undefined;
|
|
45
|
+
enabled?: boolean | undefined;
|
|
46
|
+
settings?: Record<string, unknown> | undefined;
|
|
47
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { segmentUpdateSource };
|
|
50
|
+
//# sourceMappingURL=update-source.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-source.d.cts","names":[],"sources":["../../src/actions/update-source.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAsCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA;;;;;aAM9B,MAAA;AAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-source.d.ts
|
|
4
|
+
declare const SegmentUpdateSourceInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
7
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
|
+
sourceId: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const SegmentUpdateSourceOutput: z.ZodObject<{
|
|
12
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
13
|
+
source: z.ZodNullable<z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodString>;
|
|
15
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
18
|
+
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
19
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
logos: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
24
|
+
alt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
mark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
}, z.core.$strip>>>;
|
|
28
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
30
|
+
categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
31
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
partnerOwned: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
33
|
+
isCloudEventSource: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
35
|
+
settings: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
36
|
+
writeKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
37
|
+
workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
declare const segmentUpdateSource: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
|
+
sourceId: string;
|
|
43
|
+
name?: string | undefined;
|
|
44
|
+
slug?: string | undefined;
|
|
45
|
+
enabled?: boolean | undefined;
|
|
46
|
+
settings?: Record<string, unknown> | undefined;
|
|
47
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { segmentUpdateSource };
|
|
50
|
+
//# sourceMappingURL=update-source.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-source.d.mts","names":[],"sources":["../../src/actions/update-source.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAsCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA;;;;;aAM9B,MAAA;AAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/update-source.ts
|
|
4
|
+
const SegmentUpdateSourceInput = z.object({
|
|
5
|
+
name: z.string().describe("Human-readable name for the Source (displayName).").optional(),
|
|
6
|
+
slug: z.string().describe("Slug that identifies the Source (config name).").optional(),
|
|
7
|
+
enabled: z.boolean().describe("Whether the Source can send data.").optional(),
|
|
8
|
+
settings: z.record(z.string(), z.unknown()).describe("Key-value settings specific to the Source type; see Sources catalog for required options.").optional(),
|
|
9
|
+
sourceId: z.string().describe("The Source ID. Length 1–255 characters.")
|
|
10
|
+
}).describe("Parameters to update a Segment Source. Use alias 'sourceId' to identify the Source.");
|
|
11
|
+
const SegmentUpdateSource_LogosSchema = z.object({
|
|
12
|
+
alt: z.string().nullable().optional(),
|
|
13
|
+
mark: z.string().nullable().optional(),
|
|
14
|
+
"default": z.string().nullable().optional()
|
|
15
|
+
});
|
|
16
|
+
const SegmentUpdateSource_MetadataDetailSchema = z.object({
|
|
17
|
+
id: z.string().nullable().optional(),
|
|
18
|
+
name: z.string().nullable().optional(),
|
|
19
|
+
slug: z.string().nullable().optional(),
|
|
20
|
+
logos: SegmentUpdateSource_LogosSchema.nullable().optional(),
|
|
21
|
+
status: z.string().nullable().optional(),
|
|
22
|
+
options: z.array(z.record(z.string(), z.unknown())).nullable().optional(),
|
|
23
|
+
categories: z.array(z.string()).nullable().optional(),
|
|
24
|
+
description: z.string().nullable().optional(),
|
|
25
|
+
partnerOwned: z.boolean().nullable().optional(),
|
|
26
|
+
isCloudEventSource: z.boolean().nullable().optional()
|
|
27
|
+
});
|
|
28
|
+
const SegmentUpdateSource_SourceModelSchema = z.object({
|
|
29
|
+
id: z.string().nullable(),
|
|
30
|
+
name: z.string().nullable().optional(),
|
|
31
|
+
slug: z.string().nullable().optional(),
|
|
32
|
+
labels: z.array(z.record(z.string(), z.unknown())).nullable().optional(),
|
|
33
|
+
enabled: z.boolean().nullable().optional(),
|
|
34
|
+
metadata: SegmentUpdateSource_MetadataDetailSchema.nullable().optional(),
|
|
35
|
+
settings: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
36
|
+
writeKeys: z.array(z.string()).nullable().optional(),
|
|
37
|
+
workspaceId: z.string().nullable().optional()
|
|
38
|
+
});
|
|
39
|
+
const SegmentUpdateSource_UpdateSourceDataSchema = z.object({ source: SegmentUpdateSource_SourceModelSchema.nullable() }).describe("Envelope for the updated Source.");
|
|
40
|
+
const segmentUpdateSource = action("SEGMENT_UPDATE_SOURCE", {
|
|
41
|
+
slug: "segment-update-source",
|
|
42
|
+
name: "Update Source",
|
|
43
|
+
description: "Tool to update a Source's metadata and settings. Use when you need to modify an existing Source after confirming its ID.",
|
|
44
|
+
input: SegmentUpdateSourceInput,
|
|
45
|
+
output: z.object({ data: SegmentUpdateSource_UpdateSourceDataSchema.nullable() }).describe("Response model for updated Source.")
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
export { segmentUpdateSource };
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=update-source.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-source.mjs","names":[],"sources":["../../src/actions/update-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentUpdateSourceInput = z.object({\n name: z.string().describe(\"Human-readable name for the Source (displayName).\").optional(),\n slug: z.string().describe(\"Slug that identifies the Source (config name).\").optional(),\n enabled: z.boolean().describe(\"Whether the Source can send data.\").optional(),\n settings: z.record(z.string(), z.unknown()).describe(\"Key-value settings specific to the Source type; see Sources catalog for required options.\").optional(),\n sourceId: z.string().describe(\"The Source ID. Length 1–255 characters.\"),\n}).describe(\"Parameters to update a Segment Source. Use alias 'sourceId' to identify the Source.\");\nconst SegmentUpdateSource_LogosSchema = z.object({\n alt: z.string().nullable().optional(),\n mark: z.string().nullable().optional(),\n \"default\": z.string().nullable().optional(),\n});\nconst SegmentUpdateSource_MetadataDetailSchema = z.object({\n id: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n slug: z.string().nullable().optional(),\n logos: SegmentUpdateSource_LogosSchema.nullable().optional(),\n status: z.string().nullable().optional(),\n options: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n categories: z.array(z.string()).nullable().optional(),\n description: z.string().nullable().optional(),\n partnerOwned: z.boolean().nullable().optional(),\n isCloudEventSource: z.boolean().nullable().optional(),\n});\nconst SegmentUpdateSource_SourceModelSchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable().optional(),\n slug: z.string().nullable().optional(),\n labels: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n enabled: z.boolean().nullable().optional(),\n metadata: SegmentUpdateSource_MetadataDetailSchema.nullable().optional(),\n settings: z.record(z.string(), z.unknown()).nullable().optional(),\n writeKeys: z.array(z.string()).nullable().optional(),\n workspaceId: z.string().nullable().optional(),\n});\nconst SegmentUpdateSource_UpdateSourceDataSchema = z.object({\n source: SegmentUpdateSource_SourceModelSchema.nullable(),\n}).describe(\"Envelope for the updated Source.\");\nexport const SegmentUpdateSourceOutput = z.object({\n data: SegmentUpdateSource_UpdateSourceDataSchema.nullable(),\n}).describe(\"Response model for updated Source.\");\n\nexport const segmentUpdateSource = action(\"SEGMENT_UPDATE_SOURCE\", {\n slug: \"segment-update-source\",\n name: \"Update Source\",\n description: \"Tool to update a Source's metadata and settings. Use when you need to modify an existing Source after confirming its ID.\",\n input: SegmentUpdateSourceInput,\n output: SegmentUpdateSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC3J,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AACzE,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,kCAAkC,EAAE,OAAO;CAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5C,CAAC;AACD,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,OAAO,gCAAgC,SAAS,CAAC,CAAC,SAAS;CAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5C,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9C,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtD,CAAC;AACD,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS;CACxB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzC,UAAU,yCAAyC,SAAS,CAAC,CAAC,SAAS;CACvE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9C,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO,EAC1D,QAAQ,sCAAsC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAK9C,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,SAAS,oCAOF;AACV,CAAC"}
|