@keystrokehq/segment 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/add-labels-to-source.cjs +4 -4
- package/dist/actions/add-labels-to-source.cjs.map +1 -1
- package/dist/actions/add-labels-to-source.d.cts +5 -4
- package/dist/actions/add-labels-to-source.d.mts +5 -4
- package/dist/actions/add-labels-to-source.mjs +4 -4
- package/dist/actions/add-labels-to-source.mjs.map +1 -1
- package/dist/actions/alias.cjs +2 -2
- package/dist/actions/alias.cjs.map +1 -1
- package/dist/actions/alias.d.cts +3 -3
- package/dist/actions/alias.d.cts.map +1 -1
- package/dist/actions/alias.d.mts +3 -3
- package/dist/actions/alias.d.mts.map +1 -1
- package/dist/actions/alias.mjs +2 -2
- package/dist/actions/alias.mjs.map +1 -1
- package/dist/actions/batch.cjs +1 -1
- package/dist/actions/batch.cjs.map +1 -1
- package/dist/actions/batch.d.cts +1 -1
- package/dist/actions/batch.d.cts.map +1 -1
- package/dist/actions/batch.d.mts +1 -1
- package/dist/actions/batch.d.mts.map +1 -1
- package/dist/actions/batch.mjs +1 -1
- package/dist/actions/batch.mjs.map +1 -1
- package/dist/actions/delete-source.cjs +2 -2
- package/dist/actions/delete-source.cjs.map +1 -1
- package/dist/actions/delete-source.d.cts +2 -2
- package/dist/actions/delete-source.d.mts +2 -2
- package/dist/actions/delete-source.mjs +2 -2
- package/dist/actions/delete-source.mjs.map +1 -1
- package/dist/actions/get-daily-per-source-api-calls-usage.cjs +4 -4
- 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 +4 -4
- package/dist/actions/get-daily-per-source-api-calls-usage.d.mts +4 -4
- package/dist/actions/get-daily-per-source-api-calls-usage.mjs +4 -4
- package/dist/actions/get-daily-per-source-api-calls-usage.mjs.map +1 -1
- package/dist/actions/get-destination.cjs +9 -9
- package/dist/actions/get-destination.cjs.map +1 -1
- package/dist/actions/get-destination.d.cts +9 -9
- package/dist/actions/get-destination.d.mts +9 -9
- package/dist/actions/get-destination.mjs +9 -9
- package/dist/actions/get-destination.mjs.map +1 -1
- package/dist/actions/group.cjs +2 -2
- package/dist/actions/group.cjs.map +1 -1
- package/dist/actions/group.d.cts +3 -3
- package/dist/actions/group.d.cts.map +1 -1
- package/dist/actions/group.d.mts +3 -3
- package/dist/actions/group.d.mts.map +1 -1
- package/dist/actions/group.mjs +2 -2
- package/dist/actions/group.mjs.map +1 -1
- package/dist/actions/identify.cjs +2 -2
- package/dist/actions/identify.cjs.map +1 -1
- package/dist/actions/identify.d.cts +3 -3
- package/dist/actions/identify.d.cts.map +1 -1
- package/dist/actions/identify.d.mts +3 -3
- package/dist/actions/identify.d.mts.map +1 -1
- package/dist/actions/identify.mjs +2 -2
- package/dist/actions/identify.mjs.map +1 -1
- package/dist/actions/import-historical-data.cjs +1 -1
- package/dist/actions/import-historical-data.cjs.map +1 -1
- package/dist/actions/import-historical-data.d.cts +1 -1
- package/dist/actions/import-historical-data.d.mts +1 -1
- package/dist/actions/import-historical-data.mjs +1 -1
- package/dist/actions/import-historical-data.mjs.map +1 -1
- package/dist/actions/list-connected-warehouses-from-source.cjs +8 -8
- package/dist/actions/list-connected-warehouses-from-source.cjs.map +1 -1
- package/dist/actions/list-connected-warehouses-from-source.d.cts +8 -8
- package/dist/actions/list-connected-warehouses-from-source.d.mts +8 -8
- package/dist/actions/list-connected-warehouses-from-source.mjs +8 -8
- package/dist/actions/list-connected-warehouses-from-source.mjs.map +1 -1
- package/dist/actions/list-delivery-metrics-summary-from-destination.cjs +5 -5
- package/dist/actions/list-delivery-metrics-summary-from-destination.cjs.map +1 -1
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts +5 -5
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts +5 -5
- package/dist/actions/list-delivery-metrics-summary-from-destination.mjs +5 -5
- package/dist/actions/list-delivery-metrics-summary-from-destination.mjs.map +1 -1
- package/dist/actions/list-schema-settings-in-source.cjs +6 -6
- package/dist/actions/list-schema-settings-in-source.cjs.map +1 -1
- package/dist/actions/list-schema-settings-in-source.d.cts +6 -6
- package/dist/actions/list-schema-settings-in-source.d.mts +6 -6
- package/dist/actions/list-schema-settings-in-source.mjs +6 -6
- package/dist/actions/list-schema-settings-in-source.mjs.map +1 -1
- package/dist/actions/page.cjs +2 -2
- package/dist/actions/page.cjs.map +1 -1
- package/dist/actions/page.d.cts +3 -3
- package/dist/actions/page.d.cts.map +1 -1
- package/dist/actions/page.d.mts +3 -3
- package/dist/actions/page.d.mts.map +1 -1
- package/dist/actions/page.mjs +2 -2
- package/dist/actions/page.mjs.map +1 -1
- package/dist/actions/remove-source-write-key.cjs +2 -2
- package/dist/actions/remove-source-write-key.cjs.map +1 -1
- package/dist/actions/remove-source-write-key.d.cts +2 -2
- package/dist/actions/remove-source-write-key.d.mts +2 -2
- package/dist/actions/remove-source-write-key.mjs +2 -2
- package/dist/actions/remove-source-write-key.mjs.map +1 -1
- package/dist/actions/screen.cjs +1 -1
- package/dist/actions/screen.cjs.map +1 -1
- package/dist/actions/screen.d.cts +1 -1
- package/dist/actions/screen.d.cts.map +1 -1
- package/dist/actions/screen.d.mts +1 -1
- package/dist/actions/screen.d.mts.map +1 -1
- package/dist/actions/screen.mjs +1 -1
- package/dist/actions/screen.mjs.map +1 -1
- package/dist/actions/track.cjs +2 -2
- package/dist/actions/track.cjs.map +1 -1
- package/dist/actions/track.d.cts +3 -3
- package/dist/actions/track.d.cts.map +1 -1
- package/dist/actions/track.d.mts +3 -3
- package/dist/actions/track.d.mts.map +1 -1
- package/dist/actions/track.mjs +2 -2
- package/dist/actions/track.mjs.map +1 -1
- package/dist/actions/update-source.cjs +5 -5
- package/dist/actions/update-source.cjs.map +1 -1
- package/dist/actions/update-source.d.cts +5 -5
- package/dist/actions/update-source.d.mts +5 -5
- package/dist/actions/update-source.mjs +5 -5
- package/dist/actions/update-source.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5,15 +5,15 @@ const SegmentAddLabelsToSourceInput = zod.z.object({
|
|
|
5
5
|
labels: zod.z.array(zod.z.object({
|
|
6
6
|
key: zod.z.string().describe("Label key"),
|
|
7
7
|
value: zod.z.string().describe("Label value")
|
|
8
|
-
}).describe("A single key/value label.")).describe("List of labels to associate with the Source. Must include at least one label."),
|
|
8
|
+
}).passthrough().describe("A single key/value label.")).describe("List of labels to associate with the Source. Must include at least one label."),
|
|
9
9
|
sourceId: zod.z.string().describe("ID of the Source (1-255 characters)")
|
|
10
10
|
}).describe("Request schema to add existing labels to a Segment Source.");
|
|
11
11
|
const SegmentAddLabelsToSource_LabelItemSchema = zod.z.object({
|
|
12
12
|
key: zod.z.string().describe("Label key").nullable(),
|
|
13
13
|
value: zod.z.string().describe("Label value").nullable()
|
|
14
|
-
}).describe("A single key/value label.");
|
|
15
|
-
const SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema = zod.z.object({ labels: zod.z.array(SegmentAddLabelsToSource_LabelItemSchema).describe("Labels now associated with the Source") }).describe("Envelope containing the response labels.");
|
|
16
|
-
const SegmentAddLabelsToSourceOutput = zod.z.object({ data: SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema.nullable() }).describe("Response schema containing all labels now associated with the Source.");
|
|
14
|
+
}).passthrough().describe("A single key/value label.");
|
|
15
|
+
const SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema = zod.z.object({ labels: zod.z.array(SegmentAddLabelsToSource_LabelItemSchema).describe("Labels now associated with the Source") }).passthrough().describe("Envelope containing the response labels.");
|
|
16
|
+
const SegmentAddLabelsToSourceOutput = zod.z.object({ data: SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema.nullable() }).passthrough().describe("Response schema containing all labels now associated with the Source.");
|
|
17
17
|
const segmentAddLabelsToSource = require_action.action("SEGMENT_ADD_LABELS_TO_SOURCE", {
|
|
18
18
|
slug: "segment-add-labels-to-source",
|
|
19
19
|
name: "Add Labels to Source",
|
|
@@ -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}).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}).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}).describe(\"Envelope containing the response labels.\");\nexport const SegmentAddLabelsToSourceOutput = z.object({\n data: SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema.nullable(),\n}).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":";;;AAIA,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,SAAS,2BAA2B,CAAC,CAAC,CAAC,SAAS,+EAA+E;
|
|
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":";;;AAIA,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,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ declare const SegmentAddLabelsToSourceInput: z.ZodObject<{
|
|
|
5
5
|
labels: z.ZodArray<z.ZodObject<{
|
|
6
6
|
key: z.ZodString;
|
|
7
7
|
value: z.ZodString;
|
|
8
|
-
}, z.core.$
|
|
8
|
+
}, z.core.$loose>>;
|
|
9
9
|
sourceId: z.ZodString;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
declare const SegmentAddLabelsToSourceOutput: z.ZodObject<{
|
|
@@ -13,11 +13,12 @@ declare const SegmentAddLabelsToSourceOutput: z.ZodObject<{
|
|
|
13
13
|
labels: z.ZodArray<z.ZodObject<{
|
|
14
14
|
key: z.ZodNullable<z.ZodString>;
|
|
15
15
|
value: z.ZodNullable<z.ZodString>;
|
|
16
|
-
}, z.core.$
|
|
17
|
-
}, z.core.$
|
|
18
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const segmentAddLabelsToSource: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
labels: {
|
|
21
|
+
[x: string]: unknown;
|
|
21
22
|
key: string;
|
|
22
23
|
value: string;
|
|
23
24
|
}[];
|
|
@@ -5,7 +5,7 @@ declare const SegmentAddLabelsToSourceInput: z.ZodObject<{
|
|
|
5
5
|
labels: z.ZodArray<z.ZodObject<{
|
|
6
6
|
key: z.ZodString;
|
|
7
7
|
value: z.ZodString;
|
|
8
|
-
}, z.core.$
|
|
8
|
+
}, z.core.$loose>>;
|
|
9
9
|
sourceId: z.ZodString;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
declare const SegmentAddLabelsToSourceOutput: z.ZodObject<{
|
|
@@ -13,11 +13,12 @@ declare const SegmentAddLabelsToSourceOutput: z.ZodObject<{
|
|
|
13
13
|
labels: z.ZodArray<z.ZodObject<{
|
|
14
14
|
key: z.ZodNullable<z.ZodString>;
|
|
15
15
|
value: z.ZodNullable<z.ZodString>;
|
|
16
|
-
}, z.core.$
|
|
17
|
-
}, z.core.$
|
|
18
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const segmentAddLabelsToSource: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
labels: {
|
|
21
|
+
[x: string]: unknown;
|
|
21
22
|
key: string;
|
|
22
23
|
value: string;
|
|
23
24
|
}[];
|
|
@@ -5,20 +5,20 @@ const SegmentAddLabelsToSourceInput = z.object({
|
|
|
5
5
|
labels: z.array(z.object({
|
|
6
6
|
key: z.string().describe("Label key"),
|
|
7
7
|
value: z.string().describe("Label value")
|
|
8
|
-
}).describe("A single key/value label.")).describe("List of labels to associate with the Source. Must include at least one label."),
|
|
8
|
+
}).passthrough().describe("A single key/value label.")).describe("List of labels to associate with the Source. Must include at least one label."),
|
|
9
9
|
sourceId: z.string().describe("ID of the Source (1-255 characters)")
|
|
10
10
|
}).describe("Request schema to add existing labels to a Segment Source.");
|
|
11
11
|
const SegmentAddLabelsToSource_LabelItemSchema = z.object({
|
|
12
12
|
key: z.string().describe("Label key").nullable(),
|
|
13
13
|
value: z.string().describe("Label value").nullable()
|
|
14
|
-
}).describe("A single key/value label.");
|
|
15
|
-
const SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema = z.object({ labels: z.array(SegmentAddLabelsToSource_LabelItemSchema).describe("Labels now associated with the Source") }).describe("Envelope containing the response labels.");
|
|
14
|
+
}).passthrough().describe("A single key/value label.");
|
|
15
|
+
const SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema = z.object({ labels: z.array(SegmentAddLabelsToSource_LabelItemSchema).describe("Labels now associated with the Source") }).passthrough().describe("Envelope containing the response labels.");
|
|
16
16
|
const segmentAddLabelsToSource = action("SEGMENT_ADD_LABELS_TO_SOURCE", {
|
|
17
17
|
slug: "segment-add-labels-to-source",
|
|
18
18
|
name: "Add Labels to Source",
|
|
19
19
|
description: "Tool to add existing labels to a Source. Use when you have the source ID and want to tag it with metadata labels.",
|
|
20
20
|
input: SegmentAddLabelsToSourceInput,
|
|
21
|
-
output: z.object({ data: SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema.nullable() }).describe("Response schema containing all labels now associated with the Source.")
|
|
21
|
+
output: z.object({ data: SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema.nullable() }).passthrough().describe("Response schema containing all labels now associated with the Source.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { segmentAddLabelsToSource };
|
|
@@ -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}).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}).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}).describe(\"Envelope containing the response labels.\");\nexport const SegmentAddLabelsToSourceOutput = z.object({\n data: SegmentAddLabelsToSource_AddLabelsToSourceResponseDataSchema.nullable(),\n}).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":";;;AAIA,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,SAAS,2BAA2B,CAAC,CAAC,CAAC,SAAS,+EAA+E;
|
|
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":";;;AAIA,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,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4C,EAAE,OAAO,EACrD,MAAM,6DAA6D,SAAS,EAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAOhB;AACV,CAAC"}
|
package/dist/actions/alias.cjs
CHANGED
|
@@ -7,9 +7,9 @@ const SegmentAliasInput = zod.z.object({
|
|
|
7
7
|
timestamp: zod.z.string().describe("ISO-8601 timestamp for the event; server time used if omitted.").optional(),
|
|
8
8
|
previousId: zod.z.string().describe("Previous unique identifier for the user."),
|
|
9
9
|
anonymousId: zod.z.string().describe("Anonymous identifier for the user.").optional(),
|
|
10
|
-
integrations: zod.z.
|
|
10
|
+
integrations: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Per-destination enable/disable controls.").optional()
|
|
11
11
|
}).describe("Request model for aliasing two user identities via Segment HTTP API.\nExactly one of 'userId' or 'anonymousId' must be provided.");
|
|
12
|
-
const SegmentAliasOutput = zod.z.
|
|
12
|
+
const SegmentAliasOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty response indicating alias was accepted. Success is indicated by HTTP 200 status code.");
|
|
13
13
|
const segmentAlias = require_action.action("SEGMENT_ALIAS", {
|
|
14
14
|
slug: "segment-alias",
|
|
15
15
|
name: "Segment Alias",
|
|
@@ -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.
|
|
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":";;;AAIA,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,eAAeC,eAAAA,OAAO,iBAAiB;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
package/dist/actions/alias.d.cts
CHANGED
|
@@ -7,16 +7,16 @@ declare const SegmentAliasInput: z.ZodObject<{
|
|
|
7
7
|
timestamp: z.ZodOptional<z.ZodString>;
|
|
8
8
|
previousId: z.ZodString;
|
|
9
9
|
anonymousId: z.ZodOptional<z.ZodString>;
|
|
10
|
-
integrations: z.ZodOptional<z.
|
|
10
|
+
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
|
-
declare const SegmentAliasOutput: z.
|
|
12
|
+
declare const SegmentAliasOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
13
13
|
declare const segmentAlias: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
previousId: string;
|
|
15
15
|
userId?: string | undefined;
|
|
16
16
|
context?: Record<string, unknown> | undefined;
|
|
17
17
|
timestamp?: string | undefined;
|
|
18
18
|
anonymousId?: string | undefined;
|
|
19
|
-
integrations?: Record<string,
|
|
19
|
+
integrations?: Record<string, unknown> | undefined;
|
|
20
20
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { segmentAlias };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias.d.cts","names":[],"sources":["../../src/actions/alias.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;cAQjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"alias.d.cts","names":[],"sources":["../../src/actions/alias.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;cAQjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAElB,YAAA,gCAAY,wBAAA;;;YAMvB,MAAA;;;iBAAA,MAAA;AAAA"}
|
package/dist/actions/alias.d.mts
CHANGED
|
@@ -7,16 +7,16 @@ declare const SegmentAliasInput: z.ZodObject<{
|
|
|
7
7
|
timestamp: z.ZodOptional<z.ZodString>;
|
|
8
8
|
previousId: z.ZodString;
|
|
9
9
|
anonymousId: z.ZodOptional<z.ZodString>;
|
|
10
|
-
integrations: z.ZodOptional<z.
|
|
10
|
+
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
|
-
declare const SegmentAliasOutput: z.
|
|
12
|
+
declare const SegmentAliasOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
13
13
|
declare const segmentAlias: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
previousId: string;
|
|
15
15
|
userId?: string | undefined;
|
|
16
16
|
context?: Record<string, unknown> | undefined;
|
|
17
17
|
timestamp?: string | undefined;
|
|
18
18
|
anonymousId?: string | undefined;
|
|
19
|
-
integrations?: Record<string,
|
|
19
|
+
integrations?: Record<string, unknown> | undefined;
|
|
20
20
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { segmentAlias };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias.d.mts","names":[],"sources":["../../src/actions/alias.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;cAQjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"alias.d.mts","names":[],"sources":["../../src/actions/alias.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;cAQjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAElB,YAAA,gCAAY,wBAAA;;;YAMvB,MAAA;;;iBAAA,MAAA;AAAA"}
|
package/dist/actions/alias.mjs
CHANGED
|
@@ -10,9 +10,9 @@ const segmentAlias = action("SEGMENT_ALIAS", {
|
|
|
10
10
|
timestamp: z.string().describe("ISO-8601 timestamp for the event; server time used if omitted.").optional(),
|
|
11
11
|
previousId: z.string().describe("Previous unique identifier for the user."),
|
|
12
12
|
anonymousId: z.string().describe("Anonymous identifier for the user.").optional(),
|
|
13
|
-
integrations: z.
|
|
13
|
+
integrations: z.record(z.string(), z.unknown()).describe("Per-destination enable/disable controls.").optional()
|
|
14
14
|
}).describe("Request model for aliasing two user identities via Segment HTTP API.\nExactly one of 'userId' or 'anonymousId' must be provided."),
|
|
15
|
-
output: z.
|
|
15
|
+
output: z.record(z.string(), z.unknown()).describe("Empty response indicating alias was accepted. Success is indicated by HTTP 200 status code.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { segmentAlias };
|
|
@@ -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.
|
|
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":";;AAcA,MAAa,eAAe,OAAO,iBAAiB;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd+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,kIAOH;CACP,QAPgC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6FAOnE;AACV,CAAC"}
|
package/dist/actions/batch.cjs
CHANGED
|
@@ -7,7 +7,7 @@ const SegmentBatchInput = zod.z.object({
|
|
|
7
7
|
writeKey: zod.z.string().describe("Segment write key; required when using Bearer authentication.").optional(),
|
|
8
8
|
integrations: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional top-level integrations merged into each call's integrations.").optional()
|
|
9
9
|
}).describe("Request schema for sending multiple analytics calls in a single batch request.");
|
|
10
|
-
const SegmentBatchOutput = zod.z.
|
|
10
|
+
const SegmentBatchOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response schema for the batch call. Typically empty for accepted requests.");
|
|
11
11
|
const segmentBatch = require_action.action("SEGMENT_BATCH", {
|
|
12
12
|
slug: "segment-batch",
|
|
13
13
|
name: "Batch Segment Analytics Events",
|
|
@@ -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.
|
|
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":";;;AAIA,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,eAAeC,eAAAA,OAAO,iBAAiB;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
package/dist/actions/batch.d.cts
CHANGED
|
@@ -7,7 +7,7 @@ declare const SegmentBatchInput: z.ZodObject<{
|
|
|
7
7
|
writeKey: z.ZodOptional<z.ZodString>;
|
|
8
8
|
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
|
-
declare const SegmentBatchOutput: z.
|
|
10
|
+
declare const SegmentBatchOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
11
|
declare const segmentBatch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
batch: Record<string, unknown>[];
|
|
13
13
|
context?: Record<string, unknown> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.d.cts","names":[],"sources":["../../src/actions/batch.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;cAMjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"batch.d.cts","names":[],"sources":["../../src/actions/batch.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;cAMjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAElB,YAAA,gCAAY,wBAAA"}
|
package/dist/actions/batch.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ declare const SegmentBatchInput: z.ZodObject<{
|
|
|
7
7
|
writeKey: z.ZodOptional<z.ZodString>;
|
|
8
8
|
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
|
-
declare const SegmentBatchOutput: z.
|
|
10
|
+
declare const SegmentBatchOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
11
|
declare const segmentBatch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
batch: Record<string, unknown>[];
|
|
13
13
|
context?: Record<string, unknown> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.d.mts","names":[],"sources":["../../src/actions/batch.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;cAMjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"batch.d.mts","names":[],"sources":["../../src/actions/batch.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;cAMjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAElB,YAAA,gCAAY,wBAAA"}
|
package/dist/actions/batch.mjs
CHANGED
|
@@ -10,7 +10,7 @@ const segmentBatch = action("SEGMENT_BATCH", {
|
|
|
10
10
|
writeKey: z.string().describe("Segment write key; required when using Bearer authentication.").optional(),
|
|
11
11
|
integrations: z.record(z.string(), z.unknown()).describe("Optional top-level integrations merged into each call's integrations.").optional()
|
|
12
12
|
}).describe("Request schema for sending multiple analytics calls in a single batch request."),
|
|
13
|
-
output: z.
|
|
13
|
+
output: z.record(z.string(), z.unknown()).describe("Response schema for the batch call. Typically empty for accepted requests.")
|
|
14
14
|
});
|
|
15
15
|
//#endregion
|
|
16
16
|
export { segmentBatch };
|
|
@@ -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.
|
|
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":";;AAYA,MAAa,eAAe,OAAO,iBAAiB;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ+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,gFAOH;CACP,QAPgC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4EAOnE;AACV,CAAC"}
|
|
@@ -2,8 +2,8 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/delete-source.ts
|
|
4
4
|
const SegmentDeleteSourceInput = zod.z.object({ sourceId: zod.z.string().describe("The Source ID. Length 1–255 characters.") }).describe("Parameters to delete a Segment Source. Provide the sourceId to identify the Source to remove.");
|
|
5
|
-
const SegmentDeleteSource_DeleteSourceDataSchema = zod.z.object({ status: zod.z.string().describe("Operation outcome; returns 'SUCCESS' on successful deletion.").nullable() }).describe("Envelope for deletion result.");
|
|
6
|
-
const SegmentDeleteSourceOutput = zod.z.object({ data: SegmentDeleteSource_DeleteSourceDataSchema.nullable() });
|
|
5
|
+
const SegmentDeleteSource_DeleteSourceDataSchema = zod.z.object({ status: zod.z.string().describe("Operation outcome; returns 'SUCCESS' on successful deletion.").nullable() }).passthrough().describe("Envelope for deletion result.");
|
|
6
|
+
const SegmentDeleteSourceOutput = zod.z.object({ data: SegmentDeleteSource_DeleteSourceDataSchema.nullable() }).passthrough();
|
|
7
7
|
const segmentDeleteSource = require_action.action("SEGMENT_DELETE_SOURCE", {
|
|
8
8
|
slug: "segment-delete-source",
|
|
9
9
|
name: "Delete Source",
|
|
@@ -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}).describe(\"Envelope for deletion result.\");\nexport const SegmentDeleteSourceOutput = z.object({\n data: SegmentDeleteSource_DeleteSourceDataSchema.nullable(),\n});\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":";;;AAIA,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,SAAS,+BAA+B;
|
|
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":";;;AAIA,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,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,8 +7,8 @@ declare const SegmentDeleteSourceInput: z.ZodObject<{
|
|
|
7
7
|
declare const SegmentDeleteSourceOutput: z.ZodObject<{
|
|
8
8
|
data: z.ZodNullable<z.ZodObject<{
|
|
9
9
|
status: z.ZodNullable<z.ZodString>;
|
|
10
|
-
}, z.core.$
|
|
11
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const segmentDeleteSource: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
13
|
sourceId: string;
|
|
14
14
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -7,8 +7,8 @@ declare const SegmentDeleteSourceInput: z.ZodObject<{
|
|
|
7
7
|
declare const SegmentDeleteSourceOutput: z.ZodObject<{
|
|
8
8
|
data: z.ZodNullable<z.ZodObject<{
|
|
9
9
|
status: z.ZodNullable<z.ZodString>;
|
|
10
|
-
}, z.core.$
|
|
11
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const segmentDeleteSource: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
13
|
sourceId: string;
|
|
14
14
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -2,13 +2,13 @@ import { action } from "../action.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/delete-source.ts
|
|
4
4
|
const SegmentDeleteSourceInput = z.object({ sourceId: z.string().describe("The Source ID. Length 1–255 characters.") }).describe("Parameters to delete a Segment Source. Provide the sourceId to identify the Source to remove.");
|
|
5
|
-
const SegmentDeleteSource_DeleteSourceDataSchema = z.object({ status: z.string().describe("Operation outcome; returns 'SUCCESS' on successful deletion.").nullable() }).describe("Envelope for deletion result.");
|
|
5
|
+
const SegmentDeleteSource_DeleteSourceDataSchema = z.object({ status: z.string().describe("Operation outcome; returns 'SUCCESS' on successful deletion.").nullable() }).passthrough().describe("Envelope for deletion result.");
|
|
6
6
|
const segmentDeleteSource = action("SEGMENT_DELETE_SOURCE", {
|
|
7
7
|
slug: "segment-delete-source",
|
|
8
8
|
name: "Delete Source",
|
|
9
9
|
description: "Tool to delete a Segment Source. Use when you need to permanently remove a Source by its ID after confirmation.",
|
|
10
10
|
input: SegmentDeleteSourceInput,
|
|
11
|
-
output: z.object({ data: SegmentDeleteSource_DeleteSourceDataSchema.nullable() })
|
|
11
|
+
output: z.object({ data: SegmentDeleteSource_DeleteSourceDataSchema.nullable() }).passthrough()
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { segmentDeleteSource };
|
|
@@ -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}).describe(\"Envelope for deletion result.\");\nexport const SegmentDeleteSourceOutput = z.object({\n data: SegmentDeleteSource_DeleteSourceDataSchema.nullable(),\n});\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":";;;AAIA,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,SAAS,+BAA+B;
|
|
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":";;;AAIA,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,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -13,17 +13,17 @@ const SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema = zod.z.object(
|
|
|
13
13
|
current: zod.z.string().describe("Cursor for the current page.").nullable(),
|
|
14
14
|
previous: zod.z.string().describe("Cursor for the previous page, if any.").nullable().optional(),
|
|
15
15
|
totalEntries: zod.z.number().int().describe("Total number of records available.").nullable()
|
|
16
|
-
});
|
|
16
|
+
}).passthrough();
|
|
17
17
|
const SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema = zod.z.object({
|
|
18
18
|
apiCalls: zod.z.string().describe("API call count for the source and day.").nullable(),
|
|
19
19
|
sourceId: zod.z.string().describe("Source identifier.").nullable(),
|
|
20
20
|
timestamp: zod.z.string().describe("Date this usage applies to in ISO-8601 format.").nullable()
|
|
21
|
-
});
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema = zod.z.object({
|
|
23
23
|
pagination: SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema.nullable(),
|
|
24
24
|
dailyPerSourceAPICallsUsage: zod.z.array(SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema).describe("List of daily API call usage records per source.")
|
|
25
|
-
});
|
|
26
|
-
const SegmentGetDailyPerSourceApiCallsUsageOutput = zod.z.object({ data: SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema.nullable() });
|
|
25
|
+
}).passthrough();
|
|
26
|
+
const SegmentGetDailyPerSourceApiCallsUsageOutput = zod.z.object({ data: SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema.nullable() }).passthrough();
|
|
27
27
|
const segmentGetDailyPerSourceApiCallsUsage = require_action.action("SEGMENT_GET_DAILY_PER_SOURCE_API_CALLS_USAGE", {
|
|
28
28
|
slug: "segment-get-daily-per-source-api-calls-usage",
|
|
29
29
|
name: "Get Daily Per Source API Calls Usage",
|
|
@@ -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});\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});\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});\nexport const SegmentGetDailyPerSourceApiCallsUsageOutput = z.object({\n data: SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema.nullable(),\n});\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":";;;AAIA,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;
|
|
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":";;;AAIA,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,wCAAwCC,eAAAA,OAAO,gDAAgD;CAC1G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -15,14 +15,14 @@ declare const SegmentGetDailyPerSourceApiCallsUsageOutput: z.ZodObject<{
|
|
|
15
15
|
current: z.ZodNullable<z.ZodString>;
|
|
16
16
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
totalEntries: z.ZodNullable<z.ZodNumber>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
19
|
dailyPerSourceAPICallsUsage: z.ZodArray<z.ZodObject<{
|
|
20
20
|
apiCalls: z.ZodNullable<z.ZodString>;
|
|
21
21
|
sourceId: z.ZodNullable<z.ZodString>;
|
|
22
22
|
timestamp: z.ZodNullable<z.ZodString>;
|
|
23
|
-
}, z.core.$
|
|
24
|
-
}, z.core.$
|
|
25
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
26
|
declare const segmentGetDailyPerSourceApiCallsUsage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
27
|
period: string;
|
|
28
28
|
pagination?: {
|
|
@@ -15,14 +15,14 @@ declare const SegmentGetDailyPerSourceApiCallsUsageOutput: z.ZodObject<{
|
|
|
15
15
|
current: z.ZodNullable<z.ZodString>;
|
|
16
16
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
totalEntries: z.ZodNullable<z.ZodNumber>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
19
|
dailyPerSourceAPICallsUsage: z.ZodArray<z.ZodObject<{
|
|
20
20
|
apiCalls: z.ZodNullable<z.ZodString>;
|
|
21
21
|
sourceId: z.ZodNullable<z.ZodString>;
|
|
22
22
|
timestamp: z.ZodNullable<z.ZodString>;
|
|
23
|
-
}, z.core.$
|
|
24
|
-
}, z.core.$
|
|
25
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
26
|
declare const segmentGetDailyPerSourceApiCallsUsage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
27
|
period: string;
|
|
28
28
|
pagination?: {
|
|
@@ -13,22 +13,22 @@ const SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema = z.object({
|
|
|
13
13
|
current: z.string().describe("Cursor for the current page.").nullable(),
|
|
14
14
|
previous: z.string().describe("Cursor for the previous page, if any.").nullable().optional(),
|
|
15
15
|
totalEntries: z.number().int().describe("Total number of records available.").nullable()
|
|
16
|
-
});
|
|
16
|
+
}).passthrough();
|
|
17
17
|
const SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema = z.object({
|
|
18
18
|
apiCalls: z.string().describe("API call count for the source and day.").nullable(),
|
|
19
19
|
sourceId: z.string().describe("Source identifier.").nullable(),
|
|
20
20
|
timestamp: z.string().describe("Date this usage applies to in ISO-8601 format.").nullable()
|
|
21
|
-
});
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema = z.object({
|
|
23
23
|
pagination: SegmentGetDailyPerSourceApiCallsUsage_PaginationMetaSchema.nullable(),
|
|
24
24
|
dailyPerSourceAPICallsUsage: z.array(SegmentGetDailyPerSourceApiCallsUsage_DailyPerSourceUsageRecordSchema).describe("List of daily API call usage records per source.")
|
|
25
|
-
});
|
|
25
|
+
}).passthrough();
|
|
26
26
|
const segmentGetDailyPerSourceApiCallsUsage = action("SEGMENT_GET_DAILY_PER_SOURCE_API_CALLS_USAGE", {
|
|
27
27
|
slug: "segment-get-daily-per-source-api-calls-usage",
|
|
28
28
|
name: "Get Daily Per Source API Calls Usage",
|
|
29
29
|
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.",
|
|
30
30
|
input: SegmentGetDailyPerSourceApiCallsUsageInput,
|
|
31
|
-
output: z.object({ data: SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema.nullable() })
|
|
31
|
+
output: z.object({ data: SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema.nullable() }).passthrough()
|
|
32
32
|
});
|
|
33
33
|
//#endregion
|
|
34
34
|
export { segmentGetDailyPerSourceApiCallsUsage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-daily-per-source-api-calls-usage.mjs","names":[],"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});\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});\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});\nexport const SegmentGetDailyPerSourceApiCallsUsageOutput = z.object({\n data: SegmentGetDailyPerSourceApiCallsUsage_GetDailyPerSourceApiCallsUsageResponseDataSchema.nullable(),\n});\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":";;;AAIA,MAAa,6CAA6C,EAAE,OAAO;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC3G,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAClH,QAAQ,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,6DAA6D,EAAE,OAAO;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACzF,CAAC;
|
|
1
|
+
{"version":3,"file":"get-daily-per-source-api-calls-usage.mjs","names":[],"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":";;;AAIA,MAAa,6CAA6C,EAAE,OAAO;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC3G,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAClH,QAAQ,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,6DAA6D,EAAE,OAAO;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wEAAwE,EAAE,OAAO;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yFAAyF,EAAE,OAAO;CACtG,YAAY,2DAA2D,SAAS;CAChF,6BAA6B,EAAE,MAAM,qEAAqE,CAAC,CAAC,SAAS,kDAAkD;AACzK,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,wCAAwC,OAAO,gDAAgD;CAC1G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyD,EAAE,OAAO,EAClE,MAAM,uFAAuF,SAAS,EACxG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|