@keystrokehq/onesignal_rest_api 0.1.4 → 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.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/begin-live-activity.cjs +1 -0
- package/dist/actions/begin-live-activity.cjs.map +1 -1
- package/dist/actions/begin-live-activity.d.cts +3 -6
- package/dist/actions/begin-live-activity.d.cts.map +1 -1
- package/dist/actions/begin-live-activity.d.mts +3 -6
- package/dist/actions/begin-live-activity.d.mts.map +1 -1
- package/dist/actions/begin-live-activity.mjs +1 -0
- package/dist/actions/begin-live-activity.mjs.map +1 -1
- package/dist/actions/create-notification.cjs +1 -0
- package/dist/actions/create-notification.cjs.map +1 -1
- package/dist/actions/create-notification.d.cts +3 -21
- package/dist/actions/create-notification.d.cts.map +1 -1
- package/dist/actions/create-notification.d.mts +3 -21
- package/dist/actions/create-notification.d.mts.map +1 -1
- package/dist/actions/create-notification.mjs +1 -0
- package/dist/actions/create-notification.mjs.map +1 -1
- package/dist/actions/create-template.cjs +1 -0
- package/dist/actions/create-template.cjs.map +1 -1
- package/dist/actions/create-template.d.cts +3 -23
- package/dist/actions/create-template.d.cts.map +1 -1
- package/dist/actions/create-template.d.mts +3 -23
- package/dist/actions/create-template.d.mts.map +1 -1
- package/dist/actions/create-template.mjs +1 -0
- package/dist/actions/create-template.mjs.map +1 -1
- package/dist/actions/create-user.cjs +1 -0
- package/dist/actions/create-user.cjs.map +1 -1
- package/dist/actions/create-user.d.cts +3 -44
- package/dist/actions/create-user.d.cts.map +1 -1
- package/dist/actions/create-user.d.mts +3 -44
- package/dist/actions/create-user.d.mts.map +1 -1
- package/dist/actions/create-user.mjs +1 -0
- package/dist/actions/create-user.mjs.map +1 -1
- package/dist/actions/delete-alias.cjs +1 -0
- package/dist/actions/delete-alias.cjs.map +1 -1
- package/dist/actions/delete-alias.d.cts +3 -6
- package/dist/actions/delete-alias.d.cts.map +1 -1
- package/dist/actions/delete-alias.d.mts +3 -6
- package/dist/actions/delete-alias.d.mts.map +1 -1
- package/dist/actions/delete-alias.mjs +1 -0
- package/dist/actions/delete-alias.mjs.map +1 -1
- package/dist/actions/delete-device.cjs +1 -0
- package/dist/actions/delete-device.cjs.map +1 -1
- package/dist/actions/delete-device.d.cts +3 -4
- package/dist/actions/delete-device.d.cts.map +1 -1
- package/dist/actions/delete-device.d.mts +3 -4
- package/dist/actions/delete-device.d.mts.map +1 -1
- package/dist/actions/delete-device.mjs +1 -0
- package/dist/actions/delete-device.mjs.map +1 -1
- package/dist/actions/fetch-user-identity.cjs +1 -0
- package/dist/actions/fetch-user-identity.cjs.map +1 -1
- package/dist/actions/fetch-user-identity.d.cts +3 -5
- package/dist/actions/fetch-user-identity.d.cts.map +1 -1
- package/dist/actions/fetch-user-identity.d.mts +3 -5
- package/dist/actions/fetch-user-identity.d.mts.map +1 -1
- package/dist/actions/fetch-user-identity.mjs +1 -0
- package/dist/actions/fetch-user-identity.mjs.map +1 -1
- package/dist/actions/get-eligible-iams.cjs +1 -0
- package/dist/actions/get-eligible-iams.cjs.map +1 -1
- package/dist/actions/get-eligible-iams.d.cts +3 -4
- package/dist/actions/get-eligible-iams.d.cts.map +1 -1
- package/dist/actions/get-eligible-iams.d.mts +3 -4
- package/dist/actions/get-eligible-iams.d.mts.map +1 -1
- package/dist/actions/get-eligible-iams.mjs +1 -0
- package/dist/actions/get-eligible-iams.mjs.map +1 -1
- package/dist/actions/update-device.cjs +1 -0
- package/dist/actions/update-device.cjs.map +1 -1
- package/dist/actions/update-device.d.cts +3 -28
- package/dist/actions/update-device.d.cts.map +1 -1
- package/dist/actions/update-device.d.mts +3 -28
- package/dist/actions/update-device.d.mts.map +1 -1
- package/dist/actions/update-device.mjs +1 -0
- package/dist/actions/update-device.mjs.map +1 -1
- package/dist/actions/update-subscription.cjs +1 -0
- package/dist/actions/update-subscription.cjs.map +1 -1
- package/dist/actions/update-subscription.d.cts +3 -23
- package/dist/actions/update-subscription.d.cts.map +1 -1
- package/dist/actions/update-subscription.d.mts +3 -23
- package/dist/actions/update-subscription.d.mts.map +1 -1
- package/dist/actions/update-subscription.mjs +1 -0
- package/dist/actions/update-subscription.mjs.map +1 -1
- package/dist/actions/view-an-app.cjs +1 -0
- package/dist/actions/view-an-app.cjs.map +1 -1
- package/dist/actions/view-an-app.d.cts +3 -3
- package/dist/actions/view-an-app.d.cts.map +1 -1
- package/dist/actions/view-an-app.d.mts +3 -3
- package/dist/actions/view-an-app.d.mts.map +1 -1
- package/dist/actions/view-an-app.mjs +1 -0
- package/dist/actions/view-an-app.mjs.map +1 -1
- package/dist/actions/view-device.cjs +1 -0
- package/dist/actions/view-device.cjs.map +1 -1
- package/dist/actions/view-device.d.cts +3 -4
- package/dist/actions/view-device.d.cts.map +1 -1
- package/dist/actions/view-device.d.mts +3 -4
- package/dist/actions/view-device.d.mts.map +1 -1
- package/dist/actions/view-device.mjs +1 -0
- package/dist/actions/view-device.mjs.map +1 -1
- package/dist/actions/view-devices.cjs +1 -0
- package/dist/actions/view-devices.cjs.map +1 -1
- package/dist/actions/view-devices.d.cts +3 -5
- package/dist/actions/view-devices.d.cts.map +1 -1
- package/dist/actions/view-devices.d.mts +3 -5
- package/dist/actions/view-devices.d.mts.map +1 -1
- package/dist/actions/view-devices.mjs +1 -0
- package/dist/actions/view-devices.mjs.map +1 -1
- package/dist/actions/view-notifications.cjs +1 -0
- package/dist/actions/view-notifications.cjs.map +1 -1
- package/dist/actions/view-notifications.d.cts +3 -5
- package/dist/actions/view-notifications.d.cts.map +1 -1
- package/dist/actions/view-notifications.d.mts +3 -5
- package/dist/actions/view-notifications.d.mts.map +1 -1
- package/dist/actions/view-notifications.mjs +1 -0
- package/dist/actions/view-notifications.mjs.map +1 -1
- package/dist/actions/view-segments.cjs +1 -0
- package/dist/actions/view-segments.cjs.map +1 -1
- package/dist/actions/view-segments.d.cts +3 -5
- package/dist/actions/view-segments.d.cts.map +1 -1
- package/dist/actions/view-segments.d.mts +3 -5
- package/dist/actions/view-segments.d.mts.map +1 -1
- package/dist/actions/view-segments.mjs +1 -0
- package/dist/actions/view-segments.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-device.d.mts","names":[],"sources":["../../src/actions/update-device.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-device.d.mts","names":[],"sources":["../../src/actions/update-device.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cAKlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,gBAAA,CAAiB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-device.mjs","names":[],"sources":["../../src/actions/update-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiUpdateDeviceInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Custom tags for the device\").optional(),\n ad_id: z.string().describe(\"Advertising ID\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n country: z.string().describe(\"Country code, e.g., 'US'\").optional(),\n language: z.string().describe(\"Language code, e.g., 'en'\").optional(),\n latitude: z.number().describe(\"Latitude coordinate\").optional(),\n playtime: z.number().int().describe(\"Total playtime in seconds\").optional(),\n timezone: z.number().int().describe(\"Timezone offset in seconds from UTC\").optional(),\n device_os: z.string().describe(\"Operating system version\").optional(),\n longitude: z.number().describe(\"Longitude coordinate\").optional(),\n player_id: z.string().describe(\"Unique OneSignal device/player ID\"),\n test_type: z.number().int().describe(\"1 for development, 2 for ad-hoc\").optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the device was created\").optional(),\n identifier: z.string().describe(\"Push token, email address, or external user ID\").optional(),\n badge_count: z.number().int().describe(\"iOS badge count\").optional(),\n device_type: z.number().int().describe(\"Device type. See OneSignal docs for list\").optional(),\n last_active: z.number().int().describe(\"Unix timestamp when the device was last active\").optional(),\n amount_spent: z.string().describe(\"Amount the user has spent\").optional(),\n device_model: z.string().describe(\"Device model\").optional(),\n game_version: z.string().describe(\"Version of the app/game\").optional(),\n sms_auth_hash: z.string().describe(\"SMS authentication hash\").optional(),\n email_auth_hash: z.string().describe(\"Email authentication hash\").optional(),\n external_user_id: z.string().describe(\"External user ID\").optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Additional custom attributes\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state\").optional(),\n external_user_id_auth_hash: z.string().describe(\"Auth hash for external_user_id\").optional(),\n}).describe(\"Request parameters for updating a OneSignal device (player).\");\nexport const OnesignalRestApiUpdateDeviceOutput = z.object({\n id: z.string().describe(\"The OneSignal device/player ID that was updated (may not be returned)\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the update was successful\").nullable(),\n}).passthrough().describe(\"Response model for the UpdateDevice action.\");\n\nexport const onesignalRestApiUpdateDevice = action(\"ONESIGNAL_REST_API_UPDATE_DEVICE\", {\n slug: \"onesignal_rest_api-update-device\",\n name: \"Update Device\",\n description: \"Tool to update properties of an existing device. Use when you need to modify device attributes after registration.\",\n input: OnesignalRestApiUpdateDeviceInput,\n output: OnesignalRestApiUpdateDeviceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-device.mjs","names":[],"sources":["../../src/actions/update-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 OnesignalRestApiUpdateDeviceInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Custom tags for the device\").optional(),\n ad_id: z.string().describe(\"Advertising ID\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n country: z.string().describe(\"Country code, e.g., 'US'\").optional(),\n language: z.string().describe(\"Language code, e.g., 'en'\").optional(),\n latitude: z.number().describe(\"Latitude coordinate\").optional(),\n playtime: z.number().int().describe(\"Total playtime in seconds\").optional(),\n timezone: z.number().int().describe(\"Timezone offset in seconds from UTC\").optional(),\n device_os: z.string().describe(\"Operating system version\").optional(),\n longitude: z.number().describe(\"Longitude coordinate\").optional(),\n player_id: z.string().describe(\"Unique OneSignal device/player ID\"),\n test_type: z.number().int().describe(\"1 for development, 2 for ad-hoc\").optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the device was created\").optional(),\n identifier: z.string().describe(\"Push token, email address, or external user ID\").optional(),\n badge_count: z.number().int().describe(\"iOS badge count\").optional(),\n device_type: z.number().int().describe(\"Device type. See OneSignal docs for list\").optional(),\n last_active: z.number().int().describe(\"Unix timestamp when the device was last active\").optional(),\n amount_spent: z.string().describe(\"Amount the user has spent\").optional(),\n device_model: z.string().describe(\"Device model\").optional(),\n game_version: z.string().describe(\"Version of the app/game\").optional(),\n sms_auth_hash: z.string().describe(\"SMS authentication hash\").optional(),\n email_auth_hash: z.string().describe(\"Email authentication hash\").optional(),\n external_user_id: z.string().describe(\"External user ID\").optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Additional custom attributes\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state\").optional(),\n external_user_id_auth_hash: z.string().describe(\"Auth hash for external_user_id\").optional(),\n}).describe(\"Request parameters for updating a OneSignal device (player).\");\nexport const OnesignalRestApiUpdateDeviceOutput = z.object({\n id: z.string().describe(\"The OneSignal device/player ID that was updated (may not be returned)\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the update was successful\").nullable(),\n}).passthrough().describe(\"Response model for the UpdateDevice action.\");\n\nexport const onesignalRestApiUpdateDevice: AppAction<\n typeof OnesignalRestApiUpdateDeviceInput,\n typeof OnesignalRestApiUpdateDeviceOutput,\n typeof onesignalRestApi.credential\n> = action(\"ONESIGNAL_REST_API_UPDATE_DEVICE\", {\n slug: \"onesignal_rest_api-update-device\",\n name: \"Update Device\",\n description: \"Tool to update properties of an existing device. Use when you need to modify device attributes after registration.\",\n input: OnesignalRestApiUpdateDeviceInput,\n output: OnesignalRestApiUpdateDeviceOutput,\n});\n"],"mappings":";;;AAuCA,MAAa,+BAIT,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzC+C,EAAE,OAAO;EACxD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACpE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAChE,WAAW,EAAE,OAAO,CAAC,CA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,SAAS,8DAcH;CACP,QAdgD,EAAE,OAAO;EACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
|
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"update-subscription.cjs","names":["z","action"],"sources":["../../src/actions/update-subscription.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 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: AppAction<\n typeof OnesignalRestApiUpdateSubscriptionInput,\n typeof OnesignalRestApiUpdateSubscriptionOutput,\n typeof onesignalRestApi.credential\n> = 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":";;;;AAMA,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,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACrE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACrE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,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C,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,qCAITC,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/update-subscription.d.ts
|
|
@@ -59,29 +61,7 @@ declare const OnesignalRestApiUpdateSubscriptionOutput: z.ZodObject<{
|
|
|
59
61
|
notification_types: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
62
|
}, z.core.$loose>>>;
|
|
61
63
|
}, z.core.$loose>;
|
|
62
|
-
declare const onesignalRestApiUpdateSubscription:
|
|
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]>;
|
|
64
|
+
declare const onesignalRestApiUpdateSubscription: AppAction<typeof OnesignalRestApiUpdateSubscriptionInput, typeof OnesignalRestApiUpdateSubscriptionOutput, typeof onesignalRestApi.credential>;
|
|
85
65
|
//#endregion
|
|
86
66
|
export { onesignalRestApiUpdateSubscription };
|
|
87
67
|
//# sourceMappingURL=update-subscription.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subscription.d.cts","names":[],"sources":["../../src/actions/update-subscription.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-subscription.d.cts","names":[],"sources":["../../src/actions/update-subscription.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0CvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAIxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,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/update-subscription.d.ts
|
|
@@ -59,29 +61,7 @@ declare const OnesignalRestApiUpdateSubscriptionOutput: z.ZodObject<{
|
|
|
59
61
|
notification_types: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
62
|
}, z.core.$loose>>>;
|
|
61
63
|
}, z.core.$loose>;
|
|
62
|
-
declare const onesignalRestApiUpdateSubscription:
|
|
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]>;
|
|
64
|
+
declare const onesignalRestApiUpdateSubscription: AppAction<typeof OnesignalRestApiUpdateSubscriptionInput, typeof OnesignalRestApiUpdateSubscriptionOutput, typeof onesignalRestApi.credential>;
|
|
85
65
|
//#endregion
|
|
86
66
|
export { onesignalRestApiUpdateSubscription };
|
|
87
67
|
//# sourceMappingURL=update-subscription.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subscription.d.mts","names":[],"sources":["../../src/actions/update-subscription.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-subscription.d.mts","names":[],"sources":["../../src/actions/update-subscription.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0CvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAIxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,gBAAA,CAAiB,UAAA"}
|
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"update-subscription.mjs","names":[],"sources":["../../src/actions/update-subscription.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 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: AppAction<\n typeof OnesignalRestApiUpdateSubscriptionInput,\n typeof OnesignalRestApiUpdateSubscriptionOutput,\n typeof onesignalRestApi.credential\n> = 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: OnesignalRestApiUpdateSub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C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,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,qCAIT,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbsD,EAAE,OAAO,EAC/D,cAAc,oEAAoE,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
|
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"view-an-app.cjs","names":["z","action"],"sources":["../../src/actions/view-an-app.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 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: AppAction<\n typeof OnesignalRestApiViewAnAppInput,\n typeof OnesignalRestApiViewAnAppOutput,\n typeof onesignalRestApi.credential\n> = 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":";;;;AAMA,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,4BAITC,eAAAA,OAAO,kCAAkC;CAC3C,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/view-an-app.d.ts
|
|
@@ -13,9 +15,7 @@ declare const OnesignalRestApiViewAnAppOutput: z.ZodObject<{
|
|
|
13
15
|
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
16
|
messageable_players: z.ZodNullable<z.ZodNumber>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const onesignalRestApiViewAnApp:
|
|
17
|
-
app_id: string;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
declare const onesignalRestApiViewAnApp: AppAction<typeof OnesignalRestApiViewAnAppInput, typeof OnesignalRestApiViewAnAppOutput, typeof onesignalRestApi.credential>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { onesignalRestApiViewAnApp };
|
|
21
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":"
|
|
1
|
+
{"version":3,"file":"view-an-app.d.cts","names":[],"sources":["../../src/actions/view-an-app.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;cAU/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,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/view-an-app.d.ts
|
|
@@ -13,9 +15,7 @@ declare const OnesignalRestApiViewAnAppOutput: z.ZodObject<{
|
|
|
13
15
|
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
16
|
messageable_players: z.ZodNullable<z.ZodNumber>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const onesignalRestApiViewAnApp:
|
|
17
|
-
app_id: string;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
declare const onesignalRestApiViewAnApp: AppAction<typeof OnesignalRestApiViewAnAppInput, typeof OnesignalRestApiViewAnAppOutput, typeof onesignalRestApi.credential>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { onesignalRestApiViewAnApp };
|
|
21
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":"
|
|
1
|
+
{"version":3,"file":"view-an-app.d.mts","names":[],"sources":["../../src/actions/view-an-app.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;cAU/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,gBAAA,CAAiB,UAAA"}
|
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"view-an-app.mjs","names":[],"sources":["../../src/actions/view-an-app.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 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: AppAction<\n typeof OnesignalRestApiViewAnAppInput,\n typeof OnesignalRestApiViewAnAppOutput,\n typeof onesignalRestApi.credential\n> = 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":";;;AAmBA,MAAa,4BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB4C,EAAE,OAAO,EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACxE,CAAC,CAAC,CAAC,SAAS,2DAmBH;CACP,QAnB6C,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,wDAWhB;AACV,CAAC"}
|
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"view-device.cjs","names":["z","action"],"sources":["../../src/actions/view-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 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: AppAction<\n typeof OnesignalRestApiViewDeviceInput,\n typeof OnesignalRestApiViewDeviceOutput,\n typeof onesignalRestApi.credential\n> = 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":";;;;AAMA,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,CA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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/view-device.d.ts
|
|
@@ -29,10 +31,7 @@ declare const OnesignalRestApiViewDeviceOutput: z.ZodObject<{
|
|
|
29
31
|
external_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
32
|
invalid_identifier: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
31
33
|
}, z.core.$loose>;
|
|
32
|
-
declare const onesignalRestApiViewDevice:
|
|
33
|
-
app_id: string;
|
|
34
|
-
player_id: string;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
34
|
+
declare const onesignalRestApiViewDevice: AppAction<typeof OnesignalRestApiViewDeviceInput, typeof OnesignalRestApiViewDeviceOutput, typeof onesignalRestApi.credential>;
|
|
36
35
|
//#endregion
|
|
37
36
|
export { onesignalRestApiViewDevice };
|
|
38
37
|
//# sourceMappingURL=view-device.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-device.d.cts","names":[],"sources":["../../src/actions/view-device.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"view-device.d.cts","names":[],"sources":["../../src/actions/view-device.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAI/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAyBhC,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/view-device.d.ts
|
|
@@ -29,10 +31,7 @@ declare const OnesignalRestApiViewDeviceOutput: z.ZodObject<{
|
|
|
29
31
|
external_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
32
|
invalid_identifier: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
31
33
|
}, z.core.$loose>;
|
|
32
|
-
declare const onesignalRestApiViewDevice:
|
|
33
|
-
app_id: string;
|
|
34
|
-
player_id: string;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
34
|
+
declare const onesignalRestApiViewDevice: AppAction<typeof OnesignalRestApiViewDeviceInput, typeof OnesignalRestApiViewDeviceOutput, typeof onesignalRestApi.credential>;
|
|
36
35
|
//#endregion
|
|
37
36
|
export { onesignalRestApiViewDevice };
|
|
38
37
|
//# sourceMappingURL=view-device.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-device.d.mts","names":[],"sources":["../../src/actions/view-device.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"view-device.d.mts","names":[],"sources":["../../src/actions/view-device.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAI/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAyBhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,gBAAA,CAAiB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-device.mjs","names":[],"sources":["../../src/actions/view-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewDeviceInput = z.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":"
|
|
1
|
+
{"version":3,"file":"view-device.mjs","names":[],"sources":["../../src/actions/view-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 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: AppAction<\n typeof OnesignalRestApiViewDeviceInput,\n typeof OnesignalRestApiViewDeviceOutput,\n typeof onesignalRestApi.credential\n> = 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":";;;AAmCA,MAAa,6BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArC6C,EAAE,OAAO;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAChF,CAAC,CAAC,CAAC,SAAS,4EAkCH;CACP,QAlC8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EA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C,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC7F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACjG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-devices.cjs","names":["z","action"],"sources":["../../src/actions/view-devices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewDevicesInput = z.object({\n limit: z.number().int().describe(\"Maximum number of devices to return (1-300). Defaults to 300.\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n offset: z.number().int().describe(\"Pagination offset. Defaults to 0.\").optional(),\n}).describe(\"Request parameters for retrieving a list of devices (players) for a OneSignal app.\");\nconst OnesignalRestApiViewDevices_PurchaseSchema = z.object({\n id: z.string().describe(\"Purchase unique identifier.\").nullable(),\n amount: z.number().describe(\"Amount of the purchase.\").nullable(),\n}).passthrough().describe(\"Represents a purchase made by a player.\");\nconst OnesignalRestApiViewDevices_PlayerSchema = z.object({\n id: z.string().describe(\"OneSignal player (device) ID.\").nullable(),\n ip: z.string().describe(\"IP address of the player.\").nullable().optional(),\n sdk: z.string().describe(\"SDK used by the player.\").nullable().optional(),\n tags: z.record(z.string(), z.unknown()).describe(\"Dictionary of player tags.\").nullable().optional(),\n ad_id: z.string().describe(\"Advertising ID for the device.\").nullable().optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted or jailbroken.\").nullable().optional(),\n country: z.string().describe(\"Country code of the player (e.g., 'US').\").nullable().optional(),\n language: z.string().describe(\"Language code of the player (e.g., 'en').\").nullable().optional(),\n playtime: z.number().int().describe(\"Total playtime in seconds.\").nullable().optional(),\n timezone: z.union([z.string(), z.number().int()]).nullable().optional(),\n device_os: z.string().describe(\"Device operating system (e.g., '14.4').\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the player, if provided.\").nullable().optional(),\n purchases: z.array(OnesignalRestApiViewDevices_PurchaseSchema).describe(\"List of purchases associated with this player.\").nullable().optional(),\n test_type: z.union([z.string(), z.number().int()]).nullable().optional(),\n created_at: z.number().int().describe(\"Creation time of the player as a UNIX timestamp.\").nullable().optional(),\n first_name: z.string().describe(\"First name of the player, if provided.\").nullable().optional(),\n identifier: z.string().describe(\"Device identifier (e.g., push token).\").nullable().optional(),\n badge_count: z.number().int().describe(\"iOS badge count for the player.\").nullable().optional(),\n device_type: z.number().int().describe(\"Device type (1=iOS, 2=Android, etc.).\").nullable().optional(),\n last_active: z.number().int().describe(\"Last active time as a UNIX timestamp.\").nullable().optional(),\n amount_spent: z.number().describe(\"Total amount spent by the player.\").nullable().optional(),\n device_model: z.string().describe(\"Device model (e.g., 'iPhone10,6').\").nullable().optional(),\n game_version: z.string().describe(\"Game version of the player.\").nullable().optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded for the device.\").nullable().optional(),\n android_version: z.string().describe(\"Android version if applicable.\").nullable().optional(),\n external_user_id: z.string().describe(\"External user ID associated with the player.\").nullable().optional(),\n invalid_identifier: z.boolean().describe(\"Whether the device identifier is invalid.\").nullable().optional(),\n notification_types: z.number().int().describe(\"Notification types available to the player.\").nullable().optional(),\n subscribable_status: z.number().int().describe(\"Subscription status of the player.\").nullable().optional(),\n}).passthrough().describe(\"Representation of a player (device) in OneSignal.\");\nexport const OnesignalRestApiViewDevicesOutput = z.object({\n limit: z.number().int().describe(\"Maximum number of devices returned.\").nullable(),\n offset: z.number().int().describe(\"Offset used for pagination.\").nullable(),\n players: z.array(OnesignalRestApiViewDevices_PlayerSchema).describe(\"List of player (device) objects.\"),\n total_count: z.number().int().describe(\"Total number of devices.\").nullable(),\n}).passthrough().describe(\"Response model for listing devices (players) of a OneSignal app.\");\n\nexport const onesignalRestApiViewDevices = action(\"ONESIGNAL_REST_API_VIEW_DEVICES\", {\n slug: \"onesignal_rest_api-view-devices\",\n name: \"View Devices\",\n description: \"Tool to retrieve a paginated list of devices (players) for a OneSignal app. Use when you need to list or audit all registered devices for a given app.\",\n input: OnesignalRestApiViewDevicesInput,\n output: OnesignalRestApiViewDevicesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"view-devices.cjs","names":["z","action"],"sources":["../../src/actions/view-devices.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 OnesignalRestApiViewDevicesInput = z.object({\n limit: z.number().int().describe(\"Maximum number of devices to return (1-300). Defaults to 300.\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n offset: z.number().int().describe(\"Pagination offset. Defaults to 0.\").optional(),\n}).describe(\"Request parameters for retrieving a list of devices (players) for a OneSignal app.\");\nconst OnesignalRestApiViewDevices_PurchaseSchema = z.object({\n id: z.string().describe(\"Purchase unique identifier.\").nullable(),\n amount: z.number().describe(\"Amount of the purchase.\").nullable(),\n}).passthrough().describe(\"Represents a purchase made by a player.\");\nconst OnesignalRestApiViewDevices_PlayerSchema = z.object({\n id: z.string().describe(\"OneSignal player (device) ID.\").nullable(),\n ip: z.string().describe(\"IP address of the player.\").nullable().optional(),\n sdk: z.string().describe(\"SDK used by the player.\").nullable().optional(),\n tags: z.record(z.string(), z.unknown()).describe(\"Dictionary of player tags.\").nullable().optional(),\n ad_id: z.string().describe(\"Advertising ID for the device.\").nullable().optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted or jailbroken.\").nullable().optional(),\n country: z.string().describe(\"Country code of the player (e.g., 'US').\").nullable().optional(),\n language: z.string().describe(\"Language code of the player (e.g., 'en').\").nullable().optional(),\n playtime: z.number().int().describe(\"Total playtime in seconds.\").nullable().optional(),\n timezone: z.union([z.string(), z.number().int()]).nullable().optional(),\n device_os: z.string().describe(\"Device operating system (e.g., '14.4').\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the player, if provided.\").nullable().optional(),\n purchases: z.array(OnesignalRestApiViewDevices_PurchaseSchema).describe(\"List of purchases associated with this player.\").nullable().optional(),\n test_type: z.union([z.string(), z.number().int()]).nullable().optional(),\n created_at: z.number().int().describe(\"Creation time of the player as a UNIX timestamp.\").nullable().optional(),\n first_name: z.string().describe(\"First name of the player, if provided.\").nullable().optional(),\n identifier: z.string().describe(\"Device identifier (e.g., push token).\").nullable().optional(),\n badge_count: z.number().int().describe(\"iOS badge count for the player.\").nullable().optional(),\n device_type: z.number().int().describe(\"Device type (1=iOS, 2=Android, etc.).\").nullable().optional(),\n last_active: z.number().int().describe(\"Last active time as a UNIX timestamp.\").nullable().optional(),\n amount_spent: z.number().describe(\"Total amount spent by the player.\").nullable().optional(),\n device_model: z.string().describe(\"Device model (e.g., 'iPhone10,6').\").nullable().optional(),\n game_version: z.string().describe(\"Game version of the player.\").nullable().optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded for the device.\").nullable().optional(),\n android_version: z.string().describe(\"Android version if applicable.\").nullable().optional(),\n external_user_id: z.string().describe(\"External user ID associated with the player.\").nullable().optional(),\n invalid_identifier: z.boolean().describe(\"Whether the device identifier is invalid.\").nullable().optional(),\n notification_types: z.number().int().describe(\"Notification types available to the player.\").nullable().optional(),\n subscribable_status: z.number().int().describe(\"Subscription status of the player.\").nullable().optional(),\n}).passthrough().describe(\"Representation of a player (device) in OneSignal.\");\nexport const OnesignalRestApiViewDevicesOutput = z.object({\n limit: z.number().int().describe(\"Maximum number of devices returned.\").nullable(),\n offset: z.number().int().describe(\"Offset used for pagination.\").nullable(),\n players: z.array(OnesignalRestApiViewDevices_PlayerSchema).describe(\"List of player (device) objects.\"),\n total_count: z.number().int().describe(\"Total number of devices.\").nullable(),\n}).passthrough().describe(\"Response model for listing devices (players) of a OneSignal app.\");\n\nexport const onesignalRestApiViewDevices: AppAction<\n typeof OnesignalRestApiViewDevicesInput,\n typeof OnesignalRestApiViewDevicesOutput,\n typeof onesignalRestApi.credential\n> = action(\"ONESIGNAL_REST_API_VIEW_DEVICES\", {\n slug: \"onesignal_rest_api-view-devices\",\n name: \"View Devices\",\n description: \"Tool to retrieve a paginated list of devices (players) for a OneSignal app. Use when you need to list or audit all registered devices for a given app.\",\n input: OnesignalRestApiViewDevicesInput,\n output: OnesignalRestApiViewDevicesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAChG,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CA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@@
|
|
|
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/view-devices.d.ts
|
|
@@ -45,11 +47,7 @@ declare const OnesignalRestApiViewDevicesOutput: z.ZodObject<{
|
|
|
45
47
|
}, z.core.$loose>>;
|
|
46
48
|
total_count: z.ZodNullable<z.ZodNumber>;
|
|
47
49
|
}, z.core.$loose>;
|
|
48
|
-
declare const onesignalRestApiViewDevices:
|
|
49
|
-
app_id: string;
|
|
50
|
-
limit?: number | undefined;
|
|
51
|
-
offset?: number | undefined;
|
|
52
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
50
|
+
declare const onesignalRestApiViewDevices: AppAction<typeof OnesignalRestApiViewDevicesInput, typeof OnesignalRestApiViewDevicesOutput, typeof onesignalRestApi.credential>;
|
|
53
51
|
//#endregion
|
|
54
52
|
export { onesignalRestApiViewDevices };
|
|
55
53
|
//# sourceMappingURL=view-devices.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-devices.d.cts","names":[],"sources":["../../src/actions/view-devices.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"view-devices.d.cts","names":[],"sources":["../../src/actions/view-devices.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAwChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAOjC,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/view-devices.d.ts
|
|
@@ -45,11 +47,7 @@ declare const OnesignalRestApiViewDevicesOutput: z.ZodObject<{
|
|
|
45
47
|
}, z.core.$loose>>;
|
|
46
48
|
total_count: z.ZodNullable<z.ZodNumber>;
|
|
47
49
|
}, z.core.$loose>;
|
|
48
|
-
declare const onesignalRestApiViewDevices:
|
|
49
|
-
app_id: string;
|
|
50
|
-
limit?: number | undefined;
|
|
51
|
-
offset?: number | undefined;
|
|
52
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
50
|
+
declare const onesignalRestApiViewDevices: AppAction<typeof OnesignalRestApiViewDevicesInput, typeof OnesignalRestApiViewDevicesOutput, typeof onesignalRestApi.credential>;
|
|
53
51
|
//#endregion
|
|
54
52
|
export { onesignalRestApiViewDevices };
|
|
55
53
|
//# sourceMappingURL=view-devices.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-devices.d.mts","names":[],"sources":["../../src/actions/view-devices.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"view-devices.d.mts","names":[],"sources":["../../src/actions/view-devices.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAwChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAOjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,gBAAA,CAAiB,UAAA"}
|