@keystrokehq/onesignal_rest_api 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) 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 +1 -1
  4. package/dist/actions/begin-live-activity.cjs.map +1 -1
  5. package/dist/actions/begin-live-activity.d.cts +15 -3
  6. package/dist/actions/begin-live-activity.d.cts.map +1 -1
  7. package/dist/actions/begin-live-activity.d.mts +15 -3
  8. package/dist/actions/begin-live-activity.d.mts.map +1 -1
  9. package/dist/actions/begin-live-activity.mjs +1 -1
  10. package/dist/actions/begin-live-activity.mjs.map +1 -1
  11. package/dist/actions/create-notification.cjs +4 -4
  12. package/dist/actions/create-notification.cjs.map +1 -1
  13. package/dist/actions/create-notification.d.cts +51 -3
  14. package/dist/actions/create-notification.d.cts.map +1 -1
  15. package/dist/actions/create-notification.d.mts +51 -3
  16. package/dist/actions/create-notification.d.mts.map +1 -1
  17. package/dist/actions/create-notification.mjs +4 -4
  18. package/dist/actions/create-notification.mjs.map +1 -1
  19. package/dist/actions/create-template.cjs +6 -6
  20. package/dist/actions/create-template.cjs.map +1 -1
  21. package/dist/actions/create-template.d.cts +71 -3
  22. package/dist/actions/create-template.d.cts.map +1 -1
  23. package/dist/actions/create-template.d.mts +71 -3
  24. package/dist/actions/create-template.d.mts.map +1 -1
  25. package/dist/actions/create-template.mjs +6 -6
  26. package/dist/actions/create-template.mjs.map +1 -1
  27. package/dist/actions/create-user.cjs +6 -6
  28. package/dist/actions/create-user.cjs.map +1 -1
  29. package/dist/actions/create-user.d.cts +91 -3
  30. package/dist/actions/create-user.d.cts.map +1 -1
  31. package/dist/actions/create-user.d.mts +91 -3
  32. package/dist/actions/create-user.d.mts.map +1 -1
  33. package/dist/actions/create-user.mjs +6 -6
  34. package/dist/actions/create-user.mjs.map +1 -1
  35. package/dist/actions/delete-alias.cjs +1 -1
  36. package/dist/actions/delete-alias.cjs.map +1 -1
  37. package/dist/actions/delete-alias.d.cts +15 -3
  38. package/dist/actions/delete-alias.d.cts.map +1 -1
  39. package/dist/actions/delete-alias.d.mts +15 -3
  40. package/dist/actions/delete-alias.d.mts.map +1 -1
  41. package/dist/actions/delete-alias.mjs +1 -1
  42. package/dist/actions/delete-alias.mjs.map +1 -1
  43. package/dist/actions/delete-device.cjs +2 -2
  44. package/dist/actions/delete-device.cjs.map +1 -1
  45. package/dist/actions/delete-device.d.cts +13 -3
  46. package/dist/actions/delete-device.d.cts.map +1 -1
  47. package/dist/actions/delete-device.d.mts +13 -3
  48. package/dist/actions/delete-device.d.mts.map +1 -1
  49. package/dist/actions/delete-device.mjs +2 -2
  50. package/dist/actions/delete-device.mjs.map +1 -1
  51. package/dist/actions/fetch-user-identity.cjs +1 -1
  52. package/dist/actions/fetch-user-identity.cjs.map +1 -1
  53. package/dist/actions/fetch-user-identity.d.cts +13 -3
  54. package/dist/actions/fetch-user-identity.d.cts.map +1 -1
  55. package/dist/actions/fetch-user-identity.d.mts +13 -3
  56. package/dist/actions/fetch-user-identity.d.mts.map +1 -1
  57. package/dist/actions/fetch-user-identity.mjs +1 -1
  58. package/dist/actions/fetch-user-identity.mjs.map +1 -1
  59. package/dist/actions/get-eligible-iams.cjs.map +1 -1
  60. package/dist/actions/get-eligible-iams.d.cts +11 -3
  61. package/dist/actions/get-eligible-iams.d.cts.map +1 -1
  62. package/dist/actions/get-eligible-iams.d.mts +11 -3
  63. package/dist/actions/get-eligible-iams.d.mts.map +1 -1
  64. package/dist/actions/get-eligible-iams.mjs.map +1 -1
  65. package/dist/actions/update-device.cjs +2 -2
  66. package/dist/actions/update-device.cjs.map +1 -1
  67. package/dist/actions/update-device.d.cts +60 -3
  68. package/dist/actions/update-device.d.cts.map +1 -1
  69. package/dist/actions/update-device.d.mts +60 -3
  70. package/dist/actions/update-device.d.mts.map +1 -1
  71. package/dist/actions/update-device.mjs +2 -2
  72. package/dist/actions/update-device.mjs.map +1 -1
  73. package/dist/actions/update-subscription.cjs.map +1 -1
  74. package/dist/actions/update-subscription.d.cts +81 -3
  75. package/dist/actions/update-subscription.d.cts.map +1 -1
  76. package/dist/actions/update-subscription.d.mts +81 -3
  77. package/dist/actions/update-subscription.d.mts.map +1 -1
  78. package/dist/actions/update-subscription.mjs.map +1 -1
  79. package/dist/actions/view-an-app.cjs +6 -6
  80. package/dist/actions/view-an-app.cjs.map +1 -1
  81. package/dist/actions/view-an-app.d.cts +15 -3
  82. package/dist/actions/view-an-app.d.cts.map +1 -1
  83. package/dist/actions/view-an-app.d.mts +15 -3
  84. package/dist/actions/view-an-app.d.mts.map +1 -1
  85. package/dist/actions/view-an-app.mjs +6 -6
  86. package/dist/actions/view-an-app.mjs.map +1 -1
  87. package/dist/actions/view-device.cjs +8 -8
  88. package/dist/actions/view-device.cjs.map +1 -1
  89. package/dist/actions/view-device.d.cts +32 -3
  90. package/dist/actions/view-device.d.cts.map +1 -1
  91. package/dist/actions/view-device.d.mts +32 -3
  92. package/dist/actions/view-device.d.mts.map +1 -1
  93. package/dist/actions/view-device.mjs +8 -8
  94. package/dist/actions/view-device.mjs.map +1 -1
  95. package/dist/actions/view-devices.cjs +9 -9
  96. package/dist/actions/view-devices.cjs.map +1 -1
  97. package/dist/actions/view-devices.d.cts +49 -3
  98. package/dist/actions/view-devices.d.cts.map +1 -1
  99. package/dist/actions/view-devices.d.mts +49 -3
  100. package/dist/actions/view-devices.d.mts.map +1 -1
  101. package/dist/actions/view-devices.mjs +9 -9
  102. package/dist/actions/view-devices.mjs.map +1 -1
  103. package/dist/actions/view-notifications.cjs +8 -8
  104. package/dist/actions/view-notifications.cjs.map +1 -1
  105. package/dist/actions/view-notifications.d.cts +32 -3
  106. package/dist/actions/view-notifications.d.cts.map +1 -1
  107. package/dist/actions/view-notifications.d.mts +32 -3
  108. package/dist/actions/view-notifications.d.mts.map +1 -1
  109. package/dist/actions/view-notifications.mjs +8 -8
  110. package/dist/actions/view-notifications.mjs.map +1 -1
  111. package/dist/actions/view-segments.cjs +7 -7
  112. package/dist/actions/view-segments.cjs.map +1 -1
  113. package/dist/actions/view-segments.d.cts +27 -3
  114. package/dist/actions/view-segments.d.cts.map +1 -1
  115. package/dist/actions/view-segments.d.mts +27 -3
  116. package/dist/actions/view-segments.d.mts.map +1 -1
  117. package/dist/actions/view-segments.mjs +7 -7
  118. package/dist/actions/view-segments.mjs.map +1 -1
  119. package/dist/catalog.cjs +7 -1
  120. package/dist/catalog.cjs.map +1 -1
  121. package/dist/catalog.d.cts +8 -0
  122. package/dist/catalog.d.mts +8 -0
  123. package/dist/catalog.mjs +7 -1
  124. package/dist/catalog.mjs.map +1 -1
  125. package/package.json +2 -2
