@keystrokehq/onesignal_rest_api 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/begin-live-activity.cjs.map +1 -1
  4. package/dist/actions/begin-live-activity.d.cts +15 -3
  5. package/dist/actions/begin-live-activity.d.cts.map +1 -1
  6. package/dist/actions/begin-live-activity.d.mts +15 -3
  7. package/dist/actions/begin-live-activity.d.mts.map +1 -1
  8. package/dist/actions/begin-live-activity.mjs.map +1 -1
  9. package/dist/actions/create-notification.cjs.map +1 -1
  10. package/dist/actions/create-notification.d.cts +51 -3
  11. package/dist/actions/create-notification.d.cts.map +1 -1
  12. package/dist/actions/create-notification.d.mts +51 -3
  13. package/dist/actions/create-notification.d.mts.map +1 -1
  14. package/dist/actions/create-notification.mjs.map +1 -1
  15. package/dist/actions/create-template.cjs.map +1 -1
  16. package/dist/actions/create-template.d.cts +71 -3
  17. package/dist/actions/create-template.d.cts.map +1 -1
  18. package/dist/actions/create-template.d.mts +71 -3
  19. package/dist/actions/create-template.d.mts.map +1 -1
  20. package/dist/actions/create-template.mjs.map +1 -1
  21. package/dist/actions/create-user.cjs.map +1 -1
  22. package/dist/actions/create-user.d.cts +90 -3
  23. package/dist/actions/create-user.d.cts.map +1 -1
  24. package/dist/actions/create-user.d.mts +90 -3
  25. package/dist/actions/create-user.d.mts.map +1 -1
  26. package/dist/actions/create-user.mjs.map +1 -1
  27. package/dist/actions/delete-alias.cjs.map +1 -1
  28. package/dist/actions/delete-alias.d.cts +15 -3
  29. package/dist/actions/delete-alias.d.cts.map +1 -1
  30. package/dist/actions/delete-alias.d.mts +15 -3
  31. package/dist/actions/delete-alias.d.mts.map +1 -1
  32. package/dist/actions/delete-alias.mjs.map +1 -1
  33. package/dist/actions/delete-device.cjs +1 -1
  34. package/dist/actions/delete-device.cjs.map +1 -1
  35. package/dist/actions/delete-device.d.cts +13 -3
  36. package/dist/actions/delete-device.d.cts.map +1 -1
  37. package/dist/actions/delete-device.d.mts +13 -3
  38. package/dist/actions/delete-device.d.mts.map +1 -1
  39. package/dist/actions/delete-device.mjs +1 -1
  40. package/dist/actions/delete-device.mjs.map +1 -1
  41. package/dist/actions/fetch-user-identity.cjs.map +1 -1
  42. package/dist/actions/fetch-user-identity.d.cts +13 -3
  43. package/dist/actions/fetch-user-identity.d.cts.map +1 -1
  44. package/dist/actions/fetch-user-identity.d.mts +13 -3
  45. package/dist/actions/fetch-user-identity.d.mts.map +1 -1
  46. package/dist/actions/fetch-user-identity.mjs.map +1 -1
  47. package/dist/actions/get-eligible-iams.cjs.map +1 -1
  48. package/dist/actions/get-eligible-iams.d.cts +11 -3
  49. package/dist/actions/get-eligible-iams.d.cts.map +1 -1
  50. package/dist/actions/get-eligible-iams.d.mts +11 -3
  51. package/dist/actions/get-eligible-iams.d.mts.map +1 -1
  52. package/dist/actions/get-eligible-iams.mjs.map +1 -1
  53. package/dist/actions/update-device.cjs +1 -1
  54. package/dist/actions/update-device.cjs.map +1 -1
  55. package/dist/actions/update-device.d.cts +60 -3
  56. package/dist/actions/update-device.d.cts.map +1 -1
  57. package/dist/actions/update-device.d.mts +60 -3
  58. package/dist/actions/update-device.d.mts.map +1 -1
  59. package/dist/actions/update-device.mjs +1 -1
  60. package/dist/actions/update-device.mjs.map +1 -1
  61. package/dist/actions/update-subscription.cjs.map +1 -1
  62. package/dist/actions/update-subscription.d.cts +81 -3
  63. package/dist/actions/update-subscription.d.cts.map +1 -1
  64. package/dist/actions/update-subscription.d.mts +81 -3
  65. package/dist/actions/update-subscription.d.mts.map +1 -1
  66. package/dist/actions/update-subscription.mjs.map +1 -1
  67. package/dist/actions/view-an-app.cjs +6 -6
  68. package/dist/actions/view-an-app.cjs.map +1 -1
  69. package/dist/actions/view-an-app.d.cts +15 -3
  70. package/dist/actions/view-an-app.d.cts.map +1 -1
  71. package/dist/actions/view-an-app.d.mts +15 -3
  72. package/dist/actions/view-an-app.d.mts.map +1 -1
  73. package/dist/actions/view-an-app.mjs +6 -6
  74. package/dist/actions/view-an-app.mjs.map +1 -1
  75. package/dist/actions/view-device.cjs +7 -7
  76. package/dist/actions/view-device.cjs.map +1 -1
  77. package/dist/actions/view-device.d.cts +32 -3
  78. package/dist/actions/view-device.d.cts.map +1 -1
  79. package/dist/actions/view-device.d.mts +32 -3
  80. package/dist/actions/view-device.d.mts.map +1 -1
  81. package/dist/actions/view-device.mjs +7 -7
  82. package/dist/actions/view-device.mjs.map +1 -1
  83. package/dist/actions/view-devices.cjs +6 -6
  84. package/dist/actions/view-devices.cjs.map +1 -1
  85. package/dist/actions/view-devices.d.cts +49 -3
  86. package/dist/actions/view-devices.d.cts.map +1 -1
  87. package/dist/actions/view-devices.d.mts +49 -3
  88. package/dist/actions/view-devices.d.mts.map +1 -1
  89. package/dist/actions/view-devices.mjs +6 -6
  90. package/dist/actions/view-devices.mjs.map +1 -1
  91. package/dist/actions/view-notifications.cjs +4 -4
  92. package/dist/actions/view-notifications.cjs.map +1 -1
  93. package/dist/actions/view-notifications.d.cts +32 -3
  94. package/dist/actions/view-notifications.d.cts.map +1 -1
  95. package/dist/actions/view-notifications.d.mts +32 -3
  96. package/dist/actions/view-notifications.d.mts.map +1 -1
  97. package/dist/actions/view-notifications.mjs +4 -4
  98. package/dist/actions/view-notifications.mjs.map +1 -1
  99. package/dist/actions/view-segments.cjs +4 -4
  100. package/dist/actions/view-segments.cjs.map +1 -1
  101. package/dist/actions/view-segments.d.cts +27 -3
  102. package/dist/actions/view-segments.d.cts.map +1 -1
  103. package/dist/actions/view-segments.d.mts +27 -3
  104. package/dist/actions/view-segments.d.mts.map +1 -1
  105. package/dist/actions/view-segments.mjs +4 -4
  106. package/dist/actions/view-segments.mjs.map +1 -1
  107. package/dist/catalog.cjs +7 -1
  108. package/dist/catalog.cjs.map +1 -1
  109. package/dist/catalog.d.cts +8 -0
  110. package/dist/catalog.d.mts +8 -0
  111. package/dist/catalog.mjs +7 -1
  112. package/dist/catalog.mjs.map +1 -1
  113. package/package.json +2 -2
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/view-an-app.d.ts
4
- declare const OnesignalRestApiViewAnAppInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiViewAnAppOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiViewAnApp: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiViewAnAppInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const OnesignalRestApiViewAnAppOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ name: z.ZodNullable<z.ZodString>;
10
+ players: z.ZodNullable<z.ZodNumber>;
11
+ created_at: z.ZodNullable<z.ZodString>;
12
+ updated_at: z.ZodNullable<z.ZodString>;
13
+ organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ messageable_players: z.ZodNullable<z.ZodNumber>;
15
+ }, z.core.$loose>;
16
+ declare const onesignalRestApiViewAnApp: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ app_id: string;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { onesignalRestApiViewAnApp };
9
21
  //# sourceMappingURL=view-an-app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view-an-app.d.cts","names":[],"sources":["../../src/actions/view-an-app.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEyB;AAAA,cAC3D,+BAAA,EAAiC,CAAA,CAAE,UAQmC;AAAA,cAEtE,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"view-an-app.d.cts","names":[],"sources":["../../src/actions/view-an-app.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;cAU/B,yBAAA,gCAAyB,wBAAA"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/view-an-app.d.ts
