@keystrokehq/segment 0.0.16 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -104
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-labels-to-source.cjs +27 -0
- package/dist/actions/add-labels-to-source.cjs.map +1 -0
- package/dist/actions/add-labels-to-source.d.cts +28 -0
- package/dist/actions/add-labels-to-source.d.cts.map +1 -0
- package/dist/actions/add-labels-to-source.d.mts +28 -0
- package/dist/actions/add-labels-to-source.d.mts.map +1 -0
- package/dist/actions/add-labels-to-source.mjs +26 -0
- package/dist/actions/add-labels-to-source.mjs.map +1 -0
- package/dist/actions/alias.cjs +23 -0
- package/dist/actions/alias.cjs.map +1 -0
- package/dist/actions/alias.d.cts +23 -0
- package/dist/actions/alias.d.cts.map +1 -0
- package/dist/actions/alias.d.mts +23 -0
- package/dist/actions/alias.d.mts.map +1 -0
- package/dist/actions/alias.mjs +20 -0
- package/dist/actions/alias.mjs.map +1 -0
- package/dist/actions/batch.cjs +21 -0
- package/dist/actions/batch.cjs.map +1 -0
- package/dist/actions/batch.d.cts +19 -0
- package/dist/actions/batch.d.cts.map +1 -0
- package/dist/actions/batch.d.mts +19 -0
- package/dist/actions/batch.d.mts.map +1 -0
- package/dist/actions/batch.mjs +18 -0
- package/dist/actions/batch.mjs.map +1 -0
- package/dist/actions/delete-source.cjs +17 -0
- package/dist/actions/delete-source.cjs.map +1 -0
- package/dist/actions/delete-source.d.cts +17 -0
- package/dist/actions/delete-source.d.cts.map +1 -0
- package/dist/actions/delete-source.d.mts +17 -0
- package/dist/actions/delete-source.d.mts.map +1 -0
- package/dist/actions/delete-source.mjs +16 -0
- package/dist/actions/delete-source.mjs.map +1 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.cjs +37 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.cjs.map +1 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.d.cts +35 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.d.cts.map +1 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.d.mts +35 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.d.mts.map +1 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.mjs +36 -0
- package/dist/actions/get-daily-per-source-api-calls-usage.mjs.map +1 -0
- package/dist/actions/get-destination.cjs +78 -0
- package/dist/actions/get-destination.cjs.map +1 -0
- package/dist/actions/get-destination.d.cts +71 -0
- package/dist/actions/get-destination.d.cts.map +1 -0
- package/dist/actions/get-destination.d.mts +71 -0
- package/dist/actions/get-destination.d.mts.map +1 -0
- package/dist/actions/get-destination.mjs +77 -0
- package/dist/actions/get-destination.mjs.map +1 -0
- package/dist/actions/group.cjs +25 -0
- package/dist/actions/group.cjs.map +1 -0
- package/dist/actions/group.d.cts +27 -0
- package/dist/actions/group.d.cts.map +1 -0
- package/dist/actions/group.d.mts +27 -0
- package/dist/actions/group.d.mts.map +1 -0
- package/dist/actions/group.mjs +22 -0
- package/dist/actions/group.mjs.map +1 -0
- package/dist/actions/identify.cjs +25 -0
- package/dist/actions/identify.cjs.map +1 -0
- package/dist/actions/identify.d.cts +27 -0
- package/dist/actions/identify.d.cts.map +1 -0
- package/dist/actions/identify.d.mts +27 -0
- package/dist/actions/identify.d.mts.map +1 -0
- package/dist/actions/identify.mjs +22 -0
- package/dist/actions/identify.mjs.map +1 -0
- package/dist/actions/import-historical-data.cjs +20 -0
- package/dist/actions/import-historical-data.cjs.map +1 -0
- package/dist/actions/import-historical-data.d.cts +19 -0
- package/dist/actions/import-historical-data.d.cts.map +1 -0
- package/dist/actions/import-historical-data.d.mts +19 -0
- package/dist/actions/import-historical-data.d.mts.map +1 -0
- package/dist/actions/import-historical-data.mjs +17 -0
- package/dist/actions/import-historical-data.mjs.map +1 -0
- package/dist/actions/index.cjs +35 -0
- package/dist/actions/index.d.cts +18 -0
- package/dist/actions/index.d.mts +18 -0
- package/dist/actions/index.mjs +18 -0
- package/dist/actions/list-connected-warehouses-from-source.cjs +55 -0
- package/dist/actions/list-connected-warehouses-from-source.cjs.map +1 -0
- package/dist/actions/list-connected-warehouses-from-source.d.cts +50 -0
- package/dist/actions/list-connected-warehouses-from-source.d.cts.map +1 -0
- package/dist/actions/list-connected-warehouses-from-source.d.mts +50 -0
- package/dist/actions/list-connected-warehouses-from-source.d.mts.map +1 -0
- package/dist/actions/list-connected-warehouses-from-source.mjs +54 -0
- package/dist/actions/list-connected-warehouses-from-source.mjs.map +1 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.cjs +41 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.cjs.map +1 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts +40 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.cts.map +1 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts +40 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.d.mts.map +1 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.mjs +40 -0
- package/dist/actions/list-delivery-metrics-summary-from-destination.mjs.map +1 -0
- package/dist/actions/list-schema-settings-in-source.cjs +44 -0
- package/dist/actions/list-schema-settings-in-source.cjs.map +1 -0
- package/dist/actions/list-schema-settings-in-source.d.cts +38 -0
- package/dist/actions/list-schema-settings-in-source.d.cts.map +1 -0
- package/dist/actions/list-schema-settings-in-source.d.mts +38 -0
- package/dist/actions/list-schema-settings-in-source.d.mts.map +1 -0
- package/dist/actions/list-schema-settings-in-source.mjs +43 -0
- package/dist/actions/list-schema-settings-in-source.mjs.map +1 -0
- package/dist/actions/page.cjs +26 -0
- package/dist/actions/page.cjs.map +1 -0
- package/dist/actions/page.d.cts +29 -0
- package/dist/actions/page.d.cts.map +1 -0
- package/dist/actions/page.d.mts +29 -0
- package/dist/actions/page.d.mts.map +1 -0
- package/dist/actions/page.mjs +23 -0
- package/dist/actions/page.mjs.map +1 -0
- package/dist/actions/remove-source-write-key.cjs +20 -0
- package/dist/actions/remove-source-write-key.cjs.map +1 -0
- package/dist/actions/remove-source-write-key.d.cts +19 -0
- package/dist/actions/remove-source-write-key.d.cts.map +1 -0
- package/dist/actions/remove-source-write-key.d.mts +19 -0
- package/dist/actions/remove-source-write-key.d.mts.map +1 -0
- package/dist/actions/remove-source-write-key.mjs +19 -0
- package/dist/actions/remove-source-write-key.mjs.map +1 -0
- package/dist/actions/screen.cjs +25 -0
- package/dist/actions/screen.cjs.map +1 -0
- package/dist/actions/screen.d.cts +27 -0
- package/dist/actions/screen.d.cts.map +1 -0
- package/dist/actions/screen.d.mts +27 -0
- package/dist/actions/screen.d.mts.map +1 -0
- package/dist/actions/screen.mjs +22 -0
- package/dist/actions/screen.mjs.map +1 -0
- package/dist/actions/track.cjs +25 -0
- package/dist/actions/track.cjs.map +1 -0
- package/dist/actions/track.d.cts +27 -0
- package/dist/actions/track.d.cts.map +1 -0
- package/dist/actions/track.d.mts +27 -0
- package/dist/actions/track.d.mts.map +1 -0
- package/dist/actions/track.mjs +22 -0
- package/dist/actions/track.mjs.map +1 -0
- package/dist/actions/update-source.cjs +51 -0
- package/dist/actions/update-source.cjs.map +1 -0
- package/dist/actions/update-source.d.cts +50 -0
- package/dist/actions/update-source.d.cts.map +1 -0
- package/dist/actions/update-source.d.mts +50 -0
- package/dist/actions/update-source.d.mts.map +1 -0
- package/dist/actions/update-source.mjs +50 -0
- package/dist/actions/update-source.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +27 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +26 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +26 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +27 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +40 -0
- package/dist/index.d.cts +20 -0
- package/dist/index.d.mts +20 -4
- package/dist/index.mjs +21 -5
- package/package.json +31 -60
- package/LICENSE +0 -21
- package/dist/client-DQfeZzLR.mjs +0 -362
- package/dist/common-DUU0airJ.mjs +0 -56
- package/dist/credential-sets/index.d.mts +0 -2
- package/dist/credential-sets/index.mjs +0 -3
- package/dist/operations/index.d.mts +0 -2
- package/dist/operations/index.mjs +0 -3
- package/dist/schemas/index.d.mts +0 -57
- package/dist/schemas/index.mjs +0 -3
- package/dist/segment.credential-set-BTTrkHO7.mjs +0 -33
- package/dist/segment.credential-set-BgROtI_9.d.mts +0 -57
- package/dist/triggers/index.d.mts +0 -110
- package/dist/triggers/index.mjs +0 -367
- package/dist/workspace-list-spaces.operation-DKWX3vl5.mjs +0 -5200
- package/dist/workspace-list-spaces.operation-DNIUfIuv.d.mts +0 -6548
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/group.d.ts
|
|
4
|
+
declare const SegmentGroupInput: z.ZodObject<{
|
|
5
|
+
traits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
groupId: z.ZodString;
|
|
9
|
+
writeKey: z.ZodOptional<z.ZodString>;
|
|
10
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
11
|
+
anonymousId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
integrations: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const SegmentGroupOutput: z.ZodObject<{}, z.core.$strip>;
|
|
15
|
+
declare const segmentGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
groupId: string;
|
|
17
|
+
traits?: Record<string, unknown> | undefined;
|
|
18
|
+
userId?: string | undefined;
|
|
19
|
+
context?: Record<string, unknown> | undefined;
|
|
20
|
+
writeKey?: string | undefined;
|
|
21
|
+
timestamp?: string | undefined;
|
|
22
|
+
anonymousId?: string | undefined;
|
|
23
|
+
integrations?: Record<string, never> | undefined;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { segmentGroup };
|
|
27
|
+
//# sourceMappingURL=group.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.d.mts","names":[],"sources":["../../src/actions/group.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;cAUjB,kBAAA,EAAkB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAElB,YAAA,gCAAY,wBAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const segmentGroup = action("SEGMENT_GROUP", {
|
|
4
|
+
slug: "segment-group",
|
|
5
|
+
name: "Segment Group",
|
|
6
|
+
description: "Tool to associate an identified user with a group via Segment HTTP Tracking API. Use when grouping users with traits.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
traits: z.record(z.string(), z.unknown()).describe("Free-form dictionary of group traits (e.g., name, industry, employees).").optional(),
|
|
9
|
+
userId: z.string().describe("Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
10
|
+
context: z.record(z.string(), z.unknown()).describe("Additional contextual information (e.g., ip, locale, device).").optional(),
|
|
11
|
+
groupId: z.string().describe("Unique identifier for the group."),
|
|
12
|
+
writeKey: z.string().describe("Write key for authentication if not using OAuth Bearer token.").optional(),
|
|
13
|
+
timestamp: z.string().describe("ISO-8601 timestamp when the event occurred; if omitted, server time is used.").optional(),
|
|
14
|
+
anonymousId: z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
15
|
+
integrations: z.object({}).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
|
|
16
|
+
}).describe("Request model for associating a user with a group via Segment HTTP Tracking API.\nExactly one of 'userId' or 'anonymousId' must be provided."),
|
|
17
|
+
output: z.object({}).describe("Empty response indicating group association was accepted. Success is indicated by HTTP 200 status code.")
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { segmentGroup };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=group.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.mjs","names":[],"sources":["../../src/actions/group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentGroupInput = z.object({\n traits: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of group traits (e.g., name, industry, employees).\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n groupId: z.string().describe(\"Unique identifier for the group.\"),\n writeKey: z.string().describe(\"Write key for authentication if not using OAuth Bearer token.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the event occurred; if omitted, server time is used.\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.object({}).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for associating a user with a group via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentGroupOutput = z.object({}).describe(\"Empty response indicating group association was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentGroup = action(\"SEGMENT_GROUP\", {\n slug: \"segment-group\",\n name: \"Segment Group\",\n description: \"Tool to associate an identified user with a group via Segment HTTP Tracking API. Use when grouping users with traits.\",\n input: SegmentGroupInput,\n output: SegmentGroupOutput,\n});\n"],"mappings":";;AAgBA,MAAa,eAAe,OAAO,iBAAiB;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB+B,EAAE,OAAO;EACxC,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EACvI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC3H,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC9H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EACxG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACxH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC9I,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,8IAOH;CACP,QAPgC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAO9C;AACV,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/identify.ts
|
|
4
|
+
const SegmentIdentifyInput = zod.z.object({
|
|
5
|
+
traits: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Free-form dictionary of user traits (e.g., email, name, plan).").optional(),
|
|
6
|
+
userId: zod.z.string().describe("Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
7
|
+
context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional contextual information (e.g., ip, locale, device).").optional(),
|
|
8
|
+
writeKey: zod.z.string().describe("Write key for authentication if not using Basic or OAuth headers.").optional(),
|
|
9
|
+
messageId: zod.z.string().describe("Unique id for deduplication; Segment auto-generates one if omitted.").optional(),
|
|
10
|
+
timestamp: zod.z.string().describe("ISO-8601 timestamp when the identification occurred; if omitted, server time is used.").optional(),
|
|
11
|
+
anonymousId: zod.z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
12
|
+
integrations: zod.z.object({}).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
|
|
13
|
+
}).describe("Request model for identifying a user and setting/updating user traits via Segment HTTP Tracking API.\nExactly one of 'userId' or 'anonymousId' must be provided.");
|
|
14
|
+
const SegmentIdentifyOutput = zod.z.object({}).describe("Empty response indicating the identify call was accepted. Success is indicated by HTTP 200 status code.");
|
|
15
|
+
const segmentIdentify = require_action.action("SEGMENT_IDENTIFY", {
|
|
16
|
+
slug: "segment-identify",
|
|
17
|
+
name: "Segment Identify",
|
|
18
|
+
description: "Tool to identify a user and set/update traits via Segment HTTP Tracking API.",
|
|
19
|
+
input: SegmentIdentifyInput,
|
|
20
|
+
output: SegmentIdentifyOutput
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.segmentIdentify = segmentIdentify;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=identify.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identify.cjs","names":["z","action"],"sources":["../../src/actions/identify.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentIdentifyInput = z.object({\n traits: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of user traits (e.g., email, name, plan).\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or OAuth headers.\").optional(),\n messageId: z.string().describe(\"Unique id for deduplication; Segment auto-generates one if omitted.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the identification occurred; if omitted, server time is used.\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.object({}).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for identifying a user and setting/updating user traits via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentIdentifyOutput = z.object({}).describe(\"Empty response indicating the identify call was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentIdentify = action(\"SEGMENT_IDENTIFY\", {\n slug: \"segment-identify\",\n name: \"Segment Identify\",\n description: \"Tool to identify a user and set/update traits via Segment HTTP Tracking API.\",\n input: SegmentIdentifyInput,\n output: SegmentIdentifyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC9H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3H,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC9H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CACjI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,kKAAkK;AAC9K,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAAyG;AAEpK,MAAa,kBAAkBC,eAAAA,OAAO,oBAAoB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/identify.d.ts
|
|
4
|
+
declare const SegmentIdentifyInput: z.ZodObject<{
|
|
5
|
+
traits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
writeKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
11
|
+
anonymousId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
integrations: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const SegmentIdentifyOutput: z.ZodObject<{}, z.core.$strip>;
|
|
15
|
+
declare const segmentIdentify: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
traits?: Record<string, unknown> | undefined;
|
|
17
|
+
userId?: string | undefined;
|
|
18
|
+
context?: Record<string, unknown> | undefined;
|
|
19
|
+
writeKey?: string | undefined;
|
|
20
|
+
messageId?: string | undefined;
|
|
21
|
+
timestamp?: string | undefined;
|
|
22
|
+
anonymousId?: string | undefined;
|
|
23
|
+
integrations?: Record<string, never> | undefined;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { segmentIdentify };
|
|
27
|
+
//# sourceMappingURL=identify.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identify.d.cts","names":[],"sources":["../../src/actions/identify.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAUpB,qBAAA,EAAqB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAErB,eAAA,gCAAe,wBAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/identify.d.ts
|
|
4
|
+
declare const SegmentIdentifyInput: z.ZodObject<{
|
|
5
|
+
traits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
writeKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
11
|
+
anonymousId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
integrations: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const SegmentIdentifyOutput: z.ZodObject<{}, z.core.$strip>;
|
|
15
|
+
declare const segmentIdentify: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
traits?: Record<string, unknown> | undefined;
|
|
17
|
+
userId?: string | undefined;
|
|
18
|
+
context?: Record<string, unknown> | undefined;
|
|
19
|
+
writeKey?: string | undefined;
|
|
20
|
+
messageId?: string | undefined;
|
|
21
|
+
timestamp?: string | undefined;
|
|
22
|
+
anonymousId?: string | undefined;
|
|
23
|
+
integrations?: Record<string, never> | undefined;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { segmentIdentify };
|
|
27
|
+
//# sourceMappingURL=identify.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identify.d.mts","names":[],"sources":["../../src/actions/identify.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAUpB,qBAAA,EAAqB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAErB,eAAA,gCAAe,wBAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const segmentIdentify = action("SEGMENT_IDENTIFY", {
|
|
4
|
+
slug: "segment-identify",
|
|
5
|
+
name: "Segment Identify",
|
|
6
|
+
description: "Tool to identify a user and set/update traits via Segment HTTP Tracking API.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
traits: z.record(z.string(), z.unknown()).describe("Free-form dictionary of user traits (e.g., email, name, plan).").optional(),
|
|
9
|
+
userId: z.string().describe("Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
10
|
+
context: z.record(z.string(), z.unknown()).describe("Additional contextual information (e.g., ip, locale, device).").optional(),
|
|
11
|
+
writeKey: z.string().describe("Write key for authentication if not using Basic or OAuth headers.").optional(),
|
|
12
|
+
messageId: z.string().describe("Unique id for deduplication; Segment auto-generates one if omitted.").optional(),
|
|
13
|
+
timestamp: z.string().describe("ISO-8601 timestamp when the identification occurred; if omitted, server time is used.").optional(),
|
|
14
|
+
anonymousId: z.string().describe("Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.").optional(),
|
|
15
|
+
integrations: z.object({}).describe("Per-destination enable/disable controls (case-sensitive keys).").optional()
|
|
16
|
+
}).describe("Request model for identifying a user and setting/updating user traits via Segment HTTP Tracking API.\nExactly one of 'userId' or 'anonymousId' must be provided."),
|
|
17
|
+
output: z.object({}).describe("Empty response indicating the identify call was accepted. Success is indicated by HTTP 200 status code.")
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { segmentIdentify };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=identify.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identify.mjs","names":[],"sources":["../../src/actions/identify.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentIdentifyInput = z.object({\n traits: z.record(z.string(), z.unknown()).describe(\"Free-form dictionary of user traits (e.g., email, name, plan).\").optional(),\n userId: z.string().describe(\"Unique user identifier. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n context: z.record(z.string(), z.unknown()).describe(\"Additional contextual information (e.g., ip, locale, device).\").optional(),\n writeKey: z.string().describe(\"Write key for authentication if not using Basic or OAuth headers.\").optional(),\n messageId: z.string().describe(\"Unique id for deduplication; Segment auto-generates one if omitted.\").optional(),\n timestamp: z.string().describe(\"ISO-8601 timestamp when the identification occurred; if omitted, server time is used.\").optional(),\n anonymousId: z.string().describe(\"Pseudo-unique ID for anonymous users. Exactly one of 'userId' or 'anonymousId' must be provided.\").optional(),\n integrations: z.object({}).describe(\"Per-destination enable/disable controls (case-sensitive keys).\").optional(),\n}).describe(\"Request model for identifying a user and setting/updating user traits via Segment HTTP Tracking API.\\nExactly one of 'userId' or 'anonymousId' must be provided.\");\nexport const SegmentIdentifyOutput = z.object({}).describe(\"Empty response indicating the identify call was accepted. Success is indicated by HTTP 200 status code.\");\n\nexport const segmentIdentify = action(\"SEGMENT_IDENTIFY\", {\n slug: \"segment-identify\",\n name: \"Segment Identify\",\n description: \"Tool to identify a user and set/update traits via Segment HTTP Tracking API.\",\n input: SegmentIdentifyInput,\n output: SegmentIdentifyOutput,\n});\n"],"mappings":";;AAgBA,MAAa,kBAAkB,OAAO,oBAAoB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBkC,EAAE,OAAO;EAC3C,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC9H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC3H,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC9H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EACjI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC9I,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,kKAOH;CACP,QAPmC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAOjD;AACV,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/import-historical-data.ts
|
|
4
|
+
const SegmentImportHistoricalDataInput = zod.z.object({
|
|
5
|
+
batch: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of event objects to import. Each event should contain: type (track/identify/page/screen/group), userId or anonymousId, timestamp (ISO 8601 format for historical data), and event-specific properties."),
|
|
6
|
+
context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional top-level context merged into each call's context.").optional(),
|
|
7
|
+
integrations: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional top-level integrations merged into each call's integrations.").optional()
|
|
8
|
+
}).describe("Request schema for importing historical data in bulk with historical timestamps.");
|
|
9
|
+
const SegmentImportHistoricalDataOutput = zod.z.object({ success: zod.z.boolean().describe("Indicates whether the import was successful.").nullable() }).describe("Response schema for the import call.");
|
|
10
|
+
const segmentImportHistoricalData = require_action.action("SEGMENT_IMPORT_HISTORICAL_DATA", {
|
|
11
|
+
slug: "segment-import-historical-data",
|
|
12
|
+
name: "Import Historical Data",
|
|
13
|
+
description: "Tool to import historical data in bulk with support for historical timestamps. Use when you need to backfill or import past events with their original timestamps into Segment.",
|
|
14
|
+
input: SegmentImportHistoricalDataInput,
|
|
15
|
+
output: SegmentImportHistoricalDataOutput
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.segmentImportHistoricalData = segmentImportHistoricalData;
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=import-historical-data.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-historical-data.cjs","names":["z","action"],"sources":["../../src/actions/import-historical-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentImportHistoricalDataInput = z.object({\n batch: z.array(z.record(z.string(), z.unknown())).describe(\"Array of event objects to import. Each event should contain: type (track/identify/page/screen/group), userId or anonymousId, timestamp (ISO 8601 format for historical data), and event-specific properties.\"),\n context: z.record(z.string(), z.unknown()).describe(\"Optional top-level context merged into each call's context.\").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 importing historical data in bulk with historical timestamps.\");\nexport const SegmentImportHistoricalDataOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the import was successful.\").nullable(),\n}).describe(\"Response schema for the import call.\");\n\nexport const segmentImportHistoricalData = action(\"SEGMENT_IMPORT_HISTORICAL_DATA\", {\n slug: \"segment-import-historical-data\",\n name: \"Import Historical Data\",\n description: \"Tool to import historical data in bulk with support for historical timestamps. Use when you need to backfill or import past events with their original timestamps into Segment.\",\n input: SegmentImportHistoricalDataInput,\n output: SegmentImportHistoricalDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8MAA8M;CACzQ,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAC5H,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/import-historical-data.d.ts
|
|
4
|
+
declare const SegmentImportHistoricalDataInput: z.ZodObject<{
|
|
5
|
+
batch: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
|
+
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const SegmentImportHistoricalDataOutput: z.ZodObject<{
|
|
10
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const segmentImportHistoricalData: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
batch: Record<string, unknown>[];
|
|
14
|
+
context?: Record<string, unknown> | undefined;
|
|
15
|
+
integrations?: Record<string, unknown> | undefined;
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { segmentImportHistoricalData };
|
|
19
|
+
//# sourceMappingURL=import-historical-data.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-historical-data.d.cts","names":[],"sources":["../../src/actions/import-historical-data.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAKhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/import-historical-data.d.ts
|
|
4
|
+
declare const SegmentImportHistoricalDataInput: z.ZodObject<{
|
|
5
|
+
batch: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
|
+
integrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const SegmentImportHistoricalDataOutput: z.ZodObject<{
|
|
10
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const segmentImportHistoricalData: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
batch: Record<string, unknown>[];
|
|
14
|
+
context?: Record<string, unknown> | undefined;
|
|
15
|
+
integrations?: Record<string, unknown> | undefined;
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { segmentImportHistoricalData };
|
|
19
|
+
//# sourceMappingURL=import-historical-data.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-historical-data.d.mts","names":[],"sources":["../../src/actions/import-historical-data.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAKhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const segmentImportHistoricalData = action("SEGMENT_IMPORT_HISTORICAL_DATA", {
|
|
4
|
+
slug: "segment-import-historical-data",
|
|
5
|
+
name: "Import Historical Data",
|
|
6
|
+
description: "Tool to import historical data in bulk with support for historical timestamps. Use when you need to backfill or import past events with their original timestamps into Segment.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
batch: z.array(z.record(z.string(), z.unknown())).describe("Array of event objects to import. Each event should contain: type (track/identify/page/screen/group), userId or anonymousId, timestamp (ISO 8601 format for historical data), and event-specific properties."),
|
|
9
|
+
context: z.record(z.string(), z.unknown()).describe("Optional top-level context merged into each call's context.").optional(),
|
|
10
|
+
integrations: z.record(z.string(), z.unknown()).describe("Optional top-level integrations merged into each call's integrations.").optional()
|
|
11
|
+
}).describe("Request schema for importing historical data in bulk with historical timestamps."),
|
|
12
|
+
output: z.object({ success: z.boolean().describe("Indicates whether the import was successful.").nullable() }).describe("Response schema for the import call.")
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { segmentImportHistoricalData };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=import-historical-data.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-historical-data.mjs","names":[],"sources":["../../src/actions/import-historical-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentImportHistoricalDataInput = z.object({\n batch: z.array(z.record(z.string(), z.unknown())).describe(\"Array of event objects to import. Each event should contain: type (track/identify/page/screen/group), userId or anonymousId, timestamp (ISO 8601 format for historical data), and event-specific properties.\"),\n context: z.record(z.string(), z.unknown()).describe(\"Optional top-level context merged into each call's context.\").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 importing historical data in bulk with historical timestamps.\");\nexport const SegmentImportHistoricalDataOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the import was successful.\").nullable(),\n}).describe(\"Response schema for the import call.\");\n\nexport const segmentImportHistoricalData = action(\"SEGMENT_IMPORT_HISTORICAL_DATA\", {\n slug: \"segment-import-historical-data\",\n name: \"Import Historical Data\",\n description: \"Tool to import historical data in bulk with support for historical timestamps. Use when you need to backfill or import past events with their original timestamps into Segment.\",\n input: SegmentImportHistoricalDataInput,\n output: SegmentImportHistoricalDataOutput,\n});\n"],"mappings":";;AAaA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb8C,EAAE,OAAO;EACvD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8MAA8M;EACzQ,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAC5H,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,SAAS,kFASH;CACP,QAT+C,EAAE,OAAO,EACxD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_add_labels_to_source = require("./add-labels-to-source.cjs");
|
|
3
|
+
const require_alias = require("./alias.cjs");
|
|
4
|
+
const require_batch = require("./batch.cjs");
|
|
5
|
+
const require_delete_source = require("./delete-source.cjs");
|
|
6
|
+
const require_get_daily_per_source_api_calls_usage = require("./get-daily-per-source-api-calls-usage.cjs");
|
|
7
|
+
const require_get_destination = require("./get-destination.cjs");
|
|
8
|
+
const require_group = require("./group.cjs");
|
|
9
|
+
const require_identify = require("./identify.cjs");
|
|
10
|
+
const require_import_historical_data = require("./import-historical-data.cjs");
|
|
11
|
+
const require_list_connected_warehouses_from_source = require("./list-connected-warehouses-from-source.cjs");
|
|
12
|
+
const require_list_delivery_metrics_summary_from_destination = require("./list-delivery-metrics-summary-from-destination.cjs");
|
|
13
|
+
const require_list_schema_settings_in_source = require("./list-schema-settings-in-source.cjs");
|
|
14
|
+
const require_page = require("./page.cjs");
|
|
15
|
+
const require_remove_source_write_key = require("./remove-source-write-key.cjs");
|
|
16
|
+
const require_screen = require("./screen.cjs");
|
|
17
|
+
const require_track = require("./track.cjs");
|
|
18
|
+
const require_update_source = require("./update-source.cjs");
|
|
19
|
+
exports.segmentAddLabelsToSource = require_add_labels_to_source.segmentAddLabelsToSource;
|
|
20
|
+
exports.segmentAlias = require_alias.segmentAlias;
|
|
21
|
+
exports.segmentBatch = require_batch.segmentBatch;
|
|
22
|
+
exports.segmentDeleteSource = require_delete_source.segmentDeleteSource;
|
|
23
|
+
exports.segmentGetDailyPerSourceApiCallsUsage = require_get_daily_per_source_api_calls_usage.segmentGetDailyPerSourceApiCallsUsage;
|
|
24
|
+
exports.segmentGetDestination = require_get_destination.segmentGetDestination;
|
|
25
|
+
exports.segmentGroup = require_group.segmentGroup;
|
|
26
|
+
exports.segmentIdentify = require_identify.segmentIdentify;
|
|
27
|
+
exports.segmentImportHistoricalData = require_import_historical_data.segmentImportHistoricalData;
|
|
28
|
+
exports.segmentListConnectedWarehousesFromSource = require_list_connected_warehouses_from_source.segmentListConnectedWarehousesFromSource;
|
|
29
|
+
exports.segmentListDeliveryMetricsSummaryFromDestination = require_list_delivery_metrics_summary_from_destination.segmentListDeliveryMetricsSummaryFromDestination;
|
|
30
|
+
exports.segmentListSchemaSettingsInSource = require_list_schema_settings_in_source.segmentListSchemaSettingsInSource;
|
|
31
|
+
exports.segmentPage = require_page.segmentPage;
|
|
32
|
+
exports.segmentRemoveSourceWriteKey = require_remove_source_write_key.segmentRemoveSourceWriteKey;
|
|
33
|
+
exports.segmentScreen = require_screen.segmentScreen;
|
|
34
|
+
exports.segmentTrack = require_track.segmentTrack;
|
|
35
|
+
exports.segmentUpdateSource = require_update_source.segmentUpdateSource;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { segmentAddLabelsToSource } from "./add-labels-to-source.cjs";
|
|
2
|
+
import { segmentAlias } from "./alias.cjs";
|
|
3
|
+
import { segmentBatch } from "./batch.cjs";
|
|
4
|
+
import { segmentDeleteSource } from "./delete-source.cjs";
|
|
5
|
+
import { segmentGetDailyPerSourceApiCallsUsage } from "./get-daily-per-source-api-calls-usage.cjs";
|
|
6
|
+
import { segmentGetDestination } from "./get-destination.cjs";
|
|
7
|
+
import { segmentGroup } from "./group.cjs";
|
|
8
|
+
import { segmentIdentify } from "./identify.cjs";
|
|
9
|
+
import { segmentImportHistoricalData } from "./import-historical-data.cjs";
|
|
10
|
+
import { segmentListConnectedWarehousesFromSource } from "./list-connected-warehouses-from-source.cjs";
|
|
11
|
+
import { segmentListDeliveryMetricsSummaryFromDestination } from "./list-delivery-metrics-summary-from-destination.cjs";
|
|
12
|
+
import { segmentListSchemaSettingsInSource } from "./list-schema-settings-in-source.cjs";
|
|
13
|
+
import { segmentPage } from "./page.cjs";
|
|
14
|
+
import { segmentRemoveSourceWriteKey } from "./remove-source-write-key.cjs";
|
|
15
|
+
import { segmentScreen } from "./screen.cjs";
|
|
16
|
+
import { segmentTrack } from "./track.cjs";
|
|
17
|
+
import { segmentUpdateSource } from "./update-source.cjs";
|
|
18
|
+
export { segmentAddLabelsToSource, segmentAlias, segmentBatch, segmentDeleteSource, segmentGetDailyPerSourceApiCallsUsage, segmentGetDestination, segmentGroup, segmentIdentify, segmentImportHistoricalData, segmentListConnectedWarehousesFromSource, segmentListDeliveryMetricsSummaryFromDestination, segmentListSchemaSettingsInSource, segmentPage, segmentRemoveSourceWriteKey, segmentScreen, segmentTrack, segmentUpdateSource };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { segmentAddLabelsToSource } from "./add-labels-to-source.mjs";
|
|
2
|
+
import { segmentAlias } from "./alias.mjs";
|
|
3
|
+
import { segmentBatch } from "./batch.mjs";
|
|
4
|
+
import { segmentDeleteSource } from "./delete-source.mjs";
|
|
5
|
+
import { segmentGetDailyPerSourceApiCallsUsage } from "./get-daily-per-source-api-calls-usage.mjs";
|
|
6
|
+
import { segmentGetDestination } from "./get-destination.mjs";
|
|
7
|
+
import { segmentGroup } from "./group.mjs";
|
|
8
|
+
import { segmentIdentify } from "./identify.mjs";
|
|
9
|
+
import { segmentImportHistoricalData } from "./import-historical-data.mjs";
|
|
10
|
+
import { segmentListConnectedWarehousesFromSource } from "./list-connected-warehouses-from-source.mjs";
|
|
11
|
+
import { segmentListDeliveryMetricsSummaryFromDestination } from "./list-delivery-metrics-summary-from-destination.mjs";
|
|
12
|
+
import { segmentListSchemaSettingsInSource } from "./list-schema-settings-in-source.mjs";
|
|
13
|
+
import { segmentPage } from "./page.mjs";
|
|
14
|
+
import { segmentRemoveSourceWriteKey } from "./remove-source-write-key.mjs";
|
|
15
|
+
import { segmentScreen } from "./screen.mjs";
|
|
16
|
+
import { segmentTrack } from "./track.mjs";
|
|
17
|
+
import { segmentUpdateSource } from "./update-source.mjs";
|
|
18
|
+
export { segmentAddLabelsToSource, segmentAlias, segmentBatch, segmentDeleteSource, segmentGetDailyPerSourceApiCallsUsage, segmentGetDestination, segmentGroup, segmentIdentify, segmentImportHistoricalData, segmentListConnectedWarehousesFromSource, segmentListDeliveryMetricsSummaryFromDestination, segmentListSchemaSettingsInSource, segmentPage, segmentRemoveSourceWriteKey, segmentScreen, segmentTrack, segmentUpdateSource };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { segmentAddLabelsToSource } from "./add-labels-to-source.mjs";
|
|
2
|
+
import { segmentAlias } from "./alias.mjs";
|
|
3
|
+
import { segmentBatch } from "./batch.mjs";
|
|
4
|
+
import { segmentDeleteSource } from "./delete-source.mjs";
|
|
5
|
+
import { segmentGetDailyPerSourceApiCallsUsage } from "./get-daily-per-source-api-calls-usage.mjs";
|
|
6
|
+
import { segmentGetDestination } from "./get-destination.mjs";
|
|
7
|
+
import { segmentGroup } from "./group.mjs";
|
|
8
|
+
import { segmentIdentify } from "./identify.mjs";
|
|
9
|
+
import { segmentImportHistoricalData } from "./import-historical-data.mjs";
|
|
10
|
+
import { segmentListConnectedWarehousesFromSource } from "./list-connected-warehouses-from-source.mjs";
|
|
11
|
+
import { segmentListDeliveryMetricsSummaryFromDestination } from "./list-delivery-metrics-summary-from-destination.mjs";
|
|
12
|
+
import { segmentListSchemaSettingsInSource } from "./list-schema-settings-in-source.mjs";
|
|
13
|
+
import { segmentPage } from "./page.mjs";
|
|
14
|
+
import { segmentRemoveSourceWriteKey } from "./remove-source-write-key.mjs";
|
|
15
|
+
import { segmentScreen } from "./screen.mjs";
|
|
16
|
+
import { segmentTrack } from "./track.mjs";
|
|
17
|
+
import { segmentUpdateSource } from "./update-source.mjs";
|
|
18
|
+
export { segmentAddLabelsToSource, segmentAlias, segmentBatch, segmentDeleteSource, segmentGetDailyPerSourceApiCallsUsage, segmentGetDestination, segmentGroup, segmentIdentify, segmentImportHistoricalData, segmentListConnectedWarehousesFromSource, segmentListDeliveryMetricsSummaryFromDestination, segmentListSchemaSettingsInSource, segmentPage, segmentRemoveSourceWriteKey, segmentScreen, segmentTrack, segmentUpdateSource };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-connected-warehouses-from-source.ts
|
|
4
|
+
const SegmentListConnectedWarehousesFromSourceInput = zod.z.object({
|
|
5
|
+
sourceId: zod.z.string().describe("ID of the Source to retrieve warehouses for."),
|
|
6
|
+
pagination: zod.z.object({
|
|
7
|
+
count: zod.z.number().int().describe("Number of items per page (1–1000)."),
|
|
8
|
+
cursor: zod.z.string().describe("Cursor token for the next page.").optional()
|
|
9
|
+
}).describe("Pagination parameters for the request.")
|
|
10
|
+
}).describe("Request parameters to list warehouses connected to a Segment source.");
|
|
11
|
+
const SegmentListConnectedWarehousesFromSource_PaginationInfoSchema = zod.z.object({
|
|
12
|
+
current: zod.z.string().describe("Cursor for the current page position (base64-encoded).").nullable(),
|
|
13
|
+
totalEntries: zod.z.number().int().describe("Total number of items available across pages.").nullable()
|
|
14
|
+
});
|
|
15
|
+
const SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema = zod.z.object({
|
|
16
|
+
alt: zod.z.string().describe("Alternate logo URL.").nullable(),
|
|
17
|
+
mark: zod.z.string().describe("Mark logo URL.").nullable(),
|
|
18
|
+
"default": zod.z.string().describe("Default logo URL.").nullable()
|
|
19
|
+
});
|
|
20
|
+
const SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema = zod.z.object({
|
|
21
|
+
name: zod.z.string().describe("Configuration option name.").nullable(),
|
|
22
|
+
type: zod.z.string().describe("Option data type.").nullable(),
|
|
23
|
+
required: zod.z.boolean().describe("Whether this option is required.").nullable()
|
|
24
|
+
});
|
|
25
|
+
const SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema = zod.z.object({
|
|
26
|
+
id: zod.z.string().describe("Metadata record ID.").nullable(),
|
|
27
|
+
name: zod.z.string().describe("Display name of the warehouse type.").nullable(),
|
|
28
|
+
slug: zod.z.string().describe("Short identifier (e.g., postgres, redshift).").nullable(),
|
|
29
|
+
logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),
|
|
30
|
+
options: zod.z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),
|
|
31
|
+
description: zod.z.string().describe("Brief description of the warehouse type.").nullable()
|
|
32
|
+
});
|
|
33
|
+
const SegmentListConnectedWarehousesFromSource_WarehouseSchema = zod.z.object({
|
|
34
|
+
id: zod.z.string().describe("Warehouse ID.").nullable(),
|
|
35
|
+
enabled: zod.z.boolean().describe("Whether the warehouse integration is enabled.").nullable(),
|
|
36
|
+
metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),
|
|
37
|
+
settings: zod.z.object({}).describe("Key-value map of warehouse-specific settings."),
|
|
38
|
+
workspaceId: zod.z.string().describe("Workspace ID this warehouse belongs to.").nullable()
|
|
39
|
+
});
|
|
40
|
+
const SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema = zod.z.object({
|
|
41
|
+
pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),
|
|
42
|
+
warehouses: zod.z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe("List of warehouses connected to the source.")
|
|
43
|
+
});
|
|
44
|
+
const SegmentListConnectedWarehousesFromSourceOutput = zod.z.object({ data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable() });
|
|
45
|
+
const segmentListConnectedWarehousesFromSource = require_action.action("SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE", {
|
|
46
|
+
slug: "segment-list-connected-warehouses-from-source",
|
|
47
|
+
name: "List Connected Warehouses From Source",
|
|
48
|
+
description: "Tool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.",
|
|
49
|
+
input: SegmentListConnectedWarehousesFromSourceInput,
|
|
50
|
+
output: SegmentListConnectedWarehousesFromSourceOutput
|
|
51
|
+
});
|
|
52
|
+
//#endregion
|
|
53
|
+
exports.segmentListConnectedWarehousesFromSource = segmentListConnectedWarehousesFromSource;
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=list-connected-warehouses-from-source.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-connected-warehouses-from-source.cjs","names":["z","action"],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmentListConnectedWarehousesFromSourceInput = z.object({\n sourceId: z.string().describe(\"ID of the Source to retrieve warehouses for.\"),\n pagination: z.object({\n count: z.number().int().describe(\"Number of items per page (1–1000).\"),\n cursor: z.string().describe(\"Cursor token for the next page.\").optional(),\n}).describe(\"Pagination parameters for the request.\"),\n}).describe(\"Request parameters to list warehouses connected to a Segment source.\");\nconst SegmentListConnectedWarehousesFromSource_PaginationInfoSchema = z.object({\n current: z.string().describe(\"Cursor for the current page position (base64-encoded).\").nullable(),\n totalEntries: z.number().int().describe(\"Total number of items available across pages.\").nullable(),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema = z.object({\n alt: z.string().describe(\"Alternate logo URL.\").nullable(),\n mark: z.string().describe(\"Mark logo URL.\").nullable(),\n \"default\": z.string().describe(\"Default logo URL.\").nullable(),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema = z.object({\n name: z.string().describe(\"Configuration option name.\").nullable(),\n type: z.string().describe(\"Option data type.\").nullable(),\n required: z.boolean().describe(\"Whether this option is required.\").nullable(),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema = z.object({\n id: z.string().describe(\"Metadata record ID.\").nullable(),\n name: z.string().describe(\"Display name of the warehouse type.\").nullable(),\n slug: z.string().describe(\"Short identifier (e.g., postgres, redshift).\").nullable(),\n logos: SegmentListConnectedWarehousesFromSource_WarehouseLogosSchema.nullable(),\n options: z.array(SegmentListConnectedWarehousesFromSource_WarehouseOptionSchema),\n description: z.string().describe(\"Brief description of the warehouse type.\").nullable(),\n});\nconst SegmentListConnectedWarehousesFromSource_WarehouseSchema = z.object({\n id: z.string().describe(\"Warehouse ID.\").nullable(),\n enabled: z.boolean().describe(\"Whether the warehouse integration is enabled.\").nullable(),\n metadata: SegmentListConnectedWarehousesFromSource_WarehouseMetadataSchema.nullable(),\n settings: z.object({}).describe(\"Key-value map of warehouse-specific settings.\"),\n workspaceId: z.string().describe(\"Workspace ID this warehouse belongs to.\").nullable(),\n});\nconst SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema = z.object({\n pagination: SegmentListConnectedWarehousesFromSource_PaginationInfoSchema.nullable(),\n warehouses: z.array(SegmentListConnectedWarehousesFromSource_WarehouseSchema).describe(\"List of warehouses connected to the source.\"),\n});\nexport const SegmentListConnectedWarehousesFromSourceOutput = z.object({\n data: SegmentListConnectedWarehousesFromSource_ListConnectedWarehousesFromSourceResponseDataSchema.nullable(),\n});\n\nexport const segmentListConnectedWarehousesFromSource = action(\"SEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCE\", {\n slug: \"segment-list-connected-warehouses-from-source\",\n name: \"List Connected Warehouses From Source\",\n description: \"Tool to list warehouses connected to a Source. Use when you need to retrieve warehouses for a given source ID.\",\n input: SegmentListConnectedWarehousesFromSourceInput,\n output: SegmentListConnectedWarehousesFromSourceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gDAAgDA,IAAAA,EAAE,OAAO;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAYA,IAAAA,EAAE,OAAO;EACrB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,gEAAgEA,IAAAA,EAAE,OAAO;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACpG,CAAC;AACD,MAAM,gEAAgEA,IAAAA,EAAE,OAAO;CAC7E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;AAC/D,CAAC;AACD,MAAM,iEAAiEA,IAAAA,EAAE,OAAO;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC9E,CAAC;AACD,MAAM,mEAAmEA,IAAAA,EAAE,OAAO;CAChF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,OAAO,8DAA8D,SAAS;CAC9E,SAASA,IAAAA,EAAE,MAAM,8DAA8D;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACxF,CAAC;AACD,MAAM,2DAA2DA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CAClD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAU,iEAAiE,SAAS;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACvF,CAAC;AACD,MAAM,+FAA+FA,IAAAA,EAAE,OAAO;CAC5G,YAAY,8DAA8D,SAAS;CACnF,YAAYA,IAAAA,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,6CAA6C;AACtI,CAAC;AACD,MAAa,iDAAiDA,IAAAA,EAAE,OAAO,EACrE,MAAM,6FAA6F,SAAS,EAC9G,CAAC;AAED,MAAa,2CAA2CC,eAAAA,OAAO,iDAAiD;CAC9G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-connected-warehouses-from-source.d.ts
|
|
4
|
+
declare const SegmentListConnectedWarehousesFromSourceInput: z.ZodObject<{
|
|
5
|
+
sourceId: z.ZodString;
|
|
6
|
+
pagination: z.ZodObject<{
|
|
7
|
+
count: z.ZodNumber;
|
|
8
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const SegmentListConnectedWarehousesFromSourceOutput: z.ZodObject<{
|
|
12
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
13
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
14
|
+
current: z.ZodNullable<z.ZodString>;
|
|
15
|
+
totalEntries: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
warehouses: z.ZodArray<z.ZodObject<{
|
|
18
|
+
id: z.ZodNullable<z.ZodString>;
|
|
19
|
+
enabled: z.ZodNullable<z.ZodBoolean>;
|
|
20
|
+
metadata: z.ZodNullable<z.ZodObject<{
|
|
21
|
+
id: z.ZodNullable<z.ZodString>;
|
|
22
|
+
name: z.ZodNullable<z.ZodString>;
|
|
23
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
24
|
+
logos: z.ZodNullable<z.ZodObject<{
|
|
25
|
+
alt: z.ZodNullable<z.ZodString>;
|
|
26
|
+
mark: z.ZodNullable<z.ZodString>;
|
|
27
|
+
default: z.ZodNullable<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
options: z.ZodArray<z.ZodObject<{
|
|
30
|
+
name: z.ZodNullable<z.ZodString>;
|
|
31
|
+
type: z.ZodNullable<z.ZodString>;
|
|
32
|
+
required: z.ZodNullable<z.ZodBoolean>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
description: z.ZodNullable<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
settings: z.ZodObject<{}, z.core.$strip>;
|
|
37
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
declare const segmentListConnectedWarehousesFromSource: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
|
+
sourceId: string;
|
|
43
|
+
pagination: {
|
|
44
|
+
count: number;
|
|
45
|
+
cursor?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { segmentListConnectedWarehousesFromSource };
|
|
50
|
+
//# sourceMappingURL=list-connected-warehouses-from-source.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-connected-warehouses-from-source.d.cts","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"mappings":";;;cAIa,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;;;cAwC7C,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9C,wCAAA,gCAAwC,wBAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-connected-warehouses-from-source.d.ts
|
|
4
|
+
declare const SegmentListConnectedWarehousesFromSourceInput: z.ZodObject<{
|
|
5
|
+
sourceId: z.ZodString;
|
|
6
|
+
pagination: z.ZodObject<{
|
|
7
|
+
count: z.ZodNumber;
|
|
8
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const SegmentListConnectedWarehousesFromSourceOutput: z.ZodObject<{
|
|
12
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
13
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
14
|
+
current: z.ZodNullable<z.ZodString>;
|
|
15
|
+
totalEntries: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
warehouses: z.ZodArray<z.ZodObject<{
|
|
18
|
+
id: z.ZodNullable<z.ZodString>;
|
|
19
|
+
enabled: z.ZodNullable<z.ZodBoolean>;
|
|
20
|
+
metadata: z.ZodNullable<z.ZodObject<{
|
|
21
|
+
id: z.ZodNullable<z.ZodString>;
|
|
22
|
+
name: z.ZodNullable<z.ZodString>;
|
|
23
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
24
|
+
logos: z.ZodNullable<z.ZodObject<{
|
|
25
|
+
alt: z.ZodNullable<z.ZodString>;
|
|
26
|
+
mark: z.ZodNullable<z.ZodString>;
|
|
27
|
+
default: z.ZodNullable<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
options: z.ZodArray<z.ZodObject<{
|
|
30
|
+
name: z.ZodNullable<z.ZodString>;
|
|
31
|
+
type: z.ZodNullable<z.ZodString>;
|
|
32
|
+
required: z.ZodNullable<z.ZodBoolean>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
description: z.ZodNullable<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
settings: z.ZodObject<{}, z.core.$strip>;
|
|
37
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
declare const segmentListConnectedWarehousesFromSource: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
|
+
sourceId: string;
|
|
43
|
+
pagination: {
|
|
44
|
+
count: number;
|
|
45
|
+
cursor?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { segmentListConnectedWarehousesFromSource };
|
|
50
|
+
//# sourceMappingURL=list-connected-warehouses-from-source.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-connected-warehouses-from-source.d.mts","names":[],"sources":["../../src/actions/list-connected-warehouses-from-source.ts"],"mappings":";;;cAIa,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;;;cAwC7C,8CAAA,EAA8C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI9C,wCAAA,gCAAwC,wBAAA"}
|