@@ -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.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12
+ }, z.core.$loose>;
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"}
@@ -10,7 +10,7 @@ const onesignalRestApiDeleteAlias = action("ONESIGNAL_REST_API_DELETE_ALIAS", {
10
10
  alias_label: z.string().describe("The alias label to identify the user (e.g., 'external_id', 'email')"),
11
11
  alias_label_to_delete: z.string().describe("The alias label to delete from the user's identity (e.g., 'email', 'phone_number')")
12
12
  }).describe("Parameters for deleting an alias by alias label from a OneSignal user."),
13
- output: z.object({ identity: z.object({}).describe("The remaining identity information after deleting the alias").nullable().optional() }).describe("Response from OneSignal when deleting an alias.")
13
+ output: z.object({ identity: z.record(z.string(), z.unknown()).describe("The remaining identity information after deleting the alias").nullable().optional() }).passthrough().describe("Response from OneSignal when deleting an alias.")
14
14
  });
15
15
  //#endregion
16
16
  export { onesignalRestApiDeleteAlias };
@@ -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.record(z.string(), z.unknown()).describe(\"The remaining identity information after deleting the alias\").nullable().optional(),\n}).passthrough().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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
@@ -8,8 +8,8 @@ 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")
12
- }).describe("Response from OneSignal when deleting a device (player).");
11
+ success: zod.z.boolean().describe("Indicates whether the delete was successful").nullable()
12
+ }).passthrough().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",
15
15
  name: "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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,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.$loose>;
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.$loose>;
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,8 +11,8 @@ 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")
15
- }).describe("Response from OneSignal when deleting a device (player).")
14
+ success: z.boolean().describe("Indicates whether the delete was successful").nullable()
15
+ }).passthrough().describe("Response from OneSignal when deleting a device (player).")
16
16
  });
