@keystrokehq/onesignal_rest_api 0.1.5 → 0.1.6

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 (133) 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 -0
  4. package/dist/actions/begin-live-activity.cjs.map +1 -1
  5. package/dist/actions/begin-live-activity.d.cts +3 -18
  6. package/dist/actions/begin-live-activity.d.cts.map +1 -1
  7. package/dist/actions/begin-live-activity.d.mts +3 -18
  8. package/dist/actions/begin-live-activity.d.mts.map +1 -1
  9. package/dist/actions/begin-live-activity.mjs +1 -0
  10. package/dist/actions/begin-live-activity.mjs.map +1 -1
  11. package/dist/actions/create-notification.cjs +1 -0
  12. package/dist/actions/create-notification.cjs.map +1 -1
  13. package/dist/actions/create-notification.d.cts +3 -33
  14. package/dist/actions/create-notification.d.cts.map +1 -1
  15. package/dist/actions/create-notification.d.mts +3 -33
  16. package/dist/actions/create-notification.d.mts.map +1 -1
  17. package/dist/actions/create-notification.mjs +1 -0
  18. package/dist/actions/create-notification.mjs.map +1 -1
  19. package/dist/actions/create-template.cjs +1 -0
  20. package/dist/actions/create-template.cjs.map +1 -1
  21. package/dist/actions/create-template.d.cts +3 -35
  22. package/dist/actions/create-template.d.cts.map +1 -1
  23. package/dist/actions/create-template.d.mts +3 -35
  24. package/dist/actions/create-template.d.mts.map +1 -1
  25. package/dist/actions/create-template.mjs +1 -0
  26. package/dist/actions/create-template.mjs.map +1 -1
  27. package/dist/actions/create-user.cjs +1 -0
  28. package/dist/actions/create-user.cjs.map +1 -1
  29. package/dist/actions/create-user.d.cts +3 -56
  30. package/dist/actions/create-user.d.cts.map +1 -1
  31. package/dist/actions/create-user.d.mts +3 -56
  32. package/dist/actions/create-user.d.mts.map +1 -1
  33. package/dist/actions/create-user.mjs +1 -0
  34. package/dist/actions/create-user.mjs.map +1 -1
  35. package/dist/actions/delete-alias.cjs +1 -0
  36. package/dist/actions/delete-alias.cjs.map +1 -1
  37. package/dist/actions/delete-alias.d.cts +3 -18
  38. package/dist/actions/delete-alias.d.cts.map +1 -1
  39. package/dist/actions/delete-alias.d.mts +3 -18
  40. package/dist/actions/delete-alias.d.mts.map +1 -1
  41. package/dist/actions/delete-alias.mjs +1 -0
  42. package/dist/actions/delete-alias.mjs.map +1 -1
  43. package/dist/actions/delete-device.cjs +1 -0
  44. package/dist/actions/delete-device.cjs.map +1 -1
  45. package/dist/actions/delete-device.d.cts +3 -16
  46. package/dist/actions/delete-device.d.cts.map +1 -1
  47. package/dist/actions/delete-device.d.mts +3 -16
  48. package/dist/actions/delete-device.d.mts.map +1 -1
  49. package/dist/actions/delete-device.mjs +1 -0
  50. package/dist/actions/delete-device.mjs.map +1 -1
  51. package/dist/actions/fetch-user-identity.cjs +1 -0
  52. package/dist/actions/fetch-user-identity.cjs.map +1 -1
  53. package/dist/actions/fetch-user-identity.d.cts +3 -17
  54. package/dist/actions/fetch-user-identity.d.cts.map +1 -1
  55. package/dist/actions/fetch-user-identity.d.mts +3 -17
  56. package/dist/actions/fetch-user-identity.d.mts.map +1 -1
  57. package/dist/actions/fetch-user-identity.mjs +1 -0
  58. package/dist/actions/fetch-user-identity.mjs.map +1 -1
  59. package/dist/actions/get-eligible-iams.cjs +1 -0
  60. package/dist/actions/get-eligible-iams.cjs.map +1 -1
  61. package/dist/actions/get-eligible-iams.d.cts +3 -16
  62. package/dist/actions/get-eligible-iams.d.cts.map +1 -1
  63. package/dist/actions/get-eligible-iams.d.mts +3 -16
  64. package/dist/actions/get-eligible-iams.d.mts.map +1 -1
  65. package/dist/actions/get-eligible-iams.mjs +1 -0
  66. package/dist/actions/get-eligible-iams.mjs.map +1 -1
  67. package/dist/actions/update-device.cjs +1 -0
  68. package/dist/actions/update-device.cjs.map +1 -1
  69. package/dist/actions/update-device.d.cts +3 -40
  70. package/dist/actions/update-device.d.cts.map +1 -1
  71. package/dist/actions/update-device.d.mts +3 -40
  72. package/dist/actions/update-device.d.mts.map +1 -1
  73. package/dist/actions/update-device.mjs +1 -0
  74. package/dist/actions/update-device.mjs.map +1 -1
  75. package/dist/actions/update-subscription.cjs +1 -0
  76. package/dist/actions/update-subscription.cjs.map +1 -1
  77. package/dist/actions/update-subscription.d.cts +3 -35
  78. package/dist/actions/update-subscription.d.cts.map +1 -1
  79. package/dist/actions/update-subscription.d.mts +3 -35
  80. package/dist/actions/update-subscription.d.mts.map +1 -1
  81. package/dist/actions/update-subscription.mjs +1 -0
  82. package/dist/actions/update-subscription.mjs.map +1 -1
  83. package/dist/actions/view-an-app.cjs +1 -0
  84. package/dist/actions/view-an-app.cjs.map +1 -1
  85. package/dist/actions/view-an-app.d.cts +3 -15
  86. package/dist/actions/view-an-app.d.cts.map +1 -1
  87. package/dist/actions/view-an-app.d.mts +3 -15
  88. package/dist/actions/view-an-app.d.mts.map +1 -1
  89. package/dist/actions/view-an-app.mjs +1 -0
  90. package/dist/actions/view-an-app.mjs.map +1 -1
  91. package/dist/actions/view-device.cjs +1 -0
  92. package/dist/actions/view-device.cjs.map +1 -1
  93. package/dist/actions/view-device.d.cts +3 -16
  94. package/dist/actions/view-device.d.cts.map +1 -1
  95. package/dist/actions/view-device.d.mts +3 -16
  96. package/dist/actions/view-device.d.mts.map +1 -1
  97. package/dist/actions/view-device.mjs +1 -0
  98. package/dist/actions/view-device.mjs.map +1 -1
  99. package/dist/actions/view-devices.cjs +1 -0
  100. package/dist/actions/view-devices.cjs.map +1 -1
  101. package/dist/actions/view-devices.d.cts +3 -17
  102. package/dist/actions/view-devices.d.cts.map +1 -1
  103. package/dist/actions/view-devices.d.mts +3 -17
  104. package/dist/actions/view-devices.d.mts.map +1 -1
  105. package/dist/actions/view-devices.mjs +1 -0
  106. package/dist/actions/view-devices.mjs.map +1 -1
  107. package/dist/actions/view-notifications.cjs +1 -0
  108. package/dist/actions/view-notifications.cjs.map +1 -1
  109. package/dist/actions/view-notifications.d.cts +3 -17
  110. package/dist/actions/view-notifications.d.cts.map +1 -1
  111. package/dist/actions/view-notifications.d.mts +3 -17
  112. package/dist/actions/view-notifications.d.mts.map +1 -1
  113. package/dist/actions/view-notifications.mjs +1 -0
  114. package/dist/actions/view-notifications.mjs.map +1 -1
  115. package/dist/actions/view-segments.cjs +1 -0
  116. package/dist/actions/view-segments.cjs.map +1 -1
  117. package/dist/actions/view-segments.d.cts +3 -17
  118. package/dist/actions/view-segments.d.cts.map +1 -1
  119. package/dist/actions/view-segments.d.mts +3 -17
  120. package/dist/actions/view-segments.d.mts.map +1 -1
  121. package/dist/actions/view-segments.mjs +1 -0
  122. package/dist/actions/view-segments.mjs.map +1 -1
  123. package/dist/app.cjs +2 -2
  124. package/dist/app.cjs.map +1 -1
  125. package/dist/app.d.cts +4 -6
  126. package/dist/app.d.cts.map +1 -1
  127. package/dist/app.d.mts +4 -6
  128. package/dist/app.d.mts.map +1 -1
  129. package/dist/app.mjs +0 -1
  130. package/dist/app.mjs.map +1 -1
  131. package/dist/index.d.cts +1 -1
  132. package/dist/index.d.mts +1 -1
  133. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { onesignalRestApi } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-user.d.ts
