@keystrokehq/segment 0.1.5 → 0.1.6
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/add-labels-to-source.cjs +1 -0
- package/dist/actions/add-labels-to-source.cjs.map +1 -1
- package/dist/actions/add-labels-to-source.d.cts +3 -22
- package/dist/actions/add-labels-to-source.d.cts.map +1 -1
- package/dist/actions/add-labels-to-source.d.mts +3 -22
- package/dist/actions/add-labels-to-source.d.mts.map +1 -1
- package/dist/actions/add-labels-to-source.mjs +1 -0
- package/dist/actions/add-labels-to-source.mjs.map +1 -1
- package/dist/actions/alias.cjs +1 -0
- package/dist/actions/alias.cjs.map +1 -1
- package/dist/actions/alias.d.cts +3 -22
- package/dist/actions/alias.d.cts.map +1 -1
- package/dist/actions/alias.d.mts +3 -22
- package/dist/actions/alias.d.mts.map +1 -1
- package/dist/actions/alias.mjs +1 -0
- package/dist/actions/alias.mjs.map +1 -1
- package/dist/actions/batch.cjs +1 -0
- package/dist/actions/batch.cjs.map +1 -1
- package/dist/actions/batch.d.cts +3 -20
- package/dist/actions/batch.d.cts.map +1 -1
- package/dist/actions/batch.d.mts +3 -20
- package/dist/actions/batch.d.mts.map +1 -1
- package/dist/actions/batch.mjs +1 -0
- package/dist/actions/batch.mjs.map +1 -1
- package/dist/actions/delete-source.cjs +1 -0
- package/dist/actions/delete-source.cjs.map +1 -1
- package/dist/actions/delete-source.d.cts +3 -17
- package/dist/actions/delete-source.d.cts.map +1 -1
- package/dist/actions/delete-source.d.mts +3 -17
- package/dist/actions/delete-source.d.mts.map +1 -1
- package/dist/actions/delete-source.mjs +1 -0
- package/dist/actions/delete-source.mjs.map +1 -1
- package/dist/actions/get-daily-per-source-api-calls-usage.cjs +1 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.cjs.map +1 -1
- package/dist/actions/get-daily-per-source-api-calls-usage.d.cts +3 -21
- package/dist/actions/get-daily-per-source-api-calls-usage.d.cts.map +1 -1
- package/dist/actions/get-daily-per-source-api-calls-usage.d.mts +3 -21
- package/dist/actions/get-daily-per-source-api-calls-usage.d.mts.map +1 -1
- package/dist/actions/get-daily-per-source-api-calls-usage.mjs +1 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.mjs.map +1 -1
- package/dist/actions/get-destination.cjs +1 -0
- package/dist/actions/get-destination.cjs.map +1 -1
- package/dist/actions/get-destination.d.cts +3 -17
- package/dist/actions/get-destination.d.cts.map +1 -1
- package/dist/actions/get-destination.d.mts +3 -17
- package/dist/actions/get-destination.d.mts.map +1 -1
- package/dist/actions/get-destination.mjs +1 -0
- package/dist/actions/get-destination.mjs.map +1 -1
- package/dist/actions/group.cjs +1 -0
- package/dist/actions/group.cjs.map +1 -1
- package/dist/actions/group.d.cts +3 -24
- package/dist/actions/group.d.cts.map +1 -1
- package/dist/actions/group.d.mts +3 -24
- package/dist/actions/group.d.mts.map +1 -1
- package/dist/actions/group.mjs +1 -0
- package/dist/actions/group.mjs.map +1 -1
- package/dist/actions/identify.cjs +1 -0
- package/dist/actions/identify.cjs.map +1 -1
- package/dist/actions/identify.d.cts +3 -24
- package/dist/actions/identify.d.cts.map +1 -1
- package/dist/actions/identify.d.mts +3 -24
- package/dist/actions/identify.d.mts.map +1 -1
- package/dist/actions/identify.mjs +1 -0
- package/dist/actions/identify.mjs.map +1 -1
- package/dist/actions/import-historical-data.cjs +1 -0
- package/dist/actions/import-historical-data.cjs.map +1 -1
- package/dist/actions/import-historical-data.d.cts +3 -19
- package/dist/actions/import-historical-data.d.cts.map +1 -1
- package/dist/actions/import-historical-data.d.mts +3 -19
- package/dist/actions/import-historical-data.d.mts.map +1 -1
- package/dist/actions/import-historical-data.mjs +1 -0
- package/dist/actions/import-historical-data.mjs.map +1 -1
- package/dist/actions/list-connected-warehouses-from-source.cjs +1 -0
- package/dist/actions/list-connected-warehouses-from-source.cjs.map +1 -1
- package/dist/actions/list-connected-warehouses-from-source.d.cts +3 -21
- package/dist/actions/list-connected-warehouses-from-source.d.cts.map +1 -1
- package/dist/actions/list-connected-warehouses-from-source.d.mts +3 -21
- package/dist/actions/list-connected-warehouses-from-source.d.mts.map +1 -1
- package/dist/actions/list-connected-warehouses-from-source.mjs +1 -0
- package/dist/actions/list-connected-warehouses-from-source.mjs.map +1 -1
- package/dist/actions/list-delivery-metrics-summary-from-destination.cjs +1 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.cjs.map +1 -1
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts +3 -21
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts.map +1 -1
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts +3 -21
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts.map +1 -1
- package/dist/actions/list-delivery-metrics-summary-from-destination.mjs +1 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.mjs.map +1 -1
- package/dist/actions/list-schema-settings-in-source.cjs +1 -0
- package/dist/actions/list-schema-settings-in-source.cjs.map +1 -1
- package/dist/actions/list-schema-settings-in-source.d.cts +3 -17
- package/dist/actions/list-schema-settings-in-source.d.cts.map +1 -1
- package/dist/actions/list-schema-settings-in-source.d.mts +3 -17
- package/dist/actions/list-schema-settings-in-source.d.mts.map +1 -1
- package/dist/actions/list-schema-settings-in-source.mjs +1 -0
- package/dist/actions/list-schema-settings-in-source.mjs.map +1 -1
- package/dist/actions/page.cjs +1 -0
- package/dist/actions/page.cjs.map +1 -1
- package/dist/actions/page.d.cts +3 -25
- package/dist/actions/page.d.cts.map +1 -1
- package/dist/actions/page.d.mts +3 -25
- package/dist/actions/page.d.mts.map +1 -1
- package/dist/actions/page.mjs +1 -0
- package/dist/actions/page.mjs.map +1 -1
- package/dist/actions/remove-source-write-key.cjs +1 -0
- package/dist/actions/remove-source-write-key.cjs.map +1 -1
- package/dist/actions/remove-source-write-key.d.cts +3 -18
- package/dist/actions/remove-source-write-key.d.cts.map +1 -1
- package/dist/actions/remove-source-write-key.d.mts +3 -18
- package/dist/actions/remove-source-write-key.d.mts.map +1 -1
- package/dist/actions/remove-source-write-key.mjs +1 -0
- package/dist/actions/remove-source-write-key.mjs.map +1 -1
- package/dist/actions/screen.cjs +1 -0
- package/dist/actions/screen.cjs.map +1 -1
- package/dist/actions/screen.d.cts +3 -24
- package/dist/actions/screen.d.cts.map +1 -1
- package/dist/actions/screen.d.mts +3 -24
- package/dist/actions/screen.d.mts.map +1 -1
- package/dist/actions/screen.mjs +1 -0
- package/dist/actions/screen.mjs.map +1 -1
- package/dist/actions/track.cjs +1 -0
- package/dist/actions/track.cjs.map +1 -1
- package/dist/actions/track.d.cts +3 -24
- package/dist/actions/track.d.cts.map +1 -1
- package/dist/actions/track.d.mts +3 -24
- package/dist/actions/track.d.mts.map +1 -1
- package/dist/actions/track.mjs +1 -0
- package/dist/actions/track.mjs.map +1 -1
- package/dist/actions/update-source.cjs +1 -0
- package/dist/actions/update-source.cjs.map +1 -1
- package/dist/actions/update-source.d.cts +3 -21
- package/dist/actions/update-source.d.cts.map +1 -1
- package/dist/actions/update-source.d.mts +3 -21
- package/dist/actions/update-source.d.mts.map +1 -1
- package/dist/actions/update-source.mjs +1 -0
- package/dist/actions/update-source.mjs.map +1 -1
- package/dist/app.cjs +5 -4
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["segment","executeSegmentTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { segment } from \"./app\";\nimport { executeSegmentTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["segment","executeSegmentTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { segment } from \"./app\";\nimport { executeSegmentTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof segment.credential> {\n return segment.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSegmentTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,OAAOA,YAAAA,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { segment } from \"./app\";\nimport { executeSegmentTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { segment } from \"./app\";\nimport { executeSegmentTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof segment.credential> {\n return segment.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSegmentTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-labels-to-source.cjs","names":["z","action"],"sources":["../../src/actions/add-labels-to-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentAddLabelsToSourceInput = z.object({\n labels: z.array(z.object({\n key: z.string().describe(\"Label key\"),\n value: z.string().describe(\"Label value\"),\n}).passthrough().describe(\"A single key/value label.\")).describe(\"List of labels to associate with the Source. Must include at least one label.\"),\n sourceId: z.string().describe(\"ID of the Source (1-255 characters)\"),\n}).describe(\"Request schema to add existing labels to a Segment Source.\");\nconst SegmentAddLabelsToSource_LabelItemSchema = z.object({\n key: z.string().describe(\"Label key\").nullable(),\n value: z.string().describe(\"Label value\").nullable(),\n}).passthrough().describe(\"A single key/value label.\");\nconst SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema = z.object({\n labels: z.array(SegmentAddLabelsToSource_LabelItemSchema).describe(\"Labels now associated with the Source\"),\n}).passthrough().describe(\"Envelope containing the response labels.\");\nexport const SegmentAddLabelsToSourceOutput = z.object({\n data: SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema containing all labels now associated with the Source.\");\n\nexport const segmentAddLabelsToSource = action(\"SEGMENT_ADD_LABELS_TO_SOURCE\", {\n slug: \"segment-add-labels-to-source\",\n name: \"Add Labels to Source\",\n description: \"Tool to add existing labels to a Source. Use when you have the source ID and want to tag it with metadata labels.\",\n input: SegmentAddLabelsToSourceInput,\n output: SegmentAddLabelsToSourceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-labels-to-source.cjs","names":["z","action"],"sources":["../../src/actions/add-labels-to-source.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentAddLabelsToSourceInput = z.object({\n labels: z.array(z.object({\n key: z.string().describe(\"Label key\"),\n value: z.string().describe(\"Label value\"),\n}).passthrough().describe(\"A single key/value label.\")).describe(\"List of labels to associate with the Source. Must include at least one label.\"),\n sourceId: z.string().describe(\"ID of the Source (1-255 characters)\"),\n}).describe(\"Request schema to add existing labels to a Segment Source.\");\nconst SegmentAddLabelsToSource_LabelItemSchema = z.object({\n key: z.string().describe(\"Label key\").nullable(),\n value: z.string().describe(\"Label value\").nullable(),\n}).passthrough().describe(\"A single key/value label.\");\nconst SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema = z.object({\n labels: z.array(SegmentAddLabelsToSource_LabelItemSchema).describe(\"Labels now associated with the Source\"),\n}).passthrough().describe(\"Envelope containing the response labels.\");\nexport const SegmentAddLabelsToSourceOutput = z.object({\n data: SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema containing all labels now associated with the Source.\");\n\nexport const segmentAddLabelsToSource: AppAction<\n typeof SegmentAddLabelsToSourceInput,\n typeof SegmentAddLabelsToSourceOutput,\n typeof segment.credential\n> = action(\"SEGMENT_ADD_LABELS_TO_SOURCE\", {\n slug: \"segment-add-labels-to-source\",\n name: \"Add Labels to Source\",\n description: \"Tool to add existing labels to a Source. Use when you have the source ID and want to tag it with metadata labels.\",\n input: SegmentAddLabelsToSourceInput,\n output: SegmentAddLabelsToSourceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;EACpC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CAC1C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,CAAC,SAAS,+EAA+E;CAC9I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;AACrE,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;AACrD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B;AACrD,MAAM,+DAA+DA,IAAAA,EAAE,OAAO,EAC5E,QAAQA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,uCAAuC,EAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAM,6DAA6D,SAAS,EAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AAEjG,MAAa,2BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/add-labels-to-source.d.ts
|
|
@@ -16,28 +18,7 @@ declare const SegmentAddLabelsToSourceOutput: z.ZodObject<{
|
|
|
16
18
|
}, z.core.$loose>>;
|
|
17
19
|
}, z.core.$loose>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const segmentAddLabelsToSource:
|
|
20
|
-
labels: {
|
|
21
|
-
[x: string]: unknown;
|
|
22
|
-
key: string;
|
|
23
|
-
value: string;
|
|
24
|
-
}[];
|
|
25
|
-
sourceId: string;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
region: z.ZodString;
|
|
32
|
-
generic_api_key: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
34
|
-
connectionId: z.ZodString;
|
|
35
|
-
entityId: z.ZodString;
|
|
36
|
-
instanceId: z.ZodString;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
region: z.ZodString;
|
|
39
|
-
generic_api_key: z.ZodString;
|
|
40
|
-
}, z.core.$strip>>]>;
|
|
21
|
+
declare const segmentAddLabelsToSource: AppAction<typeof SegmentAddLabelsToSourceInput, typeof SegmentAddLabelsToSourceOutput, typeof segment.credential>;
|
|
41
22
|
//#endregion
|
|
42
23
|
export { segmentAddLabelsToSource };
|
|
43
24
|
//# sourceMappingURL=add-labels-to-source.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-labels-to-source.d.cts","names":[],"sources":["../../src/actions/add-labels-to-source.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-labels-to-source.d.cts","names":[],"sources":["../../src/actions/add-labels-to-source.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;cAc7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/add-labels-to-source.d.ts
|
|
@@ -16,28 +18,7 @@ declare const SegmentAddLabelsToSourceOutput: z.ZodObject<{
|
|
|
16
18
|
}, z.core.$loose>>;
|
|
17
19
|
}, z.core.$loose>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const segmentAddLabelsToSource:
|
|
20
|
-
labels: {
|
|
21
|
-
[x: string]: unknown;
|
|
22
|
-
key: string;
|
|
23
|
-
value: string;
|
|
24
|
-
}[];
|
|
25
|
-
sourceId: string;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
region: z.ZodString;
|
|
32
|
-
generic_api_key: z.ZodString;
|
|
33
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
34
|
-
connectionId: z.ZodString;
|
|
35
|
-
entityId: z.ZodString;
|
|
36
|
-
instanceId: z.ZodString;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
region: z.ZodString;
|
|
39
|
-
generic_api_key: z.ZodString;
|
|
40
|
-
}, z.core.$strip>>]>;
|
|
21
|
+
declare const segmentAddLabelsToSource: AppAction<typeof SegmentAddLabelsToSourceInput, typeof SegmentAddLabelsToSourceOutput, typeof segment.credential>;
|
|
41
22
|
//#endregion
|
|
42
23
|
export { segmentAddLabelsToSource };
|
|
43
24
|
//# sourceMappingURL=add-labels-to-source.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-labels-to-source.d.mts","names":[],"sources":["../../src/actions/add-labels-to-source.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-labels-to-source.d.mts","names":[],"sources":["../../src/actions/add-labels-to-source.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;cAc7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-labels-to-source.mjs","names":[],"sources":["../../src/actions/add-labels-to-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentAddLabelsToSourceInput = z.object({\n labels: z.array(z.object({\n key: z.string().describe(\"Label key\"),\n value: z.string().describe(\"Label value\"),\n}).passthrough().describe(\"A single key/value label.\")).describe(\"List of labels to associate with the Source. Must include at least one label.\"),\n sourceId: z.string().describe(\"ID of the Source (1-255 characters)\"),\n}).describe(\"Request schema to add existing labels to a Segment Source.\");\nconst SegmentAddLabelsToSource_LabelItemSchema = z.object({\n key: z.string().describe(\"Label key\").nullable(),\n value: z.string().describe(\"Label value\").nullable(),\n}).passthrough().describe(\"A single key/value label.\");\nconst SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema = z.object({\n labels: z.array(SegmentAddLabelsToSource_LabelItemSchema).describe(\"Labels now associated with the Source\"),\n}).passthrough().describe(\"Envelope containing the response labels.\");\nexport const SegmentAddLabelsToSourceOutput = z.object({\n data: SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema containing all labels now associated with the Source.\");\n\nexport const segmentAddLabelsToSource = action(\"SEGMENT_ADD_LABELS_TO_SOURCE\", {\n slug: \"segment-add-labels-to-source\",\n name: \"Add Labels to Source\",\n description: \"Tool to add existing labels to a Source. Use when you have the source ID and want to tag it with metadata labels.\",\n input: SegmentAddLabelsToSourceInput,\n output: SegmentAddLabelsToSourceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-labels-to-source.mjs","names":[],"sources":["../../src/actions/add-labels-to-source.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentAddLabelsToSourceInput = z.object({\n labels: z.array(z.object({\n key: z.string().describe(\"Label key\"),\n value: z.string().describe(\"Label value\"),\n}).passthrough().describe(\"A single key/value label.\")).describe(\"List of labels to associate with the Source. Must include at least one label.\"),\n sourceId: z.string().describe(\"ID of the Source (1-255 characters)\"),\n}).describe(\"Request schema to add existing labels to a Segment Source.\");\nconst SegmentAddLabelsToSource_LabelItemSchema = z.object({\n key: z.string().describe(\"Label key\").nullable(),\n value: z.string().describe(\"Label value\").nullable(),\n}).passthrough().describe(\"A single key/value label.\");\nconst SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema = z.object({\n labels: z.array(SegmentAddLabelsToSource_LabelItemSchema).describe(\"Labels now associated with the Source\"),\n}).passthrough().describe(\"Envelope containing the response labels.\");\nexport const SegmentAddLabelsToSourceOutput = z.object({\n data: SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema containing all labels now associated with the Source.\");\n\nexport const segmentAddLabelsToSource: AppAction<\n typeof SegmentAddLabelsToSourceInput,\n typeof SegmentAddLabelsToSourceOutput,\n typeof segment.credential\n> = action(\"SEGMENT_ADD_LABELS_TO_SOURCE\", {\n slug: \"segment-add-labels-to-source\",\n name: \"Add Labels to Source\",\n description: \"Tool to add existing labels to a Source. Use when you have the source ID and want to tag it with metadata labels.\",\n input: SegmentAddLabelsToSourceInput,\n output: SegmentAddLabelsToSourceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO;CACpD,QAAQ,EAAE,MAAM,EAAE,OAAO;EACzB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;EACpC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CAC1C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,CAAC,SAAS,+EAA+E;CAC9I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;AACrE,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAA2C,EAAE,OAAO;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;AACrD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B;AACrD,MAAM,+DAA+D,EAAE,OAAO,EAC5E,QAAQ,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,uCAAuC,EAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAKpE,MAAa,2BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb4C,EAAE,OAAO,EACrD,MAAM,6DAA6D,SAAS,EAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAWhB;AACV,CAAC"}
|
package/dist/actions/alias.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias.cjs","names":["z","action"],"sources":["../../src/actions/alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentAliasInput = z.object({\n userId: z.string().describe(\"New known unique identifier for the user.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional context (e.g., ip, locale).\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp for the event; server time used if omitted.\").optional(),\n previousId: z.string().describe(\"Previous unique identifier for the user.\"),\n anonymousId: z.string().describe(\"Anonymous identifier for the user.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls.\").optional(),\n}).describe(\"Request model for aliasing two user identities via Segment HTTP API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentAliasOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating alias was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentAlias = action(\"SEGMENT_ALIAS\", {\n slug: \"segment-alias\",\n name: \"Segment Alias\",\n description: \"Tool to alias a previous user ID to a new user ID. Use when merging anonymous and known identities.\",\n input: SegmentAliasInput,\n output: SegmentAliasOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"alias.cjs","names":["z","action"],"sources":["../../src/actions/alias.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentAliasInput = z.object({\n userId: z.string().describe(\"New known unique identifier for the user.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional context (e.g., ip, locale).\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp for the event; server time used if omitted.\").optional(),\n previousId: z.string().describe(\"Previous unique identifier for the user.\"),\n anonymousId: z.string().describe(\"Anonymous identifier for the user.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls.\").optional(),\n}).describe(\"Request model for aliasing two user identities via Segment HTTP API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentAliasOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating alias was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentAlias: AppAction<\n typeof SegmentAliasInput,\n typeof SegmentAliasOutput,\n typeof segment.credential\n> = action(\"SEGMENT_ALIAS\", {\n slug: \"segment-alias\",\n name: \"Segment Alias\",\n description: \"Tool to alias a previous user ID to a new user ID. Use when merging anonymous and known identities.\",\n input: SegmentAliasInput,\n output: SegmentAliasOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACvG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAChF,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,kIAAkI;AAC9I,MAAa,qBAAqBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6FAA6F;AAE1K,MAAa,eAITC,eAAAA,OAAO,iBAAiB;CAC1B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
package/dist/actions/alias.d.cts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/alias.d.ts
|
|
@@ -10,28 +12,7 @@ declare const SegmentAliasInput: z.ZodObject<{
|
|
|
10
12
|
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
13
|
}, z.core.$strip>;
|
|
12
14
|
declare const SegmentAliasOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
13
|
-
declare const segmentAlias:
|
|
14
|
-
previousId: string;
|
|
15
|
-
userId?: string | undefined;
|
|
16
|
-
context?: Record<string, unknown> | undefined;
|
|
17
|
-
timestamp?: string | undefined;
|
|
18
|
-
anonymousId?: string | undefined;
|
|
19
|
-
integrations?: Record<string, unknown> | undefined;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
region: z.ZodString;
|
|
26
|
-
generic_api_key: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
region: z.ZodString;
|
|
33
|
-
generic_api_key: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>;
|
|
15
|
+
declare const segmentAlias: AppAction<typeof SegmentAliasInput, typeof SegmentAliasOutput, typeof segment.credential>;
|
|
35
16
|
//#endregion
|
|
36
17
|
export { segmentAlias };
|
|
37
18
|
//# sourceMappingURL=alias.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias.d.cts","names":[],"sources":["../../src/actions/alias.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"alias.d.cts","names":[],"sources":["../../src/actions/alias.ts"],"mappings":";;;;;cAMa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;cAQjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAElB,YAAA,EAAc,SAAA,QAClB,iBAAA,SACA,kBAAA,SACA,OAAA,CAAQ,UAAA"}
|
package/dist/actions/alias.d.mts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/alias.d.ts
|
|
@@ -10,28 +12,7 @@ declare const SegmentAliasInput: z.ZodObject<{
|
|
|
10
12
|
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
13
|
}, z.core.$strip>;
|
|
12
14
|
declare const SegmentAliasOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
13
|
-
declare const segmentAlias:
|
|
14
|
-
previousId: string;
|
|
15
|
-
userId?: string | undefined;
|
|
16
|
-
context?: Record<string, unknown> | undefined;
|
|
17
|
-
timestamp?: string | undefined;
|
|
18
|
-
anonymousId?: string | undefined;
|
|
19
|
-
integrations?: Record<string, unknown> | undefined;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
region: z.ZodString;
|
|
26
|
-
generic_api_key: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
region: z.ZodString;
|
|
33
|
-
generic_api_key: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>;
|
|
15
|
+
declare const segmentAlias: AppAction<typeof SegmentAliasInput, typeof SegmentAliasOutput, typeof segment.credential>;
|
|
35
16
|
//#endregion
|
|
36
17
|
export { segmentAlias };
|
|
37
18
|
//# sourceMappingURL=alias.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias.d.mts","names":[],"sources":["../../src/actions/alias.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"alias.d.mts","names":[],"sources":["../../src/actions/alias.ts"],"mappings":";;;;;cAMa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;cAQjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAElB,YAAA,EAAc,SAAA,QAClB,iBAAA,SACA,kBAAA,SACA,OAAA,CAAQ,UAAA"}
|
package/dist/actions/alias.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias.mjs","names":[],"sources":["../../src/actions/alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentAliasInput = z.object({\n userId: z.string().describe(\"New known unique identifier for the user.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional context (e.g., ip, locale).\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp for the event; server time used if omitted.\").optional(),\n previousId: z.string().describe(\"Previous unique identifier for the user.\"),\n anonymousId: z.string().describe(\"Anonymous identifier for the user.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls.\").optional(),\n}).describe(\"Request model for aliasing two user identities via Segment HTTP API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentAliasOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating alias was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentAlias = action(\"SEGMENT_ALIAS\", {\n slug: \"segment-alias\",\n name: \"Segment Alias\",\n description: \"Tool to alias a previous user ID to a new user ID. Use when merging anonymous and known identities.\",\n input: SegmentAliasInput,\n output: SegmentAliasOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"alias.mjs","names":[],"sources":["../../src/actions/alias.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentAliasInput = z.object({\n userId: z.string().describe(\"New known unique identifier for the user.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional context (e.g., ip, locale).\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp for the event; server time used if omitted.\").optional(),\n previousId: z.string().describe(\"Previous unique identifier for the user.\"),\n anonymousId: z.string().describe(\"Anonymous identifier for the user.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Per-destination enable/disable controls.\").optional(),\n}).describe(\"Request model for aliasing two user identities via Segment HTTP API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentAliasOutput = z.record(z.string(), z.unknown()).describe(\"Empty response indicating alias was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentAlias: AppAction<\n typeof SegmentAliasInput,\n typeof SegmentAliasOutput,\n typeof segment.credential\n> = action(\"SEGMENT_ALIAS\", {\n slug: \"segment-alias\",\n name: \"Segment Alias\",\n description: \"Tool to alias a previous user ID to a new user ID. Use when merging anonymous and known identities.\",\n input: SegmentAliasInput,\n output: SegmentAliasOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,eAIT,OAAO,iBAAiB;CAC1B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB+B,EAAE,OAAO;EACxC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACvG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAChF,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,kIAWH;CACP,QAXgC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6FAWnE;AACV,CAAC"}
|
package/dist/actions/batch.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.cjs","names":["z","action"],"sources":["../../src/actions/batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentBatchInput = z.object({\n batch: z.array(z.record(z.string(), z.unknown())).describe(\"Array of analytics calls (identify, track, page, screen, or group). Each item must include 'type' and required fields per call type.\"),\n context: z.record(z.string(), z.unknown()).describe(\"Optional top-level context merged into each call's context.\").optional(),\n writeKey: z.string().describe(\"Segment write key; required when using Bearer authentication.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Optional top-level integrations merged into each call's integrations.\").optional(),\n}).describe(\"Request schema for sending multiple analytics calls in a single batch request.\");\nexport const SegmentBatchOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for the batch call. Typically empty for accepted requests.\");\n\nexport const segmentBatch = action(\"SEGMENT_BATCH\", {\n slug: \"segment-batch\",\n name: \"Batch Segment Analytics Events\",\n description: \"Tool to send multiple analytics calls in a single batch request. Use when you want to reduce HTTP overhead by batching Identify/Track/Page/Screen/Group calls into one request.\",\n input: SegmentBatchInput,\n output: SegmentBatchOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"batch.cjs","names":["z","action"],"sources":["../../src/actions/batch.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentBatchInput = z.object({\n batch: z.array(z.record(z.string(), z.unknown())).describe(\"Array of analytics calls (identify, track, page, screen, or group). Each item must include 'type' and required fields per call type.\"),\n context: z.record(z.string(), z.unknown()).describe(\"Optional top-level context merged into each call's context.\").optional(),\n writeKey: z.string().describe(\"Segment write key; required when using Bearer authentication.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Optional top-level integrations merged into each call's integrations.\").optional(),\n}).describe(\"Request schema for sending multiple analytics calls in a single batch request.\");\nexport const SegmentBatchOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for the batch call. Typically empty for accepted requests.\");\n\nexport const segmentBatch: AppAction<\n typeof SegmentBatchInput,\n typeof SegmentBatchOutput,\n typeof segment.credential\n> = action(\"SEGMENT_BATCH\", {\n slug: \"segment-batch\",\n name: \"Batch Segment Analytics Events\",\n description: \"Tool to send multiple analytics calls in a single batch request. Use when you want to reduce HTTP overhead by batching Identify/Track/Page/Screen/Group calls into one request.\",\n input: SegmentBatchInput,\n output: SegmentBatchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,sIAAsI;CACjM,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAC5H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACxG,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAa,qBAAqBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4EAA4E;AAEzJ,MAAa,eAITC,eAAAA,OAAO,iBAAiB;CAC1B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
package/dist/actions/batch.d.cts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/batch.d.ts
|
|
@@ -8,26 +10,7 @@ declare const SegmentBatchInput: z.ZodObject<{
|
|
|
8
10
|
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
11
|
}, z.core.$strip>;
|
|
10
12
|
declare const SegmentBatchOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
|
-
declare const segmentBatch:
|
|
12
|
-
batch: Record<string, unknown>[];
|
|
13
|
-
context?: Record<string, unknown> | undefined;
|
|
14
|
-
writeKey?: string | undefined;
|
|
15
|
-
integrations?: Record<string, unknown> | undefined;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
17
|
-
connectionId: z.ZodString;
|
|
18
|
-
entityId: z.ZodString;
|
|
19
|
-
instanceId: z.ZodString;
|
|
20
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
-
region: z.ZodString;
|
|
22
|
-
generic_api_key: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
region: z.ZodString;
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const segmentBatch: AppAction<typeof SegmentBatchInput, typeof SegmentBatchOutput, typeof segment.credential>;
|
|
31
14
|
//#endregion
|
|
32
15
|
export { segmentBatch };
|
|
33
16
|
//# sourceMappingURL=batch.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.d.cts","names":[],"sources":["../../src/actions/batch.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"batch.d.cts","names":[],"sources":["../../src/actions/batch.ts"],"mappings":";;;;;cAMa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;cAMjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAElB,YAAA,EAAc,SAAA,QAClB,iBAAA,SACA,kBAAA,SACA,OAAA,CAAQ,UAAA"}
|
package/dist/actions/batch.d.mts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/batch.d.ts
|
|
@@ -8,26 +10,7 @@ declare const SegmentBatchInput: z.ZodObject<{
|
|
|
8
10
|
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
11
|
}, z.core.$strip>;
|
|
10
12
|
declare const SegmentBatchOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
|
-
declare const segmentBatch:
|
|
12
|
-
batch: Record<string, unknown>[];
|
|
13
|
-
context?: Record<string, unknown> | undefined;
|
|
14
|
-
writeKey?: string | undefined;
|
|
15
|
-
integrations?: Record<string, unknown> | undefined;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
17
|
-
connectionId: z.ZodString;
|
|
18
|
-
entityId: z.ZodString;
|
|
19
|
-
instanceId: z.ZodString;
|
|
20
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
-
region: z.ZodString;
|
|
22
|
-
generic_api_key: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
region: z.ZodString;
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const segmentBatch: AppAction<typeof SegmentBatchInput, typeof SegmentBatchOutput, typeof segment.credential>;
|
|
31
14
|
//#endregion
|
|
32
15
|
export { segmentBatch };
|
|
33
16
|
//# sourceMappingURL=batch.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.d.mts","names":[],"sources":["../../src/actions/batch.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"batch.d.mts","names":[],"sources":["../../src/actions/batch.ts"],"mappings":";;;;;cAMa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;cAMjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAElB,YAAA,EAAc,SAAA,QAClB,iBAAA,SACA,kBAAA,SACA,OAAA,CAAQ,UAAA"}
|
package/dist/actions/batch.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.mjs","names":[],"sources":["../../src/actions/batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentBatchInput = z.object({\n batch: z.array(z.record(z.string(), z.unknown())).describe(\"Array of analytics calls (identify, track, page, screen, or group). Each item must include 'type' and required fields per call type.\"),\n context: z.record(z.string(), z.unknown()).describe(\"Optional top-level context merged into each call's context.\").optional(),\n writeKey: z.string().describe(\"Segment write key; required when using Bearer authentication.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Optional top-level integrations merged into each call's integrations.\").optional(),\n}).describe(\"Request schema for sending multiple analytics calls in a single batch request.\");\nexport const SegmentBatchOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for the batch call. Typically empty for accepted requests.\");\n\nexport const segmentBatch = action(\"SEGMENT_BATCH\", {\n slug: \"segment-batch\",\n name: \"Batch Segment Analytics Events\",\n description: \"Tool to send multiple analytics calls in a single batch request. Use when you want to reduce HTTP overhead by batching Identify/Track/Page/Screen/Group calls into one request.\",\n input: SegmentBatchInput,\n output: SegmentBatchOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"batch.mjs","names":[],"sources":["../../src/actions/batch.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentBatchInput = z.object({\n batch: z.array(z.record(z.string(), z.unknown())).describe(\"Array of analytics calls (identify, track, page, screen, or group). Each item must include 'type' and required fields per call type.\"),\n context: z.record(z.string(), z.unknown()).describe(\"Optional top-level context merged into each call's context.\").optional(),\n writeKey: z.string().describe(\"Segment write key; required when using Bearer authentication.\").optional(),\n integrations: z.record(z.string(), z.unknown()).describe(\"Optional top-level integrations merged into each call's integrations.\").optional(),\n}).describe(\"Request schema for sending multiple analytics calls in a single batch request.\");\nexport const SegmentBatchOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for the batch call. Typically empty for accepted requests.\");\n\nexport const segmentBatch: AppAction<\n typeof SegmentBatchInput,\n typeof SegmentBatchOutput,\n typeof segment.credential\n> = action(\"SEGMENT_BATCH\", {\n slug: \"segment-batch\",\n name: \"Batch Segment Analytics Events\",\n description: \"Tool to send multiple analytics calls in a single batch request. Use when you want to reduce HTTP overhead by batching Identify/Track/Page/Screen/Group calls into one request.\",\n input: SegmentBatchInput,\n output: SegmentBatchOutput,\n});\n"],"mappings":";;;AAcA,MAAa,eAIT,OAAO,iBAAiB;CAC1B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB+B,EAAE,OAAO;EACxC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,sIAAsI;EACjM,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAC5H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EACxG,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,SAAS,gFAWH;CACP,QAXgC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4EAWnE;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-source.cjs","names":["z","action"],"sources":["../../src/actions/delete-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentDeleteSourceInput = z.object({\n sourceId: z.string().describe(\"The Source ID. Length 1–255 characters.\"),\n}).describe(\"Parameters to delete a Segment Source. Provide the sourceId to identify the Source to remove.\");\nconst SegmentDeleteSource_DeleteSourceDataSchema = z.object({\n status: z.string().describe(\"Operation outcome; returns 'SUCCESS' on successful deletion.\").nullable(),\n}).passthrough().describe(\"Envelope for deletion result.\");\nexport const SegmentDeleteSourceOutput = z.object({\n data: SegmentDeleteSource_DeleteSourceDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentDeleteSource = action(\"SEGMENT_DELETE_SOURCE\", {\n slug: \"segment-delete-source\",\n name: \"Delete Source\",\n description: \"Tool to delete a Segment Source. Use when you need to permanently remove a Source by its ID after confirmation.\",\n input: SegmentDeleteSourceInput,\n output: SegmentDeleteSourceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-source.cjs","names":["z","action"],"sources":["../../src/actions/delete-source.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentDeleteSourceInput = z.object({\n sourceId: z.string().describe(\"The Source ID. Length 1–255 characters.\"),\n}).describe(\"Parameters to delete a Segment Source. Provide the sourceId to identify the Source to remove.\");\nconst SegmentDeleteSource_DeleteSourceDataSchema = z.object({\n status: z.string().describe(\"Operation outcome; returns 'SUCCESS' on successful deletion.\").nullable(),\n}).passthrough().describe(\"Envelope for deletion result.\");\nexport const SegmentDeleteSourceOutput = z.object({\n data: SegmentDeleteSource_DeleteSourceDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentDeleteSource: AppAction<\n typeof SegmentDeleteSourceInput,\n typeof SegmentDeleteSourceOutput,\n typeof segment.credential\n> = action(\"SEGMENT_DELETE_SOURCE\", {\n slug: \"segment-delete-source\",\n name: \"Delete Source\",\n description: \"Tool to delete a Segment Source. Use when you need to permanently remove a Source by its ID after confirmation.\",\n input: SegmentDeleteSourceInput,\n output: SegmentDeleteSourceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,EACzE,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC3G,MAAM,6CAA6CA,IAAAA,EAAE,OAAO,EAC1D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,EACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B;AACzD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-source.d.ts
|
|
@@ -9,23 +11,7 @@ declare const SegmentDeleteSourceOutput: z.ZodObject<{
|
|
|
9
11
|
status: z.ZodNullable<z.ZodString>;
|
|
10
12
|
}, z.core.$loose>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const segmentDeleteSource:
|
|
13
|
-
sourceId: string;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
region: z.ZodString;
|
|
20
|
-
generic_api_key: z.ZodString;
|
|
21
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
entityId: z.ZodString;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
region: z.ZodString;
|
|
27
|
-
generic_api_key: z.ZodString;
|
|
28
|
-
}, z.core.$strip>>]>;
|
|
14
|
+
declare const segmentDeleteSource: AppAction<typeof SegmentDeleteSourceInput, typeof SegmentDeleteSourceOutput, typeof segment.credential>;
|
|
29
15
|
//#endregion
|
|
30
16
|
export { segmentDeleteSource };
|
|
31
17
|
//# sourceMappingURL=delete-source.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-source.d.cts","names":[],"sources":["../../src/actions/delete-source.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-source.d.cts","names":[],"sources":["../../src/actions/delete-source.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-source.d.ts
|
|
@@ -9,23 +11,7 @@ declare const SegmentDeleteSourceOutput: z.ZodObject<{
|
|
|
9
11
|
status: z.ZodNullable<z.ZodString>;
|
|
10
12
|
}, z.core.$loose>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const segmentDeleteSource:
|
|
13
|
-
sourceId: string;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
region: z.ZodString;
|
|
20
|
-
generic_api_key: z.ZodString;
|
|
21
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
entityId: z.ZodString;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
region: z.ZodString;
|
|
27
|
-
generic_api_key: z.ZodString;
|
|
28
|
-
}, z.core.$strip>>]>;
|
|
14
|
+
declare const segmentDeleteSource: AppAction<typeof SegmentDeleteSourceInput, typeof SegmentDeleteSourceOutput, typeof segment.credential>;
|
|
29
15
|
//#endregion
|
|
30
16
|
export { segmentDeleteSource };
|
|
31
17
|
//# sourceMappingURL=delete-source.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-source.d.mts","names":[],"sources":["../../src/actions/delete-source.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-source.d.mts","names":[],"sources":["../../src/actions/delete-source.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAMxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-source.mjs","names":[],"sources":["../../src/actions/delete-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentDeleteSourceInput = z.object({\n sourceId: z.string().describe(\"The Source ID. Length 1–255 characters.\"),\n}).describe(\"Parameters to delete a Segment Source. Provide the sourceId to identify the Source to remove.\");\nconst SegmentDeleteSource_DeleteSourceDataSchema = z.object({\n status: z.string().describe(\"Operation outcome; returns 'SUCCESS' on successful deletion.\").nullable(),\n}).passthrough().describe(\"Envelope for deletion result.\");\nexport const SegmentDeleteSourceOutput = z.object({\n data: SegmentDeleteSource_DeleteSourceDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentDeleteSource = action(\"SEGMENT_DELETE_SOURCE\", {\n slug: \"segment-delete-source\",\n name: \"Delete Source\",\n description: \"Tool to delete a Segment Source. Use when you need to permanently remove a Source by its ID after confirmation.\",\n input: SegmentDeleteSourceInput,\n output: SegmentDeleteSourceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-source.mjs","names":[],"sources":["../../src/actions/delete-source.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentDeleteSourceInput = z.object({\n sourceId: z.string().describe(\"The Source ID. Length 1–255 characters.\"),\n}).describe(\"Parameters to delete a Segment Source. Provide the sourceId to identify the Source to remove.\");\nconst SegmentDeleteSource_DeleteSourceDataSchema = z.object({\n status: z.string().describe(\"Operation outcome; returns 'SUCCESS' on successful deletion.\").nullable(),\n}).passthrough().describe(\"Envelope for deletion result.\");\nexport const SegmentDeleteSourceOutput = z.object({\n data: SegmentDeleteSource_DeleteSourceDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentDeleteSource: AppAction<\n typeof SegmentDeleteSourceInput,\n typeof SegmentDeleteSourceOutput,\n typeof segment.credential\n> = action(\"SEGMENT_DELETE_SOURCE\", {\n slug: \"segment-delete-source\",\n name: \"Delete Source\",\n description: \"Tool to delete a Segment Source. Use when you need to permanently remove a Source by its ID after confirmation.\",\n input: SegmentDeleteSourceInput,\n output: SegmentDeleteSourceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,EACzE,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC3G,MAAM,6CAA6C,EAAE,OAAO,EAC1D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,EACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B;AAKzD,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO,EAChD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-daily-per-source-api-calls-usage.cjs","names":["z","action"],"sources":["../../src/actions/get-daily-per-source-api-calls-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentGetDailyPerSourceApiCallsUsageInput = z.object({\n period: z.string().describe(\"Start of the usage period in ISO-8601 format (YYYY-MM-DD), e.g. '2021-02-01'.\"),\n pagination: z.object({\n count: z.number().int().describe(\"Page size (number of records to return). Defaults to 200 if omitted.\").optional(),\n cursor: z.string().describe(\"Cursor token for the next page of results.\").optional(),\n}).describe(\"Pagination parameters for querying source daily API calls usage.\").optional(),\n}).describe(\"Request parameters to fetch daily API call counts per source.\");\nconst SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema = z.object({\n next: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n current: z.string().describe(\"Cursor for the current page.\").nullable(),\n previous: z.string().describe(\"Cursor for the previous page, if any.\").nullable().optional(),\n totalEntries: z.number().int().describe(\"Total number of records available.\").nullable(),\n}).passthrough();\nconst SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema = z.object({\n apiCalls: z.string().describe(\"API call count for the source and day.\").nullable(),\n sourceId: z.string().describe(\"Source identifier.\").nullable(),\n timestamp: z.string().describe(\"Date this usage applies to in ISO-8601 format.\").nullable(),\n}).passthrough();\nconst SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema = z.object({\n pagination: SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema.nullable(),\n dailyPerSourceAPICallsUsage: z.array(SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema).describe(\"List of daily API call usage records per source.\"),\n}).passthrough();\nexport const SegmentGetDailyPerSourceApiCallsUsageOutput = z.object({\n data: SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentGetDailyPerSourceApiCallsUsage = action(\"SEGMENT_GET_DAILY_PER_SOURCE_API_CALLS_USAGE\", {\n slug: \"segment-get-daily-per-source-api-calls-usage\",\n name: \"Get Daily Per Source API Calls Usage\",\n description: \"Tool to fetch daily API call counts per source for a given period. Use when you need daily breakdown of API usage by source after determining the reporting period.\",\n input: SegmentGetDailyPerSourceApiCallsUsageInput,\n output: SegmentGetDailyPerSourceApiCallsUsageOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-daily-per-source-api-calls-usage.cjs","names":["z","action"],"sources":["../../src/actions/get-daily-per-source-api-calls-usage.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segment } from \"../app\";\n\nexport const SegmentGetDailyPerSourceApiCallsUsageInput = z.object({\n period: z.string().describe(\"Start of the usage period in ISO-8601 format (YYYY-MM-DD), e.g. '2021-02-01'.\"),\n pagination: z.object({\n count: z.number().int().describe(\"Page size (number of records to return). Defaults to 200 if omitted.\").optional(),\n cursor: z.string().describe(\"Cursor token for the next page of results.\").optional(),\n}).describe(\"Pagination parameters for querying source daily API calls usage.\").optional(),\n}).describe(\"Request parameters to fetch daily API call counts per source.\");\nconst SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema = z.object({\n next: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n current: z.string().describe(\"Cursor for the current page.\").nullable(),\n previous: z.string().describe(\"Cursor for the previous page, if any.\").nullable().optional(),\n totalEntries: z.number().int().describe(\"Total number of records available.\").nullable(),\n}).passthrough();\nconst SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema = z.object({\n apiCalls: z.string().describe(\"API call count for the source and day.\").nullable(),\n sourceId: z.string().describe(\"Source identifier.\").nullable(),\n timestamp: z.string().describe(\"Date this usage applies to in ISO-8601 format.\").nullable(),\n}).passthrough();\nconst SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema = z.object({\n pagination: SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema.nullable(),\n dailyPerSourceAPICallsUsage: z.array(SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema).describe(\"List of daily API call usage records per source.\"),\n}).passthrough();\nexport const SegmentGetDailyPerSourceApiCallsUsageOutput = z.object({\n data: SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema.nullable(),\n}).passthrough();\n\nexport const segmentGetDailyPerSourceApiCallsUsage: AppAction<\n typeof SegmentGetDailyPerSourceApiCallsUsageInput,\n typeof SegmentGetDailyPerSourceApiCallsUsageOutput,\n typeof segment.credential\n> = action(\"SEGMENT_GET_DAILY_PER_SOURCE_API_CALLS_USAGE\", {\n slug: \"segment-get-daily-per-source-api-calls-usage\",\n name: \"Get Daily Per Source API Calls Usage\",\n description: \"Tool to fetch daily API call counts per source for a given period. Use when you need daily breakdown of API usage by source after determining the reporting period.\",\n input: SegmentGetDailyPerSourceApiCallsUsageInput,\n output: SegmentGetDailyPerSourceApiCallsUsageOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC3G,YAAYA,IAAAA,EAAE,OAAO;EACrB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAClH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,6DAA6DA,IAAAA,EAAE,OAAO;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wEAAwEA,IAAAA,EAAE,OAAO;CACrF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC7D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yFAAyFA,IAAAA,EAAE,OAAO;CACtG,YAAY,2DAA2D,SAAS;CAChF,6BAA6BA,IAAAA,EAAE,MAAM,qEAAqE,CAAC,CAAC,SAAS,kDAAkD;AACzK,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,8CAA8CA,IAAAA,EAAE,OAAO,EAClE,MAAM,uFAAuF,SAAS,EACxG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wCAITC,eAAAA,OAAO,gDAAgD;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-daily-per-source-api-calls-usage.d.ts
|
|
@@ -23,27 +25,7 @@ declare const SegmentGetDailyPerSourceApiCallsUsageOutput: z.ZodObject<{
|
|
|
23
25
|
}, z.core.$loose>>;
|
|
24
26
|
}, z.core.$loose>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const segmentGetDailyPerSourceApiCallsUsage:
|
|
27
|
-
period: string;
|
|
28
|
-
pagination?: {
|
|
29
|
-
count?: number | undefined;
|
|
30
|
-
cursor?: string | undefined;
|
|
31
|
-
} | undefined;
|
|
32
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
33
|
-
connectionId: z.ZodString;
|
|
34
|
-
entityId: z.ZodString;
|
|
35
|
-
instanceId: z.ZodString;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
region: z.ZodString;
|
|
38
|
-
generic_api_key: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
40
|
-
connectionId: z.ZodString;
|
|
41
|
-
entityId: z.ZodString;
|
|
42
|
-
instanceId: z.ZodString;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
region: z.ZodString;
|
|
45
|
-
generic_api_key: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>]>;
|
|
28
|
+
declare const segmentGetDailyPerSourceApiCallsUsage: AppAction<typeof SegmentGetDailyPerSourceApiCallsUsageInput, typeof SegmentGetDailyPerSourceApiCallsUsageOutput, typeof segment.credential>;
|
|
47
29
|
//#endregion
|
|
48
30
|
export { segmentGetDailyPerSourceApiCallsUsage };
|
|
49
31
|
//# sourceMappingURL=get-daily-per-source-api-calls-usage.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-daily-per-source-api-calls-usage.d.cts","names":[],"sources":["../../src/actions/get-daily-per-source-api-calls-usage.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-daily-per-source-api-calls-usage.d.cts","names":[],"sources":["../../src/actions/get-daily-per-source-api-calls-usage.ts"],"mappings":";;;;;cAMa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;cAsB1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI3C,qCAAA,EAAuC,SAAA,QAC3C,0CAAA,SACA,2CAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { segment } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-daily-per-source-api-calls-usage.d.ts
|
|
@@ -23,27 +25,7 @@ declare const SegmentGetDailyPerSourceApiCallsUsageOutput: z.ZodObject<{
|
|
|
23
25
|
}, z.core.$loose>>;
|
|
24
26
|
}, z.core.$loose>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const segmentGetDailyPerSourceApiCallsUsage:
|
|
27
|
-
period: string;
|
|
28
|
-
pagination?: {
|
|
29
|
-
count?: number | undefined;
|
|
30
|
-
cursor?: string | undefined;
|
|
31
|
-
} | undefined;
|
|
32
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
33
|
-
connectionId: z.ZodString;
|
|
34
|
-
entityId: z.ZodString;
|
|
35
|
-
instanceId: z.ZodString;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
region: z.ZodString;
|
|
38
|
-
generic_api_key: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"segment", z.ZodObject<{
|
|
40
|
-
connectionId: z.ZodString;
|
|
41
|
-
entityId: z.ZodString;
|
|
42
|
-
instanceId: z.ZodString;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
region: z.ZodString;
|
|
45
|
-
generic_api_key: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>]>;
|
|
28
|
+
declare const segmentGetDailyPerSourceApiCallsUsage: AppAction<typeof SegmentGetDailyPerSourceApiCallsUsageInput, typeof SegmentGetDailyPerSourceApiCallsUsageOutput, typeof segment.credential>;
|
|
47
29
|
//#endregion
|
|
48
30
|
export { segmentGetDailyPerSourceApiCallsUsage };
|
|
49
31
|
//# sourceMappingURL=get-daily-per-source-api-calls-usage.d.mts.map
|