@keystrokehq/onesignal_rest_api 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/begin-live-activity.cjs.map +1 -1
- package/dist/actions/begin-live-activity.d.cts +15 -3
- package/dist/actions/begin-live-activity.d.cts.map +1 -1
- package/dist/actions/begin-live-activity.d.mts +15 -3
- package/dist/actions/begin-live-activity.d.mts.map +1 -1
- package/dist/actions/begin-live-activity.mjs.map +1 -1
- package/dist/actions/create-notification.cjs.map +1 -1
- package/dist/actions/create-notification.d.cts +51 -3
- package/dist/actions/create-notification.d.cts.map +1 -1
- package/dist/actions/create-notification.d.mts +51 -3
- package/dist/actions/create-notification.d.mts.map +1 -1
- package/dist/actions/create-notification.mjs.map +1 -1
- package/dist/actions/create-template.cjs.map +1 -1
- package/dist/actions/create-template.d.cts +71 -3
- package/dist/actions/create-template.d.cts.map +1 -1
- package/dist/actions/create-template.d.mts +71 -3
- package/dist/actions/create-template.d.mts.map +1 -1
- package/dist/actions/create-template.mjs.map +1 -1
- package/dist/actions/create-user.cjs.map +1 -1
- package/dist/actions/create-user.d.cts +90 -3
- package/dist/actions/create-user.d.cts.map +1 -1
- package/dist/actions/create-user.d.mts +90 -3
- package/dist/actions/create-user.d.mts.map +1 -1
- package/dist/actions/create-user.mjs.map +1 -1
- package/dist/actions/delete-alias.cjs.map +1 -1
- package/dist/actions/delete-alias.d.cts +15 -3
- package/dist/actions/delete-alias.d.cts.map +1 -1
- package/dist/actions/delete-alias.d.mts +15 -3
- package/dist/actions/delete-alias.d.mts.map +1 -1
- package/dist/actions/delete-alias.mjs.map +1 -1
- package/dist/actions/delete-device.cjs +1 -1
- package/dist/actions/delete-device.cjs.map +1 -1
- package/dist/actions/delete-device.d.cts +13 -3
- package/dist/actions/delete-device.d.cts.map +1 -1
- package/dist/actions/delete-device.d.mts +13 -3
- package/dist/actions/delete-device.d.mts.map +1 -1
- package/dist/actions/delete-device.mjs +1 -1
- package/dist/actions/delete-device.mjs.map +1 -1
- package/dist/actions/fetch-user-identity.cjs.map +1 -1
- package/dist/actions/fetch-user-identity.d.cts +13 -3
- package/dist/actions/fetch-user-identity.d.cts.map +1 -1
- package/dist/actions/fetch-user-identity.d.mts +13 -3
- package/dist/actions/fetch-user-identity.d.mts.map +1 -1
- package/dist/actions/fetch-user-identity.mjs.map +1 -1
- package/dist/actions/get-eligible-iams.cjs.map +1 -1
- package/dist/actions/get-eligible-iams.d.cts +11 -3
- package/dist/actions/get-eligible-iams.d.cts.map +1 -1
- package/dist/actions/get-eligible-iams.d.mts +11 -3
- package/dist/actions/get-eligible-iams.d.mts.map +1 -1
- package/dist/actions/get-eligible-iams.mjs.map +1 -1
- package/dist/actions/update-device.cjs +1 -1
- package/dist/actions/update-device.cjs.map +1 -1
- package/dist/actions/update-device.d.cts +60 -3
- package/dist/actions/update-device.d.cts.map +1 -1
- package/dist/actions/update-device.d.mts +60 -3
- package/dist/actions/update-device.d.mts.map +1 -1
- package/dist/actions/update-device.mjs +1 -1
- package/dist/actions/update-device.mjs.map +1 -1
- package/dist/actions/update-subscription.cjs.map +1 -1
- package/dist/actions/update-subscription.d.cts +81 -3
- package/dist/actions/update-subscription.d.cts.map +1 -1
- package/dist/actions/update-subscription.d.mts +81 -3
- package/dist/actions/update-subscription.d.mts.map +1 -1
- package/dist/actions/update-subscription.mjs.map +1 -1
- package/dist/actions/view-an-app.cjs +6 -6
- package/dist/actions/view-an-app.cjs.map +1 -1
- package/dist/actions/view-an-app.d.cts +15 -3
- package/dist/actions/view-an-app.d.cts.map +1 -1
- package/dist/actions/view-an-app.d.mts +15 -3
- package/dist/actions/view-an-app.d.mts.map +1 -1
- package/dist/actions/view-an-app.mjs +6 -6
- package/dist/actions/view-an-app.mjs.map +1 -1
- package/dist/actions/view-device.cjs +7 -7
- package/dist/actions/view-device.cjs.map +1 -1
- package/dist/actions/view-device.d.cts +32 -3
- package/dist/actions/view-device.d.cts.map +1 -1
- package/dist/actions/view-device.d.mts +32 -3
- package/dist/actions/view-device.d.mts.map +1 -1
- package/dist/actions/view-device.mjs +7 -7
- package/dist/actions/view-device.mjs.map +1 -1
- package/dist/actions/view-devices.cjs +6 -6
- package/dist/actions/view-devices.cjs.map +1 -1
- package/dist/actions/view-devices.d.cts +49 -3
- package/dist/actions/view-devices.d.cts.map +1 -1
- package/dist/actions/view-devices.d.mts +49 -3
- package/dist/actions/view-devices.d.mts.map +1 -1
- package/dist/actions/view-devices.mjs +6 -6
- package/dist/actions/view-devices.mjs.map +1 -1
- package/dist/actions/view-notifications.cjs +4 -4
- package/dist/actions/view-notifications.cjs.map +1 -1
- package/dist/actions/view-notifications.d.cts +32 -3
- package/dist/actions/view-notifications.d.cts.map +1 -1
- package/dist/actions/view-notifications.d.mts +32 -3
- package/dist/actions/view-notifications.d.mts.map +1 -1
- package/dist/actions/view-notifications.mjs +4 -4
- package/dist/actions/view-notifications.mjs.map +1 -1
- package/dist/actions/view-segments.cjs +4 -4
- package/dist/actions/view-segments.cjs.map +1 -1
- package/dist/actions/view-segments.d.cts +27 -3
- package/dist/actions/view-segments.d.cts.map +1 -1
- package/dist/actions/view-segments.d.mts +27 -3
- package/dist/actions/view-segments.d.mts.map +1 -1
- package/dist/actions/view-segments.mjs +4 -4
- package/dist/actions/view-segments.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-eligible-iams.d.cts","names":[],"sources":["../../src/actions/get-eligible-iams.ts"],"mappings":";;;cAIa,oCAAA,
|
|
1
|
+
{"version":3,"file":"get-eligible-iams.d.cts","names":[],"sources":["../../src/actions/get-eligible-iams.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAKpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;cAIrC,+BAAA,gCAA+B,wBAAA"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-eligible-iams.d.ts
|
|
4
|
-
declare const OnesignalRestApiGetEligibleIamsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OnesignalRestApiGetEligibleIamsInput: z.ZodObject<{
|
|
5
|
+
app_id: z.ZodString;
|
|
6
|
+
subscription_id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const OnesignalRestApiGetEligibleIamsOutput: z.ZodObject<{
|
|
9
|
+
in_app_messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const onesignalRestApiGetEligibleIams: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
app_id: string;
|
|
13
|
+
subscription_id: string;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { onesignalRestApiGetEligibleIams };
|
|
9
17
|
//# sourceMappingURL=get-eligible-iams.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-eligible-iams.d.mts","names":[],"sources":["../../src/actions/get-eligible-iams.ts"],"mappings":";;;cAIa,oCAAA,
|
|
1
|
+
{"version":3,"file":"get-eligible-iams.d.mts","names":[],"sources":["../../src/actions/get-eligible-iams.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAKpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;cAIrC,+BAAA,gCAA+B,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-eligible-iams.mjs","names":[],"sources":["../../src/actions/get-eligible-iams.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiGetEligibleIamsInput
|
|
1
|
+
{"version":3,"file":"get-eligible-iams.mjs","names":[],"sources":["../../src/actions/get-eligible-iams.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiGetEligibleIamsInput = z.object({\n app_id: z.string().describe(\"Unique identifier for the OneSignal app.\"),\n subscription_id: z.string().describe(\"Unique identifier for the subscription (device/player).\"),\n}).describe(\"Request model for retrieving In-App Messages a subscription is eligible to display.\");\nconst OnesignalRestApiGetEligibleIams_InAppMessageSchema = z.record(z.string(), z.unknown()).describe(\"Model representing an In-App Message in the response.\");\nexport const OnesignalRestApiGetEligibleIamsOutput = z.object({\n in_app_messages: z.array(OnesignalRestApiGetEligibleIams_InAppMessageSchema).describe(\"List of In-App Messages the subscription is eligible to display.\"),\n}).passthrough().describe(\"Response model for retrieving eligible In-App Messages.\");\n\nexport const onesignalRestApiGetEligibleIams = action(\"ONESIGNAL_REST_API_GET_ELIGIBLE_IAMS\", {\n slug: \"onesignal_rest_api-get-eligible-iams\",\n name: \"Get Eligible In-App Messages\",\n description: \"Tool to retrieve the manifest of In-App Messages that a subscription is eligible to display. Use when you need to fetch eligible IAMs for a specific subscription.\",\n input: OnesignalRestApiGetEligibleIamsInput,\n output: OnesignalRestApiGetEligibleIamsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuC,EAAE,OAAO;CAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACtE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAChG,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,qDAAqD,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAK7J,MAAa,kCAAkC,OAAO,wCAAwC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATmD,EAAE,OAAO,EAC5D,iBAAiB,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,kEAAkE,EAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
|
|
@@ -31,7 +31,7 @@ const OnesignalRestApiUpdateDeviceInput = zod.z.object({
|
|
|
31
31
|
}).describe("Request parameters for updating a OneSignal device (player).");
|
|
32
32
|
const OnesignalRestApiUpdateDeviceOutput = zod.z.object({
|
|
33
33
|
id: zod.z.string().describe("The OneSignal device/player ID that was updated (may not be returned)").nullable().optional(),
|
|
34
|
-
success: zod.z.boolean().describe("Indicates whether the update was successful")
|
|
34
|
+
success: zod.z.boolean().describe("Indicates whether the update was successful").nullable()
|
|
35
35
|
}).describe("Response model for the UpdateDevice action.");
|
|
36
36
|
const onesignalRestApiUpdateDevice = require_action.action("ONESIGNAL_REST_API_UPDATE_DEVICE", {
|
|
37
37
|
slug: "onesignal_rest_api-update-device",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-device.cjs","names":["z","action"],"sources":["../../src/actions/update-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiUpdateDeviceInput
|
|
1
|
+
{"version":3,"file":"update-device.cjs","names":["z","action"],"sources":["../../src/actions/update-device.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiUpdateDeviceInput = z.object({\n tags: z.record(z.string(), z.unknown()).describe(\"Custom tags for the device\").optional(),\n ad_id: z.string().describe(\"Advertising ID\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n country: z.string().describe(\"Country code, e.g., 'US'\").optional(),\n language: z.string().describe(\"Language code, e.g., 'en'\").optional(),\n latitude: z.number().describe(\"Latitude coordinate\").optional(),\n playtime: z.number().int().describe(\"Total playtime in seconds\").optional(),\n timezone: z.number().int().describe(\"Timezone offset in seconds from UTC\").optional(),\n device_os: z.string().describe(\"Operating system version\").optional(),\n longitude: z.number().describe(\"Longitude coordinate\").optional(),\n player_id: z.string().describe(\"Unique OneSignal device/player ID\"),\n test_type: z.number().int().describe(\"1 for development, 2 for ad-hoc\").optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the device was created\").optional(),\n identifier: z.string().describe(\"Push token, email address, or external user ID\").optional(),\n badge_count: z.number().int().describe(\"iOS badge count\").optional(),\n device_type: z.number().int().describe(\"Device type. See OneSignal docs for list\").optional(),\n last_active: z.number().int().describe(\"Unix timestamp when the device was last active\").optional(),\n amount_spent: z.string().describe(\"Amount the user has spent\").optional(),\n device_model: z.string().describe(\"Device model\").optional(),\n game_version: z.string().describe(\"Version of the app/game\").optional(),\n sms_auth_hash: z.string().describe(\"SMS authentication hash\").optional(),\n email_auth_hash: z.string().describe(\"Email authentication hash\").optional(),\n external_user_id: z.string().describe(\"External user ID\").optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Additional custom attributes\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state\").optional(),\n external_user_id_auth_hash: z.string().describe(\"Auth hash for external_user_id\").optional(),\n}).describe(\"Request parameters for updating a OneSignal device (player).\");\nexport const OnesignalRestApiUpdateDeviceOutput = z.object({\n id: z.string().describe(\"The OneSignal device/player ID that was updated (may not be returned)\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the update was successful\").nullable(),\n}).describe(\"Response model for the UpdateDevice action.\");\n\nexport const onesignalRestApiUpdateDevice = action(\"ONESIGNAL_REST_API_UPDATE_DEVICE\", {\n slug: \"onesignal_rest_api-update-device\",\n name: \"Update Device\",\n description: \"Tool to update properties of an existing device. Use when you need to modify device attributes after registration.\",\n input: OnesignalRestApiUpdateDeviceInput,\n output: OnesignalRestApiUpdateDeviceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCA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AAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,66 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-device.d.ts
|
|
4
|
-
declare const OnesignalRestApiUpdateDeviceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OnesignalRestApiUpdateDeviceInput: z.ZodObject<{
|
|
5
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
|
+
ad_id: z.ZodOptional<z.ZodString>;
|
|
7
|
+
app_id: z.ZodString;
|
|
8
|
+
country: z.ZodOptional<z.ZodString>;
|
|
9
|
+
language: z.ZodOptional<z.ZodString>;
|
|
10
|
+
latitude: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
playtime: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
timezone: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
device_os: z.ZodOptional<z.ZodString>;
|
|
14
|
+
longitude: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
player_id: z.ZodString;
|
|
16
|
+
test_type: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
19
|
+
badge_count: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
device_type: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
last_active: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
amount_spent: z.ZodOptional<z.ZodString>;
|
|
23
|
+
device_model: z.ZodOptional<z.ZodString>;
|
|
24
|
+
game_version: z.ZodOptional<z.ZodString>;
|
|
25
|
+
sms_auth_hash: z.ZodOptional<z.ZodString>;
|
|
26
|
+
email_auth_hash: z.ZodOptional<z.ZodString>;
|
|
27
|
+
external_user_id: z.ZodOptional<z.ZodString>;
|
|
28
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
29
|
+
notification_types: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
external_user_id_auth_hash: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
declare const OnesignalRestApiUpdateDeviceOutput: z.ZodObject<{
|
|
33
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const onesignalRestApiUpdateDevice: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
|
+
app_id: string;
|
|
38
|
+
player_id: string;
|
|
39
|
+
tags?: Record<string, unknown> | undefined;
|
|
40
|
+
ad_id?: string | undefined;
|
|
41
|
+
country?: string | undefined;
|
|
42
|
+
language?: string | undefined;
|
|
43
|
+
latitude?: number | undefined;
|
|
44
|
+
playtime?: number | undefined;
|
|
45
|
+
timezone?: number | undefined;
|
|
46
|
+
device_os?: string | undefined;
|
|
47
|
+
longitude?: number | undefined;
|
|
48
|
+
test_type?: number | undefined;
|
|
49
|
+
created_at?: number | undefined;
|
|
50
|
+
identifier?: string | undefined;
|
|
51
|
+
badge_count?: number | undefined;
|
|
52
|
+
device_type?: number | undefined;
|
|
53
|
+
last_active?: number | undefined;
|
|
54
|
+
amount_spent?: string | undefined;
|
|
55
|
+
device_model?: string | undefined;
|
|
56
|
+
game_version?: string | undefined;
|
|
57
|
+
sms_auth_hash?: string | undefined;
|
|
58
|
+
email_auth_hash?: string | undefined;
|
|
59
|
+
external_user_id?: string | undefined;
|
|
60
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
61
|
+
notification_types?: number | undefined;
|
|
62
|
+
external_user_id_auth_hash?: string | undefined;
|
|
63
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
64
|
//#endregion
|
|
8
65
|
export { onesignalRestApiUpdateDevice };
|
|
9
66
|
//# sourceMappingURL=update-device.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-device.d.cts","names":[],"sources":["../../src/actions/update-device.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"update-device.d.cts","names":[],"sources":["../../src/actions/update-device.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cAKlC,4BAAA,gCAA4B,wBAAA;;;SAMvC,MAAA;;;;;;;;;;;;;;;;;;;;;sBAAA,MAAA"}
|
|
@@ -1,9 +1,66 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-device.d.ts
|
|
4
|
-
declare const OnesignalRestApiUpdateDeviceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OnesignalRestApiUpdateDeviceInput: z.ZodObject<{
|
|
5
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
|
+
ad_id: z.ZodOptional<z.ZodString>;
|
|
7
|
+
app_id: z.ZodString;
|
|
8
|
+
country: z.ZodOptional<z.ZodString>;
|
|
9
|
+
language: z.ZodOptional<z.ZodString>;
|
|
10
|
+
latitude: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
playtime: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
timezone: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
device_os: z.ZodOptional<z.ZodString>;
|
|
14
|
+
longitude: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
player_id: z.ZodString;
|
|
16
|
+
test_type: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
created_at: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
19
|
+
badge_count: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
device_type: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
last_active: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
amount_spent: z.ZodOptional<z.ZodString>;
|
|
23
|
+
device_model: z.ZodOptional<z.ZodString>;
|
|
24
|
+
game_version: z.ZodOptional<z.ZodString>;
|
|
25
|
+
sms_auth_hash: z.ZodOptional<z.ZodString>;
|
|
26
|
+
email_auth_hash: z.ZodOptional<z.ZodString>;
|
|
27
|
+
external_user_id: z.ZodOptional<z.ZodString>;
|
|
28
|
+
custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
29
|
+
notification_types: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
external_user_id_auth_hash: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
declare const OnesignalRestApiUpdateDeviceOutput: z.ZodObject<{
|
|
33
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const onesignalRestApiUpdateDevice: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
|
+
app_id: string;
|
|
38
|
+
player_id: string;
|
|
39
|
+
tags?: Record<string, unknown> | undefined;
|
|
40
|
+
ad_id?: string | undefined;
|
|
41
|
+
country?: string | undefined;
|
|
42
|
+
language?: string | undefined;
|
|
43
|
+
latitude?: number | undefined;
|
|
44
|
+
playtime?: number | undefined;
|
|
45
|
+
timezone?: number | undefined;
|
|
46
|
+
device_os?: string | undefined;
|
|
47
|
+
longitude?: number | undefined;
|
|
48
|
+
test_type?: number | undefined;
|
|
49
|
+
created_at?: number | undefined;
|
|
50
|
+
identifier?: string | undefined;
|
|
51
|
+
badge_count?: number | undefined;
|
|
52
|
+
device_type?: number | undefined;
|
|
53
|
+
last_active?: number | undefined;
|
|
54
|
+
amount_spent?: string | undefined;
|
|
55
|
+
device_model?: string | undefined;
|
|
56
|
+
game_version?: string | undefined;
|
|
57
|
+
sms_auth_hash?: string | undefined;
|
|
58
|
+
email_auth_hash?: string | undefined;
|
|
59
|
+
external_user_id?: string | undefined;
|
|
60
|
+
custom_attributes?: Record<string, unknown> | undefined;
|
|
61
|
+
notification_types?: number | undefined;
|
|
62
|
+
external_user_id_auth_hash?: string | undefined;
|
|
63
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
64
|
//#endregion
|
|
8
65
|
export { onesignalRestApiUpdateDevice };
|
|
9
66
|
//# sourceMappingURL=update-device.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-device.d.mts","names":[],"sources":["../../src/actions/update-device.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"update-device.d.mts","names":[],"sources":["../../src/actions/update-device.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cAKlC,4BAAA,gCAA4B,wBAAA;;;SAMvC,MAAA;;;;;;;;;;;;;;;;;;;;;sBAAA,MAAA"}
|
|
@@ -34,7 +34,7 @@ const onesignalRestApiUpdateDevice = action("ONESIGNAL_REST_API_UPDATE_DEVICE",
|
|
|
34
34
|
}).describe("Request parameters for updating a OneSignal device (player)."),
|
|
35
35
|
output: z.object({
|
|
36
36
|
id: z.string().describe("The OneSignal device/player ID that was updated (may not be returned)").nullable().optional(),
|
|
37
|
-
success: z.boolean().describe("Indicates whether the update was successful")
|
|
37
|
+
success: z.boolean().describe("Indicates whether the update was successful").nullable()
|
|
38
38
|
}).describe("Response model for the UpdateDevice action.")
|
|
39
39
|
});
|
|
40
40
|
//#endregion
|
|
@@ -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
|
|
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}).describe(\"Response model for the UpdateDevice action.\");\n\nexport const onesignalRestApiUpdateDevice = action(\"ONESIGNAL_REST_API_UPDATE_DEVICE\", {\n slug: \"onesignal_rest_api-update-device\",\n name: \"Update Device\",\n description: \"Tool to update properties of an existing device. Use when you need to modify device attributes after registration.\",\n input: OnesignalRestApiUpdateDeviceInput,\n output: OnesignalRestApiUpdateDeviceOutput,\n});\n"],"mappings":";;AAqCA,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArC+C,EAAE,OAAO;EACxD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EA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,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACvG,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACxF,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,SAAS,8DAUH;CACP,QAVgD,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,SAAS,6CAOF;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
|
|
1
|
+
{"version":3,"file":"update-subscription.cjs","names":["z","action"],"sources":["../../src/actions/update-subscription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiUpdateSubscriptionInput = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n subscription: z.object({\n sdk: z.string().describe(\"SDK version used by the subscription.\").optional(),\n type: z.enum([\"iOSPush\", \"AndroidPush\", \"FireOSPush\", \"ChromeExtensionPush\", \"ChromePush\", \"WindowsPush\", \"SafariLegacyPush\", \"FirefoxPush\", \"macOSPush\", \"HuaweiPush\", \"SafariPush\", \"Email\", \"SMS\"]).describe(\"Subscription type enumeration for OneSignal.\").optional(),\n token: z.string().describe(\"The push token, email address, or phone number for the subscription.\").optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted or jailbroken.\").optional(),\n carrier: z.string().describe(\"Mobile carrier name.\").optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled for notifications.\").optional(),\n net_type: z.number().int().describe(\"Network type code.\").optional(),\n web_auth: z.string().describe(\"Web push authentication secret.\").optional(),\n web_p256: z.string().describe(\"Web push P-256 public key.\").optional(),\n device_os: z.string().describe(\"Operating system version.\").optional(),\n test_type: z.number().int().describe(\"Test type indicator (1 for development, 2 for ad-hoc).\").optional(),\n app_version: z.string().describe(\"Version of the application.\").optional(),\n device_model: z.string().describe(\"Device model identifier.\").optional(),\n session_time: z.number().int().describe(\"Total session time in seconds.\").optional(),\n session_count: z.number().int().describe(\"Total number of sessions.\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state (integer code).\").optional(),\n}).describe(\"The subscription properties to update.\"),\n subscription_id: z.string().describe(\"The unique ID of the subscription to update.\"),\n retain_previous_owner: z.boolean().describe(\"Whether to retain the previous owner when updating the subscription.\").optional(),\n}).describe(\"Request model for updating a OneSignal subscription.\");\nconst OnesignalRestApiUpdateSubscription_SubscriptionResponseObjectSchema = z.object({\n id: z.string().describe(\"The subscription ID.\").nullable().optional(),\n sdk: z.string().describe(\"SDK version.\").nullable().optional(),\n type: z.string().describe(\"The subscription type.\").nullable().optional(),\n token: z.string().describe(\"The push token, email address, or phone number.\").nullable().optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted or jailbroken.\").nullable().optional(),\n carrier: z.string().describe(\"Mobile carrier name.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled.\").nullable().optional(),\n net_type: z.number().int().describe(\"Network type code.\").nullable().optional(),\n web_auth: z.string().describe(\"Web push authentication secret.\").nullable().optional(),\n web_p256: z.string().describe(\"Web push P-256 public key.\").nullable().optional(),\n device_os: z.string().describe(\"Operating system version.\").nullable().optional(),\n test_type: z.number().int().describe(\"Test type indicator.\").nullable().optional(),\n app_version: z.string().describe(\"Application version.\").nullable().optional(),\n device_model: z.string().describe(\"Device model.\").nullable().optional(),\n session_time: z.number().int().describe(\"Total session time in seconds.\").nullable().optional(),\n session_count: z.number().int().describe(\"Total number of sessions.\").nullable().optional(),\n notification_types: z.number().int().describe(\"Notification permission state.\").nullable().optional(),\n}).passthrough().describe(\"Updated subscription object in the response.\");\nexport const OnesignalRestApiUpdateSubscriptionOutput = z.object({\n subscription: OnesignalRestApiUpdateSubscription_SubscriptionResponseObjectSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for the UpdateSubscription action.\");\n\nexport const onesignalRestApiUpdateSubscription = action(\"ONESIGNAL_REST_API_UPDATE_SUBSCRIPTION\", {\n slug: \"onesignal_rest_api-update-subscription\",\n name: \"Update Subscription\",\n description: \"Tool to update an existing subscription's properties. Use when you need to modify subscription attributes like token, enabled status, or device information.\",\n input: OnesignalRestApiUpdateSubscriptionInput,\n output: OnesignalRestApiUpdateSubscriptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,cAAcA,IAAAA,EAAE,OAAO;EACvB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC3E,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAW;GAAe;GAAc;GAAuB;GAAc;GAAe;GAAoB;GAAe;GAAa;GAAc;GAAc;GAAS;EAAK,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACzQ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC5G,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAC9D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACjG,UAAUA,IAA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,CAAC,SAAS;CACvE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAa,2CAA2CA,IAAAA,EAAE,OAAO,EAC/D,cAAc,oEAAoE,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,87 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-subscription.d.ts
|
|
4
|
-
declare const OnesignalRestApiUpdateSubscriptionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OnesignalRestApiUpdateSubscriptionInput: z.ZodObject<{
|
|
5
|
+
app_id: z.ZodString;
|
|
6
|
+
subscription: z.ZodObject<{
|
|
7
|
+
sdk: z.ZodOptional<z.ZodString>;
|
|
8
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
iOSPush: "iOSPush";
|
|
10
|
+
AndroidPush: "AndroidPush";
|
|
11
|
+
FireOSPush: "FireOSPush";
|
|
12
|
+
ChromeExtensionPush: "ChromeExtensionPush";
|
|
13
|
+
ChromePush: "ChromePush";
|
|
14
|
+
WindowsPush: "WindowsPush";
|
|
15
|
+
SafariLegacyPush: "SafariLegacyPush";
|
|
16
|
+
FirefoxPush: "FirefoxPush";
|
|
17
|
+
macOSPush: "macOSPush";
|
|
18
|
+
HuaweiPush: "HuaweiPush";
|
|
19
|
+
SafariPush: "SafariPush";
|
|
20
|
+
Email: "Email";
|
|
21
|
+
SMS: "SMS";
|
|
22
|
+
}>>;
|
|
23
|
+
token: z.ZodOptional<z.ZodString>;
|
|
24
|
+
rooted: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
carrier: z.ZodOptional<z.ZodString>;
|
|
26
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
net_type: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
web_auth: z.ZodOptional<z.ZodString>;
|
|
29
|
+
web_p256: z.ZodOptional<z.ZodString>;
|
|
30
|
+
device_os: z.ZodOptional<z.ZodString>;
|
|
31
|
+
test_type: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
app_version: z.ZodOptional<z.ZodString>;
|
|
33
|
+
device_model: z.ZodOptional<z.ZodString>;
|
|
34
|
+
session_time: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
session_count: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
notification_types: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
subscription_id: z.ZodString;
|
|
39
|
+
retain_previous_owner: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
declare const OnesignalRestApiUpdateSubscriptionOutput: z.ZodObject<{
|
|
42
|
+
subscription: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
43
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
sdk: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
rooted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
48
|
+
carrier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
50
|
+
net_type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
51
|
+
web_auth: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
web_p256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
device_os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
test_type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
55
|
+
app_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
device_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
session_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
58
|
+
session_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
59
|
+
notification_types: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
|
+
}, z.core.$loose>>>;
|
|
61
|
+
}, z.core.$loose>;
|
|
62
|
+
declare const onesignalRestApiUpdateSubscription: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
63
|
+
app_id: string;
|
|
64
|
+
subscription: {
|
|
65
|
+
sdk?: string | undefined;
|
|
66
|
+
type?: "iOSPush" | "AndroidPush" | "FireOSPush" | "ChromeExtensionPush" | "ChromePush" | "WindowsPush" | "SafariLegacyPush" | "FirefoxPush" | "macOSPush" | "HuaweiPush" | "SafariPush" | "Email" | "SMS" | undefined;
|
|
67
|
+
token?: string | undefined;
|
|
68
|
+
rooted?: boolean | undefined;
|
|
69
|
+
carrier?: string | undefined;
|
|
70
|
+
enabled?: boolean | undefined;
|
|
71
|
+
net_type?: number | undefined;
|
|
72
|
+
web_auth?: string | undefined;
|
|
73
|
+
web_p256?: string | undefined;
|
|
74
|
+
device_os?: string | undefined;
|
|
75
|
+
test_type?: number | undefined;
|
|
76
|
+
app_version?: string | undefined;
|
|
77
|
+
device_model?: string | undefined;
|
|
78
|
+
session_time?: number | undefined;
|
|
79
|
+
session_count?: number | undefined;
|
|
80
|
+
notification_types?: number | undefined;
|
|
81
|
+
};
|
|
82
|
+
subscription_id: string;
|
|
83
|
+
retain_previous_owner?: boolean | undefined;
|
|
84
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
85
|
//#endregion
|
|
8
86
|
export { onesignalRestApiUpdateSubscription };
|
|
9
87
|
//# sourceMappingURL=update-subscription.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subscription.d.cts","names":[],"sources":["../../src/actions/update-subscription.ts"],"mappings":";;;cAIa,uCAAA,
|
|
1
|
+
{"version":3,"file":"update-subscription.d.cts","names":[],"sources":["../../src/actions/update-subscription.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0CvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAIxC,kCAAA,gCAAkC,wBAAA"}
|
|
@@ -1,9 +1,87 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-subscription.d.ts
|
|
4
|
-
declare const OnesignalRestApiUpdateSubscriptionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OnesignalRestApiUpdateSubscriptionInput: z.ZodObject<{
|
|
5
|
+
app_id: z.ZodString;
|
|
6
|
+
subscription: z.ZodObject<{
|
|
7
|
+
sdk: z.ZodOptional<z.ZodString>;
|
|
8
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
iOSPush: "iOSPush";
|
|
10
|
+
AndroidPush: "AndroidPush";
|
|
11
|
+
FireOSPush: "FireOSPush";
|
|
12
|
+
ChromeExtensionPush: "ChromeExtensionPush";
|
|
13
|
+
ChromePush: "ChromePush";
|
|
14
|
+
WindowsPush: "WindowsPush";
|
|
15
|
+
SafariLegacyPush: "SafariLegacyPush";
|
|
16
|
+
FirefoxPush: "FirefoxPush";
|
|
17
|
+
macOSPush: "macOSPush";
|
|
18
|
+
HuaweiPush: "HuaweiPush";
|
|
19
|
+
SafariPush: "SafariPush";
|
|
20
|
+
Email: "Email";
|
|
21
|
+
SMS: "SMS";
|
|
22
|
+
}>>;
|
|
23
|
+
token: z.ZodOptional<z.ZodString>;
|
|
24
|
+
rooted: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
carrier: z.ZodOptional<z.ZodString>;
|
|
26
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
net_type: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
web_auth: z.ZodOptional<z.ZodString>;
|
|
29
|
+
web_p256: z.ZodOptional<z.ZodString>;
|
|
30
|
+
device_os: z.ZodOptional<z.ZodString>;
|
|
31
|
+
test_type: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
app_version: z.ZodOptional<z.ZodString>;
|
|
33
|
+
device_model: z.ZodOptional<z.ZodString>;
|
|
34
|
+
session_time: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
session_count: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
notification_types: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
subscription_id: z.ZodString;
|
|
39
|
+
retain_previous_owner: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
declare const OnesignalRestApiUpdateSubscriptionOutput: z.ZodObject<{
|
|
42
|
+
subscription: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
43
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
sdk: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
rooted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
48
|
+
carrier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
50
|
+
net_type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
51
|
+
web_auth: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
web_p256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
device_os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
test_type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
55
|
+
app_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
device_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
session_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
58
|
+
session_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
59
|
+
notification_types: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
|
+
}, z.core.$loose>>>;
|
|
61
|
+
}, z.core.$loose>;
|
|
62
|
+
declare const onesignalRestApiUpdateSubscription: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
63
|
+
app_id: string;
|
|
64
|
+
subscription: {
|
|
65
|
+
sdk?: string | undefined;
|
|
66
|
+
type?: "iOSPush" | "AndroidPush" | "FireOSPush" | "ChromeExtensionPush" | "ChromePush" | "WindowsPush" | "SafariLegacyPush" | "FirefoxPush" | "macOSPush" | "HuaweiPush" | "SafariPush" | "Email" | "SMS" | undefined;
|
|
67
|
+
token?: string | undefined;
|
|
68
|
+
rooted?: boolean | undefined;
|
|
69
|
+
carrier?: string | undefined;
|
|
70
|
+
enabled?: boolean | undefined;
|
|
71
|
+
net_type?: number | undefined;
|
|
72
|
+
web_auth?: string | undefined;
|
|
73
|
+
web_p256?: string | undefined;
|
|
74
|
+
device_os?: string | undefined;
|
|
75
|
+
test_type?: number | undefined;
|
|
76
|
+
app_version?: string | undefined;
|
|
77
|
+
device_model?: string | undefined;
|
|
78
|
+
session_time?: number | undefined;
|
|
79
|
+
session_count?: number | undefined;
|
|
80
|
+
notification_types?: number | undefined;
|
|
81
|
+
};
|
|
82
|
+
subscription_id: string;
|
|
83
|
+
retain_previous_owner?: boolean | undefined;
|
|
84
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
85
|
//#endregion
|
|
8
86
|
export { onesignalRestApiUpdateSubscription };
|
|
9
87
|
//# sourceMappingURL=update-subscription.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subscription.d.mts","names":[],"sources":["../../src/actions/update-subscription.ts"],"mappings":";;;cAIa,uCAAA,
|
|
1
|
+
{"version":3,"file":"update-subscription.d.mts","names":[],"sources":["../../src/actions/update-subscription.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0CvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAIxC,kCAAA,gCAAkC,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subscription.mjs","names":[],"sources":["../../src/actions/update-subscription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiUpdateSubscriptionInput
|
|
1
|
+
{"version":3,"file":"update-subscription.mjs","names":[],"sources":["../../src/actions/update-subscription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiUpdateSubscriptionInput = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID.\"),\n subscription: z.object({\n sdk: z.string().describe(\"SDK version used by the subscription.\").optional(),\n type: z.enum([\"iOSPush\", \"AndroidPush\", \"FireOSPush\", \"ChromeExtensionPush\", \"ChromePush\", \"WindowsPush\", \"SafariLegacyPush\", \"FirefoxPush\", \"macOSPush\", \"HuaweiPush\", \"SafariPush\", \"Email\", \"SMS\"]).describe(\"Subscription type enumeration for OneSignal.\").optional(),\n token: z.string().describe(\"The push token, email address, or phone number for the subscription.\").optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted or jailbroken.\").optional(),\n carrier: z.string().describe(\"Mobile carrier name.\").optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled for notifications.\").optional(),\n net_type: z.number().int().describe(\"Network type code.\").optional(),\n web_auth: z.string().describe(\"Web push authentication secret.\").optional(),\n web_p256: z.string().describe(\"Web push P-256 public key.\").optional(),\n device_os: z.string().describe(\"Operating system version.\").optional(),\n test_type: z.number().int().describe(\"Test type indicator (1 for development, 2 for ad-hoc).\").optional(),\n app_version: z.string().describe(\"Version of the application.\").optional(),\n device_model: z.string().describe(\"Device model identifier.\").optional(),\n session_time: z.number().int().describe(\"Total session time in seconds.\").optional(),\n session_count: z.number().int().describe(\"Total number of sessions.\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state (integer code).\").optional(),\n}).describe(\"The subscription properties to update.\"),\n subscription_id: z.string().describe(\"The unique ID of the subscription to update.\"),\n retain_previous_owner: z.boolean().describe(\"Whether to retain the previous owner when updating the subscription.\").optional(),\n}).describe(\"Request model for updating a OneSignal subscription.\");\nconst OnesignalRestApiUpdateSubscription_SubscriptionResponseObjectSchema = z.object({\n id: z.string().describe(\"The subscription ID.\").nullable().optional(),\n sdk: z.string().describe(\"SDK version.\").nullable().optional(),\n type: z.string().describe(\"The subscription type.\").nullable().optional(),\n token: z.string().describe(\"The push token, email address, or phone number.\").nullable().optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted or jailbroken.\").nullable().optional(),\n carrier: z.string().describe(\"Mobile carrier name.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled.\").nullable().optional(),\n net_type: z.number().int().describe(\"Network type code.\").nullable().optional(),\n web_auth: z.string().describe(\"Web push authentication secret.\").nullable().optional(),\n web_p256: z.string().describe(\"Web push P-256 public key.\").nullable().optional(),\n device_os: z.string().describe(\"Operating system version.\").nullable().optional(),\n test_type: z.number().int().describe(\"Test type indicator.\").nullable().optional(),\n app_version: z.string().describe(\"Application version.\").nullable().optional(),\n device_model: z.string().describe(\"Device model.\").nullable().optional(),\n session_time: z.number().int().describe(\"Total session time in seconds.\").nullable().optional(),\n session_count: z.number().int().describe(\"Total number of sessions.\").nullable().optional(),\n notification_types: z.number().int().describe(\"Notification permission state.\").nullable().optional(),\n}).passthrough().describe(\"Updated subscription object in the response.\");\nexport const OnesignalRestApiUpdateSubscriptionOutput = z.object({\n subscription: OnesignalRestApiUpdateSubscription_SubscriptionResponseObjectSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for the UpdateSubscription action.\");\n\nexport const onesignalRestApiUpdateSubscription = action(\"ONESIGNAL_REST_API_UPDATE_SUBSCRIPTION\", {\n slug: \"onesignal_rest_api-update-subscription\",\n name: \"Update Subscription\",\n description: \"Tool to update an existing subscription's properties. Use when you need to modify subscription attributes like token, enabled status, or device information.\",\n input: OnesignalRestApiUpdateSubscriptionInput,\n output: OnesignalRestApiUpdateSubscriptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0C,EAAE,OAAO;CAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,cAAc,EAAE,OAAO;EACvB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,KAAK;GAAC;GAAW;GAAe;GAAc;GAAuB;GAAc;GAAe;GAAoB;GAAe;GAAa;GAAc;GAAc;GAAS;EAAK,CAAC,CAAC,CAAC,SAAS,8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AC,SAAS,CAAC,CAAC,SAAS;CAC7E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAKxE,MAAa,qCAAqC,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,cAAc,oEAAoE,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
|
|
@@ -3,13 +3,13 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/view-an-app.ts
|
|
4
4
|
const OnesignalRestApiViewAnAppInput = zod.z.object({ app_id: zod.z.string().describe("Unique identifier for the OneSignal app.") }).describe("Request model for retrieving metadata of a OneSignal app.");
|
|
5
5
|
const OnesignalRestApiViewAnAppOutput = zod.z.object({
|
|
6
|
-
id: zod.z.string().describe("Unique identifier of the OneSignal app."),
|
|
7
|
-
name: zod.z.string().describe("Name of the OneSignal app."),
|
|
8
|
-
players: zod.z.number().int().describe("Number of registered devices (players)."),
|
|
9
|
-
created_at: zod.z.string().describe("Creation timestamp in ISO 8601 format."),
|
|
10
|
-
updated_at: zod.z.string().describe("Last update timestamp in ISO 8601 format."),
|
|
6
|
+
id: zod.z.string().describe("Unique identifier of the OneSignal app.").nullable(),
|
|
7
|
+
name: zod.z.string().describe("Name of the OneSignal app.").nullable(),
|
|
8
|
+
players: zod.z.number().int().describe("Number of registered devices (players).").nullable(),
|
|
9
|
+
created_at: zod.z.string().describe("Creation timestamp in ISO 8601 format.").nullable(),
|
|
10
|
+
updated_at: zod.z.string().describe("Last update timestamp in ISO 8601 format.").nullable(),
|
|
11
11
|
organization_id: zod.z.string().describe("Organization ID if the app belongs to one.").nullable().optional(),
|
|
12
|
-
messageable_players: zod.z.number().int().describe("Number of devices eligible to receive notifications.")
|
|
12
|
+
messageable_players: zod.z.number().int().describe("Number of devices eligible to receive notifications.").nullable()
|
|
13
13
|
}).passthrough().describe("Response model for viewing a OneSignal app's metadata.");
|
|
14
14
|
const onesignalRestApiViewAnApp = require_action.action("ONESIGNAL_REST_API_VIEW_AN_APP", {
|
|
15
15
|
slug: "onesignal_rest_api-view-an-app",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-an-app.cjs","names":["z","action"],"sources":["../../src/actions/view-an-app.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewAnAppInput
|
|
1
|
+
{"version":3,"file":"view-an-app.cjs","names":["z","action"],"sources":["../../src/actions/view-an-app.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewAnAppInput = z.object({\n app_id: z.string().describe(\"Unique identifier for the OneSignal app.\"),\n}).describe(\"Request model for retrieving metadata of a OneSignal app.\");\nexport const OnesignalRestApiViewAnAppOutput = z.object({\n id: z.string().describe(\"Unique identifier of the OneSignal app.\").nullable(),\n name: z.string().describe(\"Name of the OneSignal app.\").nullable(),\n players: z.number().int().describe(\"Number of registered devices (players).\").nullable(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format.\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format.\").nullable(),\n organization_id: z.string().describe(\"Organization ID if the app belongs to one.\").nullable().optional(),\n messageable_players: z.number().int().describe(\"Number of devices eligible to receive notifications.\").nullable(),\n}).passthrough().describe(\"Response model for viewing a OneSignal app's metadata.\");\n\nexport const onesignalRestApiViewAnApp = action(\"ONESIGNAL_REST_API_VIEW_AN_APP\", {\n slug: \"onesignal_rest_api-view-an-app\",\n name: \"View OneSignal App\",\n description: \"Tool to retrieve metadata for a single OneSignal app. Use when you need to fetch app details by its ID.\",\n input: OnesignalRestApiViewAnAppInput,\n output: OnesignalRestApiViewAnAppOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACxE,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,4BAA4BC,eAAAA,OAAO,kCAAkC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|