4
- declare const OnesignalRestApiViewAnAppInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiViewAnAppOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiViewAnApp: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiViewAnAppInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const OnesignalRestApiViewAnAppOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ name: z.ZodNullable<z.ZodString>;
10
+ players: z.ZodNullable<z.ZodNumber>;
11
+ created_at: z.ZodNullable<z.ZodString>;
12
+ updated_at: z.ZodNullable<z.ZodString>;
13
+ organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ messageable_players: z.ZodNullable<z.ZodNumber>;
15
+ }, z.core.$loose>;
16
+ declare const onesignalRestApiViewAnApp: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ app_id: string;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { onesignalRestApiViewAnApp };
9
21
  //# sourceMappingURL=view-an-app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view-an-app.d.mts","names":[],"sources":["../../src/actions/view-an-app.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEyB;AAAA,cAC3D,+BAAA,EAAiC,CAAA,CAAE,UAQmC;AAAA,cAEtE,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"view-an-app.d.mts","names":[],"sources":["../../src/actions/view-an-app.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;cAU/B,yBAAA,gCAAyB,wBAAA"}
@@ -6,13 +6,13 @@ const onesignalRestApiViewAnApp = action("ONESIGNAL_REST_API_VIEW_AN_APP", {
6
6
  description: "Tool to retrieve metadata for a single OneSignal app. Use when you need to fetch app details by its ID.",
7
7
  input: z.object({ app_id: z.string().describe("Unique identifier for the OneSignal app.") }).describe("Request model for retrieving metadata of a OneSignal app."),
8
8
  output: z.object({
9
- id: z.string().describe("Unique identifier of the OneSignal app."),
10
- name: z.string().describe("Name of the OneSignal app."),
11
- players: z.number().int().describe("Number of registered devices (players)."),
12
- created_at: z.string().describe("Creation timestamp in ISO 8601 format."),
13
- updated_at: z.string().describe("Last update timestamp in ISO 8601 format."),
9
+ id: z.string().describe("Unique identifier of the OneSignal app.").nullable(),
10
+ name: z.string().describe("Name of the OneSignal app.").nullable(),
11
+ players: z.number().int().describe("Number of registered devices (players).").nullable(),
12
+ created_at: z.string().describe("Creation timestamp in ISO 8601 format.").nullable(),
13
+ updated_at: z.string().describe("Last update timestamp in ISO 8601 format.").nullable(),
14
14
  organization_id: z.string().describe("Organization ID if the app belongs to one.").nullable().optional(),
15
- messageable_players: z.number().int().describe("Number of devices eligible to receive notifications.")
15
+ messageable_players: z.number().int().describe("Number of devices eligible to receive notifications.").nullable()
16
16
  }).passthrough().describe("Response model for viewing a OneSignal app's metadata.")
17
17
  });
