@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 +1 @@
1
- {"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateUserInput: z.ZodTypeAny = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n identity: z.object({\n external_id: z.string().describe(\"External user ID for identifying the user across platforms\").optional(),\n onesignal_id: z.string().describe(\"OneSignal user ID for existing users\").optional(),\n}).passthrough().describe(\"Identity object for user identification. Aliases provided will be used to look up an existing user.\").optional(),\n properties: z.object({\n ip: z.string().describe(\"IP address of the user\").optional(),\n lat: z.number().describe(\"Latitude coordinate of the user's location\").optional(),\n long: z.number().describe(\"Longitude coordinate of the user's location\").optional(),\n tags: z.object({}).describe(\"Custom key/value tags associated with the user\").optional(),\n country: z.string().describe(\"Country code (e.g., 'US')\").optional(),\n language: z.string().describe(\"Language code of the user (e.g., 'en')\").optional(),\n purchases: z.array(z.object({})).describe(\"List of purchase records for the user\").optional(),\n last_active: z.number().int().describe(\"UNIX timestamp of when the user was last active\").optional(),\n timezone_id: z.string().describe(\"Timezone identifier (e.g., 'America/New_York')\").optional(),\n amount_spent: z.number().describe(\"Total amount spent by the user\").optional(),\n first_active: z.number().int().describe(\"UNIX timestamp of when the user was first active\").optional(),\n}).describe(\"User properties including location, activity, and custom data.\").optional(),\n subscriptions: z.array(z.object({\n id: z.string().describe(\"Subscription ID\").optional(),\n sdk: z.string().describe(\"SDK version used\").optional(),\n type: z.string().describe(\"Subscription type (e.g., 'AndroidPush', 'iOSPush', 'Email', 'SMS')\").optional(),\n token: z.string().describe(\"Push token or address for the subscription\").optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted/jailbroken\").optional(),\n carrier: z.string().describe(\"Mobile carrier\").optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled\").optional(),\n net_type: z.number().int().describe(\"Network type\").optional(),\n web_auth: z.string().describe(\"Web push auth key\").optional(),\n web_p256: z.string().describe(\"Web push p256 key\").optional(),\n device_os: z.string().describe(\"Operating system version\").optional(),\n test_type: z.number().int().describe(\"Test type (1 for development, 2 for ad-hoc)\").optional(),\n app_version: z.string().describe(\"Version of the app\").optional(),\n device_model: z.string().describe(\"Device model\").optional(),\n session_time: z.number().int().describe(\"Total session time in seconds\").optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state\").optional(),\n}).describe(\"Subscription object representing a device or channel subscribed to notifications.\")).describe(\"List of subscriptions (devices/channels) owned by the user\").optional(),\n subscription_options: z.object({\n retain_previous_owner: z.boolean().describe(\"Whether to retain the previous owner when transferring subscriptions\").optional(),\n}).describe(\"Options for subscription management.\").optional(),\n}).describe(\"Request model for creating a OneSignal user with optional subscriptions and aliases.\");\nexport const OnesignalRestApiCreateUserOutput: z.ZodTypeAny = z.object({\n identity: z.object({}).describe(\"Identity information of the created user\").nullable().optional(),\n properties: z.object({}).describe(\"Properties of the created user\").nullable().optional(),\n subscriptions: z.array(z.object({})).describe(\"Subscriptions associated with the created user\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a OneSignal user.\");\n\nexport const onesignalRestApiCreateUser = action(\"ONESIGNAL_REST_API_CREATE_USER\", {\n slug: \"onesignal_rest_api-create-user\",\n name: \"Create User\",\n description: \"Tool to create a OneSignal user with optional subscriptions and aliases. Aliases provided in the payload will be used to look up an existing user.\",\n input: OnesignalRestApiCreateUserInput,\n output: OnesignalRestApiCreateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACnD,UAAUA,IAAAA,EAAE,OAAO;EACnB,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC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AeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACjF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1F,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAChL,sBAAsBA,IAAAA,EAAE,OAAO,EAC/B,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,EAC/H,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC7D,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAClG,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateUserInput = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n identity: z.object({\n external_id: z.string().describe(\"External user ID for identifying the user across platforms\").optional(),\n onesignal_id: z.string().describe(\"OneSignal user ID for existing users\").optional(),\n}).passthrough().describe(\"Identity object for user identification. Aliases provided will be used to look up an existing user.\").optional(),\n properties: z.object({\n ip: z.string().describe(\"IP address of the user\").optional(),\n lat: z.number().describe(\"Latitude coordinate of the user's location\").optional(),\n long: z.number().describe(\"Longitude coordinate of the user's location\").optional(),\n tags: z.object({}).describe(\"Custom key/value tags associated with the user\").optional(),\n country: z.string().describe(\"Country code (e.g., 'US')\").optional(),\n language: z.string().describe(\"Language code of the user (e.g., 'en')\").optional(),\n purchases: z.array(z.object({})).describe(\"List of purchase records for the user\").optional(),\n last_active: z.number().int().describe(\"UNIX timestamp of when the user was last active\").optional(),\n timezone_id: z.string().describe(\"Timezone identifier (e.g., 'America/New_York')\").optional(),\n amount_spent: z.number().describe(\"Total amount spent by the user\").optional(),\n first_active: z.number().int().describe(\"UNIX timestamp of when the user was first active\").optional(),\n}).describe(\"User properties including location, activity, and custom data.\").optional(),\n subscriptions: z.array(z.object({\n id: z.string().describe(\"Subscription ID\").optional(),\n sdk: z.string().describe(\"SDK version used\").optional(),\n type: z.string().describe(\"Subscription type (e.g., 'AndroidPush', 'iOSPush', 'Email', 'SMS')\").optional(),\n token: z.string().describe(\"Push token or address for the subscription\").optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted/jailbroken\").optional(),\n carrier: z.string().describe(\"Mobile carrier\").optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled\").optional(),\n net_type: z.number().int().describe(\"Network type\").optional(),\n web_auth: z.string().describe(\"Web push auth key\").optional(),\n web_p256: z.string().describe(\"Web push p256 key\").optional(),\n device_os: z.string().describe(\"Operating system version\").optional(),\n test_type: z.number().int().describe(\"Test type (1 for development, 2 for ad-hoc)\").optional(),\n app_version: z.string().describe(\"Version of the app\").optional(),\n device_model: z.string().describe(\"Device model\").optional(),\n session_time: z.number().int().describe(\"Total session time in seconds\").optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state\").optional(),\n}).describe(\"Subscription object representing a device or channel subscribed to notifications.\")).describe(\"List of subscriptions (devices/channels) owned by the user\").optional(),\n subscription_options: z.object({\n retain_previous_owner: z.boolean().describe(\"Whether to retain the previous owner when transferring subscriptions\").optional(),\n}).describe(\"Options for subscription management.\").optional(),\n}).describe(\"Request model for creating a OneSignal user with optional subscriptions and aliases.\");\nexport const OnesignalRestApiCreateUserOutput = z.object({\n identity: z.object({}).describe(\"Identity information of the created user\").nullable().optional(),\n properties: z.object({}).describe(\"Properties of the created user\").nullable().optional(),\n subscriptions: z.array(z.object({})).describe(\"Subscriptions associated with the created user\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a OneSignal user.\");\n\nexport const onesignalRestApiCreateUser = action(\"ONESIGNAL_REST_API_CREATE_USER\", {\n slug: \"onesignal_rest_api-create-user\",\n name: \"Create User\",\n description: \"Tool to create a OneSignal user with optional subscriptions and aliases. Aliases provided in the payload will be used to look up an existing user.\",\n input: OnesignalRestApiCreateUserInput,\n output: OnesignalRestApiCreateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACnD,UAAUA,IAAAA,EAAE,OAAO;EACnB,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACxG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CACxI,YAAYA,IAAAA,EAAE,OAAO;EACrB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC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/B,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,EAC/H,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC7D,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAClG,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,96 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-user.d.ts
4
- declare const OnesignalRestApiCreateUserInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiCreateUserOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiCreateUserInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ identity: z.ZodOptional<z.ZodObject<{
7
+ external_id: z.ZodOptional<z.ZodString>;
8
+ onesignal_id: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$loose>>;
10
+ properties: z.ZodOptional<z.ZodObject<{
11
+ ip: z.ZodOptional<z.ZodString>;
12
+ lat: z.ZodOptional<z.ZodNumber>;
13
+ long: z.ZodOptional<z.ZodNumber>;
14
+ tags: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
15
+ country: z.ZodOptional<z.ZodString>;
16
+ language: z.ZodOptional<z.ZodString>;
17
+ purchases: z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>;
18
+ last_active: z.ZodOptional<z.ZodNumber>;
19
+ timezone_id: z.ZodOptional<z.ZodString>;
20
+ amount_spent: z.ZodOptional<z.ZodNumber>;
21
+ first_active: z.ZodOptional<z.ZodNumber>;
22
+ }, z.core.$strip>>;
23
+ subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
24
+ id: z.ZodOptional<z.ZodString>;
25
+ sdk: z.ZodOptional<z.ZodString>;
26
+ type: z.ZodOptional<z.ZodString>;
27
+ token: z.ZodOptional<z.ZodString>;
28
+ rooted: z.ZodOptional<z.ZodBoolean>;
29
+ carrier: z.ZodOptional<z.ZodString>;
30
+ enabled: z.ZodOptional<z.ZodBoolean>;
31
+ net_type: z.ZodOptional<z.ZodNumber>;
32
+ web_auth: z.ZodOptional<z.ZodString>;
33
+ web_p256: z.ZodOptional<z.ZodString>;
34
+ device_os: z.ZodOptional<z.ZodString>;
35
+ test_type: z.ZodOptional<z.ZodNumber>;
36
+ app_version: z.ZodOptional<z.ZodString>;
37
+ device_model: z.ZodOptional<z.ZodString>;
38
+ session_time: z.ZodOptional<z.ZodNumber>;
39
+ session_count: z.ZodOptional<z.ZodNumber>;
40
+ notification_types: z.ZodOptional<z.ZodNumber>;
41
+ }, z.core.$strip>>>;
42
+ subscription_options: z.ZodOptional<z.ZodObject<{
43
+ retain_previous_owner: z.ZodOptional<z.ZodBoolean>;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>;
46
+ declare const OnesignalRestApiCreateUserOutput: z.ZodObject<{
47
+ identity: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
48
+ properties: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
49
+ subscriptions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
50
+ }, z.core.$loose>;
51
+ declare const onesignalRestApiCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
52
+ app_id: string;
53
+ identity?: {
54
+ [x: string]: unknown;
55
+ external_id?: string | undefined;
56
+ onesignal_id?: string | undefined;
57
+ } | undefined;
58
+ properties?: {
59
+ ip?: string | undefined;
60
+ lat?: number | undefined;
61
+ long?: number | undefined;
62
+ tags?: Record<string, never> | undefined;
63
+ country?: string | undefined;
64
+ language?: string | undefined;
65
+ purchases?: Record<string, never>[] | undefined;
66
+ last_active?: number | undefined;
67
+ timezone_id?: string | undefined;
68
+ amount_spent?: number | undefined;
69
+ first_active?: number | undefined;
70
+ } | undefined;
71
+ subscriptions?: {
72
+ id?: string | undefined;
73
+ sdk?: string | undefined;
74
+ type?: string | undefined;
75
+ token?: string | undefined;
76
+ rooted?: boolean | undefined;
77
+ carrier?: string | undefined;
78
+ enabled?: boolean | undefined;
79
+ net_type?: number | undefined;
80
+ web_auth?: string | undefined;
81
+ web_p256?: string | undefined;
82
+ device_os?: string | undefined;
83
+ test_type?: number | undefined;
84
+ app_version?: string | undefined;
85
+ device_model?: string | undefined;
86
+ session_time?: number | undefined;
87
+ session_count?: number | undefined;
88
+ notification_types?: number | undefined;
89
+ }[] | undefined;
90
+ subscription_options?: {
91
+ retain_previous_owner?: boolean | undefined;
92
+ } | undefined;
93
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
94
  //#endregion
8
95
  export { onesignalRestApiCreateUser };
9
96
  //# sourceMappingURL=create-user.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAyCmD;AAAA,cACtF,gCAAA,EAAkC,CAAA,CAAE,UAI2B;AAAA,cAE/D,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAMhC,0BAAA,gCAA0B,wBAAA;;;;;;;;;;;WAMrC,MAAA;;;gBAAA,MAAA"}
@@ -1,9 +1,96 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-user.d.ts
4
- declare const OnesignalRestApiCreateUserInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiCreateUserOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiCreateUserInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ identity: z.ZodOptional<z.ZodObject<{
7
+ external_id: z.ZodOptional<z.ZodString>;
8
+ onesignal_id: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$loose>>;
10
+ properties: z.ZodOptional<z.ZodObject<{
11
+ ip: z.ZodOptional<z.ZodString>;
12
+ lat: z.ZodOptional<z.ZodNumber>;
13
+ long: z.ZodOptional<z.ZodNumber>;
14
+ tags: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
15
+ country: z.ZodOptional<z.ZodString>;
16
+ language: z.ZodOptional<z.ZodString>;
17
+ purchases: z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>;
18
+ last_active: z.ZodOptional<z.ZodNumber>;
19
+ timezone_id: z.ZodOptional<z.ZodString>;
20
+ amount_spent: z.ZodOptional<z.ZodNumber>;
21
+ first_active: z.ZodOptional<z.ZodNumber>;
22
+ }, z.core.$strip>>;
23
+ subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
24
+ id: z.ZodOptional<z.ZodString>;
25
+ sdk: z.ZodOptional<z.ZodString>;
26
+ type: z.ZodOptional<z.ZodString>;
27
+ token: z.ZodOptional<z.ZodString>;
28
+ rooted: z.ZodOptional<z.ZodBoolean>;
29
+ carrier: z.ZodOptional<z.ZodString>;
30
+ enabled: z.ZodOptional<z.ZodBoolean>;
31
+ net_type: z.ZodOptional<z.ZodNumber>;
32
+ web_auth: z.ZodOptional<z.ZodString>;
33
+ web_p256: z.ZodOptional<z.ZodString>;
34
+ device_os: z.ZodOptional<z.ZodString>;
35
+ test_type: z.ZodOptional<z.ZodNumber>;
36
+ app_version: z.ZodOptional<z.ZodString>;
37
+ device_model: z.ZodOptional<z.ZodString>;
38
+ session_time: z.ZodOptional<z.ZodNumber>;
39
+ session_count: z.ZodOptional<z.ZodNumber>;
40
+ notification_types: z.ZodOptional<z.ZodNumber>;
41
+ }, z.core.$strip>>>;
42
+ subscription_options: z.ZodOptional<z.ZodObject<{
43
+ retain_previous_owner: z.ZodOptional<z.ZodBoolean>;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>;
46
+ declare const OnesignalRestApiCreateUserOutput: z.ZodObject<{
47
+ identity: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
48
+ properties: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
49
+ subscriptions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
50
+ }, z.core.$loose>;
51
+ declare const onesignalRestApiCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
52
+ app_id: string;
53
+ identity?: {
54
+ [x: string]: unknown;
55
+ external_id?: string | undefined;
56
+ onesignal_id?: string | undefined;
57
+ } | undefined;
58
+ properties?: {
59
+ ip?: string | undefined;
60
+ lat?: number | undefined;
61
+ long?: number | undefined;
62
+ tags?: Record<string, never> | undefined;
63
+ country?: string | undefined;
64
+ language?: string | undefined;
65
+ purchases?: Record<string, never>[] | undefined;
66
+ last_active?: number | undefined;
67
+ timezone_id?: string | undefined;
68
+ amount_spent?: number | undefined;
69
+ first_active?: number | undefined;
70
+ } | undefined;
71
+ subscriptions?: {
72
+ id?: string | undefined;
73
+ sdk?: string | undefined;
74
+ type?: string | undefined;
75
+ token?: string | undefined;
76
+ rooted?: boolean | undefined;
77
+ carrier?: string | undefined;
78
+ enabled?: boolean | undefined;
79
+ net_type?: number | undefined;
80
+ web_auth?: string | undefined;
81
+ web_p256?: string | undefined;
82
+ device_os?: string | undefined;
83
+ test_type?: number | undefined;
84
+ app_version?: string | undefined;
85
+ device_model?: string | undefined;
86
+ session_time?: number | undefined;
87
+ session_count?: number | undefined;
88
+ notification_types?: number | undefined;
89
+ }[] | undefined;
90
+ subscription_options?: {
91
+ retain_previous_owner?: boolean | undefined;
92
+ } | undefined;
93
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
94
  //#endregion
8
95
  export { onesignalRestApiCreateUser };
9
96
  //# sourceMappingURL=create-user.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAyCmD;AAAA,cACtF,gCAAA,EAAkC,CAAA,CAAE,UAI2B;AAAA,cAE/D,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAMhC,0BAAA,gCAA0B,wBAAA;;;;;;;;;;;WAMrC,MAAA;;;gBAAA,MAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.mjs","names":[],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateUserInput: z.ZodTypeAny = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n identity: z.object({\n external_id: z.string().describe(\"External user ID for identifying the user across platforms\").optional(),\n onesignal_id: z.string().describe(\"OneSignal user ID for existing users\").optional(),\n}).passthrough().describe(\"Identity object for user identification. Aliases provided will be used to look up an existing user.\").optional(),\n properties: z.object({\n ip: z.string().describe(\"IP address of the user\").optional(),\n lat: z.number().describe(\"Latitude coordinate of the user's location\").optional(),\n long: z.number().describe(\"Longitude coordinate of the user's location\").optional(),\n tags: z.object({}).describe(\"Custom key/value tags associated with the user\").optional(),\n country: z.string().describe(\"Country code (e.g., 'US')\").optional(),\n language: z.string().describe(\"Language code of the user (e.g., 'en')\").optional(),\n purchases: z.array(z.object({})).describe(\"List of purchase records for the user\").optional(),\n last_active: z.number().int().describe(\"UNIX timestamp of when the user was last active\").optional(),\n timezone_id: z.string().describe(\"Timezone identifier (e.g., 'America/New_York')\").optional(),\n amount_spent: z.number().describe(\"Total amount spent by the user\").optional(),\n first_active: z.number().int().describe(\"UNIX timestamp of when the user was first active\").optional(),\n}).describe(\"User properties including location, activity, and custom data.\").optional(),\n subscriptions: z.array(z.object({\n id: z.string().describe(\"Subscription ID\").optional(),\n sdk: z.string().describe(\"SDK version used\").optional(),\n type: z.string().describe(\"Subscription type (e.g., 'AndroidPush', 'iOSPush', 'Email', 'SMS')\").optional(),\n token: z.string().describe(\"Push token or address for the subscription\").optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted/jailbroken\").optional(),\n carrier: z.string().describe(\"Mobile carrier\").optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled\").optional(),\n net_type: z.number().int().describe(\"Network type\").optional(),\n web_auth: z.string().describe(\"Web push auth key\").optional(),\n web_p256: z.string().describe(\"Web push p256 key\").optional(),\n device_os: z.string().describe(\"Operating system version\").optional(),\n test_type: z.number().int().describe(\"Test type (1 for development, 2 for ad-hoc)\").optional(),\n app_version: z.string().describe(\"Version of the app\").optional(),\n device_model: z.string().describe(\"Device model\").optional(),\n session_time: z.number().int().describe(\"Total session time in seconds\").optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state\").optional(),\n}).describe(\"Subscription object representing a device or channel subscribed to notifications.\")).describe(\"List of subscriptions (devices/channels) owned by the user\").optional(),\n subscription_options: z.object({\n retain_previous_owner: z.boolean().describe(\"Whether to retain the previous owner when transferring subscriptions\").optional(),\n}).describe(\"Options for subscription management.\").optional(),\n}).describe(\"Request model for creating a OneSignal user with optional subscriptions and aliases.\");\nexport const OnesignalRestApiCreateUserOutput: z.ZodTypeAny = z.object({\n identity: z.object({}).describe(\"Identity information of the created user\").nullable().optional(),\n properties: z.object({}).describe(\"Properties of the created user\").nullable().optional(),\n subscriptions: z.array(z.object({})).describe(\"Subscriptions associated with the created user\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a OneSignal user.\");\n\nexport const onesignalRestApiCreateUser = action(\"ONESIGNAL_REST_API_CREATE_USER\", {\n slug: \"onesignal_rest_api-create-user\",\n name: \"Create User\",\n description: \"Tool to create a OneSignal user with optional subscriptions and aliases. Aliases provided in the payload will be used to look up an existing user.\",\n input: OnesignalRestApiCreateUserInput,\n output: OnesignalRestApiCreateUserOutput,\n});\n"],"mappings":";;AAoDA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApD2D,EAAE,OAAO;EACpE,QAAQ,EAAE,OAAO,CAAC,CAA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,SAAS;EAC1F,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAChL,sBAAsB,EAAE,OAAO,EAC/B,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,EAC/H,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7D,CAAC,CAAC,CAAC,SAAS,sFAWH;CACP,QAX4D,EAAE,OAAO;EACrE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-user.mjs","names":[],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateUserInput = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n identity: z.object({\n external_id: z.string().describe(\"External user ID for identifying the user across platforms\").optional(),\n onesignal_id: z.string().describe(\"OneSignal user ID for existing users\").optional(),\n}).passthrough().describe(\"Identity object for user identification. Aliases provided will be used to look up an existing user.\").optional(),\n properties: z.object({\n ip: z.string().describe(\"IP address of the user\").optional(),\n lat: z.number().describe(\"Latitude coordinate of the user's location\").optional(),\n long: z.number().describe(\"Longitude coordinate of the user's location\").optional(),\n tags: z.object({}).describe(\"Custom key/value tags associated with the user\").optional(),\n country: z.string().describe(\"Country code (e.g., 'US')\").optional(),\n language: z.string().describe(\"Language code of the user (e.g., 'en')\").optional(),\n purchases: z.array(z.object({})).describe(\"List of purchase records for the user\").optional(),\n last_active: z.number().int().describe(\"UNIX timestamp of when the user was last active\").optional(),\n timezone_id: z.string().describe(\"Timezone identifier (e.g., 'America/New_York')\").optional(),\n amount_spent: z.number().describe(\"Total amount spent by the user\").optional(),\n first_active: z.number().int().describe(\"UNIX timestamp of when the user was first active\").optional(),\n}).describe(\"User properties including location, activity, and custom data.\").optional(),\n subscriptions: z.array(z.object({\n id: z.string().describe(\"Subscription ID\").optional(),\n sdk: z.string().describe(\"SDK version used\").optional(),\n type: z.string().describe(\"Subscription type (e.g., 'AndroidPush', 'iOSPush', 'Email', 'SMS')\").optional(),\n token: z.string().describe(\"Push token or address for the subscription\").optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted/jailbroken\").optional(),\n carrier: z.string().describe(\"Mobile carrier\").optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled\").optional(),\n net_type: z.number().int().describe(\"Network type\").optional(),\n web_auth: z.string().describe(\"Web push auth key\").optional(),\n web_p256: z.string().describe(\"Web push p256 key\").optional(),\n device_os: z.string().describe(\"Operating system version\").optional(),\n test_type: z.number().int().describe(\"Test type (1 for development, 2 for ad-hoc)\").optional(),\n app_version: z.string().describe(\"Version of the app\").optional(),\n device_model: z.string().describe(\"Device model\").optional(),\n session_time: z.number().int().describe(\"Total session time in seconds\").optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state\").optional(),\n}).describe(\"Subscription object representing a device or channel subscribed to notifications.\")).describe(\"List of subscriptions (devices/channels) owned by the user\").optional(),\n subscription_options: z.object({\n retain_previous_owner: z.boolean().describe(\"Whether to retain the previous owner when transferring subscriptions\").optional(),\n}).describe(\"Options for subscription management.\").optional(),\n}).describe(\"Request model for creating a OneSignal user with optional subscriptions and aliases.\");\nexport const OnesignalRestApiCreateUserOutput = z.object({\n identity: z.object({}).describe(\"Identity information of the created user\").nullable().optional(),\n properties: z.object({}).describe(\"Properties of the created user\").nullable().optional(),\n subscriptions: z.array(z.object({})).describe(\"Subscriptions associated with the created user\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a OneSignal user.\");\n\nexport const onesignalRestApiCreateUser = action(\"ONESIGNAL_REST_API_CREATE_USER\", {\n slug: \"onesignal_rest_api-create-user\",\n name: \"Create User\",\n description: \"Tool to create a OneSignal user with optional subscriptions and aliases. Aliases provided in the payload will be used to look up an existing user.\",\n input: OnesignalRestApiCreateUserInput,\n output: OnesignalRestApiCreateUserOutput,\n});\n"],"mappings":";;AAoDA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApD6C,EAAE,OAAO;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACnD,UAAU,EAAE,OAAO;GACnB,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;GACxG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EACxI,YAAY,EAAE,OAAO;GACrB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;GAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;GAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;GAClF,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;GACvF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;GACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;GACjF,WAAW,EAAE,MAAM,EAAE,O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ete-alias.cjs","names":["z","action"],"sources":["../../src/actions/delete-alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiDeleteAliasInput: z.ZodTypeAny = z.object({\n app_id: z.string().describe(\"The OneSignal App ID\"),\n alias_id: z.string().describe(\"The value of the alias to identify the user\"),\n alias_label: z.string().describe(\"The alias label to identify the user (e.g., 'external_id', 'email')\"),\n alias_label_to_delete: z.string().describe(\"The alias label to delete from the user's identity (e.g., 'email', 'phone_number')\"),\n}).describe(\"Parameters for deleting an alias by alias label from a OneSignal user.\");\nexport const OnesignalRestApiDeleteAliasOutput: z.ZodTypeAny = z.object({\n identity: z.object({}).describe(\"The remaining identity information after deleting the alias\").nullable().optional(),\n}).describe(\"Response from OneSignal when deleting an alias.\");\n\nexport const onesignalRestApiDeleteAlias = action(\"ONESIGNAL_REST_API_DELETE_ALIAS\", {\n slug: \"onesignal_rest_api-delete-alias\",\n name: \"Delete Alias\",\n description: \"Tool to delete an alias by alias label from a OneSignal user. Use when you need to remove a specific alias identity from a user's profile.\",\n input: OnesignalRestApiDeleteAliasInput,\n output: OnesignalRestApiDeleteAliasOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAClD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACtG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;AACjI,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrH,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-alias.cjs","names":["z","action"],"sources":["../../src/actions/delete-alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiDeleteAliasInput = z.object({\n app_id: z.string().describe(\"The OneSignal App ID\"),\n alias_id: z.string().describe(\"The value of the alias to identify the user\"),\n alias_label: z.string().describe(\"The alias label to identify the user (e.g., 'external_id', 'email')\"),\n alias_label_to_delete: z.string().describe(\"The alias label to delete from the user's identity (e.g., 'email', 'phone_number')\"),\n}).describe(\"Parameters for deleting an alias by alias label from a OneSignal user.\");\nexport const OnesignalRestApiDeleteAliasOutput = z.object({\n identity: z.object({}).describe(\"The remaining identity information after deleting the alias\").nullable().optional(),\n}).describe(\"Response from OneSignal when deleting an alias.\");\n\nexport const onesignalRestApiDeleteAlias = action(\"ONESIGNAL_REST_API_DELETE_ALIAS\", {\n slug: \"onesignal_rest_api-delete-alias\",\n name: \"Delete Alias\",\n description: \"Tool to delete an alias by alias label from a OneSignal user. Use when you need to remove a specific alias identity from a user's profile.\",\n input: OnesignalRestApiDeleteAliasInput,\n output: OnesignalRestApiDeleteAliasOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAClD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACtG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;AACjI,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrH,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-alias.d.ts
4
- declare const OnesignalRestApiDeleteAliasInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiDeleteAliasOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiDeleteAlias: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiDeleteAliasInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ alias_id: z.ZodString;
7
+ alias_label: z.ZodString;
8
+ alias_label_to_delete: z.ZodString;
9
+ }, z.core.$strip>;
10
+ declare const OnesignalRestApiDeleteAliasOutput: z.ZodObject<{
11
+ identity: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
12
+ }, z.core.$strip>;
13
+ declare const onesignalRestApiDeleteAlias: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ app_id: string;
15
+ alias_id: string;
16
+ alias_label: string;
17
+ alias_label_to_delete: string;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { onesignalRestApiDeleteAlias };
9
21
  //# sourceMappingURL=delete-alias.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-alias.d.cts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAKoC;AAAA,cACxE,iCAAA,EAAmC,CAAA,CAAE,UAEY;AAAA,cAEjD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-alias.d.cts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAMhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-alias.d.ts
4
- declare const OnesignalRestApiDeleteAliasInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiDeleteAliasOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiDeleteAlias: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiDeleteAliasInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ alias_id: z.ZodString;
7
+ alias_label: z.ZodString;
8
+ alias_label_to_delete: z.ZodString;
9
+ }, z.core.$strip>;
10
+ declare const OnesignalRestApiDeleteAliasOutput: z.ZodObject<{
11
+ identity: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
12
+ }, z.core.$strip>;
13
+ declare const onesignalRestApiDeleteAlias: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ app_id: string;
15
+ alias_id: string;
16
+ alias_label: string;
17
+ alias_label_to_delete: string;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { onesignalRestApiDeleteAlias };
9
21
  //# sourceMappingURL=delete-alias.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-alias.d.mts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAKoC;AAAA,cACxE,iCAAA,EAAmC,CAAA,CAAE,UAEY;AAAA,cAEjD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-alias.d.mts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAMhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"delete-alias.mjs","names":[],"sources":["../../src/actions/delete-alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiDeleteAliasInput: z.ZodTypeAny = z.object({\n app_id: z.string().describe(\"The OneSignal App ID\"),\n alias_id: z.string().describe(\"The value of the alias to identify the user\"),\n alias_label: z.string().describe(\"The alias label to identify the user (e.g., 'external_id', 'email')\"),\n alias_label_to_delete: z.string().describe(\"The alias label to delete from the user's identity (e.g., 'email', 'phone_number')\"),\n}).describe(\"Parameters for deleting an alias by alias label from a OneSignal user.\");\nexport const OnesignalRestApiDeleteAliasOutput: z.ZodTypeAny = z.object({\n identity: z.object({}).describe(\"The remaining identity information after deleting the alias\").nullable().optional(),\n}).describe(\"Response from OneSignal when deleting an alias.\");\n\nexport const onesignalRestApiDeleteAlias = action(\"ONESIGNAL_REST_API_DELETE_ALIAS\", {\n slug: \"onesignal_rest_api-delete-alias\",\n name: \"Delete Alias\",\n description: \"Tool to delete an alias by alias label from a OneSignal user. Use when you need to remove a specific alias identity from a user's profile.\",\n input: OnesignalRestApiDeleteAliasInput,\n output: OnesignalRestApiDeleteAliasOutput,\n});\n"],"mappings":";;AAcA,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd4D,EAAE,OAAO;EACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;EACtG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;CACjI,CAAC,CAAC,CAAC,SAAS,wEASH;CACP,QAT6D,EAAE,OAAO,EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrH,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-alias.mjs","names":[],"sources":["../../src/actions/delete-alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiDeleteAliasInput = z.object({\n app_id: z.string().describe(\"The OneSignal App ID\"),\n alias_id: z.string().describe(\"The value of the alias to identify the user\"),\n alias_label: z.string().describe(\"The alias label to identify the user (e.g., 'external_id', 'email')\"),\n alias_label_to_delete: z.string().describe(\"The alias label to delete from the user's identity (e.g., 'email', 'phone_number')\"),\n}).describe(\"Parameters for deleting an alias by alias label from a OneSignal user.\");\nexport const OnesignalRestApiDeleteAliasOutput = z.object({\n identity: z.object({}).describe(\"The remaining identity information after deleting the alias\").nullable().optional(),\n}).describe(\"Response from OneSignal when deleting an alias.\");\n\nexport const onesignalRestApiDeleteAlias = action(\"ONESIGNAL_REST_API_DELETE_ALIAS\", {\n slug: \"onesignal_rest_api-delete-alias\",\n name: \"Delete Alias\",\n description: \"Tool to delete an alias by alias label from a OneSignal user. Use when you need to remove a specific alias identity from a user's profile.\",\n input: OnesignalRestApiDeleteAliasInput,\n output: OnesignalRestApiDeleteAliasOutput,\n});\n"],"mappings":";;AAcA,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd8C,EAAE,OAAO;EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;EACtG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;CACjI,CAAC,CAAC,CAAC,SAAS,wEASH;CACP,QAT+C,EAAE,OAAO,EACxD,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrH,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
@@ -8,7 +8,7 @@ const OnesignalRestApiDeleteDeviceInput = zod.z.object({
8
8
  const OnesignalRestApiDeleteDeviceOutput = zod.z.object({
9
9
  id: zod.z.string().describe("The ID of the deleted player if successful").nullable().optional(),
10
10
  errors: zod.z.array(zod.z.string()).describe("List of errors if deletion fails").nullable().optional(),
11
- success: zod.z.boolean().describe("Indicates whether the delete was successful")
11
+ success: zod.z.boolean().describe("Indicates whether the delete was successful").nullable()
12
12
  }).describe("Response from OneSignal when deleting a device (player).");
13
13
  const onesignalRestApiDeleteDevice = require_action.action("ONESIGNAL_REST_API_DELETE_DEVICE", {
14
14
  slug: "onesignal_rest_api-delete-device",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-device.cjs","names":["z","action"],"sources":["../../src/actions/delete-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiDeleteDeviceInput: z.ZodTypeAny = z.object({\n app_id: z.string().describe(\"The OneSignal App ID\"),\n player_id: z.string().describe(\"The OneSignal Player (Device) ID to delete\"),\n}).describe(\"Parameters for deleting a OneSignal device (player).\");\nexport const OnesignalRestApiDeleteDeviceOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the deleted player if successful\").nullable().optional(),\n errors: z.array(z.string()).describe(\"List of errors if deletion fails\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the delete was successful\"),\n}).describe(\"Response from OneSignal when deleting a device (player).\");\n\nexport const onesignalRestApiDeleteDevice = action(\"ONESIGNAL_REST_API_DELETE_DEVICE\", {\n slug: \"onesignal_rest_api-delete-device\",\n name: \"Delete Device\",\n description: \"Tool to delete a device (player) from a OneSignal app. Use when you need to remove a specific device by its player ID.\",\n input: OnesignalRestApiDeleteDeviceInput,\n output: OnesignalRestApiDeleteDeviceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAClD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAC7E,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C;AAC7E,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-device.cjs","names":["z","action"],"sources":["../../src/actions/delete-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiDeleteDeviceInput = z.object({\n app_id: z.string().describe(\"The OneSignal App ID\"),\n player_id: z.string().describe(\"The OneSignal Player (Device) ID to delete\"),\n}).describe(\"Parameters for deleting a OneSignal device (player).\");\nexport const OnesignalRestApiDeleteDeviceOutput = z.object({\n id: z.string().describe(\"The ID of the deleted player if successful\").nullable().optional(),\n errors: z.array(z.string()).describe(\"List of errors if deletion fails\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the delete was successful\").nullable(),\n}).describe(\"Response from OneSignal when deleting a device (player).\");\n\nexport const onesignalRestApiDeleteDevice = action(\"ONESIGNAL_REST_API_DELETE_DEVICE\", {\n slug: \"onesignal_rest_api-delete-device\",\n name: \"Delete Device\",\n description: \"Tool to delete a device (player) from a OneSignal app. Use when you need to remove a specific device by its player ID.\",\n input: OnesignalRestApiDeleteDeviceInput,\n output: OnesignalRestApiDeleteDeviceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAClD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAC7E,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-device.d.ts
4
- declare const OnesignalRestApiDeleteDeviceInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiDeleteDeviceOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiDeleteDevice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiDeleteDeviceInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ player_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const OnesignalRestApiDeleteDeviceOutput: z.ZodObject<{
9
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
11
+ success: z.ZodNullable<z.ZodBoolean>;
12
+ }, z.core.$strip>;
13
+ declare const onesignalRestApiDeleteDevice: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ app_id: string;
15
+ player_id: string;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { onesignalRestApiDeleteDevice };
9
19
  //# sourceMappingURL=delete-device.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-device.d.cts","names":[],"sources":["../../src/actions/delete-device.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAGiB;AAAA,cACtD,kCAAA,EAAoC,CAAA,CAAE,UAIoB;AAAA,cAE1D,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-device.d.cts","names":[],"sources":["../../src/actions/delete-device.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAIjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-device.d.ts
4
- declare const OnesignalRestApiDeleteDeviceInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiDeleteDeviceOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiDeleteDevice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiDeleteDeviceInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ player_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const OnesignalRestApiDeleteDeviceOutput: z.ZodObject<{
9
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
11
+ success: z.ZodNullable<z.ZodBoolean>;
12
+ }, z.core.$strip>;
13
+ declare const onesignalRestApiDeleteDevice: import("@keystrokehq/action").WorkflowActionDefinition<{
14
+ app_id: string;
15
+ player_id: string;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { onesignalRestApiDeleteDevice };
9
19
  //# sourceMappingURL=delete-device.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-device.d.mts","names":[],"sources":["../../src/actions/delete-device.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAGiB;AAAA,cACtD,kCAAA,EAAoC,CAAA,CAAE,UAIoB;AAAA,cAE1D,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-device.d.mts","names":[],"sources":["../../src/actions/delete-device.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAIjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
@@ -11,7 +11,7 @@ const onesignalRestApiDeleteDevice = action("ONESIGNAL_REST_API_DELETE_DEVICE",
11
11
  output: z.object({
12
12
  id: z.string().describe("The ID of the deleted player if successful").nullable().optional(),
13
13
  errors: z.array(z.string()).describe("List of errors if deletion fails").nullable().optional(),
14
- success: z.boolean().describe("Indicates whether the delete was successful")
14
+ success: z.boolean().describe("Indicates whether the delete was successful").nullable()
15
15
  }).describe("Response from OneSignal when deleting a device (player).")
16
16
  });
17
17
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"delete-device.mjs","names":[],"sources":["../../src/actions/delete-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiDeleteDeviceInput: z.ZodTypeAny = z.object({\n app_id: z.string().describe(\"The OneSignal App ID\"),\n player_id: z.string().describe(\"The OneSignal Player (Device) ID to delete\"),\n}).describe(\"Parameters for deleting a OneSignal device (player).\");\nexport const OnesignalRestApiDeleteDeviceOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the deleted player if successful\").nullable().optional(),\n errors: z.array(z.string()).describe(\"List of errors if deletion fails\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the delete was successful\"),\n}).describe(\"Response from OneSignal when deleting a device (player).\");\n\nexport const onesignalRestApiDeleteDevice = action(\"ONESIGNAL_REST_API_DELETE_DEVICE\", {\n slug: \"onesignal_rest_api-delete-device\",\n name: \"Delete Device\",\n description: \"Tool to delete a device (player) from a OneSignal app. Use when you need to remove a specific device by its player ID.\",\n input: OnesignalRestApiDeleteDeviceInput,\n output: OnesignalRestApiDeleteDeviceOutput,\n});\n"],"mappings":";;AAcA,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd6D,EAAE,OAAO;EACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC7E,CAAC,CAAC,CAAC,SAAS,sDAWH;CACP,QAX8D,EAAE,OAAO;EACvE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C;CAC7E,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-device.mjs","names":[],"sources":["../../src/actions/delete-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiDeleteDeviceInput = z.object({\n app_id: z.string().describe(\"The OneSignal App ID\"),\n player_id: z.string().describe(\"The OneSignal Player (Device) ID to delete\"),\n}).describe(\"Parameters for deleting a OneSignal device (player).\");\nexport const OnesignalRestApiDeleteDeviceOutput = z.object({\n id: z.string().describe(\"The ID of the deleted player if successful\").nullable().optional(),\n errors: z.array(z.string()).describe(\"List of errors if deletion fails\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the delete was successful\").nullable(),\n}).describe(\"Response from OneSignal when deleting a device (player).\");\n\nexport const onesignalRestApiDeleteDevice = action(\"ONESIGNAL_REST_API_DELETE_DEVICE\", {\n slug: \"onesignal_rest_api-delete-device\",\n name: \"Delete Device\",\n description: \"Tool to delete a device (player) from a OneSignal app. Use when you need to remove a specific device by its player ID.\",\n input: OnesignalRestApiDeleteDeviceInput,\n output: OnesignalRestApiDeleteDeviceOutput,\n});\n"],"mappings":";;AAcA,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd+C,EAAE,OAAO;EACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC7E,CAAC,CAAC,CAAC,SAAS,sDAWH;CACP,QAXgD,EAAE,OAAO;EACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-user-identity.cjs","names":["z","action"],"sources":["../../src/actions/fetch-user-identity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiFetchUserIdentityInput: z.ZodTypeAny = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n alias_id: z.string().describe(\"The alias value/ID to identify the user (e.g., 'test-user-123', 'user@example.com').\"),\n alias_label: z.string().describe(\"The alias label to identify the user (e.g., 'external_id', 'email', 'phone_number').\"),\n}).describe(\"Request model for fetching user identity (all aliases) by a specific alias.\");\nexport const OnesignalRestApiFetchUserIdentityOutput: z.ZodTypeAny = z.object({\n identity: z.object({}).describe(\"Dictionary mapping alias labels to alias values (string) or lists of alias values for the user.\"),\n}).passthrough().describe(\"Response model for fetching user identity containing all user aliases.\");\n\nexport const onesignalRestApiFetchUserIdentity = action(\"ONESIGNAL_REST_API_FETCH_USER_IDENTITY\", {\n slug: \"onesignal_rest_api-fetch-user-identity\",\n name: \"Fetch User Identity\",\n description: \"Tool to retrieve all aliases for a user identified by a specific alias. Use when you need to fetch the complete identity mapping for a OneSignal user.\",\n input: OnesignalRestApiFetchUserIdentityInput,\n output: OnesignalRestApiFetchUserIdentityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuDA,IAAAA,EAAE,OAAO;CAC3E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACpH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;AACzH,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAa,0CAAwDA,IAAAA,EAAE,OAAO,EAC5E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iGAAiG,EACnI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAElG,MAAa,oCAAoCC,eAAAA,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-user-identity.cjs","names":["z","action"],"sources":["../../src/actions/fetch-user-identity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiFetchUserIdentityInput = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n alias_id: z.string().describe(\"The alias value/ID to identify the user (e.g., 'test-user-123', 'user@example.com').\"),\n alias_label: z.string().describe(\"The alias label to identify the user (e.g., 'external_id', 'email', 'phone_number').\"),\n}).describe(\"Request model for fetching user identity (all aliases) by a specific alias.\");\nexport const OnesignalRestApiFetchUserIdentityOutput = z.object({\n identity: z.object({}).describe(\"Dictionary mapping alias labels to alias values (string) or lists of alias values for the user.\"),\n}).passthrough().describe(\"Response model for fetching user identity containing all user aliases.\");\n\nexport const onesignalRestApiFetchUserIdentity = action(\"ONESIGNAL_REST_API_FETCH_USER_IDENTITY\", {\n slug: \"onesignal_rest_api-fetch-user-identity\",\n name: \"Fetch User Identity\",\n description: \"Tool to retrieve all aliases for a user identified by a specific alias. Use when you need to fetch the complete identity mapping for a OneSignal user.\",\n input: OnesignalRestApiFetchUserIdentityInput,\n output: OnesignalRestApiFetchUserIdentityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACpH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;AACzH,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iGAAiG,EACnI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAElG,MAAa,oCAAoCC,eAAAA,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-user-identity.d.ts
4
- declare const OnesignalRestApiFetchUserIdentityInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiFetchUserIdentityOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiFetchUserIdentity: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiFetchUserIdentityInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ alias_id: z.ZodString;
7
+ alias_label: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const OnesignalRestApiFetchUserIdentityOutput: z.ZodObject<{
10
+ identity: z.ZodObject<{}, z.core.$strip>;
11
+ }, z.core.$loose>;
12
+ declare const onesignalRestApiFetchUserIdentity: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ app_id: string;
14
+ alias_id: string;
15
+ alias_label: string;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { onesignalRestApiFetchUserIdentity };
9
19
  //# sourceMappingURL=fetch-user-identity.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-user-identity.d.cts","names":[],"sources":["../../src/actions/fetch-user-identity.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAImC;AAAA,cAC7E,uCAAA,EAAyC,CAAA,CAAE,UAE2C;AAAA,cAEtF,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-user-identity.d.cts","names":[],"sources":["../../src/actions/fetch-user-identity.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;cAKtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAIvC,iCAAA,gCAAiC,wBAAA"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-user-identity.d.ts
4
- declare const OnesignalRestApiFetchUserIdentityInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiFetchUserIdentityOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiFetchUserIdentity: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiFetchUserIdentityInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ alias_id: z.ZodString;
7
+ alias_label: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const OnesignalRestApiFetchUserIdentityOutput: z.ZodObject<{
10
+ identity: z.ZodObject<{}, z.core.$strip>;
11
+ }, z.core.$loose>;
12
+ declare const onesignalRestApiFetchUserIdentity: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ app_id: string;
14
+ alias_id: string;
15
+ alias_label: string;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { onesignalRestApiFetchUserIdentity };
9
19
  //# sourceMappingURL=fetch-user-identity.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-user-identity.d.mts","names":[],"sources":["../../src/actions/fetch-user-identity.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAImC;AAAA,cAC7E,uCAAA,EAAyC,CAAA,CAAE,UAE2C;AAAA,cAEtF,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-user-identity.d.mts","names":[],"sources":["../../src/actions/fetch-user-identity.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;cAKtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAIvC,iCAAA,gCAAiC,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-user-identity.mjs","names":[],"sources":["../../src/actions/fetch-user-identity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiFetchUserIdentityInput: z.ZodTypeAny = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n alias_id: z.string().describe(\"The alias value/ID to identify the user (e.g., 'test-user-123', 'user@example.com').\"),\n alias_label: z.string().describe(\"The alias label to identify the user (e.g., 'external_id', 'email', 'phone_number').\"),\n}).describe(\"Request model for fetching user identity (all aliases) by a specific alias.\");\nexport const OnesignalRestApiFetchUserIdentityOutput: z.ZodTypeAny = z.object({\n identity: z.object({}).describe(\"Dictionary mapping alias labels to alias values (string) or lists of alias values for the user.\"),\n}).passthrough().describe(\"Response model for fetching user identity containing all user aliases.\");\n\nexport const onesignalRestApiFetchUserIdentity = action(\"ONESIGNAL_REST_API_FETCH_USER_IDENTITY\", {\n slug: \"onesignal_rest_api-fetch-user-identity\",\n name: \"Fetch User Identity\",\n description: \"Tool to retrieve all aliases for a user identified by a specific alias. Use when you need to fetch the complete identity mapping for a OneSignal user.\",\n input: OnesignalRestApiFetchUserIdentityInput,\n output: OnesignalRestApiFetchUserIdentityOutput,\n});\n"],"mappings":";;AAaA,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbkE,EAAE,OAAO;EAC3E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACpD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;EACpH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACzH,CAAC,CAAC,CAAC,SAAS,6EASH;CACP,QATmE,EAAE,OAAO,EAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iGAAiG,EACnI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-user-identity.mjs","names":[],"sources":["../../src/actions/fetch-user-identity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiFetchUserIdentityInput = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n alias_id: z.string().describe(\"The alias value/ID to identify the user (e.g., 'test-user-123', 'user@example.com').\"),\n alias_label: z.string().describe(\"The alias label to identify the user (e.g., 'external_id', 'email', 'phone_number').\"),\n}).describe(\"Request model for fetching user identity (all aliases) by a specific alias.\");\nexport const OnesignalRestApiFetchUserIdentityOutput = z.object({\n identity: z.object({}).describe(\"Dictionary mapping alias labels to alias values (string) or lists of alias values for the user.\"),\n}).passthrough().describe(\"Response model for fetching user identity containing all user aliases.\");\n\nexport const onesignalRestApiFetchUserIdentity = action(\"ONESIGNAL_REST_API_FETCH_USER_IDENTITY\", {\n slug: \"onesignal_rest_api-fetch-user-identity\",\n name: \"Fetch User Identity\",\n description: \"Tool to retrieve all aliases for a user identified by a specific alias. Use when you need to fetch the complete identity mapping for a OneSignal user.\",\n input: OnesignalRestApiFetchUserIdentityInput,\n output: OnesignalRestApiFetchUserIdentityOutput,\n});\n"],"mappings":";;AAaA,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAboD,EAAE,OAAO;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACpD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;EACpH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACzH,CAAC,CAAC,CAAC,SAAS,6EASH;CACP,QATqD,EAAE,OAAO,EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iGAAiG,EACnI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAOhB;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-eligible-iams.cjs","names":["z","action"],"sources":["../../src/actions/get-eligible-iams.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiGetEligibleIamsInput: z.ZodTypeAny = z.object({\n app_id: z.string().describe(\"Unique identifier for the OneSignal app.\"),\n subscription_id: z.string().describe(\"Unique identifier for the subscription (device/player).\"),\n}).describe(\"Request model for retrieving In-App Messages a subscription is eligible to display.\");\nconst OnesignalRestApiGetEligibleIams_InAppMessageSchema: z.ZodTypeAny = z.record(z.string(), z.unknown()).describe(\"Model representing an In-App Message in the response.\");\nexport const OnesignalRestApiGetEligibleIamsOutput: z.ZodTypeAny = z.object({\n in_app_messages: z.array(OnesignalRestApiGetEligibleIams_InAppMessageSchema).describe(\"List of In-App Messages the subscription is eligible to display.\"),\n}).passthrough().describe(\"Response model for retrieving eligible In-App Messages.\");\n\nexport const onesignalRestApiGetEligibleIams = action(\"ONESIGNAL_REST_API_GET_ELIGIBLE_IAMS\", {\n slug: \"onesignal_rest_api-get-eligible-iams\",\n name: \"Get Eligible In-App Messages\",\n description: \"Tool to retrieve the manifest of In-App Messages that a subscription is eligible to display. Use when you need to fetch eligible IAMs for a specific subscription.\",\n input: OnesignalRestApiGetEligibleIamsInput,\n output: OnesignalRestApiGetEligibleIamsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACtE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAChG,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,qDAAmEA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAC3K,MAAa,wCAAsDA,IAAAA,EAAE,OAAO,EAC1E,iBAAiBA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,kEAAkE,EAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,kCAAkCC,eAAAA,OAAO,wCAAwC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-eligible-iams.cjs","names":["z","action"],"sources":["../../src/actions/get-eligible-iams.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiGetEligibleIamsInput = z.object({\n app_id: z.string().describe(\"Unique identifier for the OneSignal app.\"),\n subscription_id: z.string().describe(\"Unique identifier for the subscription (device/player).\"),\n}).describe(\"Request model for retrieving In-App Messages a subscription is eligible to display.\");\nconst OnesignalRestApiGetEligibleIams_InAppMessageSchema = z.record(z.string(), z.unknown()).describe(\"Model representing an In-App Message in the response.\");\nexport const OnesignalRestApiGetEligibleIamsOutput = z.object({\n in_app_messages: z.array(OnesignalRestApiGetEligibleIams_InAppMessageSchema).describe(\"List of In-App Messages the subscription is eligible to display.\"),\n}).passthrough().describe(\"Response model for retrieving eligible In-App Messages.\");\n\nexport const onesignalRestApiGetEligibleIams = action(\"ONESIGNAL_REST_API_GET_ELIGIBLE_IAMS\", {\n slug: \"onesignal_rest_api-get-eligible-iams\",\n name: \"Get Eligible In-App Messages\",\n description: \"Tool to retrieve the manifest of In-App Messages that a subscription is eligible to display. Use when you need to fetch eligible IAMs for a specific subscription.\",\n input: OnesignalRestApiGetEligibleIamsInput,\n output: OnesignalRestApiGetEligibleIamsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACtE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAChG,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,qDAAqDA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAC7J,MAAa,wCAAwCA,IAAAA,EAAE,OAAO,EAC5D,iBAAiBA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,kEAAkE,EAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,kCAAkCC,eAAAA,OAAO,wCAAwC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,17 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-eligible-iams.d.ts
4
- declare const OnesignalRestApiGetEligibleIamsInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiGetEligibleIamsOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiGetEligibleIams: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiGetEligibleIamsInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ subscription_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const OnesignalRestApiGetEligibleIamsOutput: z.ZodObject<{
9
+ in_app_messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10
+ }, z.core.$loose>;
11
+ declare const onesignalRestApiGetEligibleIams: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ app_id: string;
13
+ subscription_id: string;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
15
  //#endregion
8
16
  export { onesignalRestApiGetEligibleIams };
9
17
  //# sourceMappingURL=get-eligible-iams.d.cts.map