@@ -48,62 +50,7 @@ declare const OnesignalRestApiCreateUserOutput: z.ZodObject<{
48
50
  properties: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
49
51
  subscriptions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
50
52
  }, z.core.$loose>;
51
- declare const onesignalRestApiCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
52
- app_id: string;
53
- identity?: {
54
- [x: string]: unknown;
55
- external_id?: string | undefined;
56
- onesignal_id?: string | undefined;
57
- } | undefined;
58
- properties?: {
59
- ip?: string | undefined;
60
- lat?: number | undefined;
61
- long?: number | undefined;
62
- tags?: Record<string, unknown> | undefined;
63
- country?: string | undefined;
64
- language?: string | undefined;
65
- purchases?: Record<string, unknown>[] | undefined;
66
- last_active?: number | undefined;
67
- timezone_id?: string | undefined;
68
- amount_spent?: number | undefined;
69
- first_active?: number | undefined;
70
- } | undefined;
71
- subscriptions?: {
72
- [x: string]: unknown;
73
- id?: string | undefined;
74
- sdk?: string | undefined;
75
- type?: string | undefined;
76
- token?: string | undefined;
77
- rooted?: boolean | undefined;
78
- carrier?: string | undefined;
79
- enabled?: boolean | undefined;
80
- net_type?: number | undefined;
81
- web_auth?: string | undefined;
82
- web_p256?: string | undefined;
83
- device_os?: string | undefined;
84
- test_type?: number | undefined;
85
- app_version?: string | undefined;
86
- device_model?: string | undefined;
87
- session_time?: number | undefined;
88
- session_count?: number | undefined;
89
- notification_types?: number | undefined;
90
- }[] | undefined;
91
- subscription_options?: {
92
- retain_previous_owner?: boolean | undefined;
93
- } | undefined;
94
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"onesignal_rest_api", z.ZodObject<{
95
- connectionId: z.ZodString;
96
- entityId: z.ZodString;
97
- instanceId: z.ZodString;
98
- }, z.core.$strip>, z.ZodObject<{
99
- generic_api_key: z.ZodString;
100
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"onesignal_rest_api", z.ZodObject<{
101
- connectionId: z.ZodString;
102
- entityId: z.ZodString;
103
- instanceId: z.ZodString;
104
- }, z.core.$strip>, z.ZodObject<{
105
- generic_api_key: z.ZodString;
106
- }, z.core.$strip>>]>;
53
+ declare const onesignalRestApiCreateUser: AppAction<typeof OnesignalRestApiCreateUserInput, typeof OnesignalRestApiCreateUserOutput, typeof onesignalRestApi.credential>;
107
54
  //#endregion
