@keystrokehq/telnyx 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-network.cjs +23 -0
- package/dist/actions/create-network.cjs.map +1 -0
- package/dist/actions/create-network.d.cts +9 -0
- package/dist/actions/create-network.d.cts.map +1 -0
- package/dist/actions/create-network.d.mts +9 -0
- package/dist/actions/create-network.d.mts.map +1 -0
- package/dist/actions/create-network.mjs +22 -0
- package/dist/actions/create-network.mjs.map +1 -0
- package/dist/actions/create-notification-channel.cjs +38 -0
- package/dist/actions/create-notification-channel.cjs.map +1 -0
- package/dist/actions/create-notification-channel.d.cts +9 -0
- package/dist/actions/create-notification-channel.d.cts.map +1 -0
- package/dist/actions/create-notification-channel.d.mts +9 -0
- package/dist/actions/create-notification-channel.d.mts.map +1 -0
- package/dist/actions/create-notification-channel.mjs +37 -0
- package/dist/actions/create-notification-channel.mjs.map +1 -0
- package/dist/actions/create-notification-profile.cjs +22 -0
- package/dist/actions/create-notification-profile.cjs.map +1 -0
- package/dist/actions/create-notification-profile.d.cts +9 -0
- package/dist/actions/create-notification-profile.d.cts.map +1 -0
- package/dist/actions/create-notification-profile.d.mts +9 -0
- package/dist/actions/create-notification-profile.d.mts.map +1 -0
- package/dist/actions/create-notification-profile.mjs +21 -0
- package/dist/actions/create-notification-profile.mjs.map +1 -0
- package/dist/actions/create-notification-setting.cjs +49 -0
- package/dist/actions/create-notification-setting.cjs.map +1 -0
- package/dist/actions/create-notification-setting.d.cts +9 -0
- package/dist/actions/create-notification-setting.d.cts.map +1 -0
- package/dist/actions/create-notification-setting.d.mts +9 -0
- package/dist/actions/create-notification-setting.d.mts.map +1 -0
- package/dist/actions/create-notification-setting.mjs +48 -0
- package/dist/actions/create-notification-setting.mjs.map +1 -0
- package/dist/actions/delete-network.cjs +23 -0
- package/dist/actions/delete-network.cjs.map +1 -0
- package/dist/actions/delete-network.d.cts +9 -0
- package/dist/actions/delete-network.d.cts.map +1 -0
- package/dist/actions/delete-network.d.mts +9 -0
- package/dist/actions/delete-network.d.mts.map +1 -0
- package/dist/actions/delete-network.mjs +22 -0
- package/dist/actions/delete-network.mjs.map +1 -0
- package/dist/actions/delete-notification-channel.cjs +25 -0
- package/dist/actions/delete-notification-channel.cjs.map +1 -0
- package/dist/actions/delete-notification-channel.d.cts +9 -0
- package/dist/actions/delete-notification-channel.d.cts.map +1 -0
- package/dist/actions/delete-notification-channel.d.mts +9 -0
- package/dist/actions/delete-notification-channel.d.mts.map +1 -0
- package/dist/actions/delete-notification-channel.mjs +24 -0
- package/dist/actions/delete-notification-channel.mjs.map +1 -0
- package/dist/actions/delete-notification-profile.cjs +22 -0
- package/dist/actions/delete-notification-profile.cjs.map +1 -0
- package/dist/actions/delete-notification-profile.d.cts +9 -0
- package/dist/actions/delete-notification-profile.d.cts.map +1 -0
- package/dist/actions/delete-notification-profile.d.mts +9 -0
- package/dist/actions/delete-notification-profile.d.mts.map +1 -0
- package/dist/actions/delete-notification-profile.mjs +21 -0
- package/dist/actions/delete-notification-profile.mjs.map +1 -0
- package/dist/actions/delete-notification-setting.cjs +41 -0
- package/dist/actions/delete-notification-setting.cjs.map +1 -0
- package/dist/actions/delete-notification-setting.d.cts +9 -0
- package/dist/actions/delete-notification-setting.d.cts.map +1 -0
- package/dist/actions/delete-notification-setting.d.mts +9 -0
- package/dist/actions/delete-notification-setting.d.mts.map +1 -0
- package/dist/actions/delete-notification-setting.mjs +40 -0
- package/dist/actions/delete-notification-setting.mjs.map +1 -0
- package/dist/actions/get-black-box-test-results.cjs +26 -0
- package/dist/actions/get-black-box-test-results.cjs.map +1 -0
- package/dist/actions/get-black-box-test-results.d.cts +9 -0
- package/dist/actions/get-black-box-test-results.d.cts.map +1 -0
- package/dist/actions/get-black-box-test-results.d.mts +9 -0
- package/dist/actions/get-black-box-test-results.d.mts.map +1 -0
- package/dist/actions/get-black-box-test-results.mjs +25 -0
- package/dist/actions/get-black-box-test-results.mjs.map +1 -0
- package/dist/actions/get-user-balance.cjs +25 -0
- package/dist/actions/get-user-balance.cjs.map +1 -0
- package/dist/actions/get-user-balance.d.cts +9 -0
- package/dist/actions/get-user-balance.d.cts.map +1 -0
- package/dist/actions/get-user-balance.d.mts +9 -0
- package/dist/actions/get-user-balance.d.mts.map +1 -0
- package/dist/actions/get-user-balance.mjs +24 -0
- package/dist/actions/get-user-balance.mjs.map +1 -0
- package/dist/actions/index.cjs +61 -0
- package/dist/actions/index.d.cts +31 -0
- package/dist/actions/index.d.mts +31 -0
- package/dist/actions/index.mjs +31 -0
- package/dist/actions/list-audit-logs.cjs +40 -0
- package/dist/actions/list-audit-logs.cjs.map +1 -0
- package/dist/actions/list-audit-logs.d.cts +9 -0
- package/dist/actions/list-audit-logs.d.cts.map +1 -0
- package/dist/actions/list-audit-logs.d.mts +9 -0
- package/dist/actions/list-audit-logs.d.mts.map +1 -0
- package/dist/actions/list-audit-logs.mjs +39 -0
- package/dist/actions/list-audit-logs.mjs.map +1 -0
- package/dist/actions/list-connections.cjs +45 -0
- package/dist/actions/list-connections.cjs.map +1 -0
- package/dist/actions/list-connections.d.cts +9 -0
- package/dist/actions/list-connections.d.cts.map +1 -0
- package/dist/actions/list-connections.d.mts +9 -0
- package/dist/actions/list-connections.d.mts.map +1 -0
- package/dist/actions/list-connections.mjs +44 -0
- package/dist/actions/list-connections.mjs.map +1 -0
- package/dist/actions/list-dynamic-emergency-endpoints.cjs +49 -0
- package/dist/actions/list-dynamic-emergency-endpoints.cjs.map +1 -0
- package/dist/actions/list-dynamic-emergency-endpoints.d.cts +9 -0
- package/dist/actions/list-dynamic-emergency-endpoints.d.cts.map +1 -0
- package/dist/actions/list-dynamic-emergency-endpoints.d.mts +9 -0
- package/dist/actions/list-dynamic-emergency-endpoints.d.mts.map +1 -0
- package/dist/actions/list-dynamic-emergency-endpoints.mjs +48 -0
- package/dist/actions/list-dynamic-emergency-endpoints.mjs.map +1 -0
- package/dist/actions/list-global-ip-health-check-types.cjs +21 -0
- package/dist/actions/list-global-ip-health-check-types.cjs.map +1 -0
- package/dist/actions/list-global-ip-health-check-types.d.cts +9 -0
- package/dist/actions/list-global-ip-health-check-types.d.cts.map +1 -0
- package/dist/actions/list-global-ip-health-check-types.d.mts +9 -0
- package/dist/actions/list-global-ip-health-check-types.d.mts.map +1 -0
- package/dist/actions/list-global-ip-health-check-types.mjs +20 -0
- package/dist/actions/list-global-ip-health-check-types.mjs.map +1 -0
- package/dist/actions/list-messaging-profiles.cjs +66 -0
- package/dist/actions/list-messaging-profiles.cjs.map +1 -0
- package/dist/actions/list-messaging-profiles.d.cts +9 -0
- package/dist/actions/list-messaging-profiles.d.cts.map +1 -0
- package/dist/actions/list-messaging-profiles.d.mts +9 -0
- package/dist/actions/list-messaging-profiles.d.mts.map +1 -0
- package/dist/actions/list-messaging-profiles.mjs +65 -0
- package/dist/actions/list-messaging-profiles.mjs.map +1 -0
- package/dist/actions/list-messaging-url-domains.cjs +44 -0
- package/dist/actions/list-messaging-url-domains.cjs.map +1 -0
- package/dist/actions/list-messaging-url-domains.d.cts +9 -0
- package/dist/actions/list-messaging-url-domains.d.cts.map +1 -0
- package/dist/actions/list-messaging-url-domains.d.mts +9 -0
- package/dist/actions/list-messaging-url-domains.d.mts.map +1 -0
- package/dist/actions/list-messaging-url-domains.mjs +43 -0
- package/dist/actions/list-messaging-url-domains.mjs.map +1 -0
- package/dist/actions/list-mobile-network-operators.cjs +43 -0
- package/dist/actions/list-mobile-network-operators.cjs.map +1 -0
- package/dist/actions/list-mobile-network-operators.d.cts +9 -0
- package/dist/actions/list-mobile-network-operators.d.cts.map +1 -0
- package/dist/actions/list-mobile-network-operators.d.mts +9 -0
- package/dist/actions/list-mobile-network-operators.d.mts.map +1 -0
- package/dist/actions/list-mobile-network-operators.mjs +42 -0
- package/dist/actions/list-mobile-network-operators.mjs.map +1 -0
- package/dist/actions/list-network-interfaces.cjs +54 -0
- package/dist/actions/list-network-interfaces.cjs.map +1 -0
- package/dist/actions/list-network-interfaces.d.cts +9 -0
- package/dist/actions/list-network-interfaces.d.cts.map +1 -0
- package/dist/actions/list-network-interfaces.d.mts +9 -0
- package/dist/actions/list-network-interfaces.d.mts.map +1 -0
- package/dist/actions/list-network-interfaces.mjs +53 -0
- package/dist/actions/list-network-interfaces.mjs.map +1 -0
- package/dist/actions/list-networks.cjs +36 -0
- package/dist/actions/list-networks.cjs.map +1 -0
- package/dist/actions/list-networks.d.cts +9 -0
- package/dist/actions/list-networks.d.cts.map +1 -0
- package/dist/actions/list-networks.d.mts +9 -0
- package/dist/actions/list-networks.d.mts.map +1 -0
- package/dist/actions/list-networks.mjs +35 -0
- package/dist/actions/list-networks.mjs.map +1 -0
- package/dist/actions/list-notification-channels.cjs +43 -0
- package/dist/actions/list-notification-channels.cjs.map +1 -0
- package/dist/actions/list-notification-channels.d.cts +9 -0
- package/dist/actions/list-notification-channels.d.cts.map +1 -0
- package/dist/actions/list-notification-channels.d.mts +9 -0
- package/dist/actions/list-notification-channels.d.mts.map +1 -0
- package/dist/actions/list-notification-channels.mjs +42 -0
- package/dist/actions/list-notification-channels.mjs.map +1 -0
- package/dist/actions/list-notification-event-conditions.cjs +54 -0
- package/dist/actions/list-notification-event-conditions.cjs.map +1 -0
- package/dist/actions/list-notification-event-conditions.d.cts +9 -0
- package/dist/actions/list-notification-event-conditions.d.cts.map +1 -0
- package/dist/actions/list-notification-event-conditions.d.mts +9 -0
- package/dist/actions/list-notification-event-conditions.d.mts.map +1 -0
- package/dist/actions/list-notification-event-conditions.mjs +53 -0
- package/dist/actions/list-notification-event-conditions.mjs.map +1 -0
- package/dist/actions/list-notification-events.cjs +24 -0
- package/dist/actions/list-notification-events.cjs.map +1 -0
- package/dist/actions/list-notification-events.d.cts +9 -0
- package/dist/actions/list-notification-events.d.cts.map +1 -0
- package/dist/actions/list-notification-events.d.mts +9 -0
- package/dist/actions/list-notification-events.d.mts.map +1 -0
- package/dist/actions/list-notification-events.mjs +23 -0
- package/dist/actions/list-notification-events.mjs.map +1 -0
- package/dist/actions/list-notification-profiles.cjs +34 -0
- package/dist/actions/list-notification-profiles.cjs.map +1 -0
- package/dist/actions/list-notification-profiles.d.cts +9 -0
- package/dist/actions/list-notification-profiles.d.cts.map +1 -0
- package/dist/actions/list-notification-profiles.d.mts +9 -0
- package/dist/actions/list-notification-profiles.d.mts.map +1 -0
- package/dist/actions/list-notification-profiles.mjs +33 -0
- package/dist/actions/list-notification-profiles.mjs.map +1 -0
- package/dist/actions/list-phone-numbers.cjs +57 -0
- package/dist/actions/list-phone-numbers.cjs.map +1 -0
- package/dist/actions/list-phone-numbers.d.cts +9 -0
- package/dist/actions/list-phone-numbers.d.cts.map +1 -0
- package/dist/actions/list-phone-numbers.d.mts +9 -0
- package/dist/actions/list-phone-numbers.d.mts.map +1 -0
- package/dist/actions/list-phone-numbers.mjs +56 -0
- package/dist/actions/list-phone-numbers.mjs.map +1 -0
- package/dist/actions/list-sso-authentication-providers.cjs +65 -0
- package/dist/actions/list-sso-authentication-providers.cjs.map +1 -0
- package/dist/actions/list-sso-authentication-providers.d.cts +9 -0
- package/dist/actions/list-sso-authentication-providers.d.cts.map +1 -0
- package/dist/actions/list-sso-authentication-providers.d.mts +9 -0
- package/dist/actions/list-sso-authentication-providers.d.mts.map +1 -0
- package/dist/actions/list-sso-authentication-providers.mjs +64 -0
- package/dist/actions/list-sso-authentication-providers.mjs.map +1 -0
- package/dist/actions/retrieve-network.cjs +25 -0
- package/dist/actions/retrieve-network.cjs.map +1 -0
- package/dist/actions/retrieve-network.d.cts +9 -0
- package/dist/actions/retrieve-network.d.cts.map +1 -0
- package/dist/actions/retrieve-network.d.mts +9 -0
- package/dist/actions/retrieve-network.d.mts.map +1 -0
- package/dist/actions/retrieve-network.mjs +24 -0
- package/dist/actions/retrieve-network.mjs.map +1 -0
- package/dist/actions/retrieve-notification-channel.cjs +25 -0
- package/dist/actions/retrieve-notification-channel.cjs.map +1 -0
- package/dist/actions/retrieve-notification-channel.d.cts +9 -0
- package/dist/actions/retrieve-notification-channel.d.cts.map +1 -0
- package/dist/actions/retrieve-notification-channel.d.mts +9 -0
- package/dist/actions/retrieve-notification-channel.d.mts.map +1 -0
- package/dist/actions/retrieve-notification-channel.mjs +24 -0
- package/dist/actions/retrieve-notification-channel.mjs.map +1 -0
- package/dist/actions/retrieve-notification-profile.cjs +26 -0
- package/dist/actions/retrieve-notification-profile.cjs.map +1 -0
- package/dist/actions/retrieve-notification-profile.d.cts +9 -0
- package/dist/actions/retrieve-notification-profile.d.cts.map +1 -0
- package/dist/actions/retrieve-notification-profile.d.mts +9 -0
- package/dist/actions/retrieve-notification-profile.d.mts.map +1 -0
- package/dist/actions/retrieve-notification-profile.mjs +25 -0
- package/dist/actions/retrieve-notification-profile.mjs.map +1 -0
- package/dist/actions/retrieve-notification-setting.cjs +41 -0
- package/dist/actions/retrieve-notification-setting.cjs.map +1 -0
- package/dist/actions/retrieve-notification-setting.d.cts +9 -0
- package/dist/actions/retrieve-notification-setting.d.cts.map +1 -0
- package/dist/actions/retrieve-notification-setting.d.mts +9 -0
- package/dist/actions/retrieve-notification-setting.d.mts.map +1 -0
- package/dist/actions/retrieve-notification-setting.mjs +40 -0
- package/dist/actions/retrieve-notification-setting.mjs.map +1 -0
- package/dist/actions/update-network.cjs +27 -0
- package/dist/actions/update-network.cjs.map +1 -0
- package/dist/actions/update-network.d.cts +9 -0
- package/dist/actions/update-network.d.cts.map +1 -0
- package/dist/actions/update-network.d.mts +9 -0
- package/dist/actions/update-network.d.mts.map +1 -0
- package/dist/actions/update-network.mjs +26 -0
- package/dist/actions/update-network.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 +66 -0
- package/dist/index.d.cts +33 -0
- package/dist/index.d.mts +33 -0
- package/dist/index.mjs +34 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/telnyx
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `telnyx`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 30
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { telnyxCreateNetwork } from "@keystrokehq/telnyx/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "telnyx-agent",
|
|
15
|
+
tools: [telnyxCreateNetwork],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.telnyx.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeTelnyxTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["telnyx","executeTelnyxTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { telnyx } from \"./app\";\nimport { executeTelnyxTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return telnyx.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeTelnyxTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { telnyx } from "./app.mjs";
|
|
2
|
+
import { executeTelnyxTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return telnyx.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeTelnyxTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { telnyx } from \"./app\";\nimport { executeTelnyxTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return telnyx.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeTelnyxTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-network.ts
|
|
4
|
+
const TelnyxCreateNetworkInput = zod.z.object({ name: zod.z.string().describe("A user-specified name for the network. Must be unique within your Telnyx account.") }).describe("Request parameters for creating a new network in your Telnyx account.");
|
|
5
|
+
const TelnyxCreateNetwork_CreateNetworkResponseDataSchema = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("Unique identifier for the network."),
|
|
7
|
+
name: zod.z.string().describe("Name of the network."),
|
|
8
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the network was created."),
|
|
9
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp when the network was last updated."),
|
|
10
|
+
record_type: zod.z.string().describe("Record type of the resource (should be 'network').")
|
|
11
|
+
}).describe("Data model representing a Telnyx network.");
|
|
12
|
+
const TelnyxCreateNetworkOutput = zod.z.object({ data: TelnyxCreateNetwork_CreateNetworkResponseDataSchema.nullable() }).describe("Response schema for creating a Telnyx network.");
|
|
13
|
+
const telnyxCreateNetwork = require_action.action("TELNYX_CREATE_NETWORK", {
|
|
14
|
+
slug: "telnyx-create-network",
|
|
15
|
+
name: "Create Network",
|
|
16
|
+
description: "Tool to create a new network. Use when you need to provision a fresh network resource before connecting devices.",
|
|
17
|
+
input: TelnyxCreateNetworkInput,
|
|
18
|
+
output: TelnyxCreateNetworkOutput
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.telnyxCreateNetwork = telnyxCreateNetwork;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=create-network.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-network.cjs","names":["z","action"],"sources":["../../src/actions/create-network.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TelnyxCreateNetworkInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"A user-specified name for the network. Must be unique within your Telnyx account.\"),\n}).describe(\"Request parameters for creating a new network in your Telnyx account.\");\nconst TelnyxCreateNetwork_CreateNetworkResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the network.\"),\n name: z.string().describe(\"Name of the network.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the network was created.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the network was last updated.\"),\n record_type: z.string().describe(\"Record type of the resource (should be 'network').\"),\n}).describe(\"Data model representing a Telnyx network.\");\nexport const TelnyxCreateNetworkOutput: z.ZodTypeAny = z.object({\n data: TelnyxCreateNetwork_CreateNetworkResponseDataSchema.nullable(),\n}).describe(\"Response schema for creating a Telnyx network.\");\n\nexport const telnyxCreateNetwork = action(\"TELNYX_CREATE_NETWORK\", {\n slug: \"telnyx-create-network\",\n name: \"Create Network\",\n description: \"Tool to create a new network. Use when you need to provision a fresh network resource before connecting devices.\",\n input: TelnyxCreateNetworkInput,\n output: TelnyxCreateNetworkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,EAC/G,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,sDAAoEA,IAAAA,EAAE,OAAO;CACjF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;AACvF,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,MAAM,oDAAoD,SAAS,EACrE,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-network.d.ts
|
|
4
|
+
declare const TelnyxCreateNetworkInput: z.ZodTypeAny;
|
|
5
|
+
declare const TelnyxCreateNetworkOutput: z.ZodTypeAny;
|
|
6
|
+
declare const telnyxCreateNetwork: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { telnyxCreateNetwork };
|
|
9
|
+
//# sourceMappingURL=create-network.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-network.d.cts","names":[],"sources":["../../src/actions/create-network.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAE2C;AAAA,cAQvE,yBAAA,EAA2B,CAAA,CAAE,UAEmB;AAAA,cAEhD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-network.d.ts
|
|
4
|
+
declare const TelnyxCreateNetworkInput: z.ZodTypeAny;
|
|
5
|
+
declare const TelnyxCreateNetworkOutput: z.ZodTypeAny;
|
|
6
|
+
declare const telnyxCreateNetwork: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { telnyxCreateNetwork };
|
|
9
|
+
//# sourceMappingURL=create-network.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-network.d.mts","names":[],"sources":["../../src/actions/create-network.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAE2C;AAAA,cAQvE,yBAAA,EAA2B,CAAA,CAAE,UAEmB;AAAA,cAEhD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-network.ts
|
|
4
|
+
const TelnyxCreateNetworkInput = z.object({ name: z.string().describe("A user-specified name for the network. Must be unique within your Telnyx account.") }).describe("Request parameters for creating a new network in your Telnyx account.");
|
|
5
|
+
const TelnyxCreateNetwork_CreateNetworkResponseDataSchema = z.object({
|
|
6
|
+
id: z.string().describe("Unique identifier for the network."),
|
|
7
|
+
name: z.string().describe("Name of the network."),
|
|
8
|
+
created_at: z.string().describe("ISO 8601 timestamp when the network was created."),
|
|
9
|
+
updated_at: z.string().describe("ISO 8601 timestamp when the network was last updated."),
|
|
10
|
+
record_type: z.string().describe("Record type of the resource (should be 'network').")
|
|
11
|
+
}).describe("Data model representing a Telnyx network.");
|
|
12
|
+
const telnyxCreateNetwork = action("TELNYX_CREATE_NETWORK", {
|
|
13
|
+
slug: "telnyx-create-network",
|
|
14
|
+
name: "Create Network",
|
|
15
|
+
description: "Tool to create a new network. Use when you need to provision a fresh network resource before connecting devices.",
|
|
16
|
+
input: TelnyxCreateNetworkInput,
|
|
17
|
+
output: z.object({ data: TelnyxCreateNetwork_CreateNetworkResponseDataSchema.nullable() }).describe("Response schema for creating a Telnyx network.")
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { telnyxCreateNetwork };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=create-network.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-network.mjs","names":[],"sources":["../../src/actions/create-network.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TelnyxCreateNetworkInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"A user-specified name for the network. Must be unique within your Telnyx account.\"),\n}).describe(\"Request parameters for creating a new network in your Telnyx account.\");\nconst TelnyxCreateNetwork_CreateNetworkResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the network.\"),\n name: z.string().describe(\"Name of the network.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the network was created.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the network was last updated.\"),\n record_type: z.string().describe(\"Record type of the resource (should be 'network').\"),\n}).describe(\"Data model representing a Telnyx network.\");\nexport const TelnyxCreateNetworkOutput: z.ZodTypeAny = z.object({\n data: TelnyxCreateNetwork_CreateNetworkResponseDataSchema.nullable(),\n}).describe(\"Response schema for creating a Telnyx network.\");\n\nexport const telnyxCreateNetwork = action(\"TELNYX_CREATE_NETWORK\", {\n slug: \"telnyx-create-network\",\n name: \"Create Network\",\n description: \"Tool to create a new network. Use when you need to provision a fresh network resource before connecting devices.\",\n input: TelnyxCreateNetworkInput,\n output: TelnyxCreateNetworkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO,EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,EAC/G,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,sDAAoE,EAAE,OAAO;CACjF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;AACvF,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAKvD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqD,EAAE,OAAO,EAC9D,MAAM,oDAAoD,SAAS,EACrE,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-notification-channel.ts
|
|
4
|
+
const TelnyxCreateNotificationChannelInput = zod.z.object({
|
|
5
|
+
channel_type_id: zod.z.enum([
|
|
6
|
+
"sms",
|
|
7
|
+
"voice",
|
|
8
|
+
"email",
|
|
9
|
+
"webhook"
|
|
10
|
+
]).describe("Type of channel. Must be one of 'sms', 'voice', 'email', or 'webhook'."),
|
|
11
|
+
channel_destination: zod.z.string().describe("Destination for the channel (e.g., phone number, email address, or webhook URL). For 'webhook' channels, the URL must be publicly reachable by Telnyx."),
|
|
12
|
+
notification_profile_id: zod.z.string().describe("A UUID reference to the associated Notification Profile. The profile must already exist; call TELNYX_CREATE_NOTIFICATION_PROFILE first to obtain this UUID.")
|
|
13
|
+
}).describe("Request model for creating a new notification channel.");
|
|
14
|
+
const TelnyxCreateNotificationChannel_CreateNotificationChannelResponseDataSchema = zod.z.object({
|
|
15
|
+
id: zod.z.string().describe("Unique channel UUID."),
|
|
16
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the channel was created."),
|
|
17
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp when the channel was last updated."),
|
|
18
|
+
channel_type_id: zod.z.enum([
|
|
19
|
+
"sms",
|
|
20
|
+
"voice",
|
|
21
|
+
"email",
|
|
22
|
+
"webhook"
|
|
23
|
+
]).describe("Type of the created channel."),
|
|
24
|
+
channel_destination: zod.z.string().describe("Destination associated with the channel."),
|
|
25
|
+
notification_profile_id: zod.z.string().describe("UUID of the Notification Profile this channel belongs to.")
|
|
26
|
+
});
|
|
27
|
+
const TelnyxCreateNotificationChannelOutput = zod.z.object({ data: TelnyxCreateNotificationChannel_CreateNotificationChannelResponseDataSchema.nullable() });
|
|
28
|
+
const telnyxCreateNotificationChannel = require_action.action("TELNYX_CREATE_NOTIFICATION_CHANNEL", {
|
|
29
|
+
slug: "telnyx-create-notification-channel",
|
|
30
|
+
name: "Create Notification Channel",
|
|
31
|
+
description: "Tool to create a notification channel. Use when you need to register a channel (SMS, voice, email, or webhook) to receive notifications. E.g., create a webhook channel for event callbacks.",
|
|
32
|
+
input: TelnyxCreateNotificationChannelInput,
|
|
33
|
+
output: TelnyxCreateNotificationChannelOutput
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
exports.telnyxCreateNotificationChannel = telnyxCreateNotificationChannel;
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=create-notification-channel.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-notification-channel.cjs","names":["z","action"],"sources":["../../src/actions/create-notification-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TelnyxCreateNotificationChannelInput: z.ZodTypeAny = z.object({\n channel_type_id: z.enum([\"sms\", \"voice\", \"email\", \"webhook\"]).describe(\"Type of channel. Must be one of 'sms', 'voice', 'email', or 'webhook'.\"),\n channel_destination: z.string().describe(\"Destination for the channel (e.g., phone number, email address, or webhook URL). For 'webhook' channels, the URL must be publicly reachable by Telnyx.\"),\n notification_profile_id: z.string().describe(\"A UUID reference to the associated Notification Profile. The profile must already exist; call TELNYX_CREATE_NOTIFICATION_PROFILE first to obtain this UUID.\"),\n}).describe(\"Request model for creating a new notification channel.\");\nconst TelnyxCreateNotificationChannel_CreateNotificationChannelResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique channel UUID.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the channel was created.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the channel was last updated.\"),\n channel_type_id: z.enum([\"sms\", \"voice\", \"email\", \"webhook\"]).describe(\"Type of the created channel.\"),\n channel_destination: z.string().describe(\"Destination associated with the channel.\"),\n notification_profile_id: z.string().describe(\"UUID of the Notification Profile this channel belongs to.\"),\n});\nexport const TelnyxCreateNotificationChannelOutput: z.ZodTypeAny = z.object({\n data: TelnyxCreateNotificationChannel_CreateNotificationChannelResponseDataSchema.nullable(),\n});\n\nexport const telnyxCreateNotificationChannel = action(\"TELNYX_CREATE_NOTIFICATION_CHANNEL\", {\n slug: \"telnyx-create-notification-channel\",\n name: \"Create Notification Channel\",\n description: \"Tool to create a notification channel. Use when you need to register a channel (SMS, voice, email, or webhook) to receive notifications. E.g., create a webhook channel for event callbacks.\",\n input: TelnyxCreateNotificationChannelInput,\n output: TelnyxCreateNotificationChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,iBAAiBA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAS;EAAS;CAAS,CAAC,CAAC,CAAC,SAAS,wEAAwE;CAC/I,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;CACjM,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;AAC5M,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,8EAA4FA,IAAAA,EAAE,OAAO;CACzG,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAC9C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,iBAAiBA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAS;EAAS;CAAS,CAAC,CAAC,CAAC,SAAS,8BAA8B;CACrG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACnF,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;AAC1G,CAAC;AACD,MAAa,wCAAsDA,IAAAA,EAAE,OAAO,EAC1E,MAAM,4EAA4E,SAAS,EAC7F,CAAC;AAED,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-notification-channel.d.ts
|
|
4
|
+
declare const TelnyxCreateNotificationChannelInput: z.ZodTypeAny;
|
|
5
|
+
declare const TelnyxCreateNotificationChannelOutput: z.ZodTypeAny;
|
|
6
|
+
declare const telnyxCreateNotificationChannel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { telnyxCreateNotificationChannel };
|
|
9
|
+
//# sourceMappingURL=create-notification-channel.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-notification-channel.d.cts","names":[],"sources":["../../src/actions/create-notification-channel.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAIgB;AAAA,cASxD,qCAAA,EAAuC,CAAA,CAAE,UAEpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-notification-channel.d.ts
|
|
4
|
+
declare const TelnyxCreateNotificationChannelInput: z.ZodTypeAny;
|
|
5
|
+
declare const TelnyxCreateNotificationChannelOutput: z.ZodTypeAny;
|
|
6
|
+
declare const telnyxCreateNotificationChannel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { telnyxCreateNotificationChannel };
|
|
9
|
+
//# sourceMappingURL=create-notification-channel.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-notification-channel.d.mts","names":[],"sources":["../../src/actions/create-notification-channel.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAIgB;AAAA,cASxD,qCAAA,EAAuC,CAAA,CAAE,UAEpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-notification-channel.ts
|
|
4
|
+
const TelnyxCreateNotificationChannelInput = z.object({
|
|
5
|
+
channel_type_id: z.enum([
|
|
6
|
+
"sms",
|
|
7
|
+
"voice",
|
|
8
|
+
"email",
|
|
9
|
+
"webhook"
|
|
10
|
+
]).describe("Type of channel. Must be one of 'sms', 'voice', 'email', or 'webhook'."),
|
|
11
|
+
channel_destination: z.string().describe("Destination for the channel (e.g., phone number, email address, or webhook URL). For 'webhook' channels, the URL must be publicly reachable by Telnyx."),
|
|
12
|
+
notification_profile_id: z.string().describe("A UUID reference to the associated Notification Profile. The profile must already exist; call TELNYX_CREATE_NOTIFICATION_PROFILE first to obtain this UUID.")
|
|
13
|
+
}).describe("Request model for creating a new notification channel.");
|
|
14
|
+
const TelnyxCreateNotificationChannel_CreateNotificationChannelResponseDataSchema = z.object({
|
|
15
|
+
id: z.string().describe("Unique channel UUID."),
|
|
16
|
+
created_at: z.string().describe("ISO 8601 timestamp when the channel was created."),
|
|
17
|
+
updated_at: z.string().describe("ISO 8601 timestamp when the channel was last updated."),
|
|
18
|
+
channel_type_id: z.enum([
|
|
19
|
+
"sms",
|
|
20
|
+
"voice",
|
|
21
|
+
"email",
|
|
22
|
+
"webhook"
|
|
23
|
+
]).describe("Type of the created channel."),
|
|
24
|
+
channel_destination: z.string().describe("Destination associated with the channel."),
|
|
25
|
+
notification_profile_id: z.string().describe("UUID of the Notification Profile this channel belongs to.")
|
|
26
|
+
});
|
|
27
|
+
const telnyxCreateNotificationChannel = action("TELNYX_CREATE_NOTIFICATION_CHANNEL", {
|
|
28
|
+
slug: "telnyx-create-notification-channel",
|
|
29
|
+
name: "Create Notification Channel",
|
|
30
|
+
description: "Tool to create a notification channel. Use when you need to register a channel (SMS, voice, email, or webhook) to receive notifications. E.g., create a webhook channel for event callbacks.",
|
|
31
|
+
input: TelnyxCreateNotificationChannelInput,
|
|
32
|
+
output: z.object({ data: TelnyxCreateNotificationChannel_CreateNotificationChannelResponseDataSchema.nullable() })
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
export { telnyxCreateNotificationChannel };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=create-notification-channel.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-notification-channel.mjs","names":[],"sources":["../../src/actions/create-notification-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TelnyxCreateNotificationChannelInput: z.ZodTypeAny = z.object({\n channel_type_id: z.enum([\"sms\", \"voice\", \"email\", \"webhook\"]).describe(\"Type of channel. Must be one of 'sms', 'voice', 'email', or 'webhook'.\"),\n channel_destination: z.string().describe(\"Destination for the channel (e.g., phone number, email address, or webhook URL). For 'webhook' channels, the URL must be publicly reachable by Telnyx.\"),\n notification_profile_id: z.string().describe(\"A UUID reference to the associated Notification Profile. The profile must already exist; call TELNYX_CREATE_NOTIFICATION_PROFILE first to obtain this UUID.\"),\n}).describe(\"Request model for creating a new notification channel.\");\nconst TelnyxCreateNotificationChannel_CreateNotificationChannelResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique channel UUID.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the channel was created.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the channel was last updated.\"),\n channel_type_id: z.enum([\"sms\", \"voice\", \"email\", \"webhook\"]).describe(\"Type of the created channel.\"),\n channel_destination: z.string().describe(\"Destination associated with the channel.\"),\n notification_profile_id: z.string().describe(\"UUID of the Notification Profile this channel belongs to.\"),\n});\nexport const TelnyxCreateNotificationChannelOutput: z.ZodTypeAny = z.object({\n data: TelnyxCreateNotificationChannel_CreateNotificationChannelResponseDataSchema.nullable(),\n});\n\nexport const telnyxCreateNotificationChannel = action(\"TELNYX_CREATE_NOTIFICATION_CHANNEL\", {\n slug: \"telnyx-create-notification-channel\",\n name: \"Create Notification Channel\",\n description: \"Tool to create a notification channel. Use when you need to register a channel (SMS, voice, email, or webhook) to receive notifications. E.g., create a webhook channel for event callbacks.\",\n input: TelnyxCreateNotificationChannelInput,\n output: TelnyxCreateNotificationChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqD,EAAE,OAAO;CACzE,iBAAiB,EAAE,KAAK;EAAC;EAAO;EAAS;EAAS;CAAS,CAAC,CAAC,CAAC,SAAS,wEAAwE;CAC/I,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;CACjM,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;AAC5M,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,8EAA4F,EAAE,OAAO;CACzG,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAC9C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,iBAAiB,EAAE,KAAK;EAAC;EAAO;EAAS;EAAS;CAAS,CAAC,CAAC,CAAC,SAAS,8BAA8B;CACrG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACnF,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;AAC1G,CAAC;AAKD,MAAa,kCAAkC,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiE,EAAE,OAAO,EAC1E,MAAM,4EAA4E,SAAS,EAC7F,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-notification-profile.ts
|
|
4
|
+
const TelnyxCreateNotificationProfileInput = zod.z.object({ name: zod.z.string().describe("A human-readable name for the notification profile.") }).describe("Request model for creating a new notification profile.");
|
|
5
|
+
const TelnyxCreateNotificationProfile_CreateNotificationProfileResponseDataSchema = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("A UUID representing the notification profile."),
|
|
7
|
+
name: zod.z.string().describe("The human-readable name of the notification profile."),
|
|
8
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the profile was created."),
|
|
9
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp when the profile was last updated.")
|
|
10
|
+
}).describe("Data returned for a created notification profile.");
|
|
11
|
+
const TelnyxCreateNotificationProfileOutput = zod.z.object({ data: TelnyxCreateNotificationProfile_CreateNotificationProfileResponseDataSchema.nullable() });
|
|
12
|
+
const telnyxCreateNotificationProfile = require_action.action("TELNYX_CREATE_NOTIFICATION_PROFILE", {
|
|
13
|
+
slug: "telnyx-create-notification-profile",
|
|
14
|
+
name: "Create Notification Profile",
|
|
15
|
+
description: "Tool to create a notification profile. Use when you need to register a new profile to group notification channels (SMS and voice) and define notification settings. Must be called before TELNYX_CREATE_NOTIFICATION_CHANNEL, as channel creation requires the notification_profile_id returned by this tool.",
|
|
16
|
+
input: TelnyxCreateNotificationProfileInput,
|
|
17
|
+
output: TelnyxCreateNotificationProfileOutput
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.telnyxCreateNotificationProfile = telnyxCreateNotificationProfile;
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=create-notification-profile.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-notification-profile.cjs","names":["z","action"],"sources":["../../src/actions/create-notification-profile.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TelnyxCreateNotificationProfileInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"A human-readable name for the notification profile.\"),\n}).describe(\"Request model for creating a new notification profile.\");\nconst TelnyxCreateNotificationProfile_CreateNotificationProfileResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"A UUID representing the notification profile.\"),\n name: z.string().describe(\"The human-readable name of the notification profile.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the profile was created.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the profile was last updated.\"),\n}).describe(\"Data returned for a created notification profile.\");\nexport const TelnyxCreateNotificationProfileOutput: z.ZodTypeAny = z.object({\n data: TelnyxCreateNotificationProfile_CreateNotificationProfileResponseDataSchema.nullable(),\n});\n\nexport const telnyxCreateNotificationProfile = action(\"TELNYX_CREATE_NOTIFICATION_PROFILE\", {\n slug: \"telnyx-create-notification-profile\",\n name: \"Create Notification Profile\",\n description: \"Tool to create a notification profile. Use when you need to register a new profile to group notification channels (SMS and voice) and define notification settings. Must be called before TELNYX_CREATE_NOTIFICATION_CHANNEL, as channel creation requires the notification_profile_id returned by this tool.\",\n input: TelnyxCreateNotificationProfileInput,\n output: TelnyxCreateNotificationProfileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO,EACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,EACjF,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,8EAA4FA,IAAAA,EAAE,OAAO;CACzG,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AACzF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,wCAAsDA,IAAAA,EAAE,OAAO,EAC1E,MAAM,4EAA4E,SAAS,EAC7F,CAAC;AAED,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-notification-profile.d.ts
|
|
4
|
+
declare const TelnyxCreateNotificationProfileInput: z.ZodTypeAny;
|
|
5
|
+
declare const TelnyxCreateNotificationProfileOutput: z.ZodTypeAny;
|
|
6
|
+
declare const telnyxCreateNotificationProfile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { telnyxCreateNotificationProfile };
|
|
9
|
+
//# sourceMappingURL=create-notification-profile.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-notification-profile.d.cts","names":[],"sources":["../../src/actions/create-notification-profile.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAEgB;AAAA,cAOxD,qCAAA,EAAuC,CAAA,CAAE,UAEpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-notification-profile.d.ts
|
|
4
|
+
declare const TelnyxCreateNotificationProfileInput: z.ZodTypeAny;
|
|
5
|
+
declare const TelnyxCreateNotificationProfileOutput: z.ZodTypeAny;
|
|
6
|
+
declare const telnyxCreateNotificationProfile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { telnyxCreateNotificationProfile };
|
|
9
|
+
//# sourceMappingURL=create-notification-profile.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-notification-profile.d.mts","names":[],"sources":["../../src/actions/create-notification-profile.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAEgB;AAAA,cAOxD,qCAAA,EAAuC,CAAA,CAAE,UAEpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-notification-profile.ts
|
|
4
|
+
const TelnyxCreateNotificationProfileInput = z.object({ name: z.string().describe("A human-readable name for the notification profile.") }).describe("Request model for creating a new notification profile.");
|
|
5
|
+
const TelnyxCreateNotificationProfile_CreateNotificationProfileResponseDataSchema = z.object({
|
|
6
|
+
id: z.string().describe("A UUID representing the notification profile."),
|
|
7
|
+
name: z.string().describe("The human-readable name of the notification profile."),
|
|
8
|
+
created_at: z.string().describe("ISO 8601 timestamp when the profile was created."),
|
|
9
|
+
updated_at: z.string().describe("ISO 8601 timestamp when the profile was last updated.")
|
|
10
|
+
}).describe("Data returned for a created notification profile.");
|
|
11
|
+
const telnyxCreateNotificationProfile = action("TELNYX_CREATE_NOTIFICATION_PROFILE", {
|
|
12
|
+
slug: "telnyx-create-notification-profile",
|
|
13
|
+
name: "Create Notification Profile",
|
|
14
|
+
description: "Tool to create a notification profile. Use when you need to register a new profile to group notification channels (SMS and voice) and define notification settings. Must be called before TELNYX_CREATE_NOTIFICATION_CHANNEL, as channel creation requires the notification_profile_id returned by this tool.",
|
|
15
|
+
input: TelnyxCreateNotificationProfileInput,
|
|
16
|
+
output: z.object({ data: TelnyxCreateNotificationProfile_CreateNotificationProfileResponseDataSchema.nullable() })
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { telnyxCreateNotificationProfile };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=create-notification-profile.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-notification-profile.mjs","names":[],"sources":["../../src/actions/create-notification-profile.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TelnyxCreateNotificationProfileInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"A human-readable name for the notification profile.\"),\n}).describe(\"Request model for creating a new notification profile.\");\nconst TelnyxCreateNotificationProfile_CreateNotificationProfileResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"A UUID representing the notification profile.\"),\n name: z.string().describe(\"The human-readable name of the notification profile.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the profile was created.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the profile was last updated.\"),\n}).describe(\"Data returned for a created notification profile.\");\nexport const TelnyxCreateNotificationProfileOutput: z.ZodTypeAny = z.object({\n data: TelnyxCreateNotificationProfile_CreateNotificationProfileResponseDataSchema.nullable(),\n});\n\nexport const telnyxCreateNotificationProfile = action(\"TELNYX_CREATE_NOTIFICATION_PROFILE\", {\n slug: \"telnyx-create-notification-profile\",\n name: \"Create Notification Profile\",\n description: \"Tool to create a notification profile. Use when you need to register a new profile to group notification channels (SMS and voice) and define notification settings. Must be called before TELNYX_CREATE_NOTIFICATION_CHANNEL, as channel creation requires the notification_profile_id returned by this tool.\",\n input: TelnyxCreateNotificationProfileInput,\n output: TelnyxCreateNotificationProfileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqD,EAAE,OAAO,EACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,EACjF,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,8EAA4F,EAAE,OAAO;CACzG,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AACzF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAK/D,MAAa,kCAAkC,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiE,EAAE,OAAO,EAC1E,MAAM,4EAA4E,SAAS,EAC7F,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-notification-setting.ts
|
|
4
|
+
const TelnyxCreateNotificationSettingInput = zod.z.object({
|
|
5
|
+
parameters: zod.z.array(zod.z.object({
|
|
6
|
+
name: zod.z.string().describe("Name of the parameter (key)"),
|
|
7
|
+
value: zod.z.string().describe("Value of the parameter")
|
|
8
|
+
}).describe("Model for a single notification setting parameter.")).describe("Optional list of key/value parameters for this notification setting.").optional(),
|
|
9
|
+
notification_channel_id: zod.z.string().describe("UUID reference to the associated Notification Channel."),
|
|
10
|
+
notification_profile_id: zod.z.string().describe("UUID reference to the associated Notification Profile."),
|
|
11
|
+
notification_event_condition_id: zod.z.string().describe("UUID reference to the associated Notification Event Condition.")
|
|
12
|
+
}).describe("Request parameters for creating a notification setting.");
|
|
13
|
+
const TelnyxCreateNotificationSetting_NotificationSettingParameterSchema = zod.z.object({
|
|
14
|
+
name: zod.z.string().describe("Name of the parameter (key)"),
|
|
15
|
+
value: zod.z.string().describe("Value of the parameter")
|
|
16
|
+
}).describe("Model for a single notification setting parameter.");
|
|
17
|
+
const TelnyxCreateNotificationSetting_CreateNotificationSettingResponseDataSchema = zod.z.object({
|
|
18
|
+
id: zod.z.string().describe("UUID of the created notification setting."),
|
|
19
|
+
status: zod.z.enum([
|
|
20
|
+
"enabled",
|
|
21
|
+
"enable-received",
|
|
22
|
+
"enable-pending",
|
|
23
|
+
"enable-submitted",
|
|
24
|
+
"delete-received",
|
|
25
|
+
"delete-pending",
|
|
26
|
+
"delete-submitted",
|
|
27
|
+
"deleted"
|
|
28
|
+
]).describe("Current status of the notification setting."),
|
|
29
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the resource was created."),
|
|
30
|
+
parameters: zod.z.array(TelnyxCreateNotificationSetting_NotificationSettingParameterSchema).describe("List of parameters configured on this setting."),
|
|
31
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp when the resource was last updated."),
|
|
32
|
+
associated_record_type: zod.z.string().describe("Type of the associated record."),
|
|
33
|
+
notification_channel_id: zod.z.string().describe("UUID of the associated Notification Channel."),
|
|
34
|
+
notification_profile_id: zod.z.string().describe("UUID of the associated Notification Profile."),
|
|
35
|
+
associated_record_type_value: zod.z.string().describe("Value of the associated record type."),
|
|
36
|
+
notification_event_condition_id: zod.z.string().describe("UUID of the associated Notification Event Condition.")
|
|
37
|
+
}).describe("Data model for a created notification setting.");
|
|
38
|
+
const TelnyxCreateNotificationSettingOutput = zod.z.object({ data: TelnyxCreateNotificationSetting_CreateNotificationSettingResponseDataSchema.nullable() }).describe("Response schema for creating a notification setting.");
|
|
39
|
+
const telnyxCreateNotificationSetting = require_action.action("TELNYX_CREATE_NOTIFICATION_SETTING", {
|
|
40
|
+
slug: "telnyx-create-notification-setting",
|
|
41
|
+
name: "Create Notification Setting",
|
|
42
|
+
description: "Tool to add a notification setting. Use after creating the event condition, profile, and channel. All three UUID parameters must be fetched dynamically from their respective list/create endpoints; hardcoded IDs are not portable across accounts.",
|
|
43
|
+
input: TelnyxCreateNotificationSettingInput,
|
|
44
|
+
output: TelnyxCreateNotificationSettingOutput
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
exports.telnyxCreateNotificationSetting = telnyxCreateNotificationSetting;
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=create-notification-setting.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-notification-setting.cjs","names":["z","action"],"sources":["../../src/actions/create-notification-setting.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TelnyxCreateNotificationSettingInput: z.ZodTypeAny = z.object({\n parameters: z.array(z.object({\n name: z.string().describe(\"Name of the parameter (key)\"),\n value: z.string().describe(\"Value of the parameter\"),\n}).describe(\"Model for a single notification setting parameter.\")).describe(\"Optional list of key/value parameters for this notification setting.\").optional(),\n notification_channel_id: z.string().describe(\"UUID reference to the associated Notification Channel.\"),\n notification_profile_id: z.string().describe(\"UUID reference to the associated Notification Profile.\"),\n notification_event_condition_id: z.string().describe(\"UUID reference to the associated Notification Event Condition.\"),\n}).describe(\"Request parameters for creating a notification setting.\");\nconst TelnyxCreateNotificationSetting_NotificationSettingParameterSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the parameter (key)\"),\n value: z.string().describe(\"Value of the parameter\"),\n}).describe(\"Model for a single notification setting parameter.\");\nconst TelnyxCreateNotificationSetting_CreateNotificationSettingResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the created notification setting.\"),\n status: z.enum([\"enabled\", \"enable-received\", \"enable-pending\", \"enable-submitted\", \"delete-received\", \"delete-pending\", \"delete-submitted\", \"deleted\"]).describe(\"Current status of the notification setting.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the resource was created.\"),\n parameters: z.array(TelnyxCreateNotificationSetting_NotificationSettingParameterSchema).describe(\"List of parameters configured on this setting.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the resource was last updated.\"),\n associated_record_type: z.string().describe(\"Type of the associated record.\"),\n notification_channel_id: z.string().describe(\"UUID of the associated Notification Channel.\"),\n notification_profile_id: z.string().describe(\"UUID of the associated Notification Profile.\"),\n associated_record_type_value: z.string().describe(\"Value of the associated record type.\"),\n notification_event_condition_id: z.string().describe(\"UUID of the associated Notification Event Condition.\"),\n}).describe(\"Data model for a created notification setting.\");\nexport const TelnyxCreateNotificationSettingOutput: z.ZodTypeAny = z.object({\n data: TelnyxCreateNotificationSetting_CreateNotificationSettingResponseDataSchema.nullable(),\n}).describe(\"Response schema for creating a notification setting.\");\n\nexport const telnyxCreateNotificationSetting = action(\"TELNYX_CREATE_NOTIFICATION_SETTING\", {\n slug: \"telnyx-create-notification-setting\",\n name: \"Create Notification Setting\",\n description: \"Tool to add a notification setting. Use after creating the event condition, profile, and channel. All three UUID parameters must be fetched dynamically from their respective list/create endpoints; hardcoded IDs are not portable across accounts.\",\n input: TelnyxCreateNotificationSettingInput,\n output: TelnyxCreateNotificationSettingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACrD,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC3J,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACrG,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACrG,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;AACvH,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,qEAAmFA,IAAAA,EAAE,OAAO;CAChG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACrD,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,8EAA4FA,IAAAA,EAAE,OAAO;CACzG,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACnE,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAmB;EAAkB;EAAoB;EAAmB;EAAkB;EAAoB;CAAS,CAAC,CAAC,CAAC,SAAS,6CAA6C;CAC/M,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACnF,YAAYA,IAAAA,EAAE,MAAM,kEAAkE,CAAC,CAAC,SAAS,gDAAgD;CACjJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACxF,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC5E,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC3F,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC3F,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACxF,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AAC7G,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,wCAAsDA,IAAAA,EAAE,OAAO,EAC1E,MAAM,4EAA4E,SAAS,EAC7F,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-notification-setting.d.ts
|
|
4
|
+
declare const TelnyxCreateNotificationSettingInput: z.ZodTypeAny;
|
|
5
|
+
declare const TelnyxCreateNotificationSettingOutput: z.ZodTypeAny;
|
|
6
|
+
declare const telnyxCreateNotificationSetting: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { telnyxCreateNotificationSetting };
|
|
9
|
+
//# sourceMappingURL=create-notification-setting.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-notification-setting.d.cts","names":[],"sources":["../../src/actions/create-notification-setting.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAQiB;AAAA,cAiBzD,qCAAA,EAAuC,CAAA,CAAE,UAEa;AAAA,cAEtD,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-notification-setting.d.ts
|
|
4
|
+
declare const TelnyxCreateNotificationSettingInput: z.ZodTypeAny;
|
|
5
|
+
declare const TelnyxCreateNotificationSettingOutput: z.ZodTypeAny;
|
|
6
|
+
declare const telnyxCreateNotificationSetting: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { telnyxCreateNotificationSetting };
|
|
9
|
+
//# sourceMappingURL=create-notification-setting.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-notification-setting.d.mts","names":[],"sources":["../../src/actions/create-notification-setting.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAQiB;AAAA,cAiBzD,qCAAA,EAAuC,CAAA,CAAE,UAEa;AAAA,cAEtD,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-notification-setting.ts
|
|
4
|
+
const TelnyxCreateNotificationSettingInput = z.object({
|
|
5
|
+
parameters: z.array(z.object({
|
|
6
|
+
name: z.string().describe("Name of the parameter (key)"),
|
|
7
|
+
value: z.string().describe("Value of the parameter")
|
|
8
|
+
}).describe("Model for a single notification setting parameter.")).describe("Optional list of key/value parameters for this notification setting.").optional(),
|
|
9
|
+
notification_channel_id: z.string().describe("UUID reference to the associated Notification Channel."),
|
|
10
|
+
notification_profile_id: z.string().describe("UUID reference to the associated Notification Profile."),
|
|
11
|
+
notification_event_condition_id: z.string().describe("UUID reference to the associated Notification Event Condition.")
|
|
12
|
+
}).describe("Request parameters for creating a notification setting.");
|
|
13
|
+
const TelnyxCreateNotificationSetting_NotificationSettingParameterSchema = z.object({
|
|
14
|
+
name: z.string().describe("Name of the parameter (key)"),
|
|
15
|
+
value: z.string().describe("Value of the parameter")
|
|
16
|
+
}).describe("Model for a single notification setting parameter.");
|
|
17
|
+
const TelnyxCreateNotificationSetting_CreateNotificationSettingResponseDataSchema = z.object({
|
|
18
|
+
id: z.string().describe("UUID of the created notification setting."),
|
|
19
|
+
status: z.enum([
|
|
20
|
+
"enabled",
|
|
21
|
+
"enable-received",
|
|
22
|
+
"enable-pending",
|
|
23
|
+
"enable-submitted",
|
|
24
|
+
"delete-received",
|
|
25
|
+
"delete-pending",
|
|
26
|
+
"delete-submitted",
|
|
27
|
+
"deleted"
|
|
28
|
+
]).describe("Current status of the notification setting."),
|
|
29
|
+
created_at: z.string().describe("ISO 8601 timestamp when the resource was created."),
|
|
30
|
+
parameters: z.array(TelnyxCreateNotificationSetting_NotificationSettingParameterSchema).describe("List of parameters configured on this setting."),
|
|
31
|
+
updated_at: z.string().describe("ISO 8601 timestamp when the resource was last updated."),
|
|
32
|
+
associated_record_type: z.string().describe("Type of the associated record."),
|
|
33
|
+
notification_channel_id: z.string().describe("UUID of the associated Notification Channel."),
|
|
34
|
+
notification_profile_id: z.string().describe("UUID of the associated Notification Profile."),
|
|
35
|
+
associated_record_type_value: z.string().describe("Value of the associated record type."),
|
|
36
|
+
notification_event_condition_id: z.string().describe("UUID of the associated Notification Event Condition.")
|
|
37
|
+
}).describe("Data model for a created notification setting.");
|
|
38
|
+
const telnyxCreateNotificationSetting = action("TELNYX_CREATE_NOTIFICATION_SETTING", {
|
|
39
|
+
slug: "telnyx-create-notification-setting",
|
|
40
|
+
name: "Create Notification Setting",
|
|
41
|
+
description: "Tool to add a notification setting. Use after creating the event condition, profile, and channel. All three UUID parameters must be fetched dynamically from their respective list/create endpoints; hardcoded IDs are not portable across accounts.",
|
|
42
|
+
input: TelnyxCreateNotificationSettingInput,
|
|
43
|
+
output: z.object({ data: TelnyxCreateNotificationSetting_CreateNotificationSettingResponseDataSchema.nullable() }).describe("Response schema for creating a notification setting.")
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
export { telnyxCreateNotificationSetting };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=create-notification-setting.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-notification-setting.mjs","names":[],"sources":["../../src/actions/create-notification-setting.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TelnyxCreateNotificationSettingInput: z.ZodTypeAny = z.object({\n parameters: z.array(z.object({\n name: z.string().describe(\"Name of the parameter (key)\"),\n value: z.string().describe(\"Value of the parameter\"),\n}).describe(\"Model for a single notification setting parameter.\")).describe(\"Optional list of key/value parameters for this notification setting.\").optional(),\n notification_channel_id: z.string().describe(\"UUID reference to the associated Notification Channel.\"),\n notification_profile_id: z.string().describe(\"UUID reference to the associated Notification Profile.\"),\n notification_event_condition_id: z.string().describe(\"UUID reference to the associated Notification Event Condition.\"),\n}).describe(\"Request parameters for creating a notification setting.\");\nconst TelnyxCreateNotificationSetting_NotificationSettingParameterSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the parameter (key)\"),\n value: z.string().describe(\"Value of the parameter\"),\n}).describe(\"Model for a single notification setting parameter.\");\nconst TelnyxCreateNotificationSetting_CreateNotificationSettingResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the created notification setting.\"),\n status: z.enum([\"enabled\", \"enable-received\", \"enable-pending\", \"enable-submitted\", \"delete-received\", \"delete-pending\", \"delete-submitted\", \"deleted\"]).describe(\"Current status of the notification setting.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the resource was created.\"),\n parameters: z.array(TelnyxCreateNotificationSetting_NotificationSettingParameterSchema).describe(\"List of parameters configured on this setting.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the resource was last updated.\"),\n associated_record_type: z.string().describe(\"Type of the associated record.\"),\n notification_channel_id: z.string().describe(\"UUID of the associated Notification Channel.\"),\n notification_profile_id: z.string().describe(\"UUID of the associated Notification Profile.\"),\n associated_record_type_value: z.string().describe(\"Value of the associated record type.\"),\n notification_event_condition_id: z.string().describe(\"UUID of the associated Notification Event Condition.\"),\n}).describe(\"Data model for a created notification setting.\");\nexport const TelnyxCreateNotificationSettingOutput: z.ZodTypeAny = z.object({\n data: TelnyxCreateNotificationSetting_CreateNotificationSettingResponseDataSchema.nullable(),\n}).describe(\"Response schema for creating a notification setting.\");\n\nexport const telnyxCreateNotificationSetting = action(\"TELNYX_CREATE_NOTIFICATION_SETTING\", {\n slug: \"telnyx-create-notification-setting\",\n name: \"Create Notification Setting\",\n description: \"Tool to add a notification setting. Use after creating the event condition, profile, and channel. All three UUID parameters must be fetched dynamically from their respective list/create endpoints; hardcoded IDs are not portable across accounts.\",\n input: TelnyxCreateNotificationSettingInput,\n output: TelnyxCreateNotificationSettingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqD,EAAE,OAAO;CACzE,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACrD,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC3J,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACrG,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACrG,iCAAiC,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;AACvH,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,qEAAmF,EAAE,OAAO;CAChG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACrD,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,8EAA4F,EAAE,OAAO;CACzG,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACnE,QAAQ,EAAE,KAAK;EAAC;EAAW;EAAmB;EAAkB;EAAoB;EAAmB;EAAkB;EAAoB;CAAS,CAAC,CAAC,CAAC,SAAS,6CAA6C;CAC/M,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACnF,YAAY,EAAE,MAAM,kEAAkE,CAAC,CAAC,SAAS,gDAAgD;CACjJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACxF,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC5E,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC3F,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC3F,8BAA8B,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACxF,iCAAiC,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AAC7G,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAK5D,MAAa,kCAAkC,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiE,EAAE,OAAO,EAC1E,MAAM,4EAA4E,SAAS,EAC7F,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-network.ts
|
|
4
|
+
const TelnyxDeleteNetworkInput = zod.z.object({ network_id: zod.z.string().describe("Unique identifier for the network to delete.") }).describe("Request parameters for deleting a network by ID.");
|
|
5
|
+
const TelnyxDeleteNetwork_DeleteNetworkResponseDataSchema = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("Unique identifier for the network."),
|
|
7
|
+
name: zod.z.string().describe("Name of the network."),
|
|
8
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the network was created."),
|
|
9
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp when the network was last updated."),
|
|
10
|
+
record_type: zod.z.string().describe("Record type of the resource.")
|
|
11
|
+
}).describe("Data model for delete network response.");
|
|
12
|
+
const TelnyxDeleteNetworkOutput = zod.z.object({ data: TelnyxDeleteNetwork_DeleteNetworkResponseDataSchema.nullable().optional() }).describe("Response schema for deleting a network.");
|
|
13
|
+
const telnyxDeleteNetwork = require_action.action("TELNYX_DELETE_NETWORK", {
|
|
14
|
+
slug: "telnyx-delete-network",
|
|
15
|
+
name: "Delete Network",
|
|
16
|
+
description: "Tool to delete a network by ID. Use when you have obtained the network's identifier and need to remove it permanently.",
|
|
17
|
+
input: TelnyxDeleteNetworkInput,
|
|
18
|
+
output: TelnyxDeleteNetworkOutput
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.telnyxDeleteNetwork = telnyxDeleteNetwork;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=delete-network.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-network.cjs","names":["z","action"],"sources":["../../src/actions/delete-network.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TelnyxDeleteNetworkInput: z.ZodTypeAny = z.object({\n network_id: z.string().describe(\"Unique identifier for the network to delete.\"),\n}).describe(\"Request parameters for deleting a network by ID.\");\nconst TelnyxDeleteNetwork_DeleteNetworkResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the network.\"),\n name: z.string().describe(\"Name of the network.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the network was created.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the network was last updated.\"),\n record_type: z.string().describe(\"Record type of the resource.\"),\n}).describe(\"Data model for delete network response.\");\nexport const TelnyxDeleteNetworkOutput: z.ZodTypeAny = z.object({\n data: TelnyxDeleteNetwork_DeleteNetworkResponseDataSchema.nullable().optional(),\n}).describe(\"Response schema for deleting a network.\");\n\nexport const telnyxDeleteNetwork = action(\"TELNYX_DELETE_NETWORK\", {\n slug: \"telnyx-delete-network\",\n name: \"Delete Network\",\n description: \"Tool to delete a network by ID. Use when you have obtained the network's identifier and need to remove it permanently.\",\n input: TelnyxDeleteNetworkInput,\n output: TelnyxDeleteNetworkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EAChF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,sDAAoEA,IAAAA,EAAE,OAAO;CACjF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AACjE,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,MAAM,oDAAoD,SAAS,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-network.d.ts
|
|
4
|
+
declare const TelnyxDeleteNetworkInput: z.ZodTypeAny;
|
|
5
|
+
declare const TelnyxDeleteNetworkOutput: z.ZodTypeAny;
|
|
6
|
+
declare const telnyxDeleteNetwork: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { telnyxDeleteNetwork };
|
|
9
|
+
//# sourceMappingURL=delete-network.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-network.d.cts","names":[],"sources":["../../src/actions/delete-network.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEsB;AAAA,cAQlD,yBAAA,EAA2B,CAAA,CAAE,UAEY;AAAA,cAEzC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|