18
18
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"view-an-app.mjs","names":[],"sources":["../../src/actions/view-an-app.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewAnAppInput: z.ZodTypeAny = z.object({\n app_id: z.string().describe(\"Unique identifier for the OneSignal app.\"),\n}).describe(\"Request model for retrieving metadata of a OneSignal app.\");\nexport const OnesignalRestApiViewAnAppOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the OneSignal app.\"),\n name: z.string().describe(\"Name of the OneSignal app.\"),\n players: z.number().int().describe(\"Number of registered devices (players).\"),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format.\"),\n updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format.\"),\n organization_id: z.string().describe(\"Organization ID if the app belongs to one.\").nullable().optional(),\n messageable_players: z.number().int().describe(\"Number of devices eligible to receive notifications.\"),\n}).passthrough().describe(\"Response model for viewing a OneSignal app's metadata.\");\n\nexport const onesignalRestApiViewAnApp = action(\"ONESIGNAL_REST_API_VIEW_AN_APP\", {\n slug: \"onesignal_rest_api-view-an-app\",\n name: \"View OneSignal App\",\n description: \"Tool to retrieve metadata for a single OneSignal app. Use when you need to fetch app details by its ID.\",\n input: OnesignalRestApiViewAnAppInput,\n output: OnesignalRestApiViewAnAppOutput,\n});\n"],"mappings":";;AAiBA,MAAa,4BAA4B,OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB0D,EAAE,OAAO,EACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACxE,CAAC,CAAC,CAAC,SAAS,2DAeH;CACP,QAf2D,EAAE,OAAO;EACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;EACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EAC3E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;CACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"view-an-app.mjs","names":[],"sources":["../../src/actions/view-an-app.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewAnAppInput = z.object({\n app_id: z.string().describe(\"Unique identifier for the OneSignal app.\"),\n}).describe(\"Request model for retrieving metadata of a OneSignal app.\");\nexport const OnesignalRestApiViewAnAppOutput = z.object({\n id: z.string().describe(\"Unique identifier of the OneSignal app.\").nullable(),\n name: z.string().describe(\"Name of the OneSignal app.\").nullable(),\n players: z.number().int().describe(\"Number of registered devices (players).\").nullable(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format.\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format.\").nullable(),\n organization_id: z.string().describe(\"Organization ID if the app belongs to one.\").nullable().optional(),\n messageable_players: z.number().int().describe(\"Number of devices eligible to receive notifications.\").nullable(),\n}).passthrough().describe(\"Response model for viewing a OneSignal app's metadata.\");\n\nexport const onesignalRestApiViewAnApp = action(\"ONESIGNAL_REST_API_VIEW_AN_APP\", {\n slug: \"onesignal_rest_api-view-an-app\",\n name: \"View OneSignal App\",\n description: \"Tool to retrieve metadata for a single OneSignal app. Use when you need to fetch app details by its ID.\",\n input: OnesignalRestApiViewAnAppInput,\n output: OnesignalRestApiViewAnAppOutput,\n});\n"],"mappings":";;AAiBA,MAAa,4BAA4B,OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB4C,EAAE,OAAO,EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACxE,CAAC,CAAC,CAAC,SAAS,2DAeH;CACP,QAf6C,EAAE,OAAO;EACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACtF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
@@ -6,26 +6,26 @@ const OnesignalRestApiViewDeviceInput = zod.z.object({
6
6
  player_id: zod.z.string().describe("Unique ID of the device (player) to retrieve.")
7
7
  }).describe("Request model for retrieving a OneSignal device (player) by its unique ID.");
8
8
  const OnesignalRestApiViewDeviceOutput = zod.z.object({
9
- id: zod.z.string().describe("Unique device (player) ID."),
9
+ id: zod.z.string().describe("Unique device (player) ID.").nullable(),
10
10
  ip: zod.z.string().describe("Last known IP address of the device.").nullable().optional(),
11
11
  sdk: zod.z.string().describe("SDK version used by the device.").nullable().optional(),
12
12
  tags: zod.z.object({}).describe("Custom key/value tags associated with the device.").nullable().optional(),
13
13
  ad_id: zod.z.string().describe("Advertising ID of the device.").nullable().optional(),
14
14
  rooted: zod.z.boolean().describe("Whether the device is rooted/jailbroken.").nullable().optional(),
15
15
  language: zod.z.string().describe("Language code of the device (e.g., 'en').").nullable().optional(),
16
- playtime: zod.z.number().int().describe("Total playtime in seconds for the device."),
16
+ playtime: zod.z.number().int().describe("Total playtime in seconds for the device.").nullable(),
17
17
  timezone: zod.z.number().int().describe("Time zone offset in seconds from UTC for the device.").nullable().optional(),
18
18
  device_os: zod.z.string().describe("Operating system of the device (e.g., 'iOS', 'Android').").nullable().optional(),
19
19
  test_type: zod.z.union([zod.z.string(), zod.z.number().int()]).nullable().optional(),
20
- created_at: zod.z.number().int().describe("UNIX timestamp when the device record was created."),
20
+ created_at: zod.z.number().int().describe("UNIX timestamp when the device record was created.").nullable(),
21
21
  identifier: zod.z.string().describe("Device push token, email, or external user ID.").nullable().optional(),
22
22
  badge_count: zod.z.number().int().describe("Badge count on the device (iOS).").nullable().optional(),
23
- device_type: zod.z.number().int().describe("Device platform type (e.g., iOS=0, Android=1, etc.)."),
24
- last_active: zod.z.number().int().describe("UNIX timestamp of the device's last activity."),
25
- amount_spent: zod.z.number().describe("Total USD amount spent by the user on the app."),
23
+ device_type: zod.z.number().int().describe("Device platform type (e.g., iOS=0, Android=1, etc.).").nullable(),
24
+ last_active: zod.z.number().int().describe("UNIX timestamp of the device's last activity.").nullable(),
25
+ amount_spent: zod.z.number().describe("Total USD amount spent by the user on the app.").nullable(),
26
26
  device_model: zod.z.string().describe("Device model (e.g., 'iPhone13,2').").nullable().optional(),
27
27
  game_version: zod.z.string().describe("Version of the app installed on the device.").nullable().optional(),
28
- session_count: zod.z.number().int().describe("Number of sessions recorded for the device."),
28
+ session_count: zod.z.number().int().describe("Number of sessions recorded for the device.").nullable(),
29
29
  external_user_id: zod.z.string().describe("External user ID associated with the device, if set.").nullable().optional(),
30
30
  invalid_identifier: zod.z.boolean().describe("Whether the device identifier is invalid.").nullable().optional()
31
31
  }).passthrough().describe("Response model for retrieving a OneSignal device (player).");
@@ -1 +1 @@
1
- {"version":3,"file":"view-device.cjs","names":["z","action"],"sources":["../../src/actions/view-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewDeviceInput: z.ZodTypeAny = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n player_id: z.string().describe(\"Unique ID of the device (player) to retrieve.\"),\n}).describe(\"Request model for retrieving a OneSignal device (player) by its unique ID.\");\nexport const OnesignalRestApiViewDeviceOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique device (player) ID.\"),\n ip: z.string().describe(\"Last known IP address of the device.\").nullable().optional(),\n sdk: z.string().describe(\"SDK version used by the device.\").nullable().optional(),\n tags: z.object({}).describe(\"Custom key/value tags associated with the device.\").nullable().optional(),\n ad_id: z.string().describe(\"Advertising ID of the device.\").nullable().optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted/jailbroken.\").nullable().optional(),\n language: z.string().describe(\"Language code of the device (e.g., 'en').\").nullable().optional(),\n playtime: z.number().int().describe(\"Total playtime in seconds for the device.\"),\n timezone: z.number().int().describe(\"Time zone offset in seconds from UTC for the device.\").nullable().optional(),\n device_os: z.string().describe(\"Operating system of the device (e.g., 'iOS', 'Android').\").nullable().optional(),\n test_type: z.union([z.string(), z.number().int()]).nullable().optional(),\n created_at: z.number().int().describe(\"UNIX timestamp when the device record was created.\"),\n identifier: z.string().describe(\"Device push token, email, or external user ID.\").nullable().optional(),\n badge_count: z.number().int().describe(\"Badge count on the device (iOS).\").nullable().optional(),\n device_type: z.number().int().describe(\"Device platform type (e.g., iOS=0, Android=1, etc.).\"),\n last_active: z.number().int().describe(\"UNIX timestamp of the device's last activity.\"),\n amount_spent: z.number().describe(\"Total USD amount spent by the user on the app.\"),\n device_model: z.string().describe(\"Device model (e.g., 'iPhone13,2').\").nullable().optional(),\n game_version: z.string().describe(\"Version of the app installed on the device.\").nullable().optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded for the device.\"),\n external_user_id: z.string().describe(\"External user ID associated with the device, if set.\").nullable().optional(),\n invalid_identifier: z.boolean().describe(\"Whether the device identifier is invalid.\").nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving a OneSignal device (player).\");\n\nexport const onesignalRestApiViewDevice = action(\"ONESIGNAL_REST_API_VIEW_DEVICE\", {\n slug: \"onesignal_rest_api-view-device\",\n name: \"View Device\",\n description: \"Tool to retrieve details of a specific device (player). Use when you have a OneSignal player_id and need current device info.\",\n input: OnesignalRestApiViewDeviceInput,\n output: OnesignalRestApiViewDeviceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AAChF,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,S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AC,SAAS;CAClH,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAEtF,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"view-device.cjs","names":["z","action"],"sources":["../../src/actions/view-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewDeviceInput = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n player_id: z.string().describe(\"Unique ID of the device (player) to retrieve.\"),\n}).describe(\"Request model for retrieving a OneSignal device (player) by its unique ID.\");\nexport const OnesignalRestApiViewDeviceOutput = z.object({\n id: z.string().describe(\"Unique device (player) ID.\").nullable(),\n ip: z.string().describe(\"Last known IP address of the device.\").nullable().optional(),\n sdk: z.string().describe(\"SDK version used by the device.\").nullable().optional(),\n tags: z.object({}).describe(\"Custom key/value tags associated with the device.\").nullable().optional(),\n ad_id: z.string().describe(\"Advertising ID of the device.\").nullable().optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted/jailbroken.\").nullable().optional(),\n language: z.string().describe(\"Language code of the device (e.g., 'en').\").nullable().optional(),\n playtime: z.number().int().describe(\"Total playtime in seconds for the device.\").nullable(),\n timezone: z.number().int().describe(\"Time zone offset in seconds from UTC for the device.\").nullable().optional(),\n device_os: z.string().describe(\"Operating system of the device (e.g., 'iOS', 'Android').\").nullable().optional(),\n test_type: z.union([z.string(), z.number().int()]).nullable().optional(),\n created_at: z.number().int().describe(\"UNIX timestamp when the device record was created.\").nullable(),\n identifier: z.string().describe(\"Device push token, email, or external user ID.\").nullable().optional(),\n badge_count: z.number().int().describe(\"Badge count on the device (iOS).\").nullable().optional(),\n device_type: z.number().int().describe(\"Device platform type (e.g., iOS=0, Android=1, etc.).\").nullable(),\n last_active: z.number().int().describe(\"UNIX timestamp of the device's last activity.\").nullable(),\n amount_spent: z.number().describe(\"Total USD amount spent by the user on the app.\").nullable(),\n device_model: z.string().describe(\"Device model (e.g., 'iPhone13,2').\").nullable().optional(),\n game_version: z.string().describe(\"Version of the app installed on the device.\").nullable().optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded for the device.\").nullable(),\n external_user_id: z.string().describe(\"External user ID associated with the device, if set.\").nullable().optional(),\n invalid_identifier: z.boolean().describe(\"Whether the device identifier is invalid.\").nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving a OneSignal device (player).\");\n\nexport const onesignalRestApiViewDevice = action(\"ONESIGNAL_REST_API_VIEW_DEVICE\", {\n slug: \"onesignal_rest_api-view-device\",\n name: \"View Device\",\n description: \"Tool to retrieve details of a specific device (player). Use when you have a OneSignal player_id and need current device info.\",\n input: OnesignalRestApiViewDeviceInput,\n output: OnesignalRestApiViewDeviceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AAChF,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CA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C,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC7F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACjG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAEtF,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/view-device.d.ts
4
- declare const OnesignalRestApiViewDeviceInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiViewDeviceOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiViewDevice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiViewDeviceInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ player_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const OnesignalRestApiViewDeviceOutput: z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ sdk: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ tags: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
13
+ ad_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ rooted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
15
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ playtime: z.ZodNullable<z.ZodNumber>;
17
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ device_os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ test_type: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
20
+ created_at: z.ZodNullable<z.ZodNumber>;
21
+ identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ badge_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ device_type: z.ZodNullable<z.ZodNumber>;
24
+ last_active: z.ZodNullable<z.ZodNumber>;
25
+ amount_spent: z.ZodNullable<z.ZodNumber>;
26
+ device_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ game_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ session_count: z.ZodNullable<z.ZodNumber>;
29
+ external_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ invalid_identifier: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
31
+ }, z.core.$loose>;
32
+ declare const onesignalRestApiViewDevice: import("@keystrokehq/action").WorkflowActionDefinition<{
33
+ app_id: string;
34
+ player_id: string;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { onesignalRestApiViewDevice };
9
38
  //# sourceMappingURL=view-device.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view-device.d.cts","names":[],"sources":["../../src/actions/view-device.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAGyC;AAAA,cAC5E,gCAAA,EAAkC,CAAA,CAAE,UAuBsC;AAAA,cAE1E,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"view-device.d.cts","names":[],"sources":["../../src/actions/view-device.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAI/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAyBhC,0BAAA,gCAA0B,wBAAA"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/view-device.d.ts
4
- declare const OnesignalRestApiViewDeviceInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiViewDeviceOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiViewDevice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiViewDeviceInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ player_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const OnesignalRestApiViewDeviceOutput: z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ sdk: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ tags: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
13
+ ad_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ rooted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
15
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ playtime: z.ZodNullable<z.ZodNumber>;
17
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ device_os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ test_type: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
20
+ created_at: z.ZodNullable<z.ZodNumber>;
21
+ identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ badge_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ device_type: z.ZodNullable<z.ZodNumber>;
24
+ last_active: z.ZodNullable<z.ZodNumber>;
25
+ amount_spent: z.ZodNullable<z.ZodNumber>;
26
+ device_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ game_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ session_count: z.ZodNullable<z.ZodNumber>;
29
+ external_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ invalid_identifier: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
31
+ }, z.core.$loose>;
32
+ declare const onesignalRestApiViewDevice: import("@keystrokehq/action").WorkflowActionDefinition<{
33
+ app_id: string;
34
+ player_id: string;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { onesignalRestApiViewDevice };
9
38
  //# sourceMappingURL=view-device.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view-device.d.mts","names":[],"sources":["../../src/actions/view-device.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAGyC;AAAA,cAC5E,gCAAA,EAAkC,CAAA,CAAE,UAuBsC;AAAA,cAE1E,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"view-device.d.mts","names":[],"sources":["../../src/actions/view-device.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAI/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAyBhC,0BAAA,gCAA0B,wBAAA"}
@@ -9,26 +9,26 @@ const onesignalRestApiViewDevice = action("ONESIGNAL_REST_API_VIEW_DEVICE", {
9
9
  player_id: z.string().describe("Unique ID of the device (player) to retrieve.")
10
10
  }).describe("Request model for retrieving a OneSignal device (player) by its unique ID."),
11
11
  output: z.object({
12
- id: z.string().describe("Unique device (player) ID."),
12
+ id: z.string().describe("Unique device (player) ID.").nullable(),
13
13
  ip: z.string().describe("Last known IP address of the device.").nullable().optional(),
14
14
  sdk: z.string().describe("SDK version used by the device.").nullable().optional(),
15
15
  tags: z.object({}).describe("Custom key/value tags associated with the device.").nullable().optional(),
16
16
  ad_id: z.string().describe("Advertising ID of the device.").nullable().optional(),
17
17
  rooted: z.boolean().describe("Whether the device is rooted/jailbroken.").nullable().optional(),
18
18
  language: z.string().describe("Language code of the device (e.g., 'en').").nullable().optional(),
19
- playtime: z.number().int().describe("Total playtime in seconds for the device."),
19
+ playtime: z.number().int().describe("Total playtime in seconds for the device.").nullable(),
20
20
  timezone: z.number().int().describe("Time zone offset in seconds from UTC for the device.").nullable().optional(),
21
21
  device_os: z.string().describe("Operating system of the device (e.g., 'iOS', 'Android').").nullable().optional(),
22
22
  test_type: z.union([z.string(), z.number().int()]).nullable().optional(),
23
- created_at: z.number().int().describe("UNIX timestamp when the device record was created."),
23
+ created_at: z.number().int().describe("UNIX timestamp when the device record was created.").nullable(),
24
24
  identifier: z.string().describe("Device push token, email, or external user ID.").nullable().optional(),
25
25
  badge_count: z.number().int().describe("Badge count on the device (iOS).").nullable().optional(),
26
- device_type: z.number().int().describe("Device platform type (e.g., iOS=0, Android=1, etc.)."),
27
- last_active: z.number().int().describe("UNIX timestamp of the device's last activity."),
28
- amount_spent: z.number().describe("Total USD amount spent by the user on the app."),
26
+ device_type: z.number().int().describe("Device platform type (e.g., iOS=0, Android=1, etc.).").nullable(),
27
+ last_active: z.number().int().describe("UNIX timestamp of the device's last activity.").nullable(),
28
+ amount_spent: z.number().describe("Total USD amount spent by the user on the app.").nullable(),
29
29
  device_model: z.string().describe("Device model (e.g., 'iPhone13,2').").nullable().optional(),
30
30
  game_version: z.string().describe("Version of the app installed on the device.").nullable().optional(),
31
- session_count: z.number().int().describe("Number of sessions recorded for the device."),
31
+ session_count: z.number().int().describe("Number of sessions recorded for the device.").nullable(),
32
32
  external_user_id: z.string().describe("External user ID associated with the device, if set.").nullable().optional(),
33
33
  invalid_identifier: z.boolean().describe("Whether the device identifier is invalid.").nullable().optional()
34
34
  }).passthrough().describe("Response model for retrieving a OneSignal device (player).")
@@ -1 +1 @@
1
- {"version":3,"file":"view-device.mjs","names":[],"sources":["../../src/actions/view-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewDeviceInput: z.ZodTypeAny = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n player_id: z.string().describe(\"Unique ID of the device (player) to retrieve.\"),\n}).describe(\"Request model for retrieving a OneSignal device (player) by its unique ID.\");\nexport const OnesignalRestApiViewDeviceOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique device (player) ID.\"),\n ip: z.string().describe(\"Last known IP address of the device.\").nullable().optional(),\n sdk: z.string().describe(\"SDK version used by the device.\").nullable().optional(),\n tags: z.object({}).describe(\"Custom key/value tags associated with the device.\").nullable().optional(),\n ad_id: z.string().describe(\"Advertising ID of the device.\").nullable().optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted/jailbroken.\").nullable().optional(),\n language: z.string().describe(\"Language code of the device (e.g., 'en').\").nullable().optional(),\n playtime: z.number().int().describe(\"Total playtime in seconds for the device.\"),\n timezone: z.number().int().describe(\"Time zone offset in seconds from UTC for the device.\").nullable().optional(),\n device_os: z.string().describe(\"Operating system of the device (e.g., 'iOS', 'Android').\").nullable().optional(),\n test_type: z.union([z.string(), z.number().int()]).nullable().optional(),\n created_at: z.number().int().describe(\"UNIX timestamp when the device record was created.\"),\n identifier: z.string().describe(\"Device push token, email, or external user ID.\").nullable().optional(),\n badge_count: z.number().int().describe(\"Badge count on the device (iOS).\").nullable().optional(),\n device_type: z.number().int().describe(\"Device platform type (e.g., iOS=0, Android=1, etc.).\"),\n last_active: z.number().int().describe(\"UNIX timestamp of the device's last activity.\"),\n amount_spent: z.number().describe(\"Total USD amount spent by the user on the app.\"),\n device_model: z.string().describe(\"Device model (e.g., 'iPhone13,2').\").nullable().optional(),\n game_version: z.string().describe(\"Version of the app installed on the device.\").nullable().optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded for the device.\"),\n external_user_id: z.string().describe(\"External user ID associated with the device, if set.\").nullable().optional(),\n invalid_identifier: z.boolean().describe(\"Whether the device identifier is invalid.\").nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving a OneSignal device (player).\");\n\nexport const onesignalRestApiViewDevice = action(\"ONESIGNAL_REST_API_VIEW_DEVICE\", {\n slug: \"onesignal_rest_api-view-device\",\n name: \"View Device\",\n description: \"Tool to retrieve details of a specific device (player). Use when you have a OneSignal player_id and need current device info.\",\n input: OnesignalRestApiViewDeviceInput,\n output: OnesignalRestApiViewDeviceOutput,\n});\n"],"mappings":";;AAiCA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjC2D,EAAE,OAAO;EACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAChF,CAAC,CAAC,CAAC,SAAS,4EA8BH;CACP,QA9B4D,EAAE,OAAO;EACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAA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AE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;EACtF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"view-device.mjs","names":[],"sources":["../../src/actions/view-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewDeviceInput = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n player_id: z.string().describe(\"Unique ID of the device (player) to retrieve.\"),\n}).describe(\"Request model for retrieving a OneSignal device (player) by its unique ID.\");\nexport const OnesignalRestApiViewDeviceOutput = z.object({\n id: z.string().describe(\"Unique device (player) ID.\").nullable(),\n ip: z.string().describe(\"Last known IP address of the device.\").nullable().optional(),\n sdk: z.string().describe(\"SDK version used by the device.\").nullable().optional(),\n tags: z.object({}).describe(\"Custom key/value tags associated with the device.\").nullable().optional(),\n ad_id: z.string().describe(\"Advertising ID of the device.\").nullable().optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted/jailbroken.\").nullable().optional(),\n language: z.string().describe(\"Language code of the device (e.g., 'en').\").nullable().optional(),\n playtime: z.number().int().describe(\"Total playtime in seconds for the device.\").nullable(),\n timezone: z.number().int().describe(\"Time zone offset in seconds from UTC for the device.\").nullable().optional(),\n device_os: z.string().describe(\"Operating system of the device (e.g., 'iOS', 'Android').\").nullable().optional(),\n test_type: z.union([z.string(), z.number().int()]).nullable().optional(),\n created_at: z.number().int().describe(\"UNIX timestamp when the device record was created.\").nullable(),\n identifier: z.string().describe(\"Device push token, email, or external user ID.\").nullable().optional(),\n badge_count: z.number().int().describe(\"Badge count on the device (iOS).\").nullable().optional(),\n device_type: z.number().int().describe(\"Device platform type (e.g., iOS=0, Android=1, etc.).\").nullable(),\n last_active: z.number().int().describe(\"UNIX timestamp of the device's last activity.\").nullable(),\n amount_spent: z.number().describe(\"Total USD amount spent by the user on the app.\").nullable(),\n device_model: z.string().describe(\"Device model (e.g., 'iPhone13,2').\").nullable().optional(),\n game_version: z.string().describe(\"Version of the app installed on the device.\").nullable().optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded for the device.\").nullable(),\n external_user_id: z.string().describe(\"External user ID associated with the device, if set.\").nullable().optional(),\n invalid_identifier: z.boolean().describe(\"Whether the device identifier is invalid.\").nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving a OneSignal device (player).\");\n\nexport const onesignalRestApiViewDevice = action(\"ONESIGNAL_REST_API_VIEW_DEVICE\", {\n slug: \"onesignal_rest_api-view-device\",\n name: \"View Device\",\n description: \"Tool to retrieve details of a specific device (player). Use when you have a OneSignal player_id and need current device info.\",\n input: OnesignalRestApiViewDeviceInput,\n output: OnesignalRestApiViewDeviceOutput,\n});\n"],"mappings":";;AAiCA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjC6C,EAAE,OAAO;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAChF,CAAC,CAAC,CAAC,SAAS,4EA8BH;CACP,QA9B8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,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C,CAAC,SAAS;EACxG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACjG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC7F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACjG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAOhB;AACV,CAAC"}
@@ -7,11 +7,11 @@ const OnesignalRestApiViewDevicesInput = zod.z.object({
7
7
  offset: zod.z.number().int().describe("Pagination offset. Defaults to 0.").optional()
8
8
  }).describe("Request parameters for retrieving a list of devices (players) for a OneSignal app.");
9
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.")
10
+ id: zod.z.string().describe("Purchase unique identifier.").nullable(),
11
+ amount: zod.z.number().describe("Amount of the purchase.").nullable()
12
12
  }).describe("Represents a purchase made by a player.");
13
13
  const OnesignalRestApiViewDevices_PlayerSchema = zod.z.object({
14
- id: zod.z.string().describe("OneSignal player (device) ID."),
14
+ id: zod.z.string().describe("OneSignal player (device) ID.").nullable(),
15
15
  ip: zod.z.string().describe("IP address of the player.").nullable().optional(),
16
16
  sdk: zod.z.string().describe("SDK used by the player.").nullable().optional(),
17
17
  tags: zod.z.object({}).describe("Dictionary of player tags.").nullable().optional(),
@@ -42,10 +42,10 @@ const OnesignalRestApiViewDevices_PlayerSchema = zod.z.object({
42
42
  subscribable_status: zod.z.number().int().describe("Subscription status of the player.").nullable().optional()
43
43
  }).passthrough().describe("Representation of a player (device) in OneSignal.");
44
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."),
45
+ limit: zod.z.number().int().describe("Maximum number of devices returned.").nullable(),
46
+ offset: zod.z.number().int().describe("Offset used for pagination.").nullable(),
47
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.")
48
+ total_count: zod.z.number().int().describe("Total number of devices.").nullable()
49
49
  }).describe("Response model for listing devices (players) of a OneSignal app.");
50
50
  const onesignalRestApiViewDevices = require_action.action("ONESIGNAL_REST_API_VIEW_DEVICES", {
51
51
  slug: "onesignal_rest_api-view-devices",
@@ -1 +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 given app.\",\n input: OnesignalRestApiViewDevicesInput,\n output: OnesignalRestApiViewDevicesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAChG,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;AACvD,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAA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BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,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"}
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.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.object({\n id: z.string().describe(\"Purchase unique identifier.\").nullable(),\n amount: z.number().describe(\"Amount of the purchase.\").nullable(),\n}).describe(\"Represents a purchase made by a player.\");\nconst OnesignalRestApiViewDevices_PlayerSchema = z.object({\n id: z.string().describe(\"OneSignal player (device) ID.\").nullable(),\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.object({\n limit: z.number().int().describe(\"Maximum number of devices returned.\").nullable(),\n offset: z.number().int().describe(\"Offset used for pagination.\").nullable(),\n players: z.array(OnesignalRestApiViewDevices_PlayerSchema).describe(\"List of player (device) objects.\"),\n total_count: z.number().int().describe(\"Total number of devices.\").nullable(),\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,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAm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,MAAM,wCAAwC,CAAC,CAAC,SAAS,kCAAkC;CACtG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAE9E,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,55 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const OnesignalRestApiViewDevicesInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodNumber>;
6
+ app_id: z.ZodString;
7
+ offset: z.ZodOptional<z.ZodNumber>;
8
+ }, z.core.$strip>;
9
+ declare const OnesignalRestApiViewDevicesOutput: z.ZodObject<{
10
+ limit: z.ZodNullable<z.ZodNumber>;
11
+ offset: z.ZodNullable<z.ZodNumber>;
12
+ players: z.ZodArray<z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodString>;
14
+ ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ sdk: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ tags: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
17
+ ad_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ rooted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
19
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ playtime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
23
+ device_os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ purchases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
26
+ id: z.ZodNullable<z.ZodString>;
27
+ amount: z.ZodNullable<z.ZodNumber>;
28
+ }, z.core.$strip>>>>;
29
+ test_type: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
30
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ badge_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ device_type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ last_active: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ amount_spent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
+ device_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ game_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ session_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
+ android_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ external_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ invalid_identifier: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
43
+ notification_types: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
44
+ subscribable_status: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
45
+ }, z.core.$loose>>;
46
+ total_count: z.ZodNullable<z.ZodNumber>;
47
+ }, z.core.$strip>;
48
+ declare const onesignalRestApiViewDevices: import("@keystrokehq/action").WorkflowActionDefinition<{
49
+ app_id: string;
50
+ limit?: number | undefined;
51
+ offset?: number | undefined;
52
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
53
  //#endregion
8
54
  export { onesignalRestApiViewDevices };
9
55
  //# sourceMappingURL=view-devices.d.cts.map
@@ -1 +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"}
1
+ {"version":3,"file":"view-devices.d.cts","names":[],"sources":["../../src/actions/view-devices.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAwChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAOjC,2BAAA,gCAA2B,wBAAA"}
@@ -1,9 +1,55 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const OnesignalRestApiViewDevicesInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodNumber>;
6
+ app_id: z.ZodString;
7
+ offset: z.ZodOptional<z.ZodNumber>;
8
+ }, z.core.$strip>;
9
+ declare const OnesignalRestApiViewDevicesOutput: z.ZodObject<{
10
+ limit: z.ZodNullable<z.ZodNumber>;
11
+ offset: z.ZodNullable<z.ZodNumber>;
12
+ players: z.ZodArray<z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodString>;
14
+ ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ sdk: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ tags: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
17
+ ad_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ rooted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
19
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ playtime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
23
+ device_os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ purchases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
26
+ id: z.ZodNullable<z.ZodString>;
27
+ amount: z.ZodNullable<z.ZodNumber>;
28
+ }, z.core.$strip>>>>;
29
+ test_type: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
30
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ badge_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ device_type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ last_active: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ amount_spent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
+ device_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ game_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ session_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
+ android_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ external_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ invalid_identifier: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
43
+ notification_types: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
44
+ subscribable_status: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
45
+ }, z.core.$loose>>;
46
+ total_count: z.ZodNullable<z.ZodNumber>;
47
+ }, z.core.$strip>;
48
+ declare const onesignalRestApiViewDevices: import("@keystrokehq/action").WorkflowActionDefinition<{
49
+ app_id: string;
50
+ limit?: number | undefined;
51
+ offset?: number | undefined;
52
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
53
  //#endregion
8
54
  export { onesignalRestApiViewDevices };
9
55
  //# sourceMappingURL=view-devices.d.mts.map
@@ -1 +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"}
1
+ {"version":3,"file":"view-devices.d.mts","names":[],"sources":["../../src/actions/view-devices.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAwChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAOjC,2BAAA,gCAA2B,wBAAA"}
@@ -7,11 +7,11 @@ const OnesignalRestApiViewDevicesInput = z.object({
7
7
  offset: z.number().int().describe("Pagination offset. Defaults to 0.").optional()
8
8
  }).describe("Request parameters for retrieving a list of devices (players) for a OneSignal app.");
9
9
  const OnesignalRestApiViewDevices_PurchaseSchema = z.object({
10
- id: z.string().describe("Purchase unique identifier."),
11
- amount: z.number().describe("Amount of the purchase.")
10
+ id: z.string().describe("Purchase unique identifier.").nullable(),
11
+ amount: z.number().describe("Amount of the purchase.").nullable()
12
12
  }).describe("Represents a purchase made by a player.");
13
13
  const OnesignalRestApiViewDevices_PlayerSchema = z.object({
14
- id: z.string().describe("OneSignal player (device) ID."),
14
+ id: z.string().describe("OneSignal player (device) ID.").nullable(),
15
15
  ip: z.string().describe("IP address of the player.").nullable().optional(),
16
16
  sdk: z.string().describe("SDK used by the player.").nullable().optional(),
17
17
  tags: z.object({}).describe("Dictionary of player tags.").nullable().optional(),
@@ -47,10 +47,10 @@ const onesignalRestApiViewDevices = action("ONESIGNAL_REST_API_VIEW_DEVICES", {
47
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
48
  input: OnesignalRestApiViewDevicesInput,
49
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."),
50
+ limit: z.number().int().describe("Maximum number of devices returned.").nullable(),
51
+ offset: z.number().int().describe("Offset used for pagination.").nullable(),
52
52
  players: z.array(OnesignalRestApiViewDevices_PlayerSchema).describe("List of player (device) objects."),
53
- total_count: z.number().int().describe("Total number of devices.")
53
+ total_count: z.number().int().describe("Total number of devices.").nullable()
54
54
  }).describe("Response model for listing devices (players) of a OneSignal app.")
55
55
  });
56
56
  //#endregion