108
55
  export { onesignalRestApiCreateUser };
109
56
  //# sourceMappingURL=create-user.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAMhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAMhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,gBAAA,CAAiB,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { onesignalRestApi } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-user.d.ts
@@ -48,62 +50,7 @@ declare const OnesignalRestApiCreateUserOutput: z.ZodObject<{
48
50
  properties: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
49
51
  subscriptions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
50
52
  }, z.core.$loose>;
51
- declare const onesignalRestApiCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
52
- app_id: string;
53
- identity?: {
54
- [x: string]: unknown;
55
- external_id?: string | undefined;
56
- onesignal_id?: string | undefined;
57
- } | undefined;
58
- properties?: {
59
- ip?: string | undefined;
60
- lat?: number | undefined;
61
- long?: number | undefined;
62
- tags?: Record<string, unknown> | undefined;
63
- country?: string | undefined;
64
- language?: string | undefined;
65
- purchases?: Record<string, unknown>[] | undefined;
66
- last_active?: number | undefined;
67
- timezone_id?: string | undefined;
68
- amount_spent?: number | undefined;
69
- first_active?: number | undefined;
70
- } | undefined;
71
- subscriptions?: {
72
- [x: string]: unknown;
73
- id?: string | undefined;
74
- sdk?: string | undefined;
75
- type?: string | undefined;
76
- token?: string | undefined;
77
- rooted?: boolean | undefined;
78
- carrier?: string | undefined;
79
- enabled?: boolean | undefined;
80
- net_type?: number | undefined;
81
- web_auth?: string | undefined;
82
- web_p256?: string | undefined;
83
- device_os?: string | undefined;
84
- test_type?: number | undefined;
85
- app_version?: string | undefined;
86
- device_model?: string | undefined;
87
- session_time?: number | undefined;
88
- session_count?: number | undefined;
89
- notification_types?: number | undefined;
90
- }[] | undefined;
91
- subscription_options?: {
92
- retain_previous_owner?: boolean | undefined;
93
- } | undefined;
94
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"onesignal_rest_api", z.ZodObject<{
95
- connectionId: z.ZodString;
96
- entityId: z.ZodString;
97
- instanceId: z.ZodString;
98
- }, z.core.$strip>, z.ZodObject<{
99
- generic_api_key: z.ZodString;
100
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"onesignal_rest_api", z.ZodObject<{
101
- connectionId: z.ZodString;
102
- entityId: z.ZodString;
103
- instanceId: z.ZodString;
104
- }, z.core.$strip>, z.ZodObject<{
105
- generic_api_key: z.ZodString;
106
- }, z.core.$strip>>]>;
53
+ declare const onesignalRestApiCreateUser: AppAction<typeof OnesignalRestApiCreateUserInput, typeof OnesignalRestApiCreateUserOutput, typeof onesignalRestApi.credential>;
107
54
  //#endregion
