@keystrokehq/onesignal_rest_api 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/begin-live-activity.cjs +1 -1
- package/dist/actions/begin-live-activity.cjs.map +1 -1
- package/dist/actions/begin-live-activity.d.cts +1 -1
- package/dist/actions/begin-live-activity.d.mts +1 -1
- package/dist/actions/begin-live-activity.mjs +1 -1
- package/dist/actions/begin-live-activity.mjs.map +1 -1
- package/dist/actions/create-notification.cjs +4 -4
- package/dist/actions/create-notification.cjs.map +1 -1
- package/dist/actions/create-notification.d.cts +7 -7
- package/dist/actions/create-notification.d.mts +7 -7
- package/dist/actions/create-notification.mjs +4 -4
- package/dist/actions/create-notification.mjs.map +1 -1
- package/dist/actions/create-template.cjs +6 -6
- package/dist/actions/create-template.cjs.map +1 -1
- package/dist/actions/create-template.d.cts +9 -9
- package/dist/actions/create-template.d.mts +9 -9
- package/dist/actions/create-template.mjs +6 -6
- package/dist/actions/create-template.mjs.map +1 -1
- package/dist/actions/create-user.cjs +6 -6
- package/dist/actions/create-user.cjs.map +1 -1
- package/dist/actions/create-user.d.cts +9 -8
- package/dist/actions/create-user.d.mts +9 -8
- package/dist/actions/create-user.mjs +6 -6
- package/dist/actions/create-user.mjs.map +1 -1
- package/dist/actions/delete-alias.cjs +1 -1
- package/dist/actions/delete-alias.cjs.map +1 -1
- package/dist/actions/delete-alias.d.cts +2 -2
- package/dist/actions/delete-alias.d.mts +2 -2
- package/dist/actions/delete-alias.mjs +1 -1
- package/dist/actions/delete-alias.mjs.map +1 -1
- package/dist/actions/delete-device.cjs +1 -1
- package/dist/actions/delete-device.cjs.map +1 -1
- package/dist/actions/delete-device.d.cts +1 -1
- package/dist/actions/delete-device.d.mts +1 -1
- package/dist/actions/delete-device.mjs +1 -1
- package/dist/actions/delete-device.mjs.map +1 -1
- package/dist/actions/fetch-user-identity.cjs +1 -1
- package/dist/actions/fetch-user-identity.cjs.map +1 -1
- package/dist/actions/fetch-user-identity.d.cts +1 -1
- package/dist/actions/fetch-user-identity.d.mts +1 -1
- package/dist/actions/fetch-user-identity.mjs +1 -1
- package/dist/actions/fetch-user-identity.mjs.map +1 -1
- package/dist/actions/update-device.cjs +1 -1
- package/dist/actions/update-device.cjs.map +1 -1
- package/dist/actions/update-device.d.cts +1 -1
- package/dist/actions/update-device.d.mts +1 -1
- package/dist/actions/update-device.mjs +1 -1
- package/dist/actions/update-device.mjs.map +1 -1
- package/dist/actions/view-device.cjs +1 -1
- package/dist/actions/view-device.cjs.map +1 -1
- package/dist/actions/view-device.d.cts +1 -1
- package/dist/actions/view-device.d.mts +1 -1
- package/dist/actions/view-device.mjs +1 -1
- package/dist/actions/view-device.mjs.map +1 -1
- package/dist/actions/view-devices.cjs +3 -3
- package/dist/actions/view-devices.cjs.map +1 -1
- package/dist/actions/view-devices.d.cts +3 -3
- package/dist/actions/view-devices.d.mts +3 -3
- package/dist/actions/view-devices.mjs +3 -3
- package/dist/actions/view-devices.mjs.map +1 -1
- package/dist/actions/view-notifications.cjs +4 -4
- package/dist/actions/view-notifications.cjs.map +1 -1
- package/dist/actions/view-notifications.d.cts +4 -4
- package/dist/actions/view-notifications.d.mts +4 -4
- package/dist/actions/view-notifications.mjs +4 -4
- package/dist/actions/view-notifications.mjs.map +1 -1
- package/dist/actions/view-segments.cjs +3 -3
- package/dist/actions/view-segments.cjs.map +1 -1
- package/dist/actions/view-segments.d.cts +3 -3
- package/dist/actions/view-segments.d.mts +3 -3
- package/dist/actions/view-segments.mjs +3 -3
- package/dist/actions/view-segments.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ const OnesignalRestApiBeginLiveActivityInput = zod.z.object({
|
|
|
7
7
|
activity_id: zod.z.string().describe("Live Activity record ID"),
|
|
8
8
|
subscription_id: zod.z.string().describe("The OneSignal subscription ID associated with the device")
|
|
9
9
|
}).describe("Request model for starting a Live Activity on OneSignal.");
|
|
10
|
-
const OnesignalRestApiBeginLiveActivityOutput = zod.z.object({ success: zod.z.boolean().describe("Indicates whether the Live Activity was successfully started").nullable().optional() }).describe("Response model for starting a Live Activity.");
|
|
10
|
+
const OnesignalRestApiBeginLiveActivityOutput = zod.z.object({ success: zod.z.boolean().describe("Indicates whether the Live Activity was successfully started").nullable().optional() }).passthrough().describe("Response model for starting a Live Activity.");
|
|
11
11
|
const onesignalRestApiBeginLiveActivity = require_action.action("ONESIGNAL_REST_API_BEGIN_LIVE_ACTIVITY", {
|
|
12
12
|
slug: "onesignal_rest_api-begin-live-activity",
|
|
13
13
|
name: "Begin Live Activity",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"begin-live-activity.cjs","names":["z","action"],"sources":["../../src/actions/begin-live-activity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiBeginLiveActivityInput = z.object({\n app_id: z.string().describe(\"The OneSignal App ID for your app. Available in Keys & IDs.\"),\n push_token: z.string().describe(\"The device's push token for Live Activities (64-character hexadecimal string)\"),\n activity_id: z.string().describe(\"Live Activity record ID\"),\n subscription_id: z.string().describe(\"The OneSignal subscription ID associated with the device\"),\n}).describe(\"Request model for starting a Live Activity on OneSignal.\");\nexport const OnesignalRestApiBeginLiveActivityOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the Live Activity was successfully started\").nullable().optional(),\n}).describe(\"Response model for starting a Live Activity.\");\n\nexport const onesignalRestApiBeginLiveActivity = action(\"ONESIGNAL_REST_API_BEGIN_LIVE_ACTIVITY\", {\n slug: \"onesignal_rest_api-begin-live-activity\",\n name: \"Begin Live Activity\",\n description: \"Tool to start a Live Activity on OneSignal. Use when you need to initiate a Live Activity session with a push token and subscription ID.\",\n input: OnesignalRestApiBeginLiveActivityInput,\n output: OnesignalRestApiBeginLiveActivityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC/G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CAC1D,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;AACjG,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,SAAS,8CAA8C;
|
|
1
|
+
{"version":3,"file":"begin-live-activity.cjs","names":["z","action"],"sources":["../../src/actions/begin-live-activity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiBeginLiveActivityInput = z.object({\n app_id: z.string().describe(\"The OneSignal App ID for your app. Available in Keys & IDs.\"),\n push_token: z.string().describe(\"The device's push token for Live Activities (64-character hexadecimal string)\"),\n activity_id: z.string().describe(\"Live Activity record ID\"),\n subscription_id: z.string().describe(\"The OneSignal subscription ID associated with the device\"),\n}).describe(\"Request model for starting a Live Activity on OneSignal.\");\nexport const OnesignalRestApiBeginLiveActivityOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the Live Activity was successfully started\").nullable().optional(),\n}).passthrough().describe(\"Response model for starting a Live Activity.\");\n\nexport const onesignalRestApiBeginLiveActivity = action(\"ONESIGNAL_REST_API_BEGIN_LIVE_ACTIVITY\", {\n slug: \"onesignal_rest_api-begin-live-activity\",\n name: \"Begin Live Activity\",\n description: \"Tool to start a Live Activity on OneSignal. Use when you need to initiate a Live Activity session with a push token and subscription ID.\",\n input: OnesignalRestApiBeginLiveActivityInput,\n output: OnesignalRestApiBeginLiveActivityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC/G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CAC1D,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;AACjG,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,oCAAoCC,eAAAA,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ declare const OnesignalRestApiBeginLiveActivityInput: z.ZodObject<{
|
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
declare const OnesignalRestApiBeginLiveActivityOutput: z.ZodObject<{
|
|
11
11
|
success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const onesignalRestApiBeginLiveActivity: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
app_id: string;
|
|
15
15
|
push_token: string;
|
|
@@ -9,7 +9,7 @@ declare const OnesignalRestApiBeginLiveActivityInput: z.ZodObject<{
|
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
declare const OnesignalRestApiBeginLiveActivityOutput: z.ZodObject<{
|
|
11
11
|
success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const onesignalRestApiBeginLiveActivity: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
app_id: string;
|
|
15
15
|
push_token: string;
|
|
@@ -10,7 +10,7 @@ const onesignalRestApiBeginLiveActivity = action("ONESIGNAL_REST_API_BEGIN_LIVE_
|
|
|
10
10
|
activity_id: z.string().describe("Live Activity record ID"),
|
|
11
11
|
subscription_id: z.string().describe("The OneSignal subscription ID associated with the device")
|
|
12
12
|
}).describe("Request model for starting a Live Activity on OneSignal."),
|
|
13
|
-
output: z.object({ success: z.boolean().describe("Indicates whether the Live Activity was successfully started").nullable().optional() }).describe("Response model for starting a Live Activity.")
|
|
13
|
+
output: z.object({ success: z.boolean().describe("Indicates whether the Live Activity was successfully started").nullable().optional() }).passthrough().describe("Response model for starting a Live Activity.")
|
|
14
14
|
});
|
|
15
15
|
//#endregion
|
|
16
16
|
export { onesignalRestApiBeginLiveActivity };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"begin-live-activity.mjs","names":[],"sources":["../../src/actions/begin-live-activity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiBeginLiveActivityInput = z.object({\n app_id: z.string().describe(\"The OneSignal App ID for your app. Available in Keys & IDs.\"),\n push_token: z.string().describe(\"The device's push token for Live Activities (64-character hexadecimal string)\"),\n activity_id: z.string().describe(\"Live Activity record ID\"),\n subscription_id: z.string().describe(\"The OneSignal subscription ID associated with the device\"),\n}).describe(\"Request model for starting a Live Activity on OneSignal.\");\nexport const OnesignalRestApiBeginLiveActivityOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the Live Activity was successfully started\").nullable().optional(),\n}).describe(\"Response model for starting a Live Activity.\");\n\nexport const onesignalRestApiBeginLiveActivity = action(\"ONESIGNAL_REST_API_BEGIN_LIVE_ACTIVITY\", {\n slug: \"onesignal_rest_api-begin-live-activity\",\n name: \"Begin Live Activity\",\n description: \"Tool to start a Live Activity on OneSignal. Use when you need to initiate a Live Activity session with a push token and subscription ID.\",\n input: OnesignalRestApiBeginLiveActivityInput,\n output: OnesignalRestApiBeginLiveActivityOutput,\n});\n"],"mappings":";;AAcA,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdoD,EAAE,OAAO;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;EAC/G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EAC1D,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACjG,CAAC,CAAC,CAAC,SAAS,0DASH;CACP,QATqD,EAAE,OAAO,EAC9D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"begin-live-activity.mjs","names":[],"sources":["../../src/actions/begin-live-activity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiBeginLiveActivityInput = z.object({\n app_id: z.string().describe(\"The OneSignal App ID for your app. Available in Keys & IDs.\"),\n push_token: z.string().describe(\"The device's push token for Live Activities (64-character hexadecimal string)\"),\n activity_id: z.string().describe(\"Live Activity record ID\"),\n subscription_id: z.string().describe(\"The OneSignal subscription ID associated with the device\"),\n}).describe(\"Request model for starting a Live Activity on OneSignal.\");\nexport const OnesignalRestApiBeginLiveActivityOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the Live Activity was successfully started\").nullable().optional(),\n}).passthrough().describe(\"Response model for starting a Live Activity.\");\n\nexport const onesignalRestApiBeginLiveActivity = action(\"ONESIGNAL_REST_API_BEGIN_LIVE_ACTIVITY\", {\n slug: \"onesignal_rest_api-begin-live-activity\",\n name: \"Begin Live Activity\",\n description: \"Tool to start a Live Activity on OneSignal. Use when you need to initiate a Live Activity session with a push token and subscription ID.\",\n input: OnesignalRestApiBeginLiveActivityInput,\n output: OnesignalRestApiBeginLiveActivityOutput,\n});\n"],"mappings":";;AAcA,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdoD,EAAE,OAAO;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;EAC/G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EAC1D,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACjG,CAAC,CAAC,CAAC,SAAS,0DASH;CACP,QATqD,EAAE,OAAO,EAC9D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
|
|
@@ -7,9 +7,9 @@ const OnesignalRestApiCreateNotificationInput = zod.z.object({
|
|
|
7
7
|
app_id: zod.z.string().describe("Your OneSignal App ID"),
|
|
8
8
|
buttons: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Action buttons; see OneSignal docs for fields (id, text, icon, url)").optional(),
|
|
9
9
|
filters: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Advanced audience filters; see OneSignal docs for syntax").optional(),
|
|
10
|
-
contents: zod.z.
|
|
11
|
-
headings: zod.z.
|
|
12
|
-
subtitle: zod.z.
|
|
10
|
+
contents: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Notification message per language"),
|
|
11
|
+
headings: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Notification title per language").optional(),
|
|
12
|
+
subtitle: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Notification subtitle per language").optional(),
|
|
13
13
|
ios_sound: zod.z.string().describe("Custom iOS sound file").optional(),
|
|
14
14
|
large_icon: zod.z.string().describe("URL for Android large icon").optional(),
|
|
15
15
|
send_after: zod.z.string().describe("Schedule delivery time in ISO 8601 format (e.g., '2023-09-01T12:00:00Z')").optional(),
|
|
@@ -27,7 +27,7 @@ const OnesignalRestApiCreateNotificationOutput = zod.z.object({
|
|
|
27
27
|
errors: zod.z.unknown().describe("Error details if the request failed").nullable().optional(),
|
|
28
28
|
recipients: zod.z.number().int().describe("Number of recipients the notification was sent to").nullable().optional(),
|
|
29
29
|
external_id: zod.z.string().describe("Echo of external_id if provided in the request").nullable().optional()
|
|
30
|
-
}).describe("Response model after creating a OneSignal notification.");
|
|
30
|
+
}).passthrough().describe("Response model after creating a OneSignal notification.");
|
|
31
31
|
const onesignalRestApiCreateNotification = require_action.action("ONESIGNAL_REST_API_CREATE_NOTIFICATION", {
|
|
32
32
|
slug: "onesignal_rest_api-create-notification",
|
|
33
33
|
name: "Create Notification",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-notification.cjs","names":["z","action"],"sources":["../../src/actions/create-notification.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateNotificationInput = z.object({\n url: z.string().describe(\"URL to open when the notification is tapped\").optional(),\n data: z.record(z.string(), z.unknown()).describe(\"Custom key/value data payload\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n buttons: z.array(z.record(z.string(), z.unknown())).describe(\"Action buttons; see OneSignal docs for fields (id, text, icon, url)\").optional(),\n filters: z.array(z.record(z.string(), z.unknown())).describe(\"Advanced audience filters; see OneSignal docs for syntax\").optional(),\n contents: z.
|
|
1
|
+
{"version":3,"file":"create-notification.cjs","names":["z","action"],"sources":["../../src/actions/create-notification.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateNotificationInput = z.object({\n url: z.string().describe(\"URL to open when the notification is tapped\").optional(),\n data: z.record(z.string(), z.unknown()).describe(\"Custom key/value data payload\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n buttons: z.array(z.record(z.string(), z.unknown())).describe(\"Action buttons; see OneSignal docs for fields (id, text, icon, url)\").optional(),\n filters: z.array(z.record(z.string(), z.unknown())).describe(\"Advanced audience filters; see OneSignal docs for syntax\").optional(),\n contents: z.record(z.string(), z.unknown()).describe(\"Notification message per language\"),\n headings: z.record(z.string(), z.unknown()).describe(\"Notification title per language\").optional(),\n subtitle: z.record(z.string(), z.unknown()).describe(\"Notification subtitle per language\").optional(),\n ios_sound: z.string().describe(\"Custom iOS sound file\").optional(),\n large_icon: z.string().describe(\"URL for Android large icon\").optional(),\n send_after: z.string().describe(\"Schedule delivery time in ISO 8601 format (e.g., '2023-09-01T12:00:00Z')\").optional(),\n big_picture: z.string().describe(\"URL for Android big picture\").optional(),\n extra_params: z.record(z.string(), z.unknown()).describe(\"Additional OneSignal parameters not explicitly modeled above\").optional(),\n android_sound: z.string().describe(\"Custom Android sound file\").optional(),\n delayed_option: z.enum([\"timezone\", \"last-active\"]).describe(\"Delay delivery based on 'timezone' or 'last-active'\").optional(),\n ios_attachments: z.record(z.string(), z.unknown()).describe(\"iOS media attachments mapping identifiers to URLs\").optional(),\n included_segments: z.array(z.string()).describe(\"Predefined audience segments (e.g., ['All'])\").optional(),\n android_channel_id: z.string().describe(\"Android channel ID to post notification to\").optional(),\n include_player_ids: z.array(z.string()).describe(\"Specific device/player IDs to send the notification to\").optional(),\n}).describe(\"Request model for creating a OneSignal push notification.\");\nexport const OnesignalRestApiCreateNotificationOutput = z.object({\n id: z.string().describe(\"Generated OneSignal notification ID (may be empty when errors occur)\").nullable().optional(),\n errors: z.unknown().describe(\"Error details if the request failed\").nullable().optional(),\n recipients: z.number().int().describe(\"Number of recipients the notification was sent to\").nullable().optional(),\n external_id: z.string().describe(\"Echo of external_id if provided in the request\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a OneSignal notification.\");\n\nexport const onesignalRestApiCreateNotification = action(\"ONESIGNAL_REST_API_CREATE_NOTIFICATION\", {\n slug: \"onesignal_rest_api-create-notification\",\n name: \"Create Notification\",\n description: \"Tool to create and send a OneSignal push notification. Use when you have your message and target audience ready to dispatch notifications.\",\n input: OnesignalRestApiCreateNotificationInput,\n output: OnesignalRestApiCreateNotificationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACnD,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC7I,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAClI,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC;CACxF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACjG,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO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CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,9 +7,9 @@ declare const OnesignalRestApiCreateNotificationInput: z.ZodObject<{
|
|
|
7
7
|
app_id: z.ZodString;
|
|
8
8
|
buttons: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
9
9
|
filters: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
10
|
-
contents: z.
|
|
11
|
-
headings: z.ZodOptional<z.
|
|
12
|
-
subtitle: z.ZodOptional<z.
|
|
10
|
+
contents: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
|
+
headings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
+
subtitle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
ios_sound: z.ZodOptional<z.ZodString>;
|
|
14
14
|
large_icon: z.ZodOptional<z.ZodString>;
|
|
15
15
|
send_after: z.ZodOptional<z.ZodString>;
|
|
@@ -30,16 +30,16 @@ declare const OnesignalRestApiCreateNotificationOutput: z.ZodObject<{
|
|
|
30
30
|
errors: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
31
31
|
recipients: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
32
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>;
|
|
34
34
|
declare const onesignalRestApiCreateNotification: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
35
35
|
app_id: string;
|
|
36
|
-
contents: Record<string,
|
|
36
|
+
contents: Record<string, unknown>;
|
|
37
37
|
url?: string | undefined;
|
|
38
38
|
data?: Record<string, unknown> | undefined;
|
|
39
39
|
buttons?: Record<string, unknown>[] | undefined;
|
|
40
40
|
filters?: Record<string, unknown>[] | undefined;
|
|
41
|
-
headings?: Record<string,
|
|
42
|
-
subtitle?: Record<string,
|
|
41
|
+
headings?: Record<string, unknown> | undefined;
|
|
42
|
+
subtitle?: Record<string, unknown> | undefined;
|
|
43
43
|
ios_sound?: string | undefined;
|
|
44
44
|
large_icon?: string | undefined;
|
|
45
45
|
send_after?: string | undefined;
|
|
@@ -7,9 +7,9 @@ declare const OnesignalRestApiCreateNotificationInput: z.ZodObject<{
|
|
|
7
7
|
app_id: z.ZodString;
|
|
8
8
|
buttons: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
9
9
|
filters: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
10
|
-
contents: z.
|
|
11
|
-
headings: z.ZodOptional<z.
|
|
12
|
-
subtitle: z.ZodOptional<z.
|
|
10
|
+
contents: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
|
+
headings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
+
subtitle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
13
13
|
ios_sound: z.ZodOptional<z.ZodString>;
|
|
14
14
|
large_icon: z.ZodOptional<z.ZodString>;
|
|
15
15
|
send_after: z.ZodOptional<z.ZodString>;
|
|
@@ -30,16 +30,16 @@ declare const OnesignalRestApiCreateNotificationOutput: z.ZodObject<{
|
|
|
30
30
|
errors: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
31
31
|
recipients: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
32
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>;
|
|
34
34
|
declare const onesignalRestApiCreateNotification: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
35
35
|
app_id: string;
|
|
36
|
-
contents: Record<string,
|
|
36
|
+
contents: Record<string, unknown>;
|
|
37
37
|
url?: string | undefined;
|
|
38
38
|
data?: Record<string, unknown> | undefined;
|
|
39
39
|
buttons?: Record<string, unknown>[] | undefined;
|
|
40
40
|
filters?: Record<string, unknown>[] | undefined;
|
|
41
|
-
headings?: Record<string,
|
|
42
|
-
subtitle?: Record<string,
|
|
41
|
+
headings?: Record<string, unknown> | undefined;
|
|
42
|
+
subtitle?: Record<string, unknown> | undefined;
|
|
43
43
|
ios_sound?: string | undefined;
|
|
44
44
|
large_icon?: string | undefined;
|
|
45
45
|
send_after?: string | undefined;
|
|
@@ -10,9 +10,9 @@ const onesignalRestApiCreateNotification = action("ONESIGNAL_REST_API_CREATE_NOT
|
|
|
10
10
|
app_id: z.string().describe("Your OneSignal App ID"),
|
|
11
11
|
buttons: z.array(z.record(z.string(), z.unknown())).describe("Action buttons; see OneSignal docs for fields (id, text, icon, url)").optional(),
|
|
12
12
|
filters: z.array(z.record(z.string(), z.unknown())).describe("Advanced audience filters; see OneSignal docs for syntax").optional(),
|
|
13
|
-
contents: z.
|
|
14
|
-
headings: z.
|
|
15
|
-
subtitle: z.
|
|
13
|
+
contents: z.record(z.string(), z.unknown()).describe("Notification message per language"),
|
|
14
|
+
headings: z.record(z.string(), z.unknown()).describe("Notification title per language").optional(),
|
|
15
|
+
subtitle: z.record(z.string(), z.unknown()).describe("Notification subtitle per language").optional(),
|
|
16
16
|
ios_sound: z.string().describe("Custom iOS sound file").optional(),
|
|
17
17
|
large_icon: z.string().describe("URL for Android large icon").optional(),
|
|
18
18
|
send_after: z.string().describe("Schedule delivery time in ISO 8601 format (e.g., '2023-09-01T12:00:00Z')").optional(),
|
|
@@ -30,7 +30,7 @@ const onesignalRestApiCreateNotification = action("ONESIGNAL_REST_API_CREATE_NOT
|
|
|
30
30
|
errors: z.unknown().describe("Error details if the request failed").nullable().optional(),
|
|
31
31
|
recipients: z.number().int().describe("Number of recipients the notification was sent to").nullable().optional(),
|
|
32
32
|
external_id: z.string().describe("Echo of external_id if provided in the request").nullable().optional()
|
|
33
|
-
}).describe("Response model after creating a OneSignal notification.")
|
|
33
|
+
}).passthrough().describe("Response model after creating a OneSignal notification.")
|
|
34
34
|
});
|
|
35
35
|
//#endregion
|
|
36
36
|
export { onesignalRestApiCreateNotification };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-notification.mjs","names":[],"sources":["../../src/actions/create-notification.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateNotificationInput = z.object({\n url: z.string().describe(\"URL to open when the notification is tapped\").optional(),\n data: z.record(z.string(), z.unknown()).describe(\"Custom key/value data payload\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n buttons: z.array(z.record(z.string(), z.unknown())).describe(\"Action buttons; see OneSignal docs for fields (id, text, icon, url)\").optional(),\n filters: z.array(z.record(z.string(), z.unknown())).describe(\"Advanced audience filters; see OneSignal docs for syntax\").optional(),\n contents: z.
|
|
1
|
+
{"version":3,"file":"create-notification.mjs","names":[],"sources":["../../src/actions/create-notification.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateNotificationInput = z.object({\n url: z.string().describe(\"URL to open when the notification is tapped\").optional(),\n data: z.record(z.string(), z.unknown()).describe(\"Custom key/value data payload\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n buttons: z.array(z.record(z.string(), z.unknown())).describe(\"Action buttons; see OneSignal docs for fields (id, text, icon, url)\").optional(),\n filters: z.array(z.record(z.string(), z.unknown())).describe(\"Advanced audience filters; see OneSignal docs for syntax\").optional(),\n contents: z.record(z.string(), z.unknown()).describe(\"Notification message per language\"),\n headings: z.record(z.string(), z.unknown()).describe(\"Notification title per language\").optional(),\n subtitle: z.record(z.string(), z.unknown()).describe(\"Notification subtitle per language\").optional(),\n ios_sound: z.string().describe(\"Custom iOS sound file\").optional(),\n large_icon: z.string().describe(\"URL for Android large icon\").optional(),\n send_after: z.string().describe(\"Schedule delivery time in ISO 8601 format (e.g., '2023-09-01T12:00:00Z')\").optional(),\n big_picture: z.string().describe(\"URL for Android big picture\").optional(),\n extra_params: z.record(z.string(), z.unknown()).describe(\"Additional OneSignal parameters not explicitly modeled above\").optional(),\n android_sound: z.string().describe(\"Custom Android sound file\").optional(),\n delayed_option: z.enum([\"timezone\", \"last-active\"]).describe(\"Delay delivery based on 'timezone' or 'last-active'\").optional(),\n ios_attachments: z.record(z.string(), z.unknown()).describe(\"iOS media attachments mapping identifiers to URLs\").optional(),\n included_segments: z.array(z.string()).describe(\"Predefined audience segments (e.g., ['All'])\").optional(),\n android_channel_id: z.string().describe(\"Android channel ID to post notification to\").optional(),\n include_player_ids: z.array(z.string()).describe(\"Specific device/player IDs to send the notification to\").optional(),\n}).describe(\"Request model for creating a OneSignal push notification.\");\nexport const OnesignalRestApiCreateNotificationOutput = z.object({\n id: z.string().describe(\"Generated OneSignal notification ID (may be empty when errors occur)\").nullable().optional(),\n errors: z.unknown().describe(\"Error details if the request failed\").nullable().optional(),\n recipients: z.number().int().describe(\"Number of recipients the notification was sent to\").nullable().optional(),\n external_id: z.string().describe(\"Echo of external_id if provided in the request\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a OneSignal notification.\");\n\nexport const onesignalRestApiCreateNotification = action(\"ONESIGNAL_REST_API_CREATE_NOTIFICATION\", {\n slug: \"onesignal_rest_api-create-notification\",\n name: \"Create Notification\",\n description: \"Tool to create and send a OneSignal push notification. Use when you have your message and target audience ready to dispatch notifications.\",\n input: OnesignalRestApiCreateNotificationInput,\n output: OnesignalRestApiCreateNotificationOutput,\n});\n"],"mappings":";;AAgCA,MAAa,qCAAqC,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhCqD,EAAE,OAAO;EAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACjF,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACnD,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC7I,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAClI,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC;EACxF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACjG,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EACrH,aAAa,EAAE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od.z.object({
|
|
|
11
11
|
app_id: zod.z.string().describe("Your OneSignal App ID"),
|
|
12
12
|
isEdge: zod.z.boolean().describe("Platform targeting flag for Microsoft Edge (defaults to true)").optional(),
|
|
13
13
|
isEmail: zod.z.boolean().describe("Required to be set true for email templates").optional(),
|
|
14
|
-
contents: zod.z.
|
|
15
|
-
headings: zod.z.
|
|
14
|
+
contents: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The main message body with language-specific values (e.g., {'en': 'Hello!'}). Applies to push and SMS templates. Supports message personalization.").optional(),
|
|
15
|
+
headings: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Language-specific heading values for push notifications").optional(),
|
|
16
16
|
isChrome: zod.z.boolean().describe("Platform targeting flag for Chrome Apps (defaults to true)").optional(),
|
|
17
17
|
isMacOSX: zod.z.boolean().describe("Platform targeting flag for macOS (defaults to true)").optional(),
|
|
18
18
|
isSafari: zod.z.boolean().describe("Platform targeting flag for Safari (defaults to true)").optional(),
|
|
@@ -22,7 +22,7 @@ const OnesignalRestApiCreateTemplateInput = zod.z.object({
|
|
|
22
22
|
email_body: zod.z.string().describe("The body of the email in HTML format (required when creating email templates). Supports message personalization.").optional(),
|
|
23
23
|
isChromeWeb: zod.z.boolean().describe("Platform targeting flag for Chrome Web Push (defaults to true)").optional(),
|
|
24
24
|
email_subject: zod.z.string().describe("The subject of the email (required when creating email templates). Supports message personalization.").optional(),
|
|
25
|
-
dynamic_content: zod.z.
|
|
25
|
+
dynamic_content: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Enables programmatic personalization without CSV uploads. Structure supports nested key-value campaign variations.").optional()
|
|
26
26
|
}).describe("Request model for creating a OneSignal template.");
|
|
27
27
|
const OnesignalRestApiCreateTemplate_TemplateContentResponseSchema = zod.z.object({
|
|
28
28
|
url: zod.z.string().describe("Associated URL for the notification").nullable().optional(),
|
|
@@ -32,8 +32,8 @@ const OnesignalRestApiCreateTemplate_TemplateContentResponseSchema = zod.z.objec
|
|
|
32
32
|
isSMS: zod.z.boolean().describe("Indicates if template is SMS-based").nullable().optional(),
|
|
33
33
|
isEdge: zod.z.boolean().describe("Platform targeting flag for Microsoft Edge").nullable().optional(),
|
|
34
34
|
isEmail: zod.z.boolean().describe("Indicates if template is email-based").nullable().optional(),
|
|
35
|
-
contents: zod.z.
|
|
36
|
-
headings: zod.z.
|
|
35
|
+
contents: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The main message body with language-specific values").nullable().optional(),
|
|
36
|
+
headings: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Language-specific heading values").nullable().optional(),
|
|
37
37
|
isChrome: zod.z.boolean().describe("Platform targeting flag for Chrome Apps").nullable().optional(),
|
|
38
38
|
isMacOSX: zod.z.boolean().describe("Platform targeting flag for macOS").nullable().optional(),
|
|
39
39
|
isSafari: zod.z.boolean().describe("Platform targeting flag for Safari").nullable().optional(),
|
|
@@ -49,7 +49,7 @@ const OnesignalRestApiCreateTemplateOutput = zod.z.object({
|
|
|
49
49
|
content: OnesignalRestApiCreateTemplate_TemplateContentResponseSchema.nullable().optional(),
|
|
50
50
|
created_at: zod.z.string().describe("Timestamp in ISO 8601 format indicating when the template was created").nullable().optional(),
|
|
51
51
|
updated_at: zod.z.string().describe("Timestamp in ISO 8601 format showing the last modification time").nullable().optional()
|
|
52
|
-
}).describe("Response model after creating a OneSignal template.");
|
|
52
|
+
}).passthrough().describe("Response model after creating a OneSignal template.");
|
|
53
53
|
const onesignalRestApiCreateTemplate = require_action.action("ONESIGNAL_REST_API_CREATE_TEMPLATE", {
|
|
54
54
|
slug: "onesignal_rest_api-create-template",
|
|
55
55
|
name: "Create Template",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-template.cjs","names":["z","action"],"sources":["../../src/actions/create-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateTemplateInput = z.object({\n url: z.string().describe(\"Associated URL for the notification\").optional(),\n isWP: z.boolean().describe(\"Platform targeting flag for Windows Phone (defaults to true)\").optional(),\n name: z.string().describe(\"Internal name for organizing and tracking templates (maximum 128 characters)\"),\n isAdm: z.boolean().describe(\"Platform targeting flag for Amazon (defaults to true)\").optional(),\n isIos: z.boolean().describe(\"Platform targeting flag for iOS (defaults to true)\").optional(),\n isSMS: z.boolean().describe(\"Required to be set true for SMS templates\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n isEdge: z.boolean().describe(\"Platform targeting flag for Microsoft Edge (defaults to true)\").optional(),\n isEmail: z.boolean().describe(\"Required to be set true for email templates\").optional(),\n contents: z.
|
|
1
|
+
{"version":3,"file":"create-template.cjs","names":["z","action"],"sources":["../../src/actions/create-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateTemplateInput = z.object({\n url: z.string().describe(\"Associated URL for the notification\").optional(),\n isWP: z.boolean().describe(\"Platform targeting flag for Windows Phone (defaults to true)\").optional(),\n name: z.string().describe(\"Internal name for organizing and tracking templates (maximum 128 characters)\"),\n isAdm: z.boolean().describe(\"Platform targeting flag for Amazon (defaults to true)\").optional(),\n isIos: z.boolean().describe(\"Platform targeting flag for iOS (defaults to true)\").optional(),\n isSMS: z.boolean().describe(\"Required to be set true for SMS templates\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n isEdge: z.boolean().describe(\"Platform targeting flag for Microsoft Edge (defaults to true)\").optional(),\n isEmail: z.boolean().describe(\"Required to be set true for email templates\").optional(),\n contents: z.record(z.string(), z.unknown()).describe(\"The main message body with language-specific values (e.g., {'en': 'Hello!'}). Applies to push and SMS templates. Supports message personalization.\").optional(),\n headings: z.record(z.string(), z.unknown()).describe(\"Language-specific heading values for push notifications\").optional(),\n isChrome: z.boolean().describe(\"Platform targeting flag for Chrome Apps (defaults to true)\").optional(),\n isMacOSX: z.boolean().describe(\"Platform targeting flag for macOS (defaults to true)\").optional(),\n isSafari: z.boolean().describe(\"Platform targeting flag for Safari (defaults to true)\").optional(),\n isWP_WNS: z.boolean().describe(\"Platform targeting flag for Windows Push Notification Services (defaults to true)\").optional(),\n isAndroid: z.boolean().describe(\"Platform targeting flag for Android (defaults to true)\").optional(),\n isFirefox: z.boolean().describe(\"Platform targeting flag for Firefox (defaults to true)\").optional(),\n email_body: z.string().describe(\"The body of the email in HTML format (required when creating email templates). Supports message personalization.\").optional(),\n isChromeWeb: z.boolean().describe(\"Platform targeting flag for Chrome Web Push (defaults to true)\").optional(),\n email_subject: z.string().describe(\"The subject of the email (required when creating email templates). Supports message personalization.\").optional(),\n dynamic_content: z.record(z.string(), z.unknown()).describe(\"Enables programmatic personalization without CSV uploads. Structure supports nested key-value campaign variations.\").optional(),\n}).describe(\"Request model for creating a OneSignal template.\");\nconst OnesignalRestApiCreateTemplate_TemplateContentResponseSchema = z.object({\n url: z.string().describe(\"Associated URL for the notification\").nullable().optional(),\n isWP: z.boolean().describe(\"Platform targeting flag for Windows Phone\").nullable().optional(),\n isAdm: z.boolean().describe(\"Platform targeting flag for Amazon\").nullable().optional(),\n isIos: z.boolean().describe(\"Platform targeting flag for iOS\").nullable().optional(),\n isSMS: z.boolean().describe(\"Indicates if template is SMS-based\").nullable().optional(),\n isEdge: z.boolean().describe(\"Platform targeting flag for Microsoft Edge\").nullable().optional(),\n isEmail: z.boolean().describe(\"Indicates if template is email-based\").nullable().optional(),\n contents: z.record(z.string(), z.unknown()).describe(\"The main message body with language-specific values\").nullable().optional(),\n headings: z.record(z.string(), z.unknown()).describe(\"Language-specific heading values\").nullable().optional(),\n isChrome: z.boolean().describe(\"Platform targeting flag for Chrome Apps\").nullable().optional(),\n isMacOSX: z.boolean().describe(\"Platform targeting flag for macOS\").nullable().optional(),\n isSafari: z.boolean().describe(\"Platform targeting flag for Safari\").nullable().optional(),\n isAndroid: z.boolean().describe(\"Platform targeting flag for Android\").nullable().optional(),\n isFirefox: z.boolean().describe(\"Platform targeting flag for Firefox\").nullable().optional(),\n email_body: z.string().describe(\"HTML-formatted email body (if applicable)\").nullable().optional(),\n isChromeWeb: z.boolean().describe(\"Platform targeting flag for Chrome Web Push\").nullable().optional(),\n email_subject: z.string().describe(\"Email subject line (if applicable)\").nullable().optional(),\n}).passthrough().describe(\"Content details within the template response.\");\nexport const OnesignalRestApiCreateTemplateOutput = z.object({\n id: z.string().describe(\"The template's unique identifier (UUID format)\").nullable().optional(),\n name: z.string().describe(\"An internal name you set to help organize and track Templates (maximum 128 characters)\").nullable().optional(),\n content: OnesignalRestApiCreateTemplate_TemplateContentResponseSchema.nullable().optional(),\n created_at: z.string().describe(\"Timestamp in ISO 8601 format indicating when the template was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp in ISO 8601 format showing the last modification time\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a OneSignal template.\");\n\nexport const onesignalRestApiCreateTemplate = action(\"ONESIGNAL_REST_API_CREATE_TEMPLATE\", {\n slug: \"onesignal_rest_api-create-template\",\n name: \"Create Template\",\n description: \"Tool to create reusable message templates for push, email, and SMS channels. Use when you need to create a template that can be accessed through both the dashboard and API using a template_id.\",\n input: OnesignalRestApiCreateTemplateInput,\n output: OnesignalRestApiCreateTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACzE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACpG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;CACxG,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAA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AAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,iCAAiCC,eAAAA,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -11,8 +11,8 @@ declare const OnesignalRestApiCreateTemplateInput: z.ZodObject<{
|
|
|
11
11
|
app_id: z.ZodString;
|
|
12
12
|
isEdge: z.ZodOptional<z.ZodBoolean>;
|
|
13
13
|
isEmail: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
contents: z.ZodOptional<z.
|
|
15
|
-
headings: z.ZodOptional<z.
|
|
14
|
+
contents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15
|
+
headings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
16
|
isChrome: z.ZodOptional<z.ZodBoolean>;
|
|
17
17
|
isMacOSX: z.ZodOptional<z.ZodBoolean>;
|
|
18
18
|
isSafari: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -22,7 +22,7 @@ declare const OnesignalRestApiCreateTemplateInput: z.ZodObject<{
|
|
|
22
22
|
email_body: z.ZodOptional<z.ZodString>;
|
|
23
23
|
isChromeWeb: z.ZodOptional<z.ZodBoolean>;
|
|
24
24
|
email_subject: z.ZodOptional<z.ZodString>;
|
|
25
|
-
dynamic_content: z.ZodOptional<z.
|
|
25
|
+
dynamic_content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
declare const OnesignalRestApiCreateTemplateOutput: z.ZodObject<{
|
|
28
28
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -35,8 +35,8 @@ declare const OnesignalRestApiCreateTemplateOutput: z.ZodObject<{
|
|
|
35
35
|
isSMS: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
36
36
|
isEdge: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
37
37
|
isEmail: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
38
|
-
contents: z.ZodOptional<z.ZodNullable<z.
|
|
39
|
-
headings: z.ZodOptional<z.ZodNullable<z.
|
|
38
|
+
contents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
39
|
+
headings: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
40
40
|
isChrome: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
41
41
|
isMacOSX: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
42
42
|
isSafari: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -48,7 +48,7 @@ declare const OnesignalRestApiCreateTemplateOutput: z.ZodObject<{
|
|
|
48
48
|
}, z.core.$loose>>>;
|
|
49
49
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
50
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
-
}, z.core.$
|
|
51
|
+
}, z.core.$loose>;
|
|
52
52
|
declare const onesignalRestApiCreateTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
53
53
|
name: string;
|
|
54
54
|
app_id: string;
|
|
@@ -59,8 +59,8 @@ declare const onesignalRestApiCreateTemplate: import("@keystrokehq/action").Work
|
|
|
59
59
|
isSMS?: boolean | undefined;
|
|
60
60
|
isEdge?: boolean | undefined;
|
|
61
61
|
isEmail?: boolean | undefined;
|
|
62
|
-
contents?: Record<string,
|
|
63
|
-
headings?: Record<string,
|
|
62
|
+
contents?: Record<string, unknown> | undefined;
|
|
63
|
+
headings?: Record<string, unknown> | undefined;
|
|
64
64
|
isChrome?: boolean | undefined;
|
|
65
65
|
isMacOSX?: boolean | undefined;
|
|
66
66
|
isSafari?: boolean | undefined;
|
|
@@ -70,7 +70,7 @@ declare const onesignalRestApiCreateTemplate: import("@keystrokehq/action").Work
|
|
|
70
70
|
email_body?: string | undefined;
|
|
71
71
|
isChromeWeb?: boolean | undefined;
|
|
72
72
|
email_subject?: string | undefined;
|
|
73
|
-
dynamic_content?: Record<string,
|
|
73
|
+
dynamic_content?: Record<string, unknown> | undefined;
|
|
74
74
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
75
75
|
//#endregion
|
|
76
76
|
export { onesignalRestApiCreateTemplate };
|
|
@@ -11,8 +11,8 @@ declare const OnesignalRestApiCreateTemplateInput: z.ZodObject<{
|
|
|
11
11
|
app_id: z.ZodString;
|
|
12
12
|
isEdge: z.ZodOptional<z.ZodBoolean>;
|
|
13
13
|
isEmail: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
contents: z.ZodOptional<z.
|
|
15
|
-
headings: z.ZodOptional<z.
|
|
14
|
+
contents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15
|
+
headings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
16
|
isChrome: z.ZodOptional<z.ZodBoolean>;
|
|
17
17
|
isMacOSX: z.ZodOptional<z.ZodBoolean>;
|
|
18
18
|
isSafari: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -22,7 +22,7 @@ declare const OnesignalRestApiCreateTemplateInput: z.ZodObject<{
|
|
|
22
22
|
email_body: z.ZodOptional<z.ZodString>;
|
|
23
23
|
isChromeWeb: z.ZodOptional<z.ZodBoolean>;
|
|
24
24
|
email_subject: z.ZodOptional<z.ZodString>;
|
|
25
|
-
dynamic_content: z.ZodOptional<z.
|
|
25
|
+
dynamic_content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
declare const OnesignalRestApiCreateTemplateOutput: z.ZodObject<{
|
|
28
28
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -35,8 +35,8 @@ declare const OnesignalRestApiCreateTemplateOutput: z.ZodObject<{
|
|
|
35
35
|
isSMS: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
36
36
|
isEdge: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
37
37
|
isEmail: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
38
|
-
contents: z.ZodOptional<z.ZodNullable<z.
|
|
39
|
-
headings: z.ZodOptional<z.ZodNullable<z.
|
|
38
|
+
contents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
39
|
+
headings: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
40
40
|
isChrome: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
41
41
|
isMacOSX: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
42
42
|
isSafari: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -48,7 +48,7 @@ declare const OnesignalRestApiCreateTemplateOutput: z.ZodObject<{
|
|
|
48
48
|
}, z.core.$loose>>>;
|
|
49
49
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
50
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
-
}, z.core.$
|
|
51
|
+
}, z.core.$loose>;
|
|
52
52
|
declare const onesignalRestApiCreateTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
53
53
|
name: string;
|
|
54
54
|
app_id: string;
|
|
@@ -59,8 +59,8 @@ declare const onesignalRestApiCreateTemplate: import("@keystrokehq/action").Work
|
|
|
59
59
|
isSMS?: boolean | undefined;
|
|
60
60
|
isEdge?: boolean | undefined;
|
|
61
61
|
isEmail?: boolean | undefined;
|
|
62
|
-
contents?: Record<string,
|
|
63
|
-
headings?: Record<string,
|
|
62
|
+
contents?: Record<string, unknown> | undefined;
|
|
63
|
+
headings?: Record<string, unknown> | undefined;
|
|
64
64
|
isChrome?: boolean | undefined;
|
|
65
65
|
isMacOSX?: boolean | undefined;
|
|
66
66
|
isSafari?: boolean | undefined;
|
|
@@ -70,7 +70,7 @@ declare const onesignalRestApiCreateTemplate: import("@keystrokehq/action").Work
|
|
|
70
70
|
email_body?: string | undefined;
|
|
71
71
|
isChromeWeb?: boolean | undefined;
|
|
72
72
|
email_subject?: string | undefined;
|
|
73
|
-
dynamic_content?: Record<string,
|
|
73
|
+
dynamic_content?: Record<string, unknown> | undefined;
|
|
74
74
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
75
75
|
//#endregion
|
|
76
76
|
export { onesignalRestApiCreateTemplate };
|
|
@@ -11,8 +11,8 @@ const OnesignalRestApiCreateTemplateInput = z.object({
|
|
|
11
11
|
app_id: z.string().describe("Your OneSignal App ID"),
|
|
12
12
|
isEdge: z.boolean().describe("Platform targeting flag for Microsoft Edge (defaults to true)").optional(),
|
|
13
13
|
isEmail: z.boolean().describe("Required to be set true for email templates").optional(),
|
|
14
|
-
contents: z.
|
|
15
|
-
headings: z.
|
|
14
|
+
contents: z.record(z.string(), z.unknown()).describe("The main message body with language-specific values (e.g., {'en': 'Hello!'}). Applies to push and SMS templates. Supports message personalization.").optional(),
|
|
15
|
+
headings: z.record(z.string(), z.unknown()).describe("Language-specific heading values for push notifications").optional(),
|
|
16
16
|
isChrome: z.boolean().describe("Platform targeting flag for Chrome Apps (defaults to true)").optional(),
|
|
17
17
|
isMacOSX: z.boolean().describe("Platform targeting flag for macOS (defaults to true)").optional(),
|
|
18
18
|
isSafari: z.boolean().describe("Platform targeting flag for Safari (defaults to true)").optional(),
|
|
@@ -22,7 +22,7 @@ const OnesignalRestApiCreateTemplateInput = z.object({
|
|
|
22
22
|
email_body: z.string().describe("The body of the email in HTML format (required when creating email templates). Supports message personalization.").optional(),
|
|
23
23
|
isChromeWeb: z.boolean().describe("Platform targeting flag for Chrome Web Push (defaults to true)").optional(),
|
|
24
24
|
email_subject: z.string().describe("The subject of the email (required when creating email templates). Supports message personalization.").optional(),
|
|
25
|
-
dynamic_content: z.
|
|
25
|
+
dynamic_content: z.record(z.string(), z.unknown()).describe("Enables programmatic personalization without CSV uploads. Structure supports nested key-value campaign variations.").optional()
|
|
26
26
|
}).describe("Request model for creating a OneSignal template.");
|
|
27
27
|
const OnesignalRestApiCreateTemplate_TemplateContentResponseSchema = z.object({
|
|
28
28
|
url: z.string().describe("Associated URL for the notification").nullable().optional(),
|
|
@@ -32,8 +32,8 @@ const OnesignalRestApiCreateTemplate_TemplateContentResponseSchema = z.object({
|
|
|
32
32
|
isSMS: z.boolean().describe("Indicates if template is SMS-based").nullable().optional(),
|
|
33
33
|
isEdge: z.boolean().describe("Platform targeting flag for Microsoft Edge").nullable().optional(),
|
|
34
34
|
isEmail: z.boolean().describe("Indicates if template is email-based").nullable().optional(),
|
|
35
|
-
contents: z.
|
|
36
|
-
headings: z.
|
|
35
|
+
contents: z.record(z.string(), z.unknown()).describe("The main message body with language-specific values").nullable().optional(),
|
|
36
|
+
headings: z.record(z.string(), z.unknown()).describe("Language-specific heading values").nullable().optional(),
|
|
37
37
|
isChrome: z.boolean().describe("Platform targeting flag for Chrome Apps").nullable().optional(),
|
|
38
38
|
isMacOSX: z.boolean().describe("Platform targeting flag for macOS").nullable().optional(),
|
|
39
39
|
isSafari: z.boolean().describe("Platform targeting flag for Safari").nullable().optional(),
|
|
@@ -54,7 +54,7 @@ const onesignalRestApiCreateTemplate = action("ONESIGNAL_REST_API_CREATE_TEMPLAT
|
|
|
54
54
|
content: OnesignalRestApiCreateTemplate_TemplateContentResponseSchema.nullable().optional(),
|
|
55
55
|
created_at: z.string().describe("Timestamp in ISO 8601 format indicating when the template was created").nullable().optional(),
|
|
56
56
|
updated_at: z.string().describe("Timestamp in ISO 8601 format showing the last modification time").nullable().optional()
|
|
57
|
-
}).describe("Response model after creating a OneSignal template.")
|
|
57
|
+
}).passthrough().describe("Response model after creating a OneSignal template.")
|
|
58
58
|
});
|
|
59
59
|
//#endregion
|
|
60
60
|
export { onesignalRestApiCreateTemplate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-template.mjs","names":[],"sources":["../../src/actions/create-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateTemplateInput = z.object({\n url: z.string().describe(\"Associated URL for the notification\").optional(),\n isWP: z.boolean().describe(\"Platform targeting flag for Windows Phone (defaults to true)\").optional(),\n name: z.string().describe(\"Internal name for organizing and tracking templates (maximum 128 characters)\"),\n isAdm: z.boolean().describe(\"Platform targeting flag for Amazon (defaults to true)\").optional(),\n isIos: z.boolean().describe(\"Platform targeting flag for iOS (defaults to true)\").optional(),\n isSMS: z.boolean().describe(\"Required to be set true for SMS templates\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n isEdge: z.boolean().describe(\"Platform targeting flag for Microsoft Edge (defaults to true)\").optional(),\n isEmail: z.boolean().describe(\"Required to be set true for email templates\").optional(),\n contents: z.
|
|
1
|
+
{"version":3,"file":"create-template.mjs","names":[],"sources":["../../src/actions/create-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateTemplateInput = z.object({\n url: z.string().describe(\"Associated URL for the notification\").optional(),\n isWP: z.boolean().describe(\"Platform targeting flag for Windows Phone (defaults to true)\").optional(),\n name: z.string().describe(\"Internal name for organizing and tracking templates (maximum 128 characters)\"),\n isAdm: z.boolean().describe(\"Platform targeting flag for Amazon (defaults to true)\").optional(),\n isIos: z.boolean().describe(\"Platform targeting flag for iOS (defaults to true)\").optional(),\n isSMS: z.boolean().describe(\"Required to be set true for SMS templates\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n isEdge: z.boolean().describe(\"Platform targeting flag for Microsoft Edge (defaults to true)\").optional(),\n isEmail: z.boolean().describe(\"Required to be set true for email templates\").optional(),\n contents: z.record(z.string(), z.unknown()).describe(\"The main message body with language-specific values (e.g., {'en': 'Hello!'}). Applies to push and SMS templates. Supports message personalization.\").optional(),\n headings: z.record(z.string(), z.unknown()).describe(\"Language-specific heading values for push notifications\").optional(),\n isChrome: z.boolean().describe(\"Platform targeting flag for Chrome Apps (defaults to true)\").optional(),\n isMacOSX: z.boolean().describe(\"Platform targeting flag for macOS (defaults to true)\").optional(),\n isSafari: z.boolean().describe(\"Platform targeting flag for Safari (defaults to true)\").optional(),\n isWP_WNS: z.boolean().describe(\"Platform targeting flag for Windows Push Notification Services (defaults to true)\").optional(),\n isAndroid: z.boolean().describe(\"Platform targeting flag for Android (defaults to true)\").optional(),\n isFirefox: z.boolean().describe(\"Platform targeting flag for Firefox (defaults to true)\").optional(),\n email_body: z.string().describe(\"The body of the email in HTML format (required when creating email templates). Supports message personalization.\").optional(),\n isChromeWeb: z.boolean().describe(\"Platform targeting flag for Chrome Web Push (defaults to true)\").optional(),\n email_subject: z.string().describe(\"The subject of the email (required when creating email templates). Supports message personalization.\").optional(),\n dynamic_content: z.record(z.string(), z.unknown()).describe(\"Enables programmatic personalization without CSV uploads. Structure supports nested key-value campaign variations.\").optional(),\n}).describe(\"Request model for creating a OneSignal template.\");\nconst OnesignalRestApiCreateTemplate_TemplateContentResponseSchema = z.object({\n url: z.string().describe(\"Associated URL for the notification\").nullable().optional(),\n isWP: z.boolean().describe(\"Platform targeting flag for Windows Phone\").nullable().optional(),\n isAdm: z.boolean().describe(\"Platform targeting flag for Amazon\").nullable().optional(),\n isIos: z.boolean().describe(\"Platform targeting flag for iOS\").nullable().optional(),\n isSMS: z.boolean().describe(\"Indicates if template is SMS-based\").nullable().optional(),\n isEdge: z.boolean().describe(\"Platform targeting flag for Microsoft Edge\").nullable().optional(),\n isEmail: z.boolean().describe(\"Indicates if template is email-based\").nullable().optional(),\n contents: z.record(z.string(), z.unknown()).describe(\"The main message body with language-specific values\").nullable().optional(),\n headings: z.record(z.string(), z.unknown()).describe(\"Language-specific heading values\").nullable().optional(),\n isChrome: z.boolean().describe(\"Platform targeting flag for Chrome Apps\").nullable().optional(),\n isMacOSX: z.boolean().describe(\"Platform targeting flag for macOS\").nullable().optional(),\n isSafari: z.boolean().describe(\"Platform targeting flag for Safari\").nullable().optional(),\n isAndroid: z.boolean().describe(\"Platform targeting flag for Android\").nullable().optional(),\n isFirefox: z.boolean().describe(\"Platform targeting flag for Firefox\").nullable().optional(),\n email_body: z.string().describe(\"HTML-formatted email body (if applicable)\").nullable().optional(),\n isChromeWeb: z.boolean().describe(\"Platform targeting flag for Chrome Web Push\").nullable().optional(),\n email_subject: z.string().describe(\"Email subject line (if applicable)\").nullable().optional(),\n}).passthrough().describe(\"Content details within the template response.\");\nexport const OnesignalRestApiCreateTemplateOutput = z.object({\n id: z.string().describe(\"The template's unique identifier (UUID format)\").nullable().optional(),\n name: z.string().describe(\"An internal name you set to help organize and track Templates (maximum 128 characters)\").nullable().optional(),\n content: OnesignalRestApiCreateTemplate_TemplateContentResponseSchema.nullable().optional(),\n created_at: z.string().describe(\"Timestamp in ISO 8601 format indicating when the template was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp in ISO 8601 format showing the last modification time\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a OneSignal template.\");\n\nexport const onesignalRestApiCreateTemplate = action(\"ONESIGNAL_REST_API_CREATE_TEMPLATE\", {\n slug: \"onesignal_rest_api-create-template\",\n name: \"Create Template\",\n description: \"Tool to create reusable message templates for push, email, and SMS channels. Use when you need to create a template that can be accessed through both the dashboard and API using a template_id.\",\n input: OnesignalRestApiCreateTemplateInput,\n output: OnesignalRestApiCreateTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACzE,MAAM,EAAE,QAAQ,CAA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S,qDAOhB;AACV,CAAC"}
|
|
@@ -11,10 +11,10 @@ const OnesignalRestApiCreateUserInput = zod.z.object({
|
|
|
11
11
|
ip: zod.z.string().describe("IP address of the user").optional(),
|
|
12
12
|
lat: zod.z.number().describe("Latitude coordinate of the user's location").optional(),
|
|
13
13
|
long: zod.z.number().describe("Longitude coordinate of the user's location").optional(),
|
|
14
|
-
tags: zod.z.
|
|
14
|
+
tags: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key/value tags associated with the user").optional(),
|
|
15
15
|
country: zod.z.string().describe("Country code (e.g., 'US')").optional(),
|
|
16
16
|
language: zod.z.string().describe("Language code of the user (e.g., 'en')").optional(),
|
|
17
|
-
purchases: zod.z.array(zod.z.
|
|
17
|
+
purchases: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of purchase records for the user").optional(),
|
|
18
18
|
last_active: zod.z.number().int().describe("UNIX timestamp of when the user was last active").optional(),
|
|
19
19
|
timezone_id: zod.z.string().describe("Timezone identifier (e.g., 'America/New_York')").optional(),
|
|
20
20
|
amount_spent: zod.z.number().describe("Total amount spent by the user").optional(),
|
|
@@ -38,13 +38,13 @@ const OnesignalRestApiCreateUserInput = zod.z.object({
|
|
|
38
38
|
session_time: zod.z.number().int().describe("Total session time in seconds").optional(),
|
|
39
39
|
session_count: zod.z.number().int().describe("Number of sessions recorded").optional(),
|
|
40
40
|
notification_types: zod.z.number().int().describe("Notification permission state").optional()
|
|
41
|
-
}).describe("Subscription object representing a device or channel subscribed to notifications.")).describe("List of subscriptions (devices/channels) owned by the user").optional(),
|
|
41
|
+
}).passthrough().describe("Subscription object representing a device or channel subscribed to notifications.")).describe("List of subscriptions (devices/channels) owned by the user").optional(),
|
|
42
42
|
subscription_options: zod.z.object({ retain_previous_owner: zod.z.boolean().describe("Whether to retain the previous owner when transferring subscriptions").optional() }).describe("Options for subscription management.").optional()
|
|
43
43
|
}).describe("Request model for creating a OneSignal user with optional subscriptions and aliases.");
|
|
44
44
|
const OnesignalRestApiCreateUserOutput = zod.z.object({
|
|
45
|
-
identity: zod.z.
|
|
46
|
-
properties: zod.z.
|
|
47
|
-
subscriptions: zod.z.array(zod.z.
|
|
45
|
+
identity: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Identity information of the created user").nullable().optional(),
|
|
46
|
+
properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Properties of the created user").nullable().optional(),
|
|
47
|
+
subscriptions: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Subscriptions associated with the created user").nullable().optional()
|
|
48
48
|
}).passthrough().describe("Response model after creating a OneSignal user.");
|
|
49
49
|
const onesignalRestApiCreateUser = require_action.action("ONESIGNAL_REST_API_CREATE_USER", {
|
|
50
50
|
slug: "onesignal_rest_api-create-user",
|