@keystrokehq/sender 0.1.0
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 +17 -0
- 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/create-field.cjs +38 -0
- package/dist/actions/create-field.cjs.map +1 -0
- package/dist/actions/create-field.d.cts +9 -0
- package/dist/actions/create-field.d.cts.map +1 -0
- package/dist/actions/create-field.d.mts +9 -0
- package/dist/actions/create-field.d.mts.map +1 -0
- package/dist/actions/create-field.mjs +37 -0
- package/dist/actions/create-field.mjs.map +1 -0
- package/dist/actions/create-or-update-subscriber.cjs +43 -0
- package/dist/actions/create-or-update-subscriber.cjs.map +1 -0
- package/dist/actions/create-or-update-subscriber.d.cts +9 -0
- package/dist/actions/create-or-update-subscriber.d.cts.map +1 -0
- package/dist/actions/create-or-update-subscriber.d.mts +9 -0
- package/dist/actions/create-or-update-subscriber.d.mts.map +1 -0
- package/dist/actions/create-or-update-subscriber.mjs +42 -0
- package/dist/actions/create-or-update-subscriber.mjs.map +1 -0
- package/dist/actions/get-all-fields.cjs +28 -0
- package/dist/actions/get-all-fields.cjs.map +1 -0
- package/dist/actions/get-all-fields.d.cts +9 -0
- package/dist/actions/get-all-fields.d.cts.map +1 -0
- package/dist/actions/get-all-fields.d.mts +9 -0
- package/dist/actions/get-all-fields.d.mts.map +1 -0
- package/dist/actions/get-all-fields.mjs +27 -0
- package/dist/actions/get-all-fields.mjs.map +1 -0
- package/dist/actions/get-all-workflows.cjs +23 -0
- package/dist/actions/get-all-workflows.cjs.map +1 -0
- package/dist/actions/get-all-workflows.d.cts +9 -0
- package/dist/actions/get-all-workflows.d.cts.map +1 -0
- package/dist/actions/get-all-workflows.d.mts +9 -0
- package/dist/actions/get-all-workflows.d.mts.map +1 -0
- package/dist/actions/get-all-workflows.mjs +22 -0
- package/dist/actions/get-all-workflows.mjs.map +1 -0
- package/dist/actions/get-campaign-by-id.cjs +33 -0
- package/dist/actions/get-campaign-by-id.cjs.map +1 -0
- package/dist/actions/get-campaign-by-id.d.cts +9 -0
- package/dist/actions/get-campaign-by-id.d.cts.map +1 -0
- package/dist/actions/get-campaign-by-id.d.mts +9 -0
- package/dist/actions/get-campaign-by-id.d.mts.map +1 -0
- package/dist/actions/get-campaign-by-id.mjs +30 -0
- package/dist/actions/get-campaign-by-id.mjs.map +1 -0
- package/dist/actions/get-group-by-id.cjs +26 -0
- package/dist/actions/get-group-by-id.cjs.map +1 -0
- package/dist/actions/get-group-by-id.d.cts +9 -0
- package/dist/actions/get-group-by-id.d.cts.map +1 -0
- package/dist/actions/get-group-by-id.d.mts +9 -0
- package/dist/actions/get-group-by-id.d.mts.map +1 -0
- package/dist/actions/get-group-by-id.mjs +23 -0
- package/dist/actions/get-group-by-id.mjs.map +1 -0
- package/dist/actions/get-subscriber-by-id.cjs +26 -0
- package/dist/actions/get-subscriber-by-id.cjs.map +1 -0
- package/dist/actions/get-subscriber-by-id.d.cts +9 -0
- package/dist/actions/get-subscriber-by-id.d.cts.map +1 -0
- package/dist/actions/get-subscriber-by-id.d.mts +9 -0
- package/dist/actions/get-subscriber-by-id.d.mts.map +1 -0
- package/dist/actions/get-subscriber-by-id.mjs +23 -0
- package/dist/actions/get-subscriber-by-id.mjs.map +1 -0
- package/dist/actions/index.cjs +17 -0
- package/dist/actions/index.d.cts +9 -0
- package/dist/actions/index.d.mts +9 -0
- package/dist/actions/index.mjs +9 -0
- package/dist/actions/update-subscriber-fields.cjs +39 -0
- package/dist/actions/update-subscriber-fields.cjs.map +1 -0
- package/dist/actions/update-subscriber-fields.d.cts +9 -0
- package/dist/actions/update-subscriber-fields.d.cts.map +1 -0
- package/dist/actions/update-subscriber-fields.d.mts +9 -0
- package/dist/actions/update-subscriber-fields.d.mts.map +1 -0
- package/dist/actions/update-subscriber-fields.mjs +38 -0
- package/dist/actions/update-subscriber-fields.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 +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -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 +22 -0
- package/dist/index.d.cts +11 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.mjs +12 -0
- package/package.json +49 -0
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "sender";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeSenderTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executeSenderTool = executeSenderTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"sender\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSenderTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,kBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "sender";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeSenderTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executeSenderTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"sender\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSenderTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,kBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_app = require("./app.cjs");
|
|
3
|
+
const require_catalog = require("./catalog.cjs");
|
|
4
|
+
const require_create_field = require("./actions/create-field.cjs");
|
|
5
|
+
const require_create_or_update_subscriber = require("./actions/create-or-update-subscriber.cjs");
|
|
6
|
+
const require_get_all_fields = require("./actions/get-all-fields.cjs");
|
|
7
|
+
const require_get_all_workflows = require("./actions/get-all-workflows.cjs");
|
|
8
|
+
const require_get_campaign_by_id = require("./actions/get-campaign-by-id.cjs");
|
|
9
|
+
const require_get_group_by_id = require("./actions/get-group-by-id.cjs");
|
|
10
|
+
const require_get_subscriber_by_id = require("./actions/get-subscriber-by-id.cjs");
|
|
11
|
+
const require_update_subscriber_fields = require("./actions/update-subscriber-fields.cjs");
|
|
12
|
+
require("./actions/index.cjs");
|
|
13
|
+
exports.sender = require_app.sender;
|
|
14
|
+
exports.senderCatalog = require_catalog.senderCatalog;
|
|
15
|
+
exports.senderCreateField = require_create_field.senderCreateField;
|
|
16
|
+
exports.senderCreateOrUpdateSubscriber = require_create_or_update_subscriber.senderCreateOrUpdateSubscriber;
|
|
17
|
+
exports.senderGetAllFields = require_get_all_fields.senderGetAllFields;
|
|
18
|
+
exports.senderGetAllWorkflows = require_get_all_workflows.senderGetAllWorkflows;
|
|
19
|
+
exports.senderGetCampaignById = require_get_campaign_by_id.senderGetCampaignById;
|
|
20
|
+
exports.senderGetGroupById = require_get_group_by_id.senderGetGroupById;
|
|
21
|
+
exports.senderGetSubscriberById = require_get_subscriber_by_id.senderGetSubscriberById;
|
|
22
|
+
exports.senderUpdateSubscriberFields = require_update_subscriber_fields.senderUpdateSubscriberFields;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { senderCreateField } from "./actions/create-field.cjs";
|
|
2
|
+
import { senderCreateOrUpdateSubscriber } from "./actions/create-or-update-subscriber.cjs";
|
|
3
|
+
import { senderGetAllFields } from "./actions/get-all-fields.cjs";
|
|
4
|
+
import { senderGetAllWorkflows } from "./actions/get-all-workflows.cjs";
|
|
5
|
+
import { senderGetCampaignById } from "./actions/get-campaign-by-id.cjs";
|
|
6
|
+
import { senderGetGroupById } from "./actions/get-group-by-id.cjs";
|
|
7
|
+
import { senderGetSubscriberById } from "./actions/get-subscriber-by-id.cjs";
|
|
8
|
+
import { senderUpdateSubscriberFields } from "./actions/update-subscriber-fields.cjs";
|
|
9
|
+
import { sender } from "./app.cjs";
|
|
10
|
+
import { senderCatalog } from "./catalog.cjs";
|
|
11
|
+
export { sender, senderCatalog, senderCreateField, senderCreateOrUpdateSubscriber, senderGetAllFields, senderGetAllWorkflows, senderGetCampaignById, senderGetGroupById, senderGetSubscriberById, senderUpdateSubscriberFields };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { senderCreateField } from "./actions/create-field.mjs";
|
|
2
|
+
import { senderCreateOrUpdateSubscriber } from "./actions/create-or-update-subscriber.mjs";
|
|
3
|
+
import { senderGetAllFields } from "./actions/get-all-fields.mjs";
|
|
4
|
+
import { senderGetAllWorkflows } from "./actions/get-all-workflows.mjs";
|
|
5
|
+
import { senderGetCampaignById } from "./actions/get-campaign-by-id.mjs";
|
|
6
|
+
import { senderGetGroupById } from "./actions/get-group-by-id.mjs";
|
|
7
|
+
import { senderGetSubscriberById } from "./actions/get-subscriber-by-id.mjs";
|
|
8
|
+
import { senderUpdateSubscriberFields } from "./actions/update-subscriber-fields.mjs";
|
|
9
|
+
import { sender } from "./app.mjs";
|
|
10
|
+
import { senderCatalog } from "./catalog.mjs";
|
|
11
|
+
export { sender, senderCatalog, senderCreateField, senderCreateOrUpdateSubscriber, senderGetAllFields, senderGetAllWorkflows, senderGetCampaignById, senderGetGroupById, senderGetSubscriberById, senderUpdateSubscriberFields };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { sender } from "./app.mjs";
|
|
2
|
+
import { senderCatalog } from "./catalog.mjs";
|
|
3
|
+
import { senderCreateField } from "./actions/create-field.mjs";
|
|
4
|
+
import { senderCreateOrUpdateSubscriber } from "./actions/create-or-update-subscriber.mjs";
|
|
5
|
+
import { senderGetAllFields } from "./actions/get-all-fields.mjs";
|
|
6
|
+
import { senderGetAllWorkflows } from "./actions/get-all-workflows.mjs";
|
|
7
|
+
import { senderGetCampaignById } from "./actions/get-campaign-by-id.mjs";
|
|
8
|
+
import { senderGetGroupById } from "./actions/get-group-by-id.mjs";
|
|
9
|
+
import { senderGetSubscriberById } from "./actions/get-subscriber-by-id.mjs";
|
|
10
|
+
import { senderUpdateSubscriberFields } from "./actions/update-subscriber-fields.mjs";
|
|
11
|
+
import "./actions/index.mjs";
|
|
12
|
+
export { sender, senderCatalog, senderCreateField, senderCreateOrUpdateSubscriber, senderGetAllFields, senderGetAllWorkflows, senderGetCampaignById, senderGetGroupById, senderGetSubscriberById, senderUpdateSubscriberFields };
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@keystrokehq/sender",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public",
|
|
6
|
+
"registry": "https://registry.npmjs.org"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/keystrokehq/keystroke.git",
|
|
11
|
+
"directory": "packages/integrations/sender"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.mjs",
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./actions": {
|
|
28
|
+
"types": "./dist/actions/index.d.mts",
|
|
29
|
+
"import": "./dist/actions/index.mjs",
|
|
30
|
+
"require": "./dist/actions/index.cjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@keystrokehq/keystroke": "^0.1.4",
|
|
35
|
+
"zod": "^4.4.3"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@keystrokehq/keystroke": "link:../../keystroke",
|
|
39
|
+
"@types/node": "^25.9.1",
|
|
40
|
+
"tsdown": "^0.22.0",
|
|
41
|
+
"typescript": "^6.0.3",
|
|
42
|
+
"zod": "^4.4.3"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsdown",
|
|
46
|
+
"dev": "tsdown --watch --no-clean",
|
|
47
|
+
"typecheck": "tsc --noEmit"
|
|
48
|
+
}
|
|
49
|
+
}
|