108
55
  export { onesignalRestApiCreateUser };
109
56
  //# sourceMappingURL=create-user.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAMhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAMhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,gBAAA,CAAiB,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const onesignalRestApiCreateUser = action("ONESIGNAL_REST_API_CREATE_USER", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.mjs","names":[],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateUserInput = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n identity: z.object({\n external_id: z.string().describe(\"External user ID for identifying the user across platforms\").optional(),\n onesignal_id: z.string().describe(\"OneSignal user ID for existing users\").optional(),\n}).passthrough().describe(\"Identity object for user identification. Aliases provided will be used to look up an existing user.\").optional(),\n properties: z.object({\n ip: z.string().describe(\"IP address of the user\").optional(),\n lat: z.number().describe(\"Latitude coordinate of the user's location\").optional(),\n long: z.number().describe(\"Longitude coordinate of the user's location\").optional(),\n tags: z.record(z.string(), z.unknown()).describe(\"Custom key/value tags associated with the user\").optional(),\n country: z.string().describe(\"Country code (e.g., 'US')\").optional(),\n language: z.string().describe(\"Language code of the user (e.g., 'en')\").optional(),\n purchases: z.array(z.record(z.string(), z.unknown())).describe(\"List of purchase records for the user\").optional(),\n last_active: z.number().int().describe(\"UNIX timestamp of when the user was last active\").optional(),\n timezone_id: z.string().describe(\"Timezone identifier (e.g., 'America/New_York')\").optional(),\n amount_spent: z.number().describe(\"Total amount spent by the user\").optional(),\n first_active: z.number().int().describe(\"UNIX timestamp of when the user was first active\").optional(),\n}).describe(\"User properties including location, activity, and custom data.\").optional(),\n subscriptions: z.array(z.object({\n id: z.string().describe(\"Subscription ID\").optional(),\n sdk: z.string().describe(\"SDK version used\").optional(),\n type: z.string().describe(\"Subscription type (e.g., 'AndroidPush', 'iOSPush', 'Email', 'SMS')\").optional(),\n token: z.string().describe(\"Push token or address for the subscription\").optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted/jailbroken\").optional(),\n carrier: z.string().describe(\"Mobile carrier\").optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled\").optional(),\n net_type: z.number().int().describe(\"Network type\").optional(),\n web_auth: z.string().describe(\"Web push auth key\").optional(),\n web_p256: z.string().describe(\"Web push p256 key\").optional(),\n device_os: z.string().describe(\"Operating system version\").optional(),\n test_type: z.number().int().describe(\"Test type (1 for development, 2 for ad-hoc)\").optional(),\n app_version: z.string().describe(\"Version of the app\").optional(),\n device_model: z.string().describe(\"Device model\").optional(),\n session_time: z.number().int().describe(\"Total session time in seconds\").optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state\").optional(),\n}).passthrough().describe(\"Subscription object representing a device or channel subscribed to notifications.\")).describe(\"List of subscriptions (devices/channels) owned by the user\").optional(),\n subscription_options: z.object({\n retain_previous_owner: z.boolean().describe(\"Whether to retain the previous owner when transferring subscriptions\").optional(),\n}).describe(\"Options for subscription management.\").optional(),\n}).describe(\"Request model for creating a OneSignal user with optional subscriptions and aliases.\");\nexport const OnesignalRestApiCreateUserOutput = z.object({\n identity: z.record(z.string(), z.unknown()).describe(\"Identity information of the created user\").nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Properties of the created user\").nullable().optional(),\n subscriptions: z.array(z.record(z.string(), z.unknown())).describe(\"Subscriptions associated with the created user\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a OneSignal user.\");\n\nexport const onesignalRestApiCreateUser = action(\"ONESIGNAL_REST_API_CREATE_USER\", {\n slug: \"onesignal_rest_api-create-user\",\n name: \"Create User\",\n description: \"Tool to create a OneSignal user with optional subscriptions and aliases. Aliases provided in the payload will be used to look up an existing user.\",\n input: OnesignalRestApiCreateUserInput,\n output: OnesignalRestApiCreateUserOutput,\n});\n"],"mappings":"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"}
