@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 +1 @@
1
- {"version":3,"file":"update-subscription.cjs","names":["z","action"],"sources":["../../src/actions/update-subscription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiUpdateSubscriptionInput: z.ZodTypeAny = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n subscription: z.object({\n sdk: z.string().describe(\"SDK version used by the subscription.\").optional(),\n type: z.enum([\"iOSPush\", \"AndroidPush\", \"FireOSPush\", \"ChromeExtensionPush\", \"ChromePush\", \"WindowsPush\", \"SafariLegacyPush\", \"FirefoxPush\", \"macOSPush\", \"HuaweiPush\", \"SafariPush\", \"Email\", \"SMS\"]).describe(\"Subscription type enumeration for OneSignal.\").optional(),\n token: z.string().describe(\"The push token, email address, or phone number for the subscription.\").optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted or jailbroken.\").optional(),\n carrier: z.string().describe(\"Mobile carrier name.\").optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled for notifications.\").optional(),\n net_type: z.number().int().describe(\"Network type code.\").optional(),\n web_auth: z.string().describe(\"Web push authentication secret.\").optional(),\n web_p256: z.string().describe(\"Web push P-256 public key.\").optional(),\n device_os: z.string().describe(\"Operating system version.\").optional(),\n test_type: z.number().int().describe(\"Test type indicator (1 for development, 2 for ad-hoc).\").optional(),\n app_version: z.string().describe(\"Version of the application.\").optional(),\n device_model: z.string().describe(\"Device model identifier.\").optional(),\n session_time: z.number().int().describe(\"Total session time in seconds.\").optional(),\n session_count: z.number().int().describe(\"Total number of sessions.\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state (integer code).\").optional(),\n}).describe(\"The subscription properties to update.\"),\n subscription_id: z.string().describe(\"The unique ID of the subscription to update.\"),\n retain_previous_owner: z.boolean().describe(\"Whether to retain the previous owner when updating the subscription.\").optional(),\n}).describe(\"Request model for updating a OneSignal subscription.\");\nconst OnesignalRestApiUpdateSubscription_SubscriptionResponseObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The subscription ID.\").nullable().optional(),\n sdk: z.string().describe(\"SDK version.\").nullable().optional(),\n type: z.string().describe(\"The subscription type.\").nullable().optional(),\n token: z.string().describe(\"The push token, email address, or phone number.\").nullable().optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted or jailbroken.\").nullable().optional(),\n carrier: z.string().describe(\"Mobile carrier name.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled.\").nullable().optional(),\n net_type: z.number().int().describe(\"Network type code.\").nullable().optional(),\n web_auth: z.string().describe(\"Web push authentication secret.\").nullable().optional(),\n web_p256: z.string().describe(\"Web push P-256 public key.\").nullable().optional(),\n device_os: z.string().describe(\"Operating system version.\").nullable().optional(),\n test_type: z.number().int().describe(\"Test type indicator.\").nullable().optional(),\n app_version: z.string().describe(\"Application version.\").nullable().optional(),\n device_model: z.string().describe(\"Device model.\").nullable().optional(),\n session_time: z.number().int().describe(\"Total session time in seconds.\").nullable().optional(),\n session_count: z.number().int().describe(\"Total number of sessions.\").nullable().optional(),\n notification_types: z.number().int().describe(\"Notification permission state.\").nullable().optional(),\n}).passthrough().describe(\"Updated subscription object in the response.\");\nexport const OnesignalRestApiUpdateSubscriptionOutput: z.ZodTypeAny = z.object({\n subscription: OnesignalRestApiUpdateSubscription_SubscriptionResponseObjectSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for the UpdateSubscription action.\");\n\nexport const onesignalRestApiUpdateSubscription = action(\"ONESIGNAL_REST_API_UPDATE_SUBSCRIPTION\", {\n slug: \"onesignal_rest_api-update-subscription\",\n name: \"Update Subscription\",\n description: \"Tool to update an existing subscription's properties. Use when you need to modify subscription attributes like token, enabled status, or device information.\",\n input: OnesignalRestApiUpdateSubscriptionInput,\n output: OnesignalRestApiUpdateSubscriptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAAwDA,IAAAA,EAAE,OAAO;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,cAAcA,IAAAA,EAAE,OAAO;EACvB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC3E,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAW;GAAe;GAAc;GAAuB;GAAc;GAAe;GAAoB;GAAe;GAAa;GAAc;GAAc;GAAS;EAAK,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACzQ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC5G,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAC9D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC1E,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AC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAa,2CAAyDA,IAAAA,EAAE,OAAO,EAC7E,cAAc,oEAAoE,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-subscription.cjs","names":["z","action"],"sources":["../../src/actions/update-subscription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiUpdateSubscriptionInput = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n subscription: z.object({\n sdk: z.string().describe(\"SDK version used by the subscription.\").optional(),\n type: z.enum([\"iOSPush\", \"AndroidPush\", \"FireOSPush\", \"ChromeExtensionPush\", \"ChromePush\", \"WindowsPush\", \"SafariLegacyPush\", \"FirefoxPush\", \"macOSPush\", \"HuaweiPush\", \"SafariPush\", \"Email\", \"SMS\"]).describe(\"Subscription type enumeration for OneSignal.\").optional(),\n token: z.string().describe(\"The push token, email address, or phone number for the subscription.\").optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted or jailbroken.\").optional(),\n carrier: z.string().describe(\"Mobile carrier name.\").optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled for notifications.\").optional(),\n net_type: z.number().int().describe(\"Network type code.\").optional(),\n web_auth: z.string().describe(\"Web push authentication secret.\").optional(),\n web_p256: z.string().describe(\"Web push P-256 public key.\").optional(),\n device_os: z.string().describe(\"Operating system version.\").optional(),\n test_type: z.number().int().describe(\"Test type indicator (1 for development, 2 for ad-hoc).\").optional(),\n app_version: z.string().describe(\"Version of the application.\").optional(),\n device_model: z.string().describe(\"Device model identifier.\").optional(),\n session_time: z.number().int().describe(\"Total session time in seconds.\").optional(),\n session_count: z.number().int().describe(\"Total number of sessions.\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state (integer code).\").optional(),\n}).describe(\"The subscription properties to update.\"),\n subscription_id: z.string().describe(\"The unique ID of the subscription to update.\"),\n retain_previous_owner: z.boolean().describe(\"Whether to retain the previous owner when updating the subscription.\").optional(),\n}).describe(\"Request model for updating a OneSignal subscription.\");\nconst OnesignalRestApiUpdateSubscription_SubscriptionResponseObjectSchema = z.object({\n id: z.string().describe(\"The subscription ID.\").nullable().optional(),\n sdk: z.string().describe(\"SDK version.\").nullable().optional(),\n type: z.string().describe(\"The subscription type.\").nullable().optional(),\n token: z.string().describe(\"The push token, email address, or phone number.\").nullable().optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted or jailbroken.\").nullable().optional(),\n carrier: z.string().describe(\"Mobile carrier name.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled.\").nullable().optional(),\n net_type: z.number().int().describe(\"Network type code.\").nullable().optional(),\n web_auth: z.string().describe(\"Web push authentication secret.\").nullable().optional(),\n web_p256: z.string().describe(\"Web push P-256 public key.\").nullable().optional(),\n device_os: z.string().describe(\"Operating system version.\").nullable().optional(),\n test_type: z.number().int().describe(\"Test type indicator.\").nullable().optional(),\n app_version: z.string().describe(\"Application version.\").nullable().optional(),\n device_model: z.string().describe(\"Device model.\").nullable().optional(),\n session_time: z.number().int().describe(\"Total session time in seconds.\").nullable().optional(),\n session_count: z.number().int().describe(\"Total number of sessions.\").nullable().optional(),\n notification_types: z.number().int().describe(\"Notification permission state.\").nullable().optional(),\n}).passthrough().describe(\"Updated subscription object in the response.\");\nexport const OnesignalRestApiUpdateSubscriptionOutput = z.object({\n subscription: OnesignalRestApiUpdateSubscription_SubscriptionResponseObjectSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for the UpdateSubscription action.\");\n\nexport const onesignalRestApiUpdateSubscription = action(\"ONESIGNAL_REST_API_UPDATE_SUBSCRIPTION\", {\n slug: \"onesignal_rest_api-update-subscription\",\n name: \"Update Subscription\",\n description: \"Tool to update an existing subscription's properties. Use when you need to modify subscription attributes like token, enabled status, or device information.\",\n input: OnesignalRestApiUpdateSubscriptionInput,\n output: OnesignalRestApiUpdateSubscriptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,cAAcA,IAAAA,EAAE,OAAO;EACvB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC3E,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAW;GAAe;GAAc;GAAuB;GAAc;GAAe;GAAoB;GAAe;GAAa;GAAc;GAAc;GAAS;EAAK,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACzQ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC5G,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAC9D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC1E,UAAUA,I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,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAa,2CAA2CA,IAAAA,EAAE,OAAO,EAC/D,cAAc,oEAAoE,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,87 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-subscription.d.ts
4
- declare const OnesignalRestApiUpdateSubscriptionInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiUpdateSubscriptionOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiUpdateSubscription: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiUpdateSubscriptionInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ subscription: z.ZodObject<{
7
+ sdk: z.ZodOptional<z.ZodString>;
8
+ type: z.ZodOptional<z.ZodEnum<{
9
+ iOSPush: "iOSPush";
10
+ AndroidPush: "AndroidPush";
11
+ FireOSPush: "FireOSPush";
12
+ ChromeExtensionPush: "ChromeExtensionPush";
13
+ ChromePush: "ChromePush";
14
+ WindowsPush: "WindowsPush";
15
+ SafariLegacyPush: "SafariLegacyPush";
16
+ FirefoxPush: "FirefoxPush";
17
+ macOSPush: "macOSPush";
18
+ HuaweiPush: "HuaweiPush";
19
+ SafariPush: "SafariPush";
20
+ Email: "Email";
21
+ SMS: "SMS";
22
+ }>>;
23
+ token: z.ZodOptional<z.ZodString>;
24
+ rooted: z.ZodOptional<z.ZodBoolean>;
25
+ carrier: z.ZodOptional<z.ZodString>;
26
+ enabled: z.ZodOptional<z.ZodBoolean>;
27
+ net_type: z.ZodOptional<z.ZodNumber>;
28
+ web_auth: z.ZodOptional<z.ZodString>;
29
+ web_p256: z.ZodOptional<z.ZodString>;
30
+ device_os: z.ZodOptional<z.ZodString>;
31
+ test_type: z.ZodOptional<z.ZodNumber>;
32
+ app_version: z.ZodOptional<z.ZodString>;
33
+ device_model: z.ZodOptional<z.ZodString>;
34
+ session_time: z.ZodOptional<z.ZodNumber>;
35
+ session_count: z.ZodOptional<z.ZodNumber>;
36
+ notification_types: z.ZodOptional<z.ZodNumber>;
37
+ }, z.core.$strip>;
38
+ subscription_id: z.ZodString;
39
+ retain_previous_owner: z.ZodOptional<z.ZodBoolean>;
40
+ }, z.core.$strip>;
41
+ declare const OnesignalRestApiUpdateSubscriptionOutput: z.ZodObject<{
42
+ subscription: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ sdk: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ rooted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
48
+ carrier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
50
+ net_type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
51
+ web_auth: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ web_p256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ device_os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ test_type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
+ app_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ device_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ session_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
58
+ session_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
59
+ notification_types: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
+ }, z.core.$loose>>>;
61
+ }, z.core.$loose>;
62
+ declare const onesignalRestApiUpdateSubscription: import("@keystrokehq/action").WorkflowActionDefinition<{
63
+ app_id: string;
64
+ subscription: {
65
+ sdk?: string | undefined;
66
+ type?: "iOSPush" | "AndroidPush" | "FireOSPush" | "ChromeExtensionPush" | "ChromePush" | "WindowsPush" | "SafariLegacyPush" | "FirefoxPush" | "macOSPush" | "HuaweiPush" | "SafariPush" | "Email" | "SMS" | undefined;
67
+ token?: string | undefined;
68
+ rooted?: boolean | undefined;
69
+ carrier?: string | undefined;
70
+ enabled?: boolean | undefined;
71
+ net_type?: number | undefined;
72
+ web_auth?: string | undefined;
73
+ web_p256?: string | undefined;
74
+ device_os?: string | undefined;
75
+ test_type?: number | undefined;
76
+ app_version?: string | undefined;
77
+ device_model?: string | undefined;
78
+ session_time?: number | undefined;
79
+ session_count?: number | undefined;
80
+ notification_types?: number | undefined;
81
+ };
82
+ subscription_id: string;
83
+ retain_previous_owner?: boolean | undefined;
84
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
85
  //#endregion
8
86
  export { onesignalRestApiUpdateSubscription };
9
87
  //# sourceMappingURL=update-subscription.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-subscription.d.cts","names":[],"sources":["../../src/actions/update-subscription.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAsBW;AAAA,cAoBtD,wCAAA,EAA0C,CAAA,CAAE,UAEqB;AAAA,cAEjE,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-subscription.d.cts","names":[],"sources":["../../src/actions/update-subscription.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0CvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAIxC,kCAAA,gCAAkC,wBAAA"}
@@ -1,9 +1,87 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-subscription.d.ts
4
- declare const OnesignalRestApiUpdateSubscriptionInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiUpdateSubscriptionOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiUpdateSubscription: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiUpdateSubscriptionInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ subscription: z.ZodObject<{
7
+ sdk: z.ZodOptional<z.ZodString>;
8
+ type: z.ZodOptional<z.ZodEnum<{
9
+ iOSPush: "iOSPush";
10
+ AndroidPush: "AndroidPush";
11
+ FireOSPush: "FireOSPush";
12
+ ChromeExtensionPush: "ChromeExtensionPush";
13
+ ChromePush: "ChromePush";
14
+ WindowsPush: "WindowsPush";
15
+ SafariLegacyPush: "SafariLegacyPush";
16
+ FirefoxPush: "FirefoxPush";
17
+ macOSPush: "macOSPush";
18
+ HuaweiPush: "HuaweiPush";
19
+ SafariPush: "SafariPush";
20
+ Email: "Email";
21
+ SMS: "SMS";
22
+ }>>;
23
+ token: z.ZodOptional<z.ZodString>;
24
+ rooted: z.ZodOptional<z.ZodBoolean>;
25
+ carrier: z.ZodOptional<z.ZodString>;
26
+ enabled: z.ZodOptional<z.ZodBoolean>;
27
+ net_type: z.ZodOptional<z.ZodNumber>;
28
+ web_auth: z.ZodOptional<z.ZodString>;
29
+ web_p256: z.ZodOptional<z.ZodString>;
30
+ device_os: z.ZodOptional<z.ZodString>;
31
+ test_type: z.ZodOptional<z.ZodNumber>;
32
+ app_version: z.ZodOptional<z.ZodString>;
33
+ device_model: z.ZodOptional<z.ZodString>;
34
+ session_time: z.ZodOptional<z.ZodNumber>;
35
+ session_count: z.ZodOptional<z.ZodNumber>;
36
+ notification_types: z.ZodOptional<z.ZodNumber>;
37
+ }, z.core.$strip>;
38
+ subscription_id: z.ZodString;
39
+ retain_previous_owner: z.ZodOptional<z.ZodBoolean>;
40
+ }, z.core.$strip>;
41
+ declare const OnesignalRestApiUpdateSubscriptionOutput: z.ZodObject<{
42
+ subscription: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ sdk: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ rooted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
48
+ carrier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
50
+ net_type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
51
+ web_auth: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ web_p256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ device_os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ test_type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
+ app_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ device_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ session_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
58
+ session_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
59
+ notification_types: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
+ }, z.core.$loose>>>;
61
+ }, z.core.$loose>;
62
+ declare const onesignalRestApiUpdateSubscription: import("@keystrokehq/action").WorkflowActionDefinition<{
63
+ app_id: string;
64
+ subscription: {
65
+ sdk?: string | undefined;
66
+ type?: "iOSPush" | "AndroidPush" | "FireOSPush" | "ChromeExtensionPush" | "ChromePush" | "WindowsPush" | "SafariLegacyPush" | "FirefoxPush" | "macOSPush" | "HuaweiPush" | "SafariPush" | "Email" | "SMS" | undefined;
67
+ token?: string | undefined;
68
+ rooted?: boolean | undefined;
69
+ carrier?: string | undefined;
70
+ enabled?: boolean | undefined;
71
+ net_type?: number | undefined;
72
+ web_auth?: string | undefined;
73
+ web_p256?: string | undefined;
74
+ device_os?: string | undefined;
75
+ test_type?: number | undefined;
76
+ app_version?: string | undefined;
77
+ device_model?: string | undefined;
78
+ session_time?: number | undefined;
79
+ session_count?: number | undefined;
80
+ notification_types?: number | undefined;
81
+ };
82
+ subscription_id: string;
83
+ retain_previous_owner?: boolean | undefined;
84
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
85
  //#endregion
8
86
  export { onesignalRestApiUpdateSubscription };
9
87
  //# sourceMappingURL=update-subscription.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-subscription.d.mts","names":[],"sources":["../../src/actions/update-subscription.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAsBW;AAAA,cAoBtD,wCAAA,EAA0C,CAAA,CAAE,UAEqB;AAAA,cAEjE,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-subscription.d.mts","names":[],"sources":["../../src/actions/update-subscription.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0CvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAIxC,kCAAA,gCAAkC,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-subscription.mjs","names":[],"sources":["../../src/actions/update-subscription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiUpdateSubscriptionInput: z.ZodTypeAny = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n subscription: z.object({\n sdk: z.string().describe(\"SDK version used by the subscription.\").optional(),\n type: z.enum([\"iOSPush\", \"AndroidPush\", \"FireOSPush\", \"ChromeExtensionPush\", \"ChromePush\", \"WindowsPush\", \"SafariLegacyPush\", \"FirefoxPush\", \"macOSPush\", \"HuaweiPush\", \"SafariPush\", \"Email\", \"SMS\"]).describe(\"Subscription type enumeration for OneSignal.\").optional(),\n token: z.string().describe(\"The push token, email address, or phone number for the subscription.\").optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted or jailbroken.\").optional(),\n carrier: z.string().describe(\"Mobile carrier name.\").optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled for notifications.\").optional(),\n net_type: z.number().int().describe(\"Network type code.\").optional(),\n web_auth: z.string().describe(\"Web push authentication secret.\").optional(),\n web_p256: z.string().describe(\"Web push P-256 public key.\").optional(),\n device_os: z.string().describe(\"Operating system version.\").optional(),\n test_type: z.number().int().describe(\"Test type indicator (1 for development, 2 for ad-hoc).\").optional(),\n app_version: z.string().describe(\"Version of the application.\").optional(),\n device_model: z.string().describe(\"Device model identifier.\").optional(),\n session_time: z.number().int().describe(\"Total session time in seconds.\").optional(),\n session_count: z.number().int().describe(\"Total number of sessions.\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state (integer code).\").optional(),\n}).describe(\"The subscription properties to update.\"),\n subscription_id: z.string().describe(\"The unique ID of the subscription to update.\"),\n retain_previous_owner: z.boolean().describe(\"Whether to retain the previous owner when updating the subscription.\").optional(),\n}).describe(\"Request model for updating a OneSignal subscription.\");\nconst OnesignalRestApiUpdateSubscription_SubscriptionResponseObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The subscription ID.\").nullable().optional(),\n sdk: z.string().describe(\"SDK version.\").nullable().optional(),\n type: z.string().describe(\"The subscription type.\").nullable().optional(),\n token: z.string().describe(\"The push token, email address, or phone number.\").nullable().optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted or jailbroken.\").nullable().optional(),\n carrier: z.string().describe(\"Mobile carrier name.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled.\").nullable().optional(),\n net_type: z.number().int().describe(\"Network type code.\").nullable().optional(),\n web_auth: z.string().describe(\"Web push authentication secret.\").nullable().optional(),\n web_p256: z.string().describe(\"Web push P-256 public key.\").nullable().optional(),\n device_os: z.string().describe(\"Operating system version.\").nullable().optional(),\n test_type: z.number().int().describe(\"Test type indicator.\").nullable().optional(),\n app_version: z.string().describe(\"Application version.\").nullable().optional(),\n device_model: z.string().describe(\"Device model.\").nullable().optional(),\n session_time: z.number().int().describe(\"Total session time in seconds.\").nullable().optional(),\n session_count: z.number().int().describe(\"Total number of sessions.\").nullable().optional(),\n notification_types: z.number().int().describe(\"Notification permission state.\").nullable().optional(),\n}).passthrough().describe(\"Updated subscription object in the response.\");\nexport const OnesignalRestApiUpdateSubscriptionOutput: z.ZodTypeAny = z.object({\n subscription: OnesignalRestApiUpdateSubscription_SubscriptionResponseObjectSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for the UpdateSubscription action.\");\n\nexport const onesignalRestApiUpdateSubscription = action(\"ONESIGNAL_REST_API_UPDATE_SUBSCRIPTION\", {\n slug: \"onesignal_rest_api-update-subscription\",\n name: \"Update Subscription\",\n description: \"Tool to update an existing subscription's properties. Use when you need to modify subscription attributes like token, enabled status, or device information.\",\n input: OnesignalRestApiUpdateSubscriptionInput,\n output: OnesignalRestApiUpdateSubscriptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0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,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAKxE,MAAa,qCAAqC,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToE,EAAE,OAAO,EAC7E,cAAc,oEAAoE,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-subscription.mjs","names":[],"sources":["../../src/actions/update-subscription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiUpdateSubscriptionInput = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n subscription: z.object({\n sdk: z.string().describe(\"SDK version used by the subscription.\").optional(),\n type: z.enum([\"iOSPush\", \"AndroidPush\", \"FireOSPush\", \"ChromeExtensionPush\", \"ChromePush\", \"WindowsPush\", \"SafariLegacyPush\", \"FirefoxPush\", \"macOSPush\", \"HuaweiPush\", \"SafariPush\", \"Email\", \"SMS\"]).describe(\"Subscription type enumeration for OneSignal.\").optional(),\n token: z.string().describe(\"The push token, email address, or phone number for the subscription.\").optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted or jailbroken.\").optional(),\n carrier: z.string().describe(\"Mobile carrier name.\").optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled for notifications.\").optional(),\n net_type: z.number().int().describe(\"Network type code.\").optional(),\n web_auth: z.string().describe(\"Web push authentication secret.\").optional(),\n web_p256: z.string().describe(\"Web push P-256 public key.\").optional(),\n device_os: z.string().describe(\"Operating system version.\").optional(),\n test_type: z.number().int().describe(\"Test type indicator (1 for development, 2 for ad-hoc).\").optional(),\n app_version: z.string().describe(\"Version of the application.\").optional(),\n device_model: z.string().describe(\"Device model identifier.\").optional(),\n session_time: z.number().int().describe(\"Total session time in seconds.\").optional(),\n session_count: z.number().int().describe(\"Total number of sessions.\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state (integer code).\").optional(),\n}).describe(\"The subscription properties to update.\"),\n subscription_id: z.string().describe(\"The unique ID of the subscription to update.\"),\n retain_previous_owner: z.boolean().describe(\"Whether to retain the previous owner when updating the subscription.\").optional(),\n}).describe(\"Request model for updating a OneSignal subscription.\");\nconst OnesignalRestApiUpdateSubscription_SubscriptionResponseObjectSchema = z.object({\n id: z.string().describe(\"The subscription ID.\").nullable().optional(),\n sdk: z.string().describe(\"SDK version.\").nullable().optional(),\n type: z.string().describe(\"The subscription type.\").nullable().optional(),\n token: z.string().describe(\"The push token, email address, or phone number.\").nullable().optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted or jailbroken.\").nullable().optional(),\n carrier: z.string().describe(\"Mobile carrier name.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled.\").nullable().optional(),\n net_type: z.number().int().describe(\"Network type code.\").nullable().optional(),\n web_auth: z.string().describe(\"Web push authentication secret.\").nullable().optional(),\n web_p256: z.string().describe(\"Web push P-256 public key.\").nullable().optional(),\n device_os: z.string().describe(\"Operating system version.\").nullable().optional(),\n test_type: z.number().int().describe(\"Test type indicator.\").nullable().optional(),\n app_version: z.string().describe(\"Application version.\").nullable().optional(),\n device_model: z.string().describe(\"Device model.\").nullable().optional(),\n session_time: z.number().int().describe(\"Total session time in seconds.\").nullable().optional(),\n session_count: z.number().int().describe(\"Total number of sessions.\").nullable().optional(),\n notification_types: z.number().int().describe(\"Notification permission state.\").nullable().optional(),\n}).passthrough().describe(\"Updated subscription object in the response.\");\nexport const OnesignalRestApiUpdateSubscriptionOutput = z.object({\n subscription: OnesignalRestApiUpdateSubscription_SubscriptionResponseObjectSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for the UpdateSubscription action.\");\n\nexport const onesignalRestApiUpdateSubscription = action(\"ONESIGNAL_REST_API_UPDATE_SUBSCRIPTION\", {\n slug: \"onesignal_rest_api-update-subscription\",\n name: \"Update Subscription\",\n description: \"Tool to update an existing subscription's properties. Use when you need to modify subscription attributes like token, enabled status, or device information.\",\n input: OnesignalRestApiUpdateSubscriptionInput,\n output: OnesignalRestApiUpdateSubscriptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0C,EAAE,OAAO;CAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,cAAc,EAAE,OAAO;EACvB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,KAAK;GAAC;GAAW;GAAe;GAAc;GAAuB;GAAc;GAAe;GAAoB;GAAe;GAAa;GAAc;GAAc;GAAS;EAAK,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACzQ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,s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,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAKxE,MAAa,qCAAqC,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,cAAc,oEAAoE,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
@@ -3,13 +3,13 @@ let zod = require("zod");
3
3
  //#region src/actions/view-an-app.ts
4
4
  const OnesignalRestApiViewAnAppInput = zod.z.object({ app_id: zod.z.string().describe("Unique identifier for the OneSignal app.") }).describe("Request model for retrieving metadata of a OneSignal app.");
5
5
  const OnesignalRestApiViewAnAppOutput = zod.z.object({
6
- id: zod.z.string().describe("Unique identifier of the OneSignal app."),
7
- name: zod.z.string().describe("Name of the OneSignal app."),
8
- players: zod.z.number().int().describe("Number of registered devices (players)."),
9
- created_at: zod.z.string().describe("Creation timestamp in ISO 8601 format."),
10
- updated_at: zod.z.string().describe("Last update timestamp in ISO 8601 format."),
6
+ id: zod.z.string().describe("Unique identifier of the OneSignal app.").nullable(),
7
+ name: zod.z.string().describe("Name of the OneSignal app.").nullable(),
8
+ players: zod.z.number().int().describe("Number of registered devices (players).").nullable(),
9
+ created_at: zod.z.string().describe("Creation timestamp in ISO 8601 format.").nullable(),
10
+ updated_at: zod.z.string().describe("Last update timestamp in ISO 8601 format.").nullable(),
11
11
  organization_id: zod.z.string().describe("Organization ID if the app belongs to one.").nullable().optional(),
12
- messageable_players: zod.z.number().int().describe("Number of devices eligible to receive notifications.")
12
+ messageable_players: zod.z.number().int().describe("Number of devices eligible to receive notifications.").nullable()
13
13
  }).passthrough().describe("Response model for viewing a OneSignal app's metadata.");
14
14
  const onesignalRestApiViewAnApp = require_action.action("ONESIGNAL_REST_API_VIEW_AN_APP", {
15
15
  slug: "onesignal_rest_api-view-an-app",
@@ -1 +1 @@
1
- {"version":3,"file":"view-an-app.cjs","names":["z","action"],"sources":["../../src/actions/view-an-app.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewAnAppInput: z.ZodTypeAny = z.object({\n app_id: z.string().describe(\"Unique identifier for the OneSignal app.\"),\n}).describe(\"Request model for retrieving metadata of a OneSignal app.\");\nexport const OnesignalRestApiViewAnAppOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the OneSignal app.\"),\n name: z.string().describe(\"Name of the OneSignal app.\"),\n players: z.number().int().describe(\"Number of registered devices (players).\"),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format.\"),\n updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format.\"),\n organization_id: z.string().describe(\"Organization ID if the app belongs to one.\").nullable().optional(),\n messageable_players: z.number().int().describe(\"Number of devices eligible to receive notifications.\"),\n}).passthrough().describe(\"Response model for viewing a OneSignal app's metadata.\");\n\nexport const onesignalRestApiViewAnApp = action(\"ONESIGNAL_REST_API_VIEW_AN_APP\", {\n slug: \"onesignal_rest_api-view-an-app\",\n name: \"View OneSignal App\",\n description: \"Tool to retrieve metadata for a single OneSignal app. Use when you need to fetch app details by its ID.\",\n input: OnesignalRestApiViewAnAppInput,\n output: OnesignalRestApiViewAnAppOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACxE,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAC3E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,4BAA4BC,eAAAA,OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"view-an-app.cjs","names":["z","action"],"sources":["../../src/actions/view-an-app.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewAnAppInput = z.object({\n app_id: z.string().describe(\"Unique identifier for the OneSignal app.\"),\n}).describe(\"Request model for retrieving metadata of a OneSignal app.\");\nexport const OnesignalRestApiViewAnAppOutput = z.object({\n id: z.string().describe(\"Unique identifier of the OneSignal app.\").nullable(),\n name: z.string().describe(\"Name of the OneSignal app.\").nullable(),\n players: z.number().int().describe(\"Number of registered devices (players).\").nullable(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format.\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format.\").nullable(),\n organization_id: z.string().describe(\"Organization ID if the app belongs to one.\").nullable().optional(),\n messageable_players: z.number().int().describe(\"Number of devices eligible to receive notifications.\").nullable(),\n}).passthrough().describe(\"Response model for viewing a OneSignal app's metadata.\");\n\nexport const onesignalRestApiViewAnApp = action(\"ONESIGNAL_REST_API_VIEW_AN_APP\", {\n slug: \"onesignal_rest_api-view-an-app\",\n name: \"View OneSignal App\",\n description: \"Tool to retrieve metadata for a single OneSignal app. Use when you need to fetch app details by its ID.\",\n input: OnesignalRestApiViewAnAppInput,\n output: OnesignalRestApiViewAnAppOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACxE,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,4BAA4BC,eAAAA,OAAO,kCAAkC;CAChF,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/view-an-app.d.ts
4
- declare const OnesignalRestApiViewAnAppInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiViewAnAppOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiViewAnApp: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiViewAnAppInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const OnesignalRestApiViewAnAppOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ name: z.ZodNullable<z.ZodString>;
10
+ players: z.ZodNullable<z.ZodNumber>;
11
+ created_at: z.ZodNullable<z.ZodString>;
12
+ updated_at: z.ZodNullable<z.ZodString>;
13
+ organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ messageable_players: z.ZodNullable<z.ZodNumber>;
15
+ }, z.core.$loose>;
16
+ declare const onesignalRestApiViewAnApp: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ app_id: string;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { onesignalRestApiViewAnApp };
9
21
  //# sourceMappingURL=view-an-app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view-an-app.d.cts","names":[],"sources":["../../src/actions/view-an-app.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEyB;AAAA,cAC3D,+BAAA,EAAiC,CAAA,CAAE,UAQmC;AAAA,cAEtE,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"view-an-app.d.cts","names":[],"sources":["../../src/actions/view-an-app.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;cAU/B,yBAAA,gCAAyB,wBAAA"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/view-an-app.d.ts
4
- declare const OnesignalRestApiViewAnAppInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiViewAnAppOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiViewAnApp: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiViewAnAppInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const OnesignalRestApiViewAnAppOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ name: z.ZodNullable<z.ZodString>;
10
+ players: z.ZodNullable<z.ZodNumber>;
11
+ created_at: z.ZodNullable<z.ZodString>;
12
+ updated_at: z.ZodNullable<z.ZodString>;
13
+ organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ messageable_players: z.ZodNullable<z.ZodNumber>;
15
+ }, z.core.$loose>;
16
+ declare const onesignalRestApiViewAnApp: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ app_id: string;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { onesignalRestApiViewAnApp };
9
21
  //# sourceMappingURL=view-an-app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view-an-app.d.mts","names":[],"sources":["../../src/actions/view-an-app.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEyB;AAAA,cAC3D,+BAAA,EAAiC,CAAA,CAAE,UAQmC;AAAA,cAEtE,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"view-an-app.d.mts","names":[],"sources":["../../src/actions/view-an-app.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;cAU/B,yBAAA,gCAAyB,wBAAA"}
@@ -6,13 +6,13 @@ const onesignalRestApiViewAnApp = action("ONESIGNAL_REST_API_VIEW_AN_APP", {
6
6
  description: "Tool to retrieve metadata for a single OneSignal app. Use when you need to fetch app details by its ID.",
7
7
  input: z.object({ app_id: z.string().describe("Unique identifier for the OneSignal app.") }).describe("Request model for retrieving metadata of a OneSignal app."),
8
8
  output: z.object({
9
- id: z.string().describe("Unique identifier of the OneSignal app."),
10
- name: z.string().describe("Name of the OneSignal app."),
11
- players: z.number().int().describe("Number of registered devices (players)."),
12
- created_at: z.string().describe("Creation timestamp in ISO 8601 format."),
13
- updated_at: z.string().describe("Last update timestamp in ISO 8601 format."),
9
+ id: z.string().describe("Unique identifier of the OneSignal app.").nullable(),
10
+ name: z.string().describe("Name of the OneSignal app.").nullable(),
11
+ players: z.number().int().describe("Number of registered devices (players).").nullable(),
12
+ created_at: z.string().describe("Creation timestamp in ISO 8601 format.").nullable(),
13
+ updated_at: z.string().describe("Last update timestamp in ISO 8601 format.").nullable(),
14
14
  organization_id: z.string().describe("Organization ID if the app belongs to one.").nullable().optional(),
15
- messageable_players: z.number().int().describe("Number of devices eligible to receive notifications.")
15
+ messageable_players: z.number().int().describe("Number of devices eligible to receive notifications.").nullable()
16
16
  }).passthrough().describe("Response model for viewing a OneSignal app's metadata.")
17
17
  });
18
18
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"view-an-app.mjs","names":[],"sources":["../../src/actions/view-an-app.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewAnAppInput: z.ZodTypeAny = z.object({\n app_id: z.string().describe(\"Unique identifier for the OneSignal app.\"),\n}).describe(\"Request model for retrieving metadata of a OneSignal app.\");\nexport const OnesignalRestApiViewAnAppOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the OneSignal app.\"),\n name: z.string().describe(\"Name of the OneSignal app.\"),\n players: z.number().int().describe(\"Number of registered devices (players).\"),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format.\"),\n updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format.\"),\n organization_id: z.string().describe(\"Organization ID if the app belongs to one.\").nullable().optional(),\n messageable_players: z.number().int().describe(\"Number of devices eligible to receive notifications.\"),\n}).passthrough().describe(\"Response model for viewing a OneSignal app's metadata.\");\n\nexport const onesignalRestApiViewAnApp = action(\"ONESIGNAL_REST_API_VIEW_AN_APP\", {\n slug: \"onesignal_rest_api-view-an-app\",\n name: \"View OneSignal App\",\n description: \"Tool to retrieve metadata for a single OneSignal app. Use when you need to fetch app details by its ID.\",\n input: OnesignalRestApiViewAnAppInput,\n output: OnesignalRestApiViewAnAppOutput,\n});\n"],"mappings":";;AAiBA,MAAa,4BAA4B,OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB0D,EAAE,OAAO,EACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACxE,CAAC,CAAC,CAAC,SAAS,2DAeH;CACP,QAf2D,EAAE,OAAO;EACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;EACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EAC3E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;CACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"view-an-app.mjs","names":[],"sources":["../../src/actions/view-an-app.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewAnAppInput = z.object({\n app_id: z.string().describe(\"Unique identifier for the OneSignal app.\"),\n}).describe(\"Request model for retrieving metadata of a OneSignal app.\");\nexport const OnesignalRestApiViewAnAppOutput = z.object({\n id: z.string().describe(\"Unique identifier of the OneSignal app.\").nullable(),\n name: z.string().describe(\"Name of the OneSignal app.\").nullable(),\n players: z.number().int().describe(\"Number of registered devices (players).\").nullable(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format.\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format.\").nullable(),\n organization_id: z.string().describe(\"Organization ID if the app belongs to one.\").nullable().optional(),\n messageable_players: z.number().int().describe(\"Number of devices eligible to receive notifications.\").nullable(),\n}).passthrough().describe(\"Response model for viewing a OneSignal app's metadata.\");\n\nexport const onesignalRestApiViewAnApp = action(\"ONESIGNAL_REST_API_VIEW_AN_APP\", {\n slug: \"onesignal_rest_api-view-an-app\",\n name: \"View OneSignal App\",\n description: \"Tool to retrieve metadata for a single OneSignal app. Use when you need to fetch app details by its ID.\",\n input: OnesignalRestApiViewAnAppInput,\n output: OnesignalRestApiViewAnAppOutput,\n});\n"],"mappings":";;AAiBA,MAAa,4BAA4B,OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB4C,EAAE,OAAO,EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACxE,CAAC,CAAC,CAAC,SAAS,2DAeH;CACP,QAf6C,EAAE,OAAO;EACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACtF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
@@ -6,26 +6,26 @@ const OnesignalRestApiViewDeviceInput = zod.z.object({
6
6
  player_id: zod.z.string().describe("Unique ID of the device (player) to retrieve.")
7
7
  }).describe("Request model for retrieving a OneSignal device (player) by its unique ID.");
8
8
  const OnesignalRestApiViewDeviceOutput = zod.z.object({
9
- id: zod.z.string().describe("Unique device (player) ID."),
9
+ id: zod.z.string().describe("Unique device (player) ID.").nullable(),
10
10
  ip: zod.z.string().describe("Last known IP address of the device.").nullable().optional(),
11
11
  sdk: zod.z.string().describe("SDK version used by the device.").nullable().optional(),
12
- tags: zod.z.object({}).describe("Custom key/value tags associated with the device.").nullable().optional(),
12
+ tags: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key/value tags associated with the device.").nullable().optional(),
13
13
  ad_id: zod.z.string().describe("Advertising ID of the device.").nullable().optional(),
14
14
  rooted: zod.z.boolean().describe("Whether the device is rooted/jailbroken.").nullable().optional(),
15
15
  language: zod.z.string().describe("Language code of the device (e.g., 'en').").nullable().optional(),
16
- playtime: zod.z.number().int().describe("Total playtime in seconds for the device."),
16
+ playtime: zod.z.number().int().describe("Total playtime in seconds for the device.").nullable(),
17
17
  timezone: zod.z.number().int().describe("Time zone offset in seconds from UTC for the device.").nullable().optional(),
18
18
  device_os: zod.z.string().describe("Operating system of the device (e.g., 'iOS', 'Android').").nullable().optional(),
19
19
  test_type: zod.z.union([zod.z.string(), zod.z.number().int()]).nullable().optional(),
20
- created_at: zod.z.number().int().describe("UNIX timestamp when the device record was created."),
20
+ created_at: zod.z.number().int().describe("UNIX timestamp when the device record was created.").nullable(),
21
21
  identifier: zod.z.string().describe("Device push token, email, or external user ID.").nullable().optional(),
22
22
  badge_count: zod.z.number().int().describe("Badge count on the device (iOS).").nullable().optional(),
23
- device_type: zod.z.number().int().describe("Device platform type (e.g., iOS=0, Android=1, etc.)."),
24
- last_active: zod.z.number().int().describe("UNIX timestamp of the device's last activity."),
25
- amount_spent: zod.z.number().describe("Total USD amount spent by the user on the app."),
23
+ device_type: zod.z.number().int().describe("Device platform type (e.g., iOS=0, Android=1, etc.).").nullable(),
24
+ last_active: zod.z.number().int().describe("UNIX timestamp of the device's last activity.").nullable(),
25
+ amount_spent: zod.z.number().describe("Total USD amount spent by the user on the app.").nullable(),
26
26
  device_model: zod.z.string().describe("Device model (e.g., 'iPhone13,2').").nullable().optional(),
27
27
  game_version: zod.z.string().describe("Version of the app installed on the device.").nullable().optional(),
28
- session_count: zod.z.number().int().describe("Number of sessions recorded for the device."),
28
+ session_count: zod.z.number().int().describe("Number of sessions recorded for the device.").nullable(),
29
29
  external_user_id: zod.z.string().describe("External user ID associated with the device, if set.").nullable().optional(),
30
30
  invalid_identifier: zod.z.boolean().describe("Whether the device identifier is invalid.").nullable().optional()
31
31
  }).passthrough().describe("Response model for retrieving a OneSignal device (player).");
@@ -1 +1 @@
1
- {"version":3,"file":"view-device.cjs","names":["z","action"],"sources":["../../src/actions/view-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewDeviceInput: z.ZodTypeAny = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n player_id: z.string().describe(\"Unique ID of the device (player) to retrieve.\"),\n}).describe(\"Request model for retrieving a OneSignal device (player) by its unique ID.\");\nexport const OnesignalRestApiViewDeviceOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique device (player) ID.\"),\n ip: z.string().describe(\"Last known IP address of the device.\").nullable().optional(),\n sdk: z.string().describe(\"SDK version used by the device.\").nullable().optional(),\n tags: z.object({}).describe(\"Custom key/value tags associated with the device.\").nullable().optional(),\n ad_id: z.string().describe(\"Advertising ID of the device.\").nullable().optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted/jailbroken.\").nullable().optional(),\n language: z.string().describe(\"Language code of the device (e.g., 'en').\").nullable().optional(),\n playtime: z.number().int().describe(\"Total playtime in seconds for the device.\"),\n timezone: z.number().int().describe(\"Time zone offset in seconds from UTC for the device.\").nullable().optional(),\n device_os: z.string().describe(\"Operating system of the device (e.g., 'iOS', 'Android').\").nullable().optional(),\n test_type: z.union([z.string(), z.number().int()]).nullable().optional(),\n created_at: z.number().int().describe(\"UNIX timestamp when the device record was created.\"),\n identifier: z.string().describe(\"Device push token, email, or external user ID.\").nullable().optional(),\n badge_count: z.number().int().describe(\"Badge count on the device (iOS).\").nullable().optional(),\n device_type: z.number().int().describe(\"Device platform type (e.g., iOS=0, Android=1, etc.).\"),\n last_active: z.number().int().describe(\"UNIX timestamp of the device's last activity.\"),\n amount_spent: z.number().describe(\"Total USD amount spent by the user on the app.\"),\n device_model: z.string().describe(\"Device model (e.g., 'iPhone13,2').\").nullable().optional(),\n game_version: z.string().describe(\"Version of the app installed on the device.\").nullable().optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded for the device.\"),\n external_user_id: z.string().describe(\"External user ID associated with the device, if set.\").nullable().optional(),\n invalid_identifier: z.boolean().describe(\"Whether the device identifier is invalid.\").nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving a OneSignal device (player).\");\n\nexport const onesignalRestApiViewDevice = action(\"ONESIGNAL_REST_API_VIEW_DEVICE\", {\n slug: \"onesignal_rest_api-view-device\",\n name: \"View Device\",\n description: \"Tool to retrieve details of a specific device (player). Use when you have a OneSignal player_id and need current device info.\",\n input: OnesignalRestApiViewDeviceInput,\n output: OnesignalRestApiViewDeviceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AAChF,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,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CAA6C;CACtF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAEtF,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"view-device.cjs","names":["z","action"],"sources":["../../src/actions/view-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewDeviceInput = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n player_id: z.string().describe(\"Unique ID of the device (player) to retrieve.\"),\n}).describe(\"Request model for retrieving a OneSignal device (player) by its unique ID.\");\nexport const OnesignalRestApiViewDeviceOutput = z.object({\n id: z.string().describe(\"Unique device (player) ID.\").nullable(),\n ip: z.string().describe(\"Last known IP address of the device.\").nullable().optional(),\n sdk: z.string().describe(\"SDK version used by the device.\").nullable().optional(),\n tags: z.record(z.string(), z.unknown()).describe(\"Custom key/value tags associated with the device.\").nullable().optional(),\n ad_id: z.string().describe(\"Advertising ID of the device.\").nullable().optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted/jailbroken.\").nullable().optional(),\n language: z.string().describe(\"Language code of the device (e.g., 'en').\").nullable().optional(),\n playtime: z.number().int().describe(\"Total playtime in seconds for the device.\").nullable(),\n timezone: z.number().int().describe(\"Time zone offset in seconds from UTC for the device.\").nullable().optional(),\n device_os: z.string().describe(\"Operating system of the device (e.g., 'iOS', 'Android').\").nullable().optional(),\n test_type: z.union([z.string(), z.number().int()]).nullable().optional(),\n created_at: z.number().int().describe(\"UNIX timestamp when the device record was created.\").nullable(),\n identifier: z.string().describe(\"Device push token, email, or external user ID.\").nullable().optional(),\n badge_count: z.number().int().describe(\"Badge count on the device (iOS).\").nullable().optional(),\n device_type: z.number().int().describe(\"Device platform type (e.g., iOS=0, Android=1, etc.).\").nullable(),\n last_active: z.number().int().describe(\"UNIX timestamp of the device's last activity.\").nullable(),\n amount_spent: z.number().describe(\"Total USD amount spent by the user on the app.\").nullable(),\n device_model: z.string().describe(\"Device model (e.g., 'iPhone13,2').\").nullable().optional(),\n game_version: z.string().describe(\"Version of the app installed on the device.\").nullable().optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded for the device.\").nullable(),\n external_user_id: z.string().describe(\"External user ID associated with the device, if set.\").nullable().optional(),\n invalid_identifier: z.boolean().describe(\"Whether the device identifier is invalid.\").nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving a OneSignal device (player).\");\n\nexport const onesignalRestApiViewDevice = action(\"ONESIGNAL_REST_API_VIEW_DEVICE\", {\n slug: \"onesignal_rest_api-view-device\",\n name: \"View Device\",\n description: \"Tool to retrieve details of a specific device (player). Use when you have a OneSignal player_id and need current device info.\",\n input: OnesignalRestApiViewDeviceInput,\n output: OnesignalRestApiViewDeviceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AAChF,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CA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,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC7F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACjG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAEtF,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/view-device.d.ts
4
- declare const OnesignalRestApiViewDeviceInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiViewDeviceOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiViewDevice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiViewDeviceInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ player_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const OnesignalRestApiViewDeviceOutput: z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ sdk: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ tags: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
13
+ ad_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ rooted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
15
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ playtime: z.ZodNullable<z.ZodNumber>;
17
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ device_os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ test_type: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
20
+ created_at: z.ZodNullable<z.ZodNumber>;
21
+ identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ badge_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ device_type: z.ZodNullable<z.ZodNumber>;
24
+ last_active: z.ZodNullable<z.ZodNumber>;
25
+ amount_spent: z.ZodNullable<z.ZodNumber>;
26
+ device_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ game_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ session_count: z.ZodNullable<z.ZodNumber>;
29
+ external_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ invalid_identifier: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
31
+ }, z.core.$loose>;
32
+ declare const onesignalRestApiViewDevice: import("@keystrokehq/action").WorkflowActionDefinition<{
33
+ app_id: string;
34
+ player_id: string;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { onesignalRestApiViewDevice };
9
38
  //# sourceMappingURL=view-device.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view-device.d.cts","names":[],"sources":["../../src/actions/view-device.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAGyC;AAAA,cAC5E,gCAAA,EAAkC,CAAA,CAAE,UAuBsC;AAAA,cAE1E,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"view-device.d.cts","names":[],"sources":["../../src/actions/view-device.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAI/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAyBhC,0BAAA,gCAA0B,wBAAA"}
@@ -1,9 +1,38 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/view-device.d.ts
4
- declare const OnesignalRestApiViewDeviceInput: z.ZodTypeAny;
5
- declare const OnesignalRestApiViewDeviceOutput: z.ZodTypeAny;
6
- declare const onesignalRestApiViewDevice: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OnesignalRestApiViewDeviceInput: z.ZodObject<{
5
+ app_id: z.ZodString;
6
+ player_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const OnesignalRestApiViewDeviceOutput: z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ sdk: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ tags: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
13
+ ad_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ rooted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
15
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ playtime: z.ZodNullable<z.ZodNumber>;
17
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ device_os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ test_type: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
20
+ created_at: z.ZodNullable<z.ZodNumber>;
21
+ identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ badge_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ device_type: z.ZodNullable<z.ZodNumber>;
24
+ last_active: z.ZodNullable<z.ZodNumber>;
25
+ amount_spent: z.ZodNullable<z.ZodNumber>;
26
+ device_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ game_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ session_count: z.ZodNullable<z.ZodNumber>;
29
+ external_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ invalid_identifier: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
31
+ }, z.core.$loose>;
32
+ declare const onesignalRestApiViewDevice: import("@keystrokehq/action").WorkflowActionDefinition<{
33
+ app_id: string;
34
+ player_id: string;
35
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
36
  //#endregion
8
37
  export { onesignalRestApiViewDevice };
9
38
  //# sourceMappingURL=view-device.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view-device.d.mts","names":[],"sources":["../../src/actions/view-device.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAGyC;AAAA,cAC5E,gCAAA,EAAkC,CAAA,CAAE,UAuBsC;AAAA,cAE1E,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"view-device.d.mts","names":[],"sources":["../../src/actions/view-device.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAI/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAyBhC,0BAAA,gCAA0B,wBAAA"}