@keystrokehq/onesignal_rest_api 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/begin-live-activity.cjs +21 -0
- package/dist/actions/begin-live-activity.cjs.map +1 -0
- package/dist/actions/begin-live-activity.d.cts +9 -0
- package/dist/actions/begin-live-activity.d.cts.map +1 -0
- package/dist/actions/begin-live-activity.d.mts +9 -0
- package/dist/actions/begin-live-activity.d.mts.map +1 -0
- package/dist/actions/begin-live-activity.mjs +18 -0
- package/dist/actions/begin-live-activity.mjs.map +1 -0
- package/dist/actions/create-notification.cjs +41 -0
- package/dist/actions/create-notification.cjs.map +1 -0
- package/dist/actions/create-notification.d.cts +9 -0
- package/dist/actions/create-notification.d.cts.map +1 -0
- package/dist/actions/create-notification.d.mts +9 -0
- package/dist/actions/create-notification.d.mts.map +1 -0
- package/dist/actions/create-notification.mjs +38 -0
- package/dist/actions/create-notification.mjs.map +1 -0
- package/dist/actions/create-template.cjs +63 -0
- package/dist/actions/create-template.cjs.map +1 -0
- package/dist/actions/create-template.d.cts +9 -0
- package/dist/actions/create-template.d.cts.map +1 -0
- package/dist/actions/create-template.d.mts +9 -0
- package/dist/actions/create-template.d.mts.map +1 -0
- package/dist/actions/create-template.mjs +62 -0
- package/dist/actions/create-template.mjs.map +1 -0
- package/dist/actions/create-user.cjs +59 -0
- package/dist/actions/create-user.cjs.map +1 -0
- package/dist/actions/create-user.d.cts +9 -0
- package/dist/actions/create-user.d.cts.map +1 -0
- package/dist/actions/create-user.d.mts +9 -0
- package/dist/actions/create-user.d.mts.map +1 -0
- package/dist/actions/create-user.mjs +56 -0
- package/dist/actions/create-user.mjs.map +1 -0
- package/dist/actions/delete-alias.cjs +21 -0
- package/dist/actions/delete-alias.cjs.map +1 -0
- package/dist/actions/delete-alias.d.cts +9 -0
- package/dist/actions/delete-alias.d.cts.map +1 -0
- package/dist/actions/delete-alias.d.mts +9 -0
- package/dist/actions/delete-alias.d.mts.map +1 -0
- package/dist/actions/delete-alias.mjs +18 -0
- package/dist/actions/delete-alias.mjs.map +1 -0
- package/dist/actions/delete-device.cjs +23 -0
- package/dist/actions/delete-device.cjs.map +1 -0
- package/dist/actions/delete-device.d.cts +9 -0
- package/dist/actions/delete-device.d.cts.map +1 -0
- package/dist/actions/delete-device.d.mts +9 -0
- package/dist/actions/delete-device.d.mts.map +1 -0
- package/dist/actions/delete-device.mjs +20 -0
- package/dist/actions/delete-device.mjs.map +1 -0
- package/dist/actions/fetch-user-identity.cjs +20 -0
- package/dist/actions/fetch-user-identity.cjs.map +1 -0
- package/dist/actions/fetch-user-identity.d.cts +9 -0
- package/dist/actions/fetch-user-identity.d.cts.map +1 -0
- package/dist/actions/fetch-user-identity.d.mts +9 -0
- package/dist/actions/fetch-user-identity.d.mts.map +1 -0
- package/dist/actions/fetch-user-identity.mjs +17 -0
- package/dist/actions/fetch-user-identity.mjs.map +1 -0
- package/dist/actions/get-eligible-iams.cjs +20 -0
- package/dist/actions/get-eligible-iams.cjs.map +1 -0
- package/dist/actions/get-eligible-iams.d.cts +9 -0
- package/dist/actions/get-eligible-iams.d.cts.map +1 -0
- package/dist/actions/get-eligible-iams.d.mts +9 -0
- package/dist/actions/get-eligible-iams.d.mts.map +1 -0
- package/dist/actions/get-eligible-iams.mjs +19 -0
- package/dist/actions/get-eligible-iams.mjs.map +1 -0
- package/dist/actions/index.cjs +31 -0
- package/dist/actions/index.d.cts +16 -0
- package/dist/actions/index.d.mts +16 -0
- package/dist/actions/index.mjs +16 -0
- package/dist/actions/update-device.cjs +46 -0
- package/dist/actions/update-device.cjs.map +1 -0
- package/dist/actions/update-device.d.cts +9 -0
- package/dist/actions/update-device.d.cts.map +1 -0
- package/dist/actions/update-device.d.mts +9 -0
- package/dist/actions/update-device.d.mts.map +1 -0
- package/dist/actions/update-device.mjs +43 -0
- package/dist/actions/update-device.mjs.map +1 -0
- package/dist/actions/update-subscription.cjs +71 -0
- package/dist/actions/update-subscription.cjs.map +1 -0
- package/dist/actions/update-subscription.d.cts +9 -0
- package/dist/actions/update-subscription.d.cts.map +1 -0
- package/dist/actions/update-subscription.d.mts +9 -0
- package/dist/actions/update-subscription.d.mts.map +1 -0
- package/dist/actions/update-subscription.mjs +70 -0
- package/dist/actions/update-subscription.mjs.map +1 -0
- package/dist/actions/view-an-app.cjs +24 -0
- package/dist/actions/view-an-app.cjs.map +1 -0
- package/dist/actions/view-an-app.d.cts +9 -0
- package/dist/actions/view-an-app.d.cts.map +1 -0
- package/dist/actions/view-an-app.d.mts +9 -0
- package/dist/actions/view-an-app.d.mts.map +1 -0
- package/dist/actions/view-an-app.mjs +21 -0
- package/dist/actions/view-an-app.mjs.map +1 -0
- package/dist/actions/view-device.cjs +42 -0
- package/dist/actions/view-device.cjs.map +1 -0
- package/dist/actions/view-device.d.cts +9 -0
- package/dist/actions/view-device.d.cts.map +1 -0
- package/dist/actions/view-device.d.mts +9 -0
- package/dist/actions/view-device.d.mts.map +1 -0
- package/dist/actions/view-device.mjs +39 -0
- package/dist/actions/view-device.mjs.map +1 -0
- package/dist/actions/view-devices.cjs +60 -0
- package/dist/actions/view-devices.cjs.map +1 -0
- package/dist/actions/view-devices.d.cts +9 -0
- package/dist/actions/view-devices.d.cts.map +1 -0
- package/dist/actions/view-devices.d.mts +9 -0
- package/dist/actions/view-devices.d.mts.map +1 -0
- package/dist/actions/view-devices.mjs +59 -0
- package/dist/actions/view-devices.mjs.map +1 -0
- package/dist/actions/view-notifications.cjs +42 -0
- package/dist/actions/view-notifications.cjs.map +1 -0
- package/dist/actions/view-notifications.d.cts +9 -0
- package/dist/actions/view-notifications.d.cts.map +1 -0
- package/dist/actions/view-notifications.d.mts +9 -0
- package/dist/actions/view-notifications.d.mts.map +1 -0
- package/dist/actions/view-notifications.mjs +41 -0
- package/dist/actions/view-notifications.mjs.map +1 -0
- package/dist/actions/view-segments.cjs +37 -0
- package/dist/actions/view-segments.cjs.map +1 -0
- package/dist/actions/view-segments.d.cts +9 -0
- package/dist/actions/view-segments.d.cts.map +1 -0
- package/dist/actions/view-segments.d.mts +9 -0
- package/dist/actions/view-segments.d.mts.map +1 -0
- package/dist/actions/view-segments.mjs +36 -0
- package/dist/actions/view-segments.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 +36 -0
- package/dist/index.d.cts +18 -0
- package/dist/index.d.mts +18 -0
- package/dist/index.mjs +19 -0
- package/package.json +49 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/view-devices.ts
|
|
4
|
+
const OnesignalRestApiViewDevicesInput = zod.z.object({
|
|
5
|
+
limit: zod.z.number().int().describe("Maximum number of devices to return (1-300). Defaults to 300.").optional(),
|
|
6
|
+
app_id: zod.z.string().describe("Your OneSignal App ID."),
|
|
7
|
+
offset: zod.z.number().int().describe("Pagination offset. Defaults to 0.").optional()
|
|
8
|
+
}).describe("Request parameters for retrieving a list of devices (players) for a OneSignal app.");
|
|
9
|
+
const OnesignalRestApiViewDevices_PurchaseSchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("Purchase unique identifier."),
|
|
11
|
+
amount: zod.z.number().describe("Amount of the purchase.")
|
|
12
|
+
}).describe("Represents a purchase made by a player.");
|
|
13
|
+
const OnesignalRestApiViewDevices_PlayerSchema = zod.z.object({
|
|
14
|
+
id: zod.z.string().describe("OneSignal player (device) ID."),
|
|
15
|
+
ip: zod.z.string().describe("IP address of the player.").nullable().optional(),
|
|
16
|
+
sdk: zod.z.string().describe("SDK used by the player.").nullable().optional(),
|
|
17
|
+
tags: zod.z.object({}).describe("Dictionary of player tags.").nullable().optional(),
|
|
18
|
+
ad_id: zod.z.string().describe("Advertising ID for the device.").nullable().optional(),
|
|
19
|
+
rooted: zod.z.boolean().describe("Whether the device is rooted or jailbroken.").nullable().optional(),
|
|
20
|
+
country: zod.z.string().describe("Country code of the player (e.g., 'US').").nullable().optional(),
|
|
21
|
+
language: zod.z.string().describe("Language code of the player (e.g., 'en').").nullable().optional(),
|
|
22
|
+
playtime: zod.z.number().int().describe("Total playtime in seconds.").nullable().optional(),
|
|
23
|
+
timezone: zod.z.union([zod.z.string(), zod.z.number().int()]).nullable().optional(),
|
|
24
|
+
device_os: zod.z.string().describe("Device operating system (e.g., '14.4').").nullable().optional(),
|
|
25
|
+
last_name: zod.z.string().describe("Last name of the player, if provided.").nullable().optional(),
|
|
26
|
+
purchases: zod.z.array(OnesignalRestApiViewDevices_PurchaseSchema).describe("List of purchases associated with this player.").nullable().optional(),
|
|
27
|
+
test_type: zod.z.union([zod.z.string(), zod.z.number().int()]).nullable().optional(),
|
|
28
|
+
created_at: zod.z.number().int().describe("Creation time of the player as a UNIX timestamp.").nullable().optional(),
|
|
29
|
+
first_name: zod.z.string().describe("First name of the player, if provided.").nullable().optional(),
|
|
30
|
+
identifier: zod.z.string().describe("Device identifier (e.g., push token).").nullable().optional(),
|
|
31
|
+
badge_count: zod.z.number().int().describe("iOS badge count for the player.").nullable().optional(),
|
|
32
|
+
device_type: zod.z.number().int().describe("Device type (1=iOS, 2=Android, etc.).").nullable().optional(),
|
|
33
|
+
last_active: zod.z.number().int().describe("Last active time as a UNIX timestamp.").nullable().optional(),
|
|
34
|
+
amount_spent: zod.z.number().describe("Total amount spent by the player.").nullable().optional(),
|
|
35
|
+
device_model: zod.z.string().describe("Device model (e.g., 'iPhone10,6').").nullable().optional(),
|
|
36
|
+
game_version: zod.z.string().describe("Game version of the player.").nullable().optional(),
|
|
37
|
+
session_count: zod.z.number().int().describe("Number of sessions recorded for the device.").nullable().optional(),
|
|
38
|
+
android_version: zod.z.string().describe("Android version if applicable.").nullable().optional(),
|
|
39
|
+
external_user_id: zod.z.string().describe("External user ID associated with the player.").nullable().optional(),
|
|
40
|
+
invalid_identifier: zod.z.boolean().describe("Whether the device identifier is invalid.").nullable().optional(),
|
|
41
|
+
notification_types: zod.z.number().int().describe("Notification types available to the player.").nullable().optional(),
|
|
42
|
+
subscribable_status: zod.z.number().int().describe("Subscription status of the player.").nullable().optional()
|
|
43
|
+
}).passthrough().describe("Representation of a player (device) in OneSignal.");
|
|
44
|
+
const OnesignalRestApiViewDevicesOutput = zod.z.object({
|
|
45
|
+
limit: zod.z.number().int().describe("Maximum number of devices returned."),
|
|
46
|
+
offset: zod.z.number().int().describe("Offset used for pagination."),
|
|
47
|
+
players: zod.z.array(OnesignalRestApiViewDevices_PlayerSchema).describe("List of player (device) objects."),
|
|
48
|
+
total_count: zod.z.number().int().describe("Total number of devices.")
|
|
49
|
+
}).describe("Response model for listing devices (players) of a OneSignal app.");
|
|
50
|
+
const onesignalRestApiViewDevices = require_action.action("ONESIGNAL_REST_API_VIEW_DEVICES", {
|
|
51
|
+
slug: "onesignal_rest_api-view-devices",
|
|
52
|
+
name: "View Devices",
|
|
53
|
+
description: "Tool to retrieve a paginated list of devices (players) for a OneSignal app. Use when you need to list or audit all registered devices for a given app.",
|
|
54
|
+
input: OnesignalRestApiViewDevicesInput,
|
|
55
|
+
output: OnesignalRestApiViewDevicesOutput
|
|
56
|
+
});
|
|
57
|
+
//#endregion
|
|
58
|
+
exports.onesignalRestApiViewDevices = onesignalRestApiViewDevices;
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=view-devices.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-devices.cjs","names":["z","action"],"sources":["../../src/actions/view-devices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewDevicesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of devices to return (1-300). Defaults to 300.\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n offset: z.number().int().describe(\"Pagination offset. Defaults to 0.\").optional(),\n}).describe(\"Request parameters for retrieving a list of devices (players) for a OneSignal app.\");\nconst OnesignalRestApiViewDevices_PurchaseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Purchase unique identifier.\"),\n amount: z.number().describe(\"Amount of the purchase.\"),\n}).describe(\"Represents a purchase made by a player.\");\nconst OnesignalRestApiViewDevices_PlayerSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"OneSignal player (device) ID.\"),\n ip: z.string().describe(\"IP address of the player.\").nullable().optional(),\n sdk: z.string().describe(\"SDK used by the player.\").nullable().optional(),\n tags: z.object({}).describe(\"Dictionary of player tags.\").nullable().optional(),\n ad_id: z.string().describe(\"Advertising ID for the device.\").nullable().optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted or jailbroken.\").nullable().optional(),\n country: z.string().describe(\"Country code of the player (e.g., 'US').\").nullable().optional(),\n language: z.string().describe(\"Language code of the player (e.g., 'en').\").nullable().optional(),\n playtime: z.number().int().describe(\"Total playtime in seconds.\").nullable().optional(),\n timezone: z.union([z.string(), z.number().int()]).nullable().optional(),\n device_os: z.string().describe(\"Device operating system (e.g., '14.4').\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the player, if provided.\").nullable().optional(),\n purchases: z.array(OnesignalRestApiViewDevices_PurchaseSchema).describe(\"List of purchases associated with this player.\").nullable().optional(),\n test_type: z.union([z.string(), z.number().int()]).nullable().optional(),\n created_at: z.number().int().describe(\"Creation time of the player as a UNIX timestamp.\").nullable().optional(),\n first_name: z.string().describe(\"First name of the player, if provided.\").nullable().optional(),\n identifier: z.string().describe(\"Device identifier (e.g., push token).\").nullable().optional(),\n badge_count: z.number().int().describe(\"iOS badge count for the player.\").nullable().optional(),\n device_type: z.number().int().describe(\"Device type (1=iOS, 2=Android, etc.).\").nullable().optional(),\n last_active: z.number().int().describe(\"Last active time as a UNIX timestamp.\").nullable().optional(),\n amount_spent: z.number().describe(\"Total amount spent by the player.\").nullable().optional(),\n device_model: z.string().describe(\"Device model (e.g., 'iPhone10,6').\").nullable().optional(),\n game_version: z.string().describe(\"Game version of the player.\").nullable().optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded for the device.\").nullable().optional(),\n android_version: z.string().describe(\"Android version if applicable.\").nullable().optional(),\n external_user_id: z.string().describe(\"External user ID associated with the player.\").nullable().optional(),\n invalid_identifier: z.boolean().describe(\"Whether the device identifier is invalid.\").nullable().optional(),\n notification_types: z.number().int().describe(\"Notification types available to the player.\").nullable().optional(),\n subscribable_status: z.number().int().describe(\"Subscription status of the player.\").nullable().optional(),\n}).passthrough().describe(\"Representation of a player (device) in OneSignal.\");\nexport const OnesignalRestApiViewDevicesOutput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of devices returned.\"),\n offset: z.number().int().describe(\"Offset used for pagination.\"),\n players: z.array(OnesignalRestApiViewDevices_PlayerSchema).describe(\"List of player (device) objects.\"),\n total_count: z.number().int().describe(\"Total number of devices.\"),\n}).describe(\"Response model for listing devices (players) of a OneSignal app.\");\n\nexport const onesignalRestApiViewDevices = action(\"ONESIGNAL_REST_API_VIEW_DEVICES\", {\n slug: \"onesignal_rest_api-view-devices\",\n name: \"View Devices\",\n description: \"Tool to retrieve a paginated list of devices (players) for a OneSignal app. Use when you need to list or audit all registered devices for a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AC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CAC/D,SAASA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,kCAAkC;CACtG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;AACnE,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAE9E,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,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/view-devices.d.ts
|
|
4
|
+
declare const OnesignalRestApiViewDevicesInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnesignalRestApiViewDevicesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onesignalRestApiViewDevices: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onesignalRestApiViewDevices };
|
|
9
|
+
//# sourceMappingURL=view-devices.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-devices.d.cts","names":[],"sources":["../../src/actions/view-devices.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAIgD;AAAA,cAoCpF,iCAAA,EAAmC,CAAA,CAAE,UAK6B;AAAA,cAElE,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/view-devices.d.ts
|
|
4
|
+
declare const OnesignalRestApiViewDevicesInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnesignalRestApiViewDevicesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onesignalRestApiViewDevices: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onesignalRestApiViewDevices };
|
|
9
|
+
//# sourceMappingURL=view-devices.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-devices.d.mts","names":[],"sources":["../../src/actions/view-devices.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAIgD;AAAA,cAoCpF,iCAAA,EAAmC,CAAA,CAAE,UAK6B;AAAA,cAElE,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/view-devices.ts
|
|
4
|
+
const OnesignalRestApiViewDevicesInput = z.object({
|
|
5
|
+
limit: z.number().int().describe("Maximum number of devices to return (1-300). Defaults to 300.").optional(),
|
|
6
|
+
app_id: z.string().describe("Your OneSignal App ID."),
|
|
7
|
+
offset: z.number().int().describe("Pagination offset. Defaults to 0.").optional()
|
|
8
|
+
}).describe("Request parameters for retrieving a list of devices (players) for a OneSignal app.");
|
|
9
|
+
const OnesignalRestApiViewDevices_PurchaseSchema = z.object({
|
|
10
|
+
id: z.string().describe("Purchase unique identifier."),
|
|
11
|
+
amount: z.number().describe("Amount of the purchase.")
|
|
12
|
+
}).describe("Represents a purchase made by a player.");
|
|
13
|
+
const OnesignalRestApiViewDevices_PlayerSchema = z.object({
|
|
14
|
+
id: z.string().describe("OneSignal player (device) ID."),
|
|
15
|
+
ip: z.string().describe("IP address of the player.").nullable().optional(),
|
|
16
|
+
sdk: z.string().describe("SDK used by the player.").nullable().optional(),
|
|
17
|
+
tags: z.object({}).describe("Dictionary of player tags.").nullable().optional(),
|
|
18
|
+
ad_id: z.string().describe("Advertising ID for the device.").nullable().optional(),
|
|
19
|
+
rooted: z.boolean().describe("Whether the device is rooted or jailbroken.").nullable().optional(),
|
|
20
|
+
country: z.string().describe("Country code of the player (e.g., 'US').").nullable().optional(),
|
|
21
|
+
language: z.string().describe("Language code of the player (e.g., 'en').").nullable().optional(),
|
|
22
|
+
playtime: z.number().int().describe("Total playtime in seconds.").nullable().optional(),
|
|
23
|
+
timezone: z.union([z.string(), z.number().int()]).nullable().optional(),
|
|
24
|
+
device_os: z.string().describe("Device operating system (e.g., '14.4').").nullable().optional(),
|
|
25
|
+
last_name: z.string().describe("Last name of the player, if provided.").nullable().optional(),
|
|
26
|
+
purchases: z.array(OnesignalRestApiViewDevices_PurchaseSchema).describe("List of purchases associated with this player.").nullable().optional(),
|
|
27
|
+
test_type: z.union([z.string(), z.number().int()]).nullable().optional(),
|
|
28
|
+
created_at: z.number().int().describe("Creation time of the player as a UNIX timestamp.").nullable().optional(),
|
|
29
|
+
first_name: z.string().describe("First name of the player, if provided.").nullable().optional(),
|
|
30
|
+
identifier: z.string().describe("Device identifier (e.g., push token).").nullable().optional(),
|
|
31
|
+
badge_count: z.number().int().describe("iOS badge count for the player.").nullable().optional(),
|
|
32
|
+
device_type: z.number().int().describe("Device type (1=iOS, 2=Android, etc.).").nullable().optional(),
|
|
33
|
+
last_active: z.number().int().describe("Last active time as a UNIX timestamp.").nullable().optional(),
|
|
34
|
+
amount_spent: z.number().describe("Total amount spent by the player.").nullable().optional(),
|
|
35
|
+
device_model: z.string().describe("Device model (e.g., 'iPhone10,6').").nullable().optional(),
|
|
36
|
+
game_version: z.string().describe("Game version of the player.").nullable().optional(),
|
|
37
|
+
session_count: z.number().int().describe("Number of sessions recorded for the device.").nullable().optional(),
|
|
38
|
+
android_version: z.string().describe("Android version if applicable.").nullable().optional(),
|
|
39
|
+
external_user_id: z.string().describe("External user ID associated with the player.").nullable().optional(),
|
|
40
|
+
invalid_identifier: z.boolean().describe("Whether the device identifier is invalid.").nullable().optional(),
|
|
41
|
+
notification_types: z.number().int().describe("Notification types available to the player.").nullable().optional(),
|
|
42
|
+
subscribable_status: z.number().int().describe("Subscription status of the player.").nullable().optional()
|
|
43
|
+
}).passthrough().describe("Representation of a player (device) in OneSignal.");
|
|
44
|
+
const onesignalRestApiViewDevices = action("ONESIGNAL_REST_API_VIEW_DEVICES", {
|
|
45
|
+
slug: "onesignal_rest_api-view-devices",
|
|
46
|
+
name: "View Devices",
|
|
47
|
+
description: "Tool to retrieve a paginated list of devices (players) for a OneSignal app. Use when you need to list or audit all registered devices for a given app.",
|
|
48
|
+
input: OnesignalRestApiViewDevicesInput,
|
|
49
|
+
output: z.object({
|
|
50
|
+
limit: z.number().int().describe("Maximum number of devices returned."),
|
|
51
|
+
offset: z.number().int().describe("Offset used for pagination."),
|
|
52
|
+
players: z.array(OnesignalRestApiViewDevices_PlayerSchema).describe("List of player (device) objects."),
|
|
53
|
+
total_count: z.number().int().describe("Total number of devices.")
|
|
54
|
+
}).describe("Response model for listing devices (players) of a OneSignal app.")
|
|
55
|
+
});
|
|
56
|
+
//#endregion
|
|
57
|
+
export { onesignalRestApiViewDevices };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=view-devices.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-devices.mjs","names":[],"sources":["../../src/actions/view-devices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewDevicesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of devices to return (1-300). Defaults to 300.\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n offset: z.number().int().describe(\"Pagination offset. Defaults to 0.\").optional(),\n}).describe(\"Request parameters for retrieving a list of devices (players) for a OneSignal app.\");\nconst OnesignalRestApiViewDevices_PurchaseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Purchase unique identifier.\"),\n amount: z.number().describe(\"Amount of the purchase.\"),\n}).describe(\"Represents a purchase made by a player.\");\nconst OnesignalRestApiViewDevices_PlayerSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"OneSignal player (device) ID.\"),\n ip: z.string().describe(\"IP address of the player.\").nullable().optional(),\n sdk: z.string().describe(\"SDK used by the player.\").nullable().optional(),\n tags: z.object({}).describe(\"Dictionary of player tags.\").nullable().optional(),\n ad_id: z.string().describe(\"Advertising ID for the device.\").nullable().optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted or jailbroken.\").nullable().optional(),\n country: z.string().describe(\"Country code of the player (e.g., 'US').\").nullable().optional(),\n language: z.string().describe(\"Language code of the player (e.g., 'en').\").nullable().optional(),\n playtime: z.number().int().describe(\"Total playtime in seconds.\").nullable().optional(),\n timezone: z.union([z.string(), z.number().int()]).nullable().optional(),\n device_os: z.string().describe(\"Device operating system (e.g., '14.4').\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the player, if provided.\").nullable().optional(),\n purchases: z.array(OnesignalRestApiViewDevices_PurchaseSchema).describe(\"List of purchases associated with this player.\").nullable().optional(),\n test_type: z.union([z.string(), z.number().int()]).nullable().optional(),\n created_at: z.number().int().describe(\"Creation time of the player as a UNIX timestamp.\").nullable().optional(),\n first_name: z.string().describe(\"First name of the player, if provided.\").nullable().optional(),\n identifier: z.string().describe(\"Device identifier (e.g., push token).\").nullable().optional(),\n badge_count: z.number().int().describe(\"iOS badge count for the player.\").nullable().optional(),\n device_type: z.number().int().describe(\"Device type (1=iOS, 2=Android, etc.).\").nullable().optional(),\n last_active: z.number().int().describe(\"Last active time as a UNIX timestamp.\").nullable().optional(),\n amount_spent: z.number().describe(\"Total amount spent by the player.\").nullable().optional(),\n device_model: z.string().describe(\"Device model (e.g., 'iPhone10,6').\").nullable().optional(),\n game_version: z.string().describe(\"Game version of the player.\").nullable().optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded for the device.\").nullable().optional(),\n android_version: z.string().describe(\"Android version if applicable.\").nullable().optional(),\n external_user_id: z.string().describe(\"External user ID associated with the player.\").nullable().optional(),\n invalid_identifier: z.boolean().describe(\"Whether the device identifier is invalid.\").nullable().optional(),\n notification_types: z.number().int().describe(\"Notification types available to the player.\").nullable().optional(),\n subscribable_status: z.number().int().describe(\"Subscription status of the player.\").nullable().optional(),\n}).passthrough().describe(\"Representation of a player (device) in OneSignal.\");\nexport const OnesignalRestApiViewDevicesOutput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of devices returned.\"),\n offset: z.number().int().describe(\"Offset used for pagination.\"),\n players: z.array(OnesignalRestApiViewDevices_PlayerSchema).describe(\"List of player (device) objects.\"),\n total_count: z.number().int().describe(\"Total number of devices.\"),\n}).describe(\"Response model for listing devices (players) of a OneSignal app.\");\n\nexport const onesignalRestApiViewDevices = action(\"ONESIGNAL_REST_API_VIEW_DEVICES\", {\n slug: \"onesignal_rest_api-view-devices\",\n name: \"View Devices\",\n description: \"Tool to retrieve a paginated list of devices (players) for a OneSignal app. Use when you need to list or audit all registered devices for a given app.\",\n input: OnesignalRestApiViewDevicesInput,\n output: OnesignalRestApiViewDevicesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAClF,CAAC,C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AAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAQ7E,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ6D,EAAE,OAAO;EACtE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;EAC/D,SAAS,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,kCAAkC;EACtG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CACnE,CAAC,CAAC,CAAC,SAAS,kEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/view-notifications.ts
|
|
4
|
+
const OnesignalRestApiViewNotificationsInput = zod.z.object({
|
|
5
|
+
limit: zod.z.number().int().describe("Maximum number of notifications to return (1-300). Defaults to 50.").optional(),
|
|
6
|
+
app_id: zod.z.string().describe("Your OneSignal App ID."),
|
|
7
|
+
offset: zod.z.number().int().describe("Result offset for pagination. Defaults to 0.").optional()
|
|
8
|
+
}).describe("Request parameters for retrieving multiple OneSignal notifications.");
|
|
9
|
+
const OnesignalRestApiViewNotifications_NotificationSummarySchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("Notification ID."),
|
|
11
|
+
url: zod.z.string().describe("Destination URL of notification.").nullable().optional(),
|
|
12
|
+
data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key/value pairs sent.").nullable().optional(),
|
|
13
|
+
failed: zod.z.number().int().describe("Number of failed sends.").nullable().optional(),
|
|
14
|
+
contents: zod.z.object({}).describe("Localized contents of notification.").nullable().optional(),
|
|
15
|
+
headings: zod.z.object({}).describe("Localized headings of notification.").nullable().optional(),
|
|
16
|
+
converted: zod.z.number().int().describe("Number of conversions (clicks).").nullable().optional(),
|
|
17
|
+
queued_at: zod.z.number().int().describe("UNIX timestamp when queued.").nullable().optional(),
|
|
18
|
+
send_after: zod.z.string().describe("Scheduled ISO datetime for send-out, or null if sent immediately.").nullable().optional(),
|
|
19
|
+
successful: zod.z.number().int().describe("Number of successful sends.").nullable().optional(),
|
|
20
|
+
attachments: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Attachments included (e.g., images).").nullable().optional(),
|
|
21
|
+
completed_at: zod.z.number().int().describe("UNIX timestamp when completed.").nullable().optional(),
|
|
22
|
+
excluded_segments: zod.z.array(zod.z.string()).describe("Segments excluded from notification.").nullable().optional(),
|
|
23
|
+
included_segments: zod.z.array(zod.z.string()).describe("Predefined audience segments targeted.").nullable().optional(),
|
|
24
|
+
include_player_ids: zod.z.array(zod.z.string()).describe("Specific player IDs targeted, if any.").nullable().optional()
|
|
25
|
+
}).describe("Summary of a OneSignal notification in a list response.");
|
|
26
|
+
const OnesignalRestApiViewNotificationsOutput = zod.z.object({
|
|
27
|
+
limit: zod.z.number().int().describe("Maximum number of notifications returned."),
|
|
28
|
+
offset: zod.z.number().int().describe("Offset used for pagination."),
|
|
29
|
+
total_count: zod.z.number().int().describe("Total number of notifications."),
|
|
30
|
+
notifications: zod.z.array(OnesignalRestApiViewNotifications_NotificationSummarySchema).describe("List of notification summary objects.")
|
|
31
|
+
}).describe("Response model for listing OneSignal notifications.");
|
|
32
|
+
const onesignalRestApiViewNotifications = require_action.action("ONESIGNAL_REST_API_VIEW_NOTIFICATIONS", {
|
|
33
|
+
slug: "onesignal_rest_api-view-notifications",
|
|
34
|
+
name: "View Notifications",
|
|
35
|
+
description: "Tool to retrieve details of multiple notifications. Use when you need to list notifications for a specific app.",
|
|
36
|
+
input: OnesignalRestApiViewNotificationsInput,
|
|
37
|
+
output: OnesignalRestApiViewNotificationsOutput
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
exports.onesignalRestApiViewNotifications = onesignalRestApiViewNotifications;
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=view-notifications.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-notifications.cjs","names":["z","action"],"sources":["../../src/actions/view-notifications.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewNotificationsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of notifications to return (1-300). Defaults to 50.\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n offset: z.number().int().describe(\"Result offset for pagination. Defaults to 0.\").optional(),\n}).describe(\"Request parameters for retrieving multiple OneSignal notifications.\");\nconst OnesignalRestApiViewNotifications_NotificationSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Notification ID.\"),\n url: z.string().describe(\"Destination URL of notification.\").nullable().optional(),\n data: z.record(z.string(), z.unknown()).describe(\"Custom key/value pairs sent.\").nullable().optional(),\n failed: z.number().int().describe(\"Number of failed sends.\").nullable().optional(),\n contents: z.object({}).describe(\"Localized contents of notification.\").nullable().optional(),\n headings: z.object({}).describe(\"Localized headings of notification.\").nullable().optional(),\n converted: z.number().int().describe(\"Number of conversions (clicks).\").nullable().optional(),\n queued_at: z.number().int().describe(\"UNIX timestamp when queued.\").nullable().optional(),\n send_after: z.string().describe(\"Scheduled ISO datetime for send-out, or null if sent immediately.\").nullable().optional(),\n successful: z.number().int().describe(\"Number of successful sends.\").nullable().optional(),\n attachments: z.record(z.string(), z.unknown()).describe(\"Attachments included (e.g., images).\").nullable().optional(),\n completed_at: z.number().int().describe(\"UNIX timestamp when completed.\").nullable().optional(),\n excluded_segments: z.array(z.string()).describe(\"Segments excluded from notification.\").nullable().optional(),\n included_segments: z.array(z.string()).describe(\"Predefined audience segments targeted.\").nullable().optional(),\n include_player_ids: z.array(z.string()).describe(\"Specific player IDs targeted, if any.\").nullable().optional(),\n}).describe(\"Summary of a OneSignal notification in a list response.\");\nexport const OnesignalRestApiViewNotificationsOutput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of notifications returned.\"),\n offset: z.number().int().describe(\"Offset used for pagination.\"),\n total_count: z.number().int().describe(\"Total number of notifications.\"),\n notifications: z.array(OnesignalRestApiViewNotifications_NotificationSummarySchema).describe(\"List of notification summary objects.\"),\n}).describe(\"Response model for listing OneSignal notifications.\");\n\nexport const onesignalRestApiViewNotifications = action(\"ONESIGNAL_REST_API_VIEW_NOTIFICATIONS\", {\n slug: \"onesignal_rest_api-view-notifications\",\n name: \"View Notifications\",\n description: \"Tool to retrieve details of multiple notifications. Use when you need to list notifications for a specific app.\",\n input: OnesignalRestApiViewNotificationsInput,\n output: OnesignalRestApiViewNotificationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuDA,IAAAA,EAAE,OAAO;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAChH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,QAAQ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
|
+
|
|
3
|
+
//#region src/actions/view-notifications.d.ts
|
|
4
|
+
declare const OnesignalRestApiViewNotificationsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnesignalRestApiViewNotificationsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onesignalRestApiViewNotifications: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onesignalRestApiViewNotifications };
|
|
9
|
+
//# sourceMappingURL=view-notifications.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-notifications.d.cts","names":[],"sources":["../../src/actions/view-notifications.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAI2B;AAAA,cAkBrE,uCAAA,EAAyC,CAAA,CAAE,UAKU;AAAA,cAErD,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/view-notifications.d.ts
|
|
4
|
+
declare const OnesignalRestApiViewNotificationsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnesignalRestApiViewNotificationsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onesignalRestApiViewNotifications: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onesignalRestApiViewNotifications };
|
|
9
|
+
//# sourceMappingURL=view-notifications.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-notifications.d.mts","names":[],"sources":["../../src/actions/view-notifications.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAI2B;AAAA,cAkBrE,uCAAA,EAAyC,CAAA,CAAE,UAKU;AAAA,cAErD,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/view-notifications.ts
|
|
4
|
+
const OnesignalRestApiViewNotificationsInput = z.object({
|
|
5
|
+
limit: z.number().int().describe("Maximum number of notifications to return (1-300). Defaults to 50.").optional(),
|
|
6
|
+
app_id: z.string().describe("Your OneSignal App ID."),
|
|
7
|
+
offset: z.number().int().describe("Result offset for pagination. Defaults to 0.").optional()
|
|
8
|
+
}).describe("Request parameters for retrieving multiple OneSignal notifications.");
|
|
9
|
+
const OnesignalRestApiViewNotifications_NotificationSummarySchema = z.object({
|
|
10
|
+
id: z.string().describe("Notification ID."),
|
|
11
|
+
url: z.string().describe("Destination URL of notification.").nullable().optional(),
|
|
12
|
+
data: z.record(z.string(), z.unknown()).describe("Custom key/value pairs sent.").nullable().optional(),
|
|
13
|
+
failed: z.number().int().describe("Number of failed sends.").nullable().optional(),
|
|
14
|
+
contents: z.object({}).describe("Localized contents of notification.").nullable().optional(),
|
|
15
|
+
headings: z.object({}).describe("Localized headings of notification.").nullable().optional(),
|
|
16
|
+
converted: z.number().int().describe("Number of conversions (clicks).").nullable().optional(),
|
|
17
|
+
queued_at: z.number().int().describe("UNIX timestamp when queued.").nullable().optional(),
|
|
18
|
+
send_after: z.string().describe("Scheduled ISO datetime for send-out, or null if sent immediately.").nullable().optional(),
|
|
19
|
+
successful: z.number().int().describe("Number of successful sends.").nullable().optional(),
|
|
20
|
+
attachments: z.record(z.string(), z.unknown()).describe("Attachments included (e.g., images).").nullable().optional(),
|
|
21
|
+
completed_at: z.number().int().describe("UNIX timestamp when completed.").nullable().optional(),
|
|
22
|
+
excluded_segments: z.array(z.string()).describe("Segments excluded from notification.").nullable().optional(),
|
|
23
|
+
included_segments: z.array(z.string()).describe("Predefined audience segments targeted.").nullable().optional(),
|
|
24
|
+
include_player_ids: z.array(z.string()).describe("Specific player IDs targeted, if any.").nullable().optional()
|
|
25
|
+
}).describe("Summary of a OneSignal notification in a list response.");
|
|
26
|
+
const onesignalRestApiViewNotifications = action("ONESIGNAL_REST_API_VIEW_NOTIFICATIONS", {
|
|
27
|
+
slug: "onesignal_rest_api-view-notifications",
|
|
28
|
+
name: "View Notifications",
|
|
29
|
+
description: "Tool to retrieve details of multiple notifications. Use when you need to list notifications for a specific app.",
|
|
30
|
+
input: OnesignalRestApiViewNotificationsInput,
|
|
31
|
+
output: z.object({
|
|
32
|
+
limit: z.number().int().describe("Maximum number of notifications returned."),
|
|
33
|
+
offset: z.number().int().describe("Offset used for pagination."),
|
|
34
|
+
total_count: z.number().int().describe("Total number of notifications."),
|
|
35
|
+
notifications: z.array(OnesignalRestApiViewNotifications_NotificationSummarySchema).describe("List of notification summary objects.")
|
|
36
|
+
}).describe("Response model for listing OneSignal notifications.")
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
export { onesignalRestApiViewNotifications };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=view-notifications.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-notifications.mjs","names":[],"sources":["../../src/actions/view-notifications.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewNotificationsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of notifications to return (1-300). Defaults to 50.\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n offset: z.number().int().describe(\"Result offset for pagination. Defaults to 0.\").optional(),\n}).describe(\"Request parameters for retrieving multiple OneSignal notifications.\");\nconst OnesignalRestApiViewNotifications_NotificationSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Notification ID.\"),\n url: z.string().describe(\"Destination URL of notification.\").nullable().optional(),\n data: z.record(z.string(), z.unknown()).describe(\"Custom key/value pairs sent.\").nullable().optional(),\n failed: z.number().int().describe(\"Number of failed sends.\").nullable().optional(),\n contents: z.object({}).describe(\"Localized contents of notification.\").nullable().optional(),\n headings: z.object({}).describe(\"Localized headings of notification.\").nullable().optional(),\n converted: z.number().int().describe(\"Number of conversions (clicks).\").nullable().optional(),\n queued_at: z.number().int().describe(\"UNIX timestamp when queued.\").nullable().optional(),\n send_after: z.string().describe(\"Scheduled ISO datetime for send-out, or null if sent immediately.\").nullable().optional(),\n successful: z.number().int().describe(\"Number of successful sends.\").nullable().optional(),\n attachments: z.record(z.string(), z.unknown()).describe(\"Attachments included (e.g., images).\").nullable().optional(),\n completed_at: z.number().int().describe(\"UNIX timestamp when completed.\").nullable().optional(),\n excluded_segments: z.array(z.string()).describe(\"Segments excluded from notification.\").nullable().optional(),\n included_segments: z.array(z.string()).describe(\"Predefined audience segments targeted.\").nullable().optional(),\n include_player_ids: z.array(z.string()).describe(\"Specific player IDs targeted, if any.\").nullable().optional(),\n}).describe(\"Summary of a OneSignal notification in a list response.\");\nexport const OnesignalRestApiViewNotificationsOutput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of notifications returned.\"),\n offset: z.number().int().describe(\"Offset used for pagination.\"),\n total_count: z.number().int().describe(\"Total number of notifications.\"),\n notifications: z.array(OnesignalRestApiViewNotifications_NotificationSummarySchema).describe(\"List of notification summary objects.\"),\n}).describe(\"Response model for listing OneSignal notifications.\");\n\nexport const onesignalRestApiViewNotifications = action(\"ONESIGNAL_REST_API_VIEW_NOTIFICATIONS\", {\n slug: \"onesignal_rest_api-view-notifications\",\n name: \"View Notifications\",\n description: \"Tool to retrieve details of multiple notifications. Use when you need to list notifications for a specific app.\",\n input: OnesignalRestApiViewNotificationsInput,\n output: OnesignalRestApiViewNotificationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuD,EAAE,OAAO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B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAQrE,MAAa,oCAAoC,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZmE,EAAE,OAAO;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;EAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;EAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;EACvE,eAAe,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,uCAAuC;CACtI,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/view-segments.ts
|
|
4
|
+
const OnesignalRestApiViewSegmentsInput = zod.z.object({
|
|
5
|
+
limit: zod.z.number().int().describe("Maximum number of segments to return (1-300). Default is 50.").optional(),
|
|
6
|
+
app_id: zod.z.string().describe("OneSignal App ID to list segments for"),
|
|
7
|
+
offset: zod.z.number().int().describe("Zero-based offset for pagination. Results sorted by creation time.").optional()
|
|
8
|
+
}).describe("Request model for viewing segments of a OneSignal app.");
|
|
9
|
+
const OnesignalRestApiViewSegments_SegmentSchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("Unique identifier of the segment"),
|
|
11
|
+
name: zod.z.string().describe("Name of the segment"),
|
|
12
|
+
app_id: zod.z.string().describe("App ID this segment belongs to").nullable().optional(),
|
|
13
|
+
source: zod.z.string().describe("Source of the segment (e.g., 'default')").nullable().optional(),
|
|
14
|
+
filters: zod.z.array(zod.z.object({})).describe("List of filter conditions that define this segment").nullable().optional(),
|
|
15
|
+
is_active: zod.z.boolean().describe("Whether the segment is active").nullable().optional(),
|
|
16
|
+
read_only: zod.z.boolean().describe("Whether the segment is read-only").nullable().optional(),
|
|
17
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the segment was created"),
|
|
18
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp when the segment was last updated").nullable().optional(),
|
|
19
|
+
segment_status: zod.z.string().describe("Status of the segment").nullable().optional(),
|
|
20
|
+
loading_started_at: zod.z.string().describe("ISO 8601 timestamp when segment loading started").nullable().optional(),
|
|
21
|
+
loading_completed_at: zod.z.string().describe("ISO 8601 timestamp when segment loading completed").nullable().optional()
|
|
22
|
+
}).describe("Representation of a single segment in OneSignal.");
|
|
23
|
+
const OnesignalRestApiViewSegmentsOutput = zod.z.object({
|
|
24
|
+
segments: zod.z.array(OnesignalRestApiViewSegments_SegmentSchema).describe("List of segments associated with the app"),
|
|
25
|
+
total_count: zod.z.number().int().describe("Total number of segments for the app")
|
|
26
|
+
}).describe("Response model for viewing segments.");
|
|
27
|
+
const onesignalRestApiViewSegments = require_action.action("ONESIGNAL_REST_API_VIEW_SEGMENTS", {
|
|
28
|
+
slug: "onesignal_rest_api-view-segments",
|
|
29
|
+
name: "View Segments",
|
|
30
|
+
description: "Tool to view segments for a OneSignal app. Use when you need to list all segments associated with an app.",
|
|
31
|
+
input: OnesignalRestApiViewSegmentsInput,
|
|
32
|
+
output: OnesignalRestApiViewSegmentsOutput
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
exports.onesignalRestApiViewSegments = onesignalRestApiViewSegments;
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=view-segments.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-segments.cjs","names":["z","action"],"sources":["../../src/actions/view-segments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewSegmentsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of segments to return (1-300). Default is 50.\").optional(),\n app_id: z.string().describe(\"OneSignal App ID to list segments for\"),\n offset: z.number().int().describe(\"Zero-based offset for pagination. Results sorted by creation time.\").optional(),\n}).describe(\"Request model for viewing segments of a OneSignal app.\");\nconst OnesignalRestApiViewSegments_SegmentSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the segment\"),\n name: z.string().describe(\"Name of the segment\"),\n app_id: z.string().describe(\"App ID this segment belongs to\").nullable().optional(),\n source: z.string().describe(\"Source of the segment (e.g., 'default')\").nullable().optional(),\n filters: z.array(z.object({})).describe(\"List of filter conditions that define this segment\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the segment is active\").nullable().optional(),\n read_only: z.boolean().describe(\"Whether the segment is read-only\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the segment was created\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the segment was last updated\").nullable().optional(),\n segment_status: z.string().describe(\"Status of the segment\").nullable().optional(),\n loading_started_at: z.string().describe(\"ISO 8601 timestamp when segment loading started\").nullable().optional(),\n loading_completed_at: z.string().describe(\"ISO 8601 timestamp when segment loading completed\").nullable().optional(),\n}).describe(\"Representation of a single segment in OneSignal.\");\nexport const OnesignalRestApiViewSegmentsOutput: z.ZodTypeAny = z.object({\n segments: z.array(OnesignalRestApiViewSegments_SegmentSchema).describe(\"List of segments associated with the app\"),\n total_count: z.number().int().describe(\"Total number of segments for the app\"),\n}).describe(\"Response model for viewing segments.\");\n\nexport const onesignalRestApiViewSegments = action(\"ONESIGNAL_REST_API_VIEW_SEGMENTS\", {\n slug: \"onesignal_rest_api-view-segments\",\n name: \"View Segments\",\n description: \"Tool to view segments for a OneSignal app. Use when you need to list all segments associated with an app.\",\n input: OnesignalRestApiViewSegmentsInput,\n output: OnesignalRestApiViewSegmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,C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Output: z.ZodTypeAny;
|
|
6
|
+
declare const onesignalRestApiViewSegments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onesignalRestApiViewSegments };
|
|
9
|
+
//# sourceMappingURL=view-segments.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-segments.d.cts","names":[],"sources":["../../src/actions/view-segments.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAImB;AAAA,cAexD,kCAAA,EAAoC,CAAA,CAAE,UAGA;AAAA,cAEtC,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/view-segments.d.ts
|
|
4
|
+
declare const OnesignalRestApiViewSegmentsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OnesignalRestApiViewSegmentsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const onesignalRestApiViewSegments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { onesignalRestApiViewSegments };
|
|
9
|
+
//# sourceMappingURL=view-segments.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-segments.d.mts","names":[],"sources":["../../src/actions/view-segments.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAImB;AAAA,cAexD,kCAAA,EAAoC,CAAA,CAAE,UAGA;AAAA,cAEtC,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/view-segments.ts
|
|
4
|
+
const OnesignalRestApiViewSegmentsInput = z.object({
|
|
5
|
+
limit: z.number().int().describe("Maximum number of segments to return (1-300). Default is 50.").optional(),
|
|
6
|
+
app_id: z.string().describe("OneSignal App ID to list segments for"),
|
|
7
|
+
offset: z.number().int().describe("Zero-based offset for pagination. Results sorted by creation time.").optional()
|
|
8
|
+
}).describe("Request model for viewing segments of a OneSignal app.");
|
|
9
|
+
const OnesignalRestApiViewSegments_SegmentSchema = z.object({
|
|
10
|
+
id: z.string().describe("Unique identifier of the segment"),
|
|
11
|
+
name: z.string().describe("Name of the segment"),
|
|
12
|
+
app_id: z.string().describe("App ID this segment belongs to").nullable().optional(),
|
|
13
|
+
source: z.string().describe("Source of the segment (e.g., 'default')").nullable().optional(),
|
|
14
|
+
filters: z.array(z.object({})).describe("List of filter conditions that define this segment").nullable().optional(),
|
|
15
|
+
is_active: z.boolean().describe("Whether the segment is active").nullable().optional(),
|
|
16
|
+
read_only: z.boolean().describe("Whether the segment is read-only").nullable().optional(),
|
|
17
|
+
created_at: z.string().describe("ISO 8601 timestamp when the segment was created"),
|
|
18
|
+
updated_at: z.string().describe("ISO 8601 timestamp when the segment was last updated").nullable().optional(),
|
|
19
|
+
segment_status: z.string().describe("Status of the segment").nullable().optional(),
|
|
20
|
+
loading_started_at: z.string().describe("ISO 8601 timestamp when segment loading started").nullable().optional(),
|
|
21
|
+
loading_completed_at: z.string().describe("ISO 8601 timestamp when segment loading completed").nullable().optional()
|
|
22
|
+
}).describe("Representation of a single segment in OneSignal.");
|
|
23
|
+
const onesignalRestApiViewSegments = action("ONESIGNAL_REST_API_VIEW_SEGMENTS", {
|
|
24
|
+
slug: "onesignal_rest_api-view-segments",
|
|
25
|
+
name: "View Segments",
|
|
26
|
+
description: "Tool to view segments for a OneSignal app. Use when you need to list all segments associated with an app.",
|
|
27
|
+
input: OnesignalRestApiViewSegmentsInput,
|
|
28
|
+
output: z.object({
|
|
29
|
+
segments: z.array(OnesignalRestApiViewSegments_SegmentSchema).describe("List of segments associated with the app"),
|
|
30
|
+
total_count: z.number().int().describe("Total number of segments for the app")
|
|
31
|
+
}).describe("Response model for viewing segments.")
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { onesignalRestApiViewSegments };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=view-segments.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-segments.mjs","names":[],"sources":["../../src/actions/view-segments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewSegmentsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of segments to return (1-300). Default is 50.\").optional(),\n app_id: z.string().describe(\"OneSignal App ID to list segments for\"),\n offset: z.number().int().describe(\"Zero-based offset for pagination. Results sorted by creation time.\").optional(),\n}).describe(\"Request model for viewing segments of a OneSignal app.\");\nconst OnesignalRestApiViewSegments_SegmentSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the segment\"),\n name: z.string().describe(\"Name of the segment\"),\n app_id: z.string().describe(\"App ID this segment belongs to\").nullable().optional(),\n source: z.string().describe(\"Source of the segment (e.g., 'default')\").nullable().optional(),\n filters: z.array(z.object({})).describe(\"List of filter conditions that define this segment\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the segment is active\").nullable().optional(),\n read_only: z.boolean().describe(\"Whether the segment is read-only\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the segment was created\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the segment was last updated\").nullable().optional(),\n segment_status: z.string().describe(\"Status of the segment\").nullable().optional(),\n loading_started_at: z.string().describe(\"ISO 8601 timestamp when segment loading started\").nullable().optional(),\n loading_completed_at: z.string().describe(\"ISO 8601 timestamp when segment loading completed\").nullable().optional(),\n}).describe(\"Representation of a single segment in OneSignal.\");\nexport const OnesignalRestApiViewSegmentsOutput: z.ZodTypeAny = z.object({\n segments: z.array(OnesignalRestApiViewSegments_SegmentSchema).describe(\"List of segments associated with the app\"),\n total_count: z.number().int().describe(\"Total number of segments for the app\"),\n}).describe(\"Response model for viewing segments.\");\n\nexport const onesignalRestApiViewSegments = action(\"ONESIGNAL_REST_API_VIEW_SEGMENTS\", {\n slug: \"onesignal_rest_api-view-segments\",\n name: \"View Segments\",\n description: \"Tool to view segments for a OneSignal app. Use when you need to list all segments associated with an app.\",\n input: OnesignalRestApiViewSegmentsInput,\n output: OnesignalRestApiViewSegmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,6CAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAM9D,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV8D,EAAE,OAAO;EACvE,UAAU,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,0CAA0C;EACjH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CAC/E,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const onesignalRestApi = defineApp({\n slug: \"onesignal_rest_api\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,oBAAA,uCAAA,CAAA,CAAA,UAAA,CAA6B;CACxC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,gBAAA,6BAAgB,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,gBAAA,6BAAgB,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const onesignalRestApi = defineApp({\n slug: \"onesignal_rest_api\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,mBAAmB,UAAU;CACxC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const onesignalRestApiCatalog = {
|
|
4
|
+
"slug": "onesignal_rest_api",
|
|
5
|
+
"name": "OneSignal REST API",
|
|
6
|
+
"description": "The OneSignal REST API enables developers to programmatically send push notifications, emails, and SMS, manage users and subscriptions, and configure apps.",
|
|
7
|
+
"category": "Notifications",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/onesignal_rest_api",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.onesignalRestApiCatalog = onesignalRestApiCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const onesignalRestApiCatalog = {\n \"slug\": \"onesignal_rest_api\",\n \"name\": \"OneSignal REST API\",\n \"description\": \"The OneSignal REST API enables developers to programmatically send push notifications, emails, and SMS, manage users and subscriptions, and configure apps.\",\n \"category\": \"Notifications\",\n \"logo\": \"https://logos.composio.dev/api/onesignal_rest_api\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,0BAA0B;CACrC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const onesignalRestApiCatalog: {
|
|
4
|
+
readonly slug: "onesignal_rest_api";
|
|
5
|
+
readonly name: "OneSignal REST API";
|
|
6
|
+
readonly description: "The OneSignal REST API enables developers to programmatically send push notifications, emails, and SMS, manage users and subscriptions, and configure apps.";
|
|
7
|
+
readonly category: "Notifications";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/onesignal_rest_api";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { onesignalRestApiCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,uBAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const onesignalRestApiCatalog: {
|
|
4
|
+
readonly slug: "onesignal_rest_api";
|
|
5
|
+
readonly name: "OneSignal REST API";
|
|
6
|
+
readonly description: "The OneSignal REST API enables developers to programmatically send push notifications, emails, and SMS, manage users and subscriptions, and configure apps.";
|
|
7
|
+
readonly category: "Notifications";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/onesignal_rest_api";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { onesignalRestApiCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,uBAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const onesignalRestApiCatalog = {
|
|
4
|
+
"slug": "onesignal_rest_api",
|
|
5
|
+
"name": "OneSignal REST API",
|
|
6
|
+
"description": "The OneSignal REST API enables developers to programmatically send push notifications, emails, and SMS, manage users and subscriptions, and configure apps.",
|
|
7
|
+
"category": "Notifications",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/onesignal_rest_api",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { onesignalRestApiCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|