1
+ {"version":3,"file":"create-user.mjs","names":[],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { onesignalRestApi } from \"../app\";\n\nexport const OnesignalRestApiCreateUserInput = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n identity: z.object({\n external_id: z.string().describe(\"External user ID for identifying the user across platforms\").optional(),\n onesignal_id: z.string().describe(\"OneSignal user ID for existing users\").optional(),\n}).passthrough().describe(\"Identity object for user identification. Aliases provided will be used to look up an existing user.\").optional(),\n properties: z.object({\n ip: z.string().describe(\"IP address of the user\").optional(),\n lat: z.number().describe(\"Latitude coordinate of the user's location\").optional(),\n long: z.number().describe(\"Longitude coordinate of the user's location\").optional(),\n tags: z.record(z.string(), z.unknown()).describe(\"Custom key/value tags associated with the user\").optional(),\n country: z.string().describe(\"Country code (e.g., 'US')\").optional(),\n language: z.string().describe(\"Language code of the user (e.g., 'en')\").optional(),\n purchases: z.array(z.record(z.string(), z.unknown())).describe(\"List of purchase records for the user\").optional(),\n last_active: z.number().int().describe(\"UNIX timestamp of when the user was last active\").optional(),\n timezone_id: z.string().describe(\"Timezone identifier (e.g., 'America/New_York')\").optional(),\n amount_spent: z.number().describe(\"Total amount spent by the user\").optional(),\n first_active: z.number().int().describe(\"UNIX timestamp of when the user was first active\").optional(),\n}).describe(\"User properties including location, activity, and custom data.\").optional(),\n subscriptions: z.array(z.object({\n id: z.string().describe(\"Subscription ID\").optional(),\n sdk: z.string().describe(\"SDK version used\").optional(),\n type: z.string().describe(\"Subscription type (e.g., 'AndroidPush', 'iOSPush', 'Email', 'SMS')\").optional(),\n token: z.string().describe(\"Push token or address for the subscription\").optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted/jailbroken\").optional(),\n carrier: z.string().describe(\"Mobile carrier\").optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled\").optional(),\n net_type: z.number().int().describe(\"Network type\").optional(),\n web_auth: z.string().describe(\"Web push auth key\").optional(),\n web_p256: z.string().describe(\"Web push p256 key\").optional(),\n device_os: z.string().describe(\"Operating system version\").optional(),\n test_type: z.number().int().describe(\"Test type (1 for development, 2 for ad-hoc)\").optional(),\n app_version: z.string().describe(\"Version of the app\").optional(),\n device_model: z.string().describe(\"Device model\").optional(),\n session_time: z.number().int().describe(\"Total session time in seconds\").optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state\").optional(),\n}).passthrough().describe(\"Subscription object representing a device or channel subscribed to notifications.\")).describe(\"List of subscriptions (devices/channels) owned by the user\").optional(),\n subscription_options: z.object({\n retain_previous_owner: z.boolean().describe(\"Whether to retain the previous owner when transferring subscriptions\").optional(),\n}).describe(\"Options for subscription management.\").optional(),\n}).describe(\"Request model for creating a OneSignal user with optional subscriptions and aliases.\");\nexport const OnesignalRestApiCreateUserOutput = z.object({\n identity: z.record(z.string(), z.unknown()).describe(\"Identity information of the created user\").nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Properties of the created user\").nullable().optional(),\n subscriptions: z.array(z.record(z.string(), z.unknown())).describe(\"Subscriptions associated with the created user\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a OneSignal user.\");\n\nexport const onesignalRestApiCreateUser: AppAction<\n typeof OnesignalRestApiCreateUserInput,\n typeof OnesignalRestApiCreateUserOutput,\n typeof onesignalRestApi.credential\n> = action(\"ONESIGNAL_REST_API_CREATE_USER\", {\n slug: \"onesignal_rest_api-create-user\",\n name: \"Create User\",\n description: \"Tool to create a OneSignal user with optional subscriptions and aliases. Aliases provided in the payload will be used to look up an existing user.\",\n input: OnesignalRestApiCreateUserInput,\n output: OnesignalRestApiCreateUserOutput,\n});\n"],"mappings":"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"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/delete-alias.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-alias.cjs","names":["z","action"],"sources":["../../src/actions/delete-alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiDeleteAliasInput = z.object({\n app_id: z.string().describe(\"The OneSignal App ID\"),\n alias_id: z.string().describe(\"The value of the alias to identify the user\"),\n alias_label: z.string().describe(\"The alias label to identify the user (e.g., 'external_id', 'email')\"),\n alias_label_to_delete: z.string().describe(\"The alias label to delete from the user's identity (e.g., 'email', 'phone_number')\"),\n}).describe(\"Parameters for deleting an alias by alias label from a OneSignal user.\");\nexport const OnesignalRestApiDeleteAliasOutput = z.object({\n identity: z.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":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAClD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACtG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;AACjI,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-alias.cjs","names":["z","action"],"sources":["../../src/actions/delete-alias.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { onesignalRestApi } from \"../app\";\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: AppAction<\n typeof OnesignalRestApiDeleteAliasInput,\n typeof OnesignalRestApiDeleteAliasOutput,\n typeof onesignalRestApi.credential\n> = 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":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAClD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACtG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;AACjI,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,8BAITC,eAAAA,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { onesignalRestApi } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-alias.d.ts
@@ -10,24 +12,7 @@ declare const OnesignalRestApiDeleteAliasInput: z.ZodObject<{
10
12
  declare const OnesignalRestApiDeleteAliasOutput: z.ZodObject<{
11
13
  identity: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12
14
  }, 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<"onesignal_rest_api", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"onesignal_rest_api", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- generic_api_key: z.ZodString;
30
- }, z.core.$strip>>]>;
15
+ declare const onesignalRestApiDeleteAlias: AppAction<typeof OnesignalRestApiDeleteAliasInput, typeof OnesignalRestApiDeleteAliasOutput, typeof onesignalRestApi.credential>;
31
16
  //#endregion
32
17
  export { onesignalRestApiDeleteAlias };
33
18
  //# sourceMappingURL=delete-alias.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-alias.d.cts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAMhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
1
+ {"version":3,"file":"delete-alias.d.cts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAMhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,gBAAA,CAAiB,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { onesignalRestApi } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-alias.d.ts
@@ -10,24 +12,7 @@ declare const OnesignalRestApiDeleteAliasInput: z.ZodObject<{
10
12
  declare const OnesignalRestApiDeleteAliasOutput: z.ZodObject<{
11
13
  identity: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12
14
  }, 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<"onesignal_rest_api", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"onesignal_rest_api", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- generic_api_key: z.ZodString;
30
- }, z.core.$strip>>]>;
15
+ declare const onesignalRestApiDeleteAlias: AppAction<typeof OnesignalRestApiDeleteAliasInput, typeof OnesignalRestApiDeleteAliasOutput, typeof onesignalRestApi.credential>;
31
16
  //#endregion
32
17
  export { onesignalRestApiDeleteAlias };
33
18
  //# 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,EAAgC,CAAA,CAAA,SAAA;;;;;;cAMhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
1
+ {"version":3,"file":"delete-alias.d.mts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAMhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,gBAAA,CAAiB,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const onesignalRestApiDeleteAlias = action("ONESIGNAL_REST_API_DELETE_ALIAS", {
@@ -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.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"}
1
+ {"version":3,"file":"delete-alias.mjs","names":[],"sources":["../../src/actions/delete-alias.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { onesignalRestApi } from \"../app\";\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: AppAction<\n typeof OnesignalRestApiDeleteAliasInput,\n typeof OnesignalRestApiDeleteAliasOutput,\n typeof onesignalRestApi.credential\n> = 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":";;;AAgBA,MAAa,8BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB8C,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,wEAaH;CACP,QAb+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,iDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/delete-device.ts
@@ -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.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
+ {"version":3,"file":"delete-device.cjs","names":["z","action"],"sources":["../../src/actions/delete-device.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { onesignalRestApi } from \"../app\";\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: AppAction<\n typeof OnesignalRestApiDeleteDeviceInput,\n typeof OnesignalRestApiDeleteDeviceOutput,\n typeof onesignalRestApi.credential\n> = 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":";;;;AAMA,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,+BAITC,eAAAA,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { onesignalRestApi } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-device.d.ts
@@ -10,22 +12,7 @@ declare const OnesignalRestApiDeleteDeviceOutput: z.ZodObject<{
10
12
  errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
11
13
  success: z.ZodNullable<z.ZodBoolean>;
12
14
  }, 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<"onesignal_rest_api", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- generic_api_key: z.ZodString;
22
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"onesignal_rest_api", z.ZodObject<{
23
- connectionId: z.ZodString;
24
- entityId: z.ZodString;
25
- instanceId: z.ZodString;
26
- }, z.core.$strip>, z.ZodObject<{
27
- generic_api_key: z.ZodString;
28
- }, z.core.$strip>>]>;
15
+ declare const onesignalRestApiDeleteDevice: AppAction<typeof OnesignalRestApiDeleteDeviceInput, typeof OnesignalRestApiDeleteDeviceOutput, typeof onesignalRestApi.credential>;
29
16
  //#endregion
30
17
  export { onesignalRestApiDeleteDevice };
31
18
  //# 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,EAAiC,CAAA,CAAA,SAAA;;;;cAIjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"delete-device.d.cts","names":[],"sources":["../../src/actions/delete-device.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAIjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,gBAAA,CAAiB,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { onesignalRestApi } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-device.d.ts
@@ -10,22 +12,7 @@ declare const OnesignalRestApiDeleteDeviceOutput: z.ZodObject<{
10
12
  errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
11
13
  success: z.ZodNullable<z.ZodBoolean>;
12
14
  }, 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<"onesignal_rest_api", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- generic_api_key: z.ZodString;
22
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"onesignal_rest_api", z.ZodObject<{
23
- connectionId: z.ZodString;
24
- entityId: z.ZodString;
25
- instanceId: z.ZodString;
26
- }, z.core.$strip>, z.ZodObject<{
27
- generic_api_key: z.ZodString;
28
- }, z.core.$strip>>]>;
15
+ declare const onesignalRestApiDeleteDevice: AppAction<typeof OnesignalRestApiDeleteDeviceInput, typeof OnesignalRestApiDeleteDeviceOutput, typeof onesignalRestApi.credential>;
29
16
  //#endregion
30
17
  export { onesignalRestApiDeleteDevice };
31
18
  //# 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,EAAiC,CAAA,CAAA,SAAA;;;;cAIjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"delete-device.d.mts","names":[],"sources":["../../src/actions/delete-device.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAIjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,gBAAA,CAAiB,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const onesignalRestApiDeleteDevice = action("ONESIGNAL_REST_API_DELETE_DEVICE", {
@@ -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.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"}
1
+ {"version":3,"file":"delete-device.mjs","names":[],"sources":["../../src/actions/delete-device.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { onesignalRestApi } from \"../app\";\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: AppAction<\n typeof OnesignalRestApiDeleteDeviceInput,\n typeof OnesignalRestApiDeleteDeviceOutput,\n typeof onesignalRestApi.credential\n> = 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":";;;AAgBA,MAAa,+BAIT,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB+C,EAAE,OAAO;EACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC7E,CAAC,CAAC,CAAC,SAAS,sDAeH;CACP,QAfgD,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,0DAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/fetch-user-identity.ts
@@ -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.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
+ {"version":3,"file":"fetch-user-identity.cjs","names":["z","action"],"sources":["../../src/actions/fetch-user-identity.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { onesignalRestApi } from \"../app\";\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: AppAction<\n typeof OnesignalRestApiFetchUserIdentityInput,\n typeof OnesignalRestApiFetchUserIdentityOutput,\n typeof onesignalRestApi.credential\n> = 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":";;;;AAMA,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,oCAITC,eAAAA,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { onesignalRestApi } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/fetch-user-identity.d.ts
@@ -9,23 +11,7 @@ declare const OnesignalRestApiFetchUserIdentityInput: z.ZodObject<{
9
11
  declare const OnesignalRestApiFetchUserIdentityOutput: z.ZodObject<{
10
12
  identity: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11
13
  }, 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<"onesignal_rest_api", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- generic_api_key: z.ZodString;
22
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"onesignal_rest_api", z.ZodObject<{
23
- connectionId: z.ZodString;
24
- entityId: z.ZodString;
25
- instanceId: z.ZodString;
26
- }, z.core.$strip>, z.ZodObject<{
27
- generic_api_key: z.ZodString;
28
- }, z.core.$strip>>]>;
14
+ declare const onesignalRestApiFetchUserIdentity: AppAction<typeof OnesignalRestApiFetchUserIdentityInput, typeof OnesignalRestApiFetchUserIdentityOutput, typeof onesignalRestApi.credential>;
29
15
  //#endregion
30
16
  export { onesignalRestApiFetchUserIdentity };
31
17
  //# 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,EAAsC,CAAA,CAAA,SAAA;;;;;cAKtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAIvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"fetch-user-identity.d.cts","names":[],"sources":["../../src/actions/fetch-user-identity.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;cAKtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAIvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,gBAAA,CAAiB,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { onesignalRestApi } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/fetch-user-identity.d.ts
@@ -9,23 +11,7 @@ declare const OnesignalRestApiFetchUserIdentityInput: z.ZodObject<{
9
11
  declare const OnesignalRestApiFetchUserIdentityOutput: z.ZodObject<{
10
12
  identity: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11
13
  }, 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<"onesignal_rest_api", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- generic_api_key: z.ZodString;
22
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"onesignal_rest_api", z.ZodObject<{
23
- connectionId: z.ZodString;
24
- entityId: z.ZodString;
25
- instanceId: z.ZodString;
26
- }, z.core.$strip>, z.ZodObject<{
27
- generic_api_key: z.ZodString;
28
- }, z.core.$strip>>]>;
14
+ declare const onesignalRestApiFetchUserIdentity: AppAction<typeof OnesignalRestApiFetchUserIdentityInput, typeof OnesignalRestApiFetchUserIdentityOutput, typeof onesignalRestApi.credential>;
29
15
  //#endregion
30
16
  export { onesignalRestApiFetchUserIdentity };
31
17
  //# 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,EAAsC,CAAA,CAAA,SAAA;;;;;cAKtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAIvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"fetch-user-identity.d.mts","names":[],"sources":["../../src/actions/fetch-user-identity.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;cAKtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAIvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,gBAAA,CAAiB,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const onesignalRestApiFetchUserIdentity = action("ONESIGNAL_REST_API_FETCH_USER_IDENTITY", {
@@ -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.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
+ {"version":3,"file":"fetch-user-identity.mjs","names":[],"sources":["../../src/actions/fetch-user-identity.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { onesignalRestApi } from \"../app\";\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: AppAction<\n typeof OnesignalRestApiFetchUserIdentityInput,\n typeof OnesignalRestApiFetchUserIdentityOutput,\n typeof onesignalRestApi.credential\n> = 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":";;;AAeA,MAAa,oCAIT,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBoD,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,6EAaH;CACP,QAbqD,EAAE,OAAO,EAC9D,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iGAAiG,EACxJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-eligible-iams.ts
@@ -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.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
+ {"version":3,"file":"get-eligible-iams.cjs","names":["z","action"],"sources":["../../src/actions/get-eligible-iams.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { onesignalRestApi } from \"../app\";\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: AppAction<\n typeof OnesignalRestApiGetEligibleIamsInput,\n typeof OnesignalRestApiGetEligibleIamsOutput,\n typeof onesignalRestApi.credential\n> = 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":";;;;AAMA,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,kCAITC,eAAAA,OAAO,wCAAwC;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { onesignalRestApi } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-eligible-iams.d.ts
@@ -8,22 +10,7 @@ declare const OnesignalRestApiGetEligibleIamsInput: z.ZodObject<{
8
10
  declare const OnesignalRestApiGetEligibleIamsOutput: z.ZodObject<{
9
11
  in_app_messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10
12
  }, 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<"onesignal_rest_api", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- generic_api_key: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"onesignal_rest_api", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>;
13
+ declare const onesignalRestApiGetEligibleIams: AppAction<typeof OnesignalRestApiGetEligibleIamsInput, typeof OnesignalRestApiGetEligibleIamsOutput, typeof onesignalRestApi.credential>;
27
14
  //#endregion
28
15
  export { onesignalRestApiGetEligibleIams };
29
16
  //# 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,EAAoC,CAAA,CAAA,SAAA;;;;cAKpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;cAIrC,+BAAA,gCAA+B,wBAAA"}
1
+ {"version":3,"file":"get-eligible-iams.d.cts","names":[],"sources":["../../src/actions/get-eligible-iams.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAKpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;cAIrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,gBAAA,CAAiB,UAAA"}