17
17
  //#endregion
18
18
  export { onesignalRestApiDeleteDevice };
@@ -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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
@@ -6,7 +6,7 @@ const OnesignalRestApiFetchUserIdentityInput = zod.z.object({
6
6
  alias_id: zod.z.string().describe("The alias value/ID to identify the user (e.g., 'test-user-123', 'user@example.com')."),
7
7
  alias_label: zod.z.string().describe("The alias label to identify the user (e.g., 'external_id', 'email', 'phone_number').")
8
8
  }).describe("Request model for fetching user identity (all aliases) by a specific alias.");
9
- const OnesignalRestApiFetchUserIdentityOutput = zod.z.object({ identity: zod.z.object({}).describe("Dictionary mapping alias labels to alias values (string) or lists of alias values for the user.") }).passthrough().describe("Response model for fetching user identity containing all user aliases.");
9
+ const OnesignalRestApiFetchUserIdentityOutput = zod.z.object({ identity: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Dictionary mapping alias labels to alias values (string) or lists of alias values for the user.") }).passthrough().describe("Response model for fetching user identity containing all user aliases.");
10
10
  const onesignalRestApiFetchUserIdentity = require_action.action("ONESIGNAL_REST_API_FETCH_USER_IDENTITY", {
11
11
  slug: "onesignal_rest_api-fetch-user-identity",
12
12
  name: "Fetch User Identity",
@@ -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.record(z.string(), z.unknown()).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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iGAAiG,EACxJ,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.ZodRecord<z.ZodString, z.ZodUnknown>;
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.ZodRecord<z.ZodString, z.ZodUnknown>;
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"}
@@ -9,7 +9,7 @@ const onesignalRestApiFetchUserIdentity = action("ONESIGNAL_REST_API_FETCH_USER_
9
9
  alias_id: z.string().describe("The alias value/ID to identify the user (e.g., 'test-user-123', 'user@example.com')."),
10
10
  alias_label: z.string().describe("The alias label to identify the user (e.g., 'external_id', 'email', 'phone_number').")
11
11
  }).describe("Request model for fetching user identity (all aliases) by a specific alias."),
12
- output: z.object({ identity: z.object({}).describe("Dictionary mapping alias labels to alias values (string) or lists of alias values for the user.") }).passthrough().describe("Response model for fetching user identity containing all user aliases.")
12
+ output: z.object({ identity: z.record(z.string(), z.unknown()).describe("Dictionary mapping alias labels to alias values (string) or lists of alias values for the user.") }).passthrough().describe("Response model for fetching user identity containing all user aliases.")
13
13
  });
14
14
  //#endregion
15
15
  export { onesignalRestApiFetchUserIdentity };
@@ -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.record(z.string(), z.unknown()).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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iGAAiG,EACxJ,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
@@ -1 +1 @@
1
- {"version":3,"file":"get-eligible-iams.d.cts","names":[],"sources":["../../src/actions/get-eligible-iams.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAG6C;AAAA,cAErF,qCAAA,EAAuC,CAAA,CAAE,UAE8B;AAAA,cAEvE,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-eligible-iams.d.cts","names":[],"sources":["../../src/actions/get-eligible-iams.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAKpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;cAIrC,+BAAA,gCAA+B,wBAAA"}
@@ -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.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-eligible-iams.d.mts","names":[],"sources":["../../src/actions/get-eligible-iams.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAG6C;AAAA,cAErF,qCAAA,EAAuC,CAAA,CAAE,UAE8B;AAAA,cAEvE,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-eligible-iams.d.mts","names":[],"sources":["../../src/actions/get-eligible-iams.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAKpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;cAIrC,+BAAA,gCAA+B,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-eligible-iams.mjs","names":[],"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,uCAAqD,EAAE,OAAO;CACzE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACtE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAChG,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,qDAAmE,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAK3K,MAAa,kCAAkC,OAAO,wCAAwC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiE,EAAE,OAAO,EAC1E,iBAAiB,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,kEAAkE,EAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-eligible-iams.mjs","names":[],"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,uCAAuC,EAAE,OAAO;CAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACtE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAChG,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,qDAAqD,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAK7J,MAAa,kCAAkC,OAAO,wCAAwC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATmD,EAAE,OAAO,EAC5D,iBAAiB,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,kEAAkE,EAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
@@ -31,8 +31,8 @@ const OnesignalRestApiUpdateDeviceInput = zod.z.object({
31
31
  }).describe("Request parameters for updating a OneSignal device (player).");
32
32
  const OnesignalRestApiUpdateDeviceOutput = zod.z.object({
33
33
  id: zod.z.string().describe("The OneSignal device/player ID that was updated (may not be returned)").nullable().optional(),
34
- success: zod.z.boolean().describe("Indicates whether the update was successful")
35
- }).describe("Response model for the UpdateDevice action.");
34
+ success: zod.z.boolean().describe("Indicates whether the update was successful").nullable()
35
+ }).passthrough().describe("Response model for the UpdateDevice action.");
36
36
  const onesignalRestApiUpdateDevice = require_action.action("ONESIGNAL_REST_API_UPDATE_DEVICE", {
37
37
  slug: "onesignal_rest_api-update-device",
38
38
  name: "Update Device",
@@ -1 +1 @@
1
- {"version":3,"file":"update-device.cjs","names":["z","action"],"sources":["../../src/actions/update-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiUpdateDeviceInput: z.ZodTypeAny = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Custom tags for the device\").optional(),\n ad_id: z.string().describe(\"Advertising ID\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n country: z.string().describe(\"Country code, e.g., 'US'\").optional(),\n language: z.string().describe(\"Language code, e.g., 'en'\").optional(),\n latitude: z.number().describe(\"Latitude coordinate\").optional(),\n playtime: z.number().int().describe(\"Total playtime in seconds\").optional(),\n timezone: z.number().int().describe(\"Timezone offset in seconds from UTC\").optional(),\n device_os: z.string().describe(\"Operating system version\").optional(),\n longitude: z.number().describe(\"Longitude coordinate\").optional(),\n player_id: z.string().describe(\"Unique OneSignal device/player ID\"),\n test_type: z.number().int().describe(\"1 for development, 2 for ad-hoc\").optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the device was created\").optional(),\n identifier: z.string().describe(\"Push token, email address, or external user ID\").optional(),\n badge_count: z.number().int().describe(\"iOS badge count\").optional(),\n device_type: z.number().int().describe(\"Device type. See OneSignal docs for list\").optional(),\n last_active: z.number().int().describe(\"Unix timestamp when the device was last active\").optional(),\n amount_spent: z.string().describe(\"Amount the user has spent\").optional(),\n device_model: z.string().describe(\"Device model\").optional(),\n game_version: z.string().describe(\"Version of the app/game\").optional(),\n sms_auth_hash: z.string().describe(\"SMS authentication hash\").optional(),\n email_auth_hash: z.string().describe(\"Email authentication hash\").optional(),\n external_user_id: z.string().describe(\"External user ID\").optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Additional custom attributes\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state\").optional(),\n external_user_id_auth_hash: z.string().describe(\"Auth hash for external_user_id\").optional(),\n}).describe(\"Request parameters for updating a OneSignal device (player).\");\nexport const OnesignalRestApiUpdateDeviceOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The OneSignal device/player ID that was updated (may not be returned)\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the update was successful\"),\n}).describe(\"Response model for the UpdateDevice action.\");\n\nexport const onesignalRestApiUpdateDevice = action(\"ONESIGNAL_REST_API_UPDATE_DEVICE\", {\n slug: \"onesignal_rest_api-update-device\",\n name: \"Update Device\",\n description: \"Tool to update properties of an existing device. Use when you need to modify device attributes after registration.\",\n input: OnesignalRestApiUpdateDeviceInput,\n output: OnesignalRestApiUpdateDeviceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC9D,UAAUA,IAA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CAAC,CAAC,SAAS;CACvE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC3E,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACnE,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACvG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxF,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C;AAC7E,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-device.cjs","names":["z","action"],"sources":["../../src/actions/update-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiUpdateDeviceInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Custom tags for the device\").optional(),\n ad_id: z.string().describe(\"Advertising ID\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n country: z.string().describe(\"Country code, e.g., 'US'\").optional(),\n language: z.string().describe(\"Language code, e.g., 'en'\").optional(),\n latitude: z.number().describe(\"Latitude coordinate\").optional(),\n playtime: z.number().int().describe(\"Total playtime in seconds\").optional(),\n timezone: z.number().int().describe(\"Timezone offset in seconds from UTC\").optional(),\n device_os: z.string().describe(\"Operating system version\").optional(),\n longitude: z.number().describe(\"Longitude coordinate\").optional(),\n player_id: z.string().describe(\"Unique OneSignal device/player ID\"),\n test_type: z.number().int().describe(\"1 for development, 2 for ad-hoc\").optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the device was created\").optional(),\n identifier: z.string().describe(\"Push token, email address, or external user ID\").optional(),\n badge_count: z.number().int().describe(\"iOS badge count\").optional(),\n device_type: z.number().int().describe(\"Device type. See OneSignal docs for list\").optional(),\n last_active: z.number().int().describe(\"Unix timestamp when the device was last active\").optional(),\n amount_spent: z.string().describe(\"Amount the user has spent\").optional(),\n device_model: z.string().describe(\"Device model\").optional(),\n game_version: z.string().describe(\"Version of the app/game\").optional(),\n sms_auth_hash: z.string().describe(\"SMS authentication hash\").optional(),\n email_auth_hash: z.string().describe(\"Email authentication hash\").optional(),\n external_user_id: z.string().describe(\"External user ID\").optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Additional custom attributes\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state\").optional(),\n external_user_id_auth_hash: z.string().describe(\"Auth hash for external_user_id\").optional(),\n}).describe(\"Request parameters for updating a OneSignal device (player).\");\nexport const OnesignalRestApiUpdateDeviceOutput = z.object({\n id: z.string().describe(\"The OneSignal device/player ID that was updated (may not be returned)\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the update was successful\").nullable(),\n}).passthrough().describe(\"Response model for the UpdateDevice action.\");\n\nexport const onesignalRestApiUpdateDevice = action(\"ONESIGNAL_REST_API_UPDATE_DEVICE\", {\n slug: \"onesignal_rest_api-update-device\",\n name: \"Update Device\",\n description: \"Tool to update properties of an existing device. Use when you need to modify device attributes after registration.\",\n input: OnesignalRestApiUpdateDeviceInput,\n output: OnesignalRestApiUpdateDeviceOutput,\n});\n"],"mappings":";;;AAI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AAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,66 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-device.d.ts
4
- declare const OnesignalRestApiUpdateDeviceInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiUpdateDeviceOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiUpdateDevice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiUpdateDeviceInput: z.ZodObject<{
5
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6
+ ad_id: z.ZodOptional<z.ZodString>;
7
+ app_id: z.ZodString;
8
+ country: z.ZodOptional<z.ZodString>;
9
+ language: z.ZodOptional<z.ZodString>;
10
+ latitude: z.ZodOptional<z.ZodNumber>;
11
+ playtime: z.ZodOptional<z.ZodNumber>;
12
+ timezone: z.ZodOptional<z.ZodNumber>;
13
+ device_os: z.ZodOptional<z.ZodString>;
14
+ longitude: z.ZodOptional<z.ZodNumber>;
15
+ player_id: z.ZodString;
16
+ test_type: z.ZodOptional<z.ZodNumber>;
17
+ created_at: z.ZodOptional<z.ZodNumber>;
18
+ identifier: z.ZodOptional<z.ZodString>;
19
+ badge_count: z.ZodOptional<z.ZodNumber>;
20
+ device_type: z.ZodOptional<z.ZodNumber>;
21
+ last_active: z.ZodOptional<z.ZodNumber>;
22
+ amount_spent: z.ZodOptional<z.ZodString>;
23
+ device_model: z.ZodOptional<z.ZodString>;
24
+ game_version: z.ZodOptional<z.ZodString>;
25
+ sms_auth_hash: z.ZodOptional<z.ZodString>;
26
+ email_auth_hash: z.ZodOptional<z.ZodString>;
27
+ external_user_id: z.ZodOptional<z.ZodString>;
28
+ custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
29
+ notification_types: z.ZodOptional<z.ZodNumber>;
30
+ external_user_id_auth_hash: z.ZodOptional<z.ZodString>;
31
+ }, z.core.$strip>;
32
+ declare const OnesignalRestApiUpdateDeviceOutput: z.ZodObject<{
33
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ success: z.ZodNullable<z.ZodBoolean>;
35
+ }, z.core.$loose>;
36
+ declare const onesignalRestApiUpdateDevice: import("@keystrokehq/action").WorkflowActionDefinition<{
37
+ app_id: string;
38
+ player_id: string;
39
+ tags?: Record<string, unknown> | undefined;
40
+ ad_id?: string | undefined;
41
+ country?: string | undefined;
42
+ language?: string | undefined;
43
+ latitude?: number | undefined;
44
+ playtime?: number | undefined;
45
+ timezone?: number | undefined;
46
+ device_os?: string | undefined;
47
+ longitude?: number | undefined;
48
+ test_type?: number | undefined;
49
+ created_at?: number | undefined;
50
+ identifier?: string | undefined;
51
+ badge_count?: number | undefined;
52
+ device_type?: number | undefined;
53
+ last_active?: number | undefined;
54
+ amount_spent?: string | undefined;
55
+ device_model?: string | undefined;
56
+ game_version?: string | undefined;
57
+ sms_auth_hash?: string | undefined;
58
+ email_auth_hash?: string | undefined;
59
+ external_user_id?: string | undefined;
60
+ custom_attributes?: Record<string, unknown> | undefined;
61
+ notification_types?: number | undefined;
62
+ external_user_id_auth_hash?: string | undefined;
63
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
64
  //#endregion
8
65
  export { onesignalRestApiUpdateDevice };
9
66
  //# sourceMappingURL=update-device.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-device.d.cts","names":[],"sources":["../../src/actions/update-device.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UA2ByB;AAAA,cAC9D,kCAAA,EAAoC,CAAA,CAAE,UAGO;AAAA,cAE7C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-device.d.cts","names":[],"sources":["../../src/actions/update-device.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cAKlC,4BAAA,gCAA4B,wBAAA;;;SAMvC,MAAA;;;;;;;;;;;;;;;;;;;;;sBAAA,MAAA"}
@@ -1,9 +1,66 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-device.d.ts
4
- declare const OnesignalRestApiUpdateDeviceInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiUpdateDeviceOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiUpdateDevice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiUpdateDeviceInput: z.ZodObject<{
5
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6
+ ad_id: z.ZodOptional<z.ZodString>;
7
+ app_id: z.ZodString;
8
+ country: z.ZodOptional<z.ZodString>;
9
+ language: z.ZodOptional<z.ZodString>;
10
+ latitude: z.ZodOptional<z.ZodNumber>;
11
+ playtime: z.ZodOptional<z.ZodNumber>;
12
+ timezone: z.ZodOptional<z.ZodNumber>;
13
+ device_os: z.ZodOptional<z.ZodString>;
14
+ longitude: z.ZodOptional<z.ZodNumber>;
15
+ player_id: z.ZodString;
16
+ test_type: z.ZodOptional<z.ZodNumber>;
17
+ created_at: z.ZodOptional<z.ZodNumber>;
18
+ identifier: z.ZodOptional<z.ZodString>;
19
+ badge_count: z.ZodOptional<z.ZodNumber>;
20
+ device_type: z.ZodOptional<z.ZodNumber>;
21
+ last_active: z.ZodOptional<z.ZodNumber>;
22
+ amount_spent: z.ZodOptional<z.ZodString>;
23
+ device_model: z.ZodOptional<z.ZodString>;
24
+ game_version: z.ZodOptional<z.ZodString>;
25
+ sms_auth_hash: z.ZodOptional<z.ZodString>;
26
+ email_auth_hash: z.ZodOptional<z.ZodString>;
27
+ external_user_id: z.ZodOptional<z.ZodString>;
28
+ custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
29
+ notification_types: z.ZodOptional<z.ZodNumber>;
30
+ external_user_id_auth_hash: z.ZodOptional<z.ZodString>;
31
+ }, z.core.$strip>;
32
+ declare const OnesignalRestApiUpdateDeviceOutput: z.ZodObject<{
33
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ success: z.ZodNullable<z.ZodBoolean>;
35
+ }, z.core.$loose>;
36
+ declare const onesignalRestApiUpdateDevice: import("@keystrokehq/action").WorkflowActionDefinition<{
37
+ app_id: string;
38
+ player_id: string;
39
+ tags?: Record<string, unknown> | undefined;
40
+ ad_id?: string | undefined;
41
+ country?: string | undefined;
42
+ language?: string | undefined;
43
+ latitude?: number | undefined;
44
+ playtime?: number | undefined;
45
+ timezone?: number | undefined;
46
+ device_os?: string | undefined;
47
+ longitude?: number | undefined;
48
+ test_type?: number | undefined;
49
+ created_at?: number | undefined;
50
+ identifier?: string | undefined;
51
+ badge_count?: number | undefined;
52
+ device_type?: number | undefined;
53
+ last_active?: number | undefined;
54
+ amount_spent?: string | undefined;
55
+ device_model?: string | undefined;
56
+ game_version?: string | undefined;
57
+ sms_auth_hash?: string | undefined;
58
+ email_auth_hash?: string | undefined;
59
+ external_user_id?: string | undefined;
60
+ custom_attributes?: Record<string, unknown> | undefined;
61
+ notification_types?: number | undefined;
62
+ external_user_id_auth_hash?: string | undefined;
63
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
64
  //#endregion
8
65
  export { onesignalRestApiUpdateDevice };
9
66
  //# sourceMappingURL=update-device.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-device.d.mts","names":[],"sources":["../../src/actions/update-device.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UA2ByB;AAAA,cAC9D,kCAAA,EAAoC,CAAA,CAAE,UAGO;AAAA,cAE7C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-device.d.mts","names":[],"sources":["../../src/actions/update-device.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cAKlC,4BAAA,gCAA4B,wBAAA;;;SAMvC,MAAA;;;;;;;;;;;;;;;;;;;;;sBAAA,MAAA"}
@@ -34,8 +34,8 @@ const onesignalRestApiUpdateDevice = action("ONESIGNAL_REST_API_UPDATE_DEVICE",
34
34
  }).describe("Request parameters for updating a OneSignal device (player)."),
35
35
  output: z.object({
36
36
  id: z.string().describe("The OneSignal device/player ID that was updated (may not be returned)").nullable().optional(),
37
- success: z.boolean().describe("Indicates whether the update was successful")
38
- }).describe("Response model for the UpdateDevice action.")
37
+ success: z.boolean().describe("Indicates whether the update was successful").nullable()
38
+ }).passthrough().describe("Response model for the UpdateDevice action.")
39
39
  });
40
40
  //#endregion
41
41
  export { onesignalRestApiUpdateDevice };
@@ -1 +1 @@
1
- {"version":3,"file":"update-device.mjs","names":[],"sources":["../../src/actions/update-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiUpdateDeviceInput: z.ZodTypeAny = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Custom tags for the device\").optional(),\n ad_id: z.string().describe(\"Advertising ID\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n country: z.string().describe(\"Country code, e.g., 'US'\").optional(),\n language: z.string().describe(\"Language code, e.g., 'en'\").optional(),\n latitude: z.number().describe(\"Latitude coordinate\").optional(),\n playtime: z.number().int().describe(\"Total playtime in seconds\").optional(),\n timezone: z.number().int().describe(\"Timezone offset in seconds from UTC\").optional(),\n device_os: z.string().describe(\"Operating system version\").optional(),\n longitude: z.number().describe(\"Longitude coordinate\").optional(),\n player_id: z.string().describe(\"Unique OneSignal device/player ID\"),\n test_type: z.number().int().describe(\"1 for development, 2 for ad-hoc\").optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the device was created\").optional(),\n identifier: z.string().describe(\"Push token, email address, or external user ID\").optional(),\n badge_count: z.number().int().describe(\"iOS badge count\").optional(),\n device_type: z.number().int().describe(\"Device type. See OneSignal docs for list\").optional(),\n last_active: z.number().int().describe(\"Unix timestamp when the device was last active\").optional(),\n amount_spent: z.string().describe(\"Amount the user has spent\").optional(),\n device_model: z.string().describe(\"Device model\").optional(),\n game_version: z.string().describe(\"Version of the app/game\").optional(),\n sms_auth_hash: z.string().describe(\"SMS authentication hash\").optional(),\n email_auth_hash: z.string().describe(\"Email authentication hash\").optional(),\n external_user_id: z.string().describe(\"External user ID\").optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Additional custom attributes\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state\").optional(),\n external_user_id_auth_hash: z.string().describe(\"Auth hash for external_user_id\").optional(),\n}).describe(\"Request parameters for updating a OneSignal device (player).\");\nexport const OnesignalRestApiUpdateDeviceOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The OneSignal device/player ID that was updated (may not be returned)\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the update was successful\"),\n}).describe(\"Response model for the UpdateDevice action.\");\n\nexport const onesignalRestApiUpdateDevice = action(\"ONESIGNAL_REST_API_UPDATE_DEVICE\", {\n slug: \"onesignal_rest_api-update-device\",\n name: \"Update Device\",\n description: \"Tool to update properties of an existing device. Use when you need to modify device attributes after registration.\",\n input: OnesignalRestApiUpdateDeviceInput,\n output: OnesignalRestApiUpdateDeviceOutput,\n});\n"],"mappings":";;AAqCA,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArC6D,EAAE,OAAO;EACtE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACpE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAClE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACjF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SA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C,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-device.mjs","names":[],"sources":["../../src/actions/update-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiUpdateDeviceInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Custom tags for the device\").optional(),\n ad_id: z.string().describe(\"Advertising ID\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n country: z.string().describe(\"Country code, e.g., 'US'\").optional(),\n language: z.string().describe(\"Language code, e.g., 'en'\").optional(),\n latitude: z.number().describe(\"Latitude coordinate\").optional(),\n playtime: z.number().int().describe(\"Total playtime in seconds\").optional(),\n timezone: z.number().int().describe(\"Timezone offset in seconds from UTC\").optional(),\n device_os: z.string().describe(\"Operating system version\").optional(),\n longitude: z.number().describe(\"Longitude coordinate\").optional(),\n player_id: z.string().describe(\"Unique OneSignal device/player ID\"),\n test_type: z.number().int().describe(\"1 for development, 2 for ad-hoc\").optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the device was created\").optional(),\n identifier: z.string().describe(\"Push token, email address, or external user ID\").optional(),\n badge_count: z.number().int().describe(\"iOS badge count\").optional(),\n device_type: z.number().int().describe(\"Device type. See OneSignal docs for list\").optional(),\n last_active: z.number().int().describe(\"Unix timestamp when the device was last active\").optional(),\n amount_spent: z.string().describe(\"Amount the user has spent\").optional(),\n device_model: z.string().describe(\"Device model\").optional(),\n game_version: z.string().describe(\"Version of the app/game\").optional(),\n sms_auth_hash: z.string().describe(\"SMS authentication hash\").optional(),\n email_auth_hash: z.string().describe(\"Email authentication hash\").optional(),\n external_user_id: z.string().describe(\"External user ID\").optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Additional custom attributes\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state\").optional(),\n external_user_id_auth_hash: z.string().describe(\"Auth hash for external_user_id\").optional(),\n}).describe(\"Request parameters for updating a OneSignal device (player).\");\nexport const OnesignalRestApiUpdateDeviceOutput = z.object({\n id: z.string().describe(\"The OneSignal device/player ID that was updated (may not be returned)\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the update was successful\").nullable(),\n}).passthrough().describe(\"Response model for the UpdateDevice action.\");\n\nexport const onesignalRestApiUpdateDevice = action(\"ONESIGNAL_REST_API_UPDATE_DEVICE\", {\n slug: \"onesignal_rest_api-update-device\",\n name: \"Update Device\",\n description: \"Tool to update properties of an existing device. Use when you need to modify device attributes after registration.\",\n input: OnesignalRestApiUpdateDeviceInput,\n output: OnesignalRestApiUpdateDeviceOutput,\n});\n"],"mappings":";;AAqCA,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArC+C,EAAE,OAAO;EACxD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACpE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAChE,WA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