@keystrokehq/onesignal_rest_api 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/begin-live-activity.cjs +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 +1 -1
- package/dist/actions/begin-live-activity.mjs.map +1 -1
- package/dist/actions/create-notification.cjs +4 -4
- 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 +4 -4
- package/dist/actions/create-notification.mjs.map +1 -1
- package/dist/actions/create-template.cjs +6 -6
- 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 +6 -6
- package/dist/actions/create-template.mjs.map +1 -1
- package/dist/actions/create-user.cjs +6 -6
- package/dist/actions/create-user.cjs.map +1 -1
- package/dist/actions/create-user.d.cts +91 -3
- package/dist/actions/create-user.d.cts.map +1 -1
- package/dist/actions/create-user.d.mts +91 -3
- package/dist/actions/create-user.d.mts.map +1 -1
- package/dist/actions/create-user.mjs +6 -6
- package/dist/actions/create-user.mjs.map +1 -1
- package/dist/actions/delete-alias.cjs +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 +1 -1
- package/dist/actions/delete-alias.mjs.map +1 -1
- package/dist/actions/delete-device.cjs +2 -2
- 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 +2 -2
- package/dist/actions/delete-device.mjs.map +1 -1
- package/dist/actions/fetch-user-identity.cjs +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 +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 +2 -2
- 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 +2 -2
- 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 +8 -8
- 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 +8 -8
- package/dist/actions/view-device.mjs.map +1 -1
- package/dist/actions/view-devices.cjs +9 -9
- 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 +9 -9
- package/dist/actions/view-devices.mjs.map +1 -1
- package/dist/actions/view-notifications.cjs +8 -8
- 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 +8 -8
- package/dist/actions/view-notifications.mjs.map +1 -1
- package/dist/actions/view-segments.cjs +7 -7
- 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 +7 -7
- 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,9 +1,77 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-template.d.ts
|
|
4
|
-
declare const OnesignalRestApiCreateTemplateInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OnesignalRestApiCreateTemplateInput: z.ZodObject<{
|
|
5
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6
|
+
isWP: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
isAdm: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
isIos: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
isSMS: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
app_id: z.ZodString;
|
|
12
|
+
isEdge: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
isEmail: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
contents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15
|
+
headings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
|
+
isChrome: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
isMacOSX: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
isSafari: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
isWP_WNS: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
isAndroid: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
isFirefox: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
email_body: z.ZodOptional<z.ZodString>;
|
|
23
|
+
isChromeWeb: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
email_subject: z.ZodOptional<z.ZodString>;
|
|
25
|
+
dynamic_content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
declare const OnesignalRestApiCreateTemplateOutput: z.ZodObject<{
|
|
28
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
isWP: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
33
|
+
isAdm: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
34
|
+
isIos: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
35
|
+
isSMS: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
36
|
+
isEdge: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
37
|
+
isEmail: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
38
|
+
contents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
39
|
+
headings: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
40
|
+
isChrome: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
41
|
+
isMacOSX: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
42
|
+
isSafari: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
43
|
+
isAndroid: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
44
|
+
isFirefox: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
45
|
+
email_body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
isChromeWeb: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
47
|
+
email_subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
}, z.core.$loose>>>;
|
|
49
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
}, z.core.$loose>;
|
|
52
|
+
declare const onesignalRestApiCreateTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
53
|
+
name: string;
|
|
54
|
+
app_id: string;
|
|
55
|
+
url?: string | undefined;
|
|
56
|
+
isWP?: boolean | undefined;
|
|
57
|
+
isAdm?: boolean | undefined;
|
|
58
|
+
isIos?: boolean | undefined;
|
|
59
|
+
isSMS?: boolean | undefined;
|
|
60
|
+
isEdge?: boolean | undefined;
|
|
61
|
+
isEmail?: boolean | undefined;
|
|
62
|
+
contents?: Record<string, unknown> | undefined;
|
|
63
|
+
headings?: Record<string, unknown> | undefined;
|
|
64
|
+
isChrome?: boolean | undefined;
|
|
65
|
+
isMacOSX?: boolean | undefined;
|
|
66
|
+
isSafari?: boolean | undefined;
|
|
67
|
+
isWP_WNS?: boolean | undefined;
|
|
68
|
+
isAndroid?: boolean | undefined;
|
|
69
|
+
isFirefox?: boolean | undefined;
|
|
70
|
+
email_body?: string | undefined;
|
|
71
|
+
isChromeWeb?: boolean | undefined;
|
|
72
|
+
email_subject?: string | undefined;
|
|
73
|
+
dynamic_content?: Record<string, unknown> | undefined;
|
|
74
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
75
|
//#endregion
|
|
8
76
|
export { onesignalRestApiCreateTemplate };
|
|
9
77
|
//# sourceMappingURL=create-template.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-template.d.mts","names":[],"sources":["../../src/actions/create-template.ts"],"mappings":";;;cAIa,mCAAA,
|
|
1
|
+
{"version":3,"file":"create-template.d.mts","names":[],"sources":["../../src/actions/create-template.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cA0CnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAQpC,8BAAA,gCAA8B,wBAAA"}
|
|
@@ -11,8 +11,8 @@ const OnesignalRestApiCreateTemplateInput = z.object({
|
|
|
11
11
|
app_id: z.string().describe("Your OneSignal App ID"),
|
|
12
12
|
isEdge: z.boolean().describe("Platform targeting flag for Microsoft Edge (defaults to true)").optional(),
|
|
13
13
|
isEmail: z.boolean().describe("Required to be set true for email templates").optional(),
|
|
14
|
-
contents: z.
|
|
15
|
-
headings: z.
|
|
14
|
+
contents: z.record(z.string(), z.unknown()).describe("The main message body with language-specific values (e.g., {'en': 'Hello!'}). Applies to push and SMS templates. Supports message personalization.").optional(),
|
|
15
|
+
headings: z.record(z.string(), z.unknown()).describe("Language-specific heading values for push notifications").optional(),
|
|
16
16
|
isChrome: z.boolean().describe("Platform targeting flag for Chrome Apps (defaults to true)").optional(),
|
|
17
17
|
isMacOSX: z.boolean().describe("Platform targeting flag for macOS (defaults to true)").optional(),
|
|
18
18
|
isSafari: z.boolean().describe("Platform targeting flag for Safari (defaults to true)").optional(),
|
|
@@ -22,7 +22,7 @@ const OnesignalRestApiCreateTemplateInput = z.object({
|
|
|
22
22
|
email_body: z.string().describe("The body of the email in HTML format (required when creating email templates). Supports message personalization.").optional(),
|
|
23
23
|
isChromeWeb: z.boolean().describe("Platform targeting flag for Chrome Web Push (defaults to true)").optional(),
|
|
24
24
|
email_subject: z.string().describe("The subject of the email (required when creating email templates). Supports message personalization.").optional(),
|
|
25
|
-
dynamic_content: z.
|
|
25
|
+
dynamic_content: z.record(z.string(), z.unknown()).describe("Enables programmatic personalization without CSV uploads. Structure supports nested key-value campaign variations.").optional()
|
|
26
26
|
}).describe("Request model for creating a OneSignal template.");
|
|
27
27
|
const OnesignalRestApiCreateTemplate_TemplateContentResponseSchema = z.object({
|
|
28
28
|
url: z.string().describe("Associated URL for the notification").nullable().optional(),
|
|
@@ -32,8 +32,8 @@ const OnesignalRestApiCreateTemplate_TemplateContentResponseSchema = z.object({
|
|
|
32
32
|
isSMS: z.boolean().describe("Indicates if template is SMS-based").nullable().optional(),
|
|
33
33
|
isEdge: z.boolean().describe("Platform targeting flag for Microsoft Edge").nullable().optional(),
|
|
34
34
|
isEmail: z.boolean().describe("Indicates if template is email-based").nullable().optional(),
|
|
35
|
-
contents: z.
|
|
36
|
-
headings: z.
|
|
35
|
+
contents: z.record(z.string(), z.unknown()).describe("The main message body with language-specific values").nullable().optional(),
|
|
36
|
+
headings: z.record(z.string(), z.unknown()).describe("Language-specific heading values").nullable().optional(),
|
|
37
37
|
isChrome: z.boolean().describe("Platform targeting flag for Chrome Apps").nullable().optional(),
|
|
38
38
|
isMacOSX: z.boolean().describe("Platform targeting flag for macOS").nullable().optional(),
|
|
39
39
|
isSafari: z.boolean().describe("Platform targeting flag for Safari").nullable().optional(),
|
|
@@ -54,7 +54,7 @@ const onesignalRestApiCreateTemplate = action("ONESIGNAL_REST_API_CREATE_TEMPLAT
|
|
|
54
54
|
content: OnesignalRestApiCreateTemplate_TemplateContentResponseSchema.nullable().optional(),
|
|
55
55
|
created_at: z.string().describe("Timestamp in ISO 8601 format indicating when the template was created").nullable().optional(),
|
|
56
56
|
updated_at: z.string().describe("Timestamp in ISO 8601 format showing the last modification time").nullable().optional()
|
|
57
|
-
}).describe("Response model after creating a OneSignal template.")
|
|
57
|
+
}).passthrough().describe("Response model after creating a OneSignal template.")
|
|
58
58
|
});
|
|
59
59
|
//#endregion
|
|
60
60
|
export { onesignalRestApiCreateTemplate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-template.mjs","names":[],"sources":["../../src/actions/create-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateTemplateInput
|
|
1
|
+
{"version":3,"file":"create-template.mjs","names":[],"sources":["../../src/actions/create-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateTemplateInput = z.object({\n url: z.string().describe(\"Associated URL for the notification\").optional(),\n isWP: z.boolean().describe(\"Platform targeting flag for Windows Phone (defaults to true)\").optional(),\n name: z.string().describe(\"Internal name for organizing and tracking templates (maximum 128 characters)\"),\n isAdm: z.boolean().describe(\"Platform targeting flag for Amazon (defaults to true)\").optional(),\n isIos: z.boolean().describe(\"Platform targeting flag for iOS (defaults to true)\").optional(),\n isSMS: z.boolean().describe(\"Required to be set true for SMS templates\").optional(),\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n isEdge: z.boolean().describe(\"Platform targeting flag for Microsoft Edge (defaults to true)\").optional(),\n isEmail: z.boolean().describe(\"Required to be set true for email templates\").optional(),\n contents: z.record(z.string(), z.unknown()).describe(\"The main message body with language-specific values (e.g., {'en': 'Hello!'}). Applies to push and SMS templates. Supports message personalization.\").optional(),\n headings: z.record(z.string(), z.unknown()).describe(\"Language-specific heading values for push notifications\").optional(),\n isChrome: z.boolean().describe(\"Platform targeting flag for Chrome Apps (defaults to true)\").optional(),\n isMacOSX: z.boolean().describe(\"Platform targeting flag for macOS (defaults to true)\").optional(),\n isSafari: z.boolean().describe(\"Platform targeting flag for Safari (defaults to true)\").optional(),\n isWP_WNS: z.boolean().describe(\"Platform targeting flag for Windows Push Notification Services (defaults to true)\").optional(),\n isAndroid: z.boolean().describe(\"Platform targeting flag for Android (defaults to true)\").optional(),\n isFirefox: z.boolean().describe(\"Platform targeting flag for Firefox (defaults to true)\").optional(),\n email_body: z.string().describe(\"The body of the email in HTML format (required when creating email templates). Supports message personalization.\").optional(),\n isChromeWeb: z.boolean().describe(\"Platform targeting flag for Chrome Web Push (defaults to true)\").optional(),\n email_subject: z.string().describe(\"The subject of the email (required when creating email templates). Supports message personalization.\").optional(),\n dynamic_content: z.record(z.string(), z.unknown()).describe(\"Enables programmatic personalization without CSV uploads. Structure supports nested key-value campaign variations.\").optional(),\n}).describe(\"Request model for creating a OneSignal template.\");\nconst OnesignalRestApiCreateTemplate_TemplateContentResponseSchema = z.object({\n url: z.string().describe(\"Associated URL for the notification\").nullable().optional(),\n isWP: z.boolean().describe(\"Platform targeting flag for Windows Phone\").nullable().optional(),\n isAdm: z.boolean().describe(\"Platform targeting flag for Amazon\").nullable().optional(),\n isIos: z.boolean().describe(\"Platform targeting flag for iOS\").nullable().optional(),\n isSMS: z.boolean().describe(\"Indicates if template is SMS-based\").nullable().optional(),\n isEdge: z.boolean().describe(\"Platform targeting flag for Microsoft Edge\").nullable().optional(),\n isEmail: z.boolean().describe(\"Indicates if template is email-based\").nullable().optional(),\n contents: z.record(z.string(), z.unknown()).describe(\"The main message body with language-specific values\").nullable().optional(),\n headings: z.record(z.string(), z.unknown()).describe(\"Language-specific heading values\").nullable().optional(),\n isChrome: z.boolean().describe(\"Platform targeting flag for Chrome Apps\").nullable().optional(),\n isMacOSX: z.boolean().describe(\"Platform targeting flag for macOS\").nullable().optional(),\n isSafari: z.boolean().describe(\"Platform targeting flag for Safari\").nullable().optional(),\n isAndroid: z.boolean().describe(\"Platform targeting flag for Android\").nullable().optional(),\n isFirefox: z.boolean().describe(\"Platform targeting flag for Firefox\").nullable().optional(),\n email_body: z.string().describe(\"HTML-formatted email body (if applicable)\").nullable().optional(),\n isChromeWeb: z.boolean().describe(\"Platform targeting flag for Chrome Web Push\").nullable().optional(),\n email_subject: z.string().describe(\"Email subject line (if applicable)\").nullable().optional(),\n}).passthrough().describe(\"Content details within the template response.\");\nexport const OnesignalRestApiCreateTemplateOutput = z.object({\n id: z.string().describe(\"The template's unique identifier (UUID format)\").nullable().optional(),\n name: z.string().describe(\"An internal name you set to help organize and track Templates (maximum 128 characters)\").nullable().optional(),\n content: OnesignalRestApiCreateTemplate_TemplateContentResponseSchema.nullable().optional(),\n created_at: z.string().describe(\"Timestamp in ISO 8601 format indicating when the template was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp in ISO 8601 format showing the last modification time\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a OneSignal template.\");\n\nexport const onesignalRestApiCreateTemplate = action(\"ONESIGNAL_REST_API_CREATE_TEMPLATE\", {\n slug: \"onesignal_rest_api-create-template\",\n name: \"Create Template\",\n description: \"Tool to create reusable message templates for push, email, and SMS channels. Use when you need to create a template that can be accessed through both the dashboard and API using a template_id.\",\n input: OnesignalRestApiCreateTemplateInput,\n output: OnesignalRestApiCreateTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACzE,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACpG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;CACxG,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC9F,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC3F,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACnD,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACvG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACtF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;CACpN,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACzH,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,C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AAO;CACP,QAbkD,EAAE,OAAO;EAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxI,SAAS,6DAA6D,SAAS,CAAC,CAAC,SAAS;EAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
|
|
@@ -11,10 +11,10 @@ const OnesignalRestApiCreateUserInput = zod.z.object({
|
|
|
11
11
|
ip: zod.z.string().describe("IP address of the user").optional(),
|
|
12
12
|
lat: zod.z.number().describe("Latitude coordinate of the user's location").optional(),
|
|
13
13
|
long: zod.z.number().describe("Longitude coordinate of the user's location").optional(),
|
|
14
|
-
tags: zod.z.
|
|
14
|
+
tags: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key/value tags associated with the user").optional(),
|
|
15
15
|
country: zod.z.string().describe("Country code (e.g., 'US')").optional(),
|
|
16
16
|
language: zod.z.string().describe("Language code of the user (e.g., 'en')").optional(),
|
|
17
|
-
purchases: zod.z.array(zod.z.
|
|
17
|
+
purchases: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of purchase records for the user").optional(),
|
|
18
18
|
last_active: zod.z.number().int().describe("UNIX timestamp of when the user was last active").optional(),
|
|
19
19
|
timezone_id: zod.z.string().describe("Timezone identifier (e.g., 'America/New_York')").optional(),
|
|
20
20
|
amount_spent: zod.z.number().describe("Total amount spent by the user").optional(),
|
|
@@ -38,13 +38,13 @@ const OnesignalRestApiCreateUserInput = zod.z.object({
|
|
|
38
38
|
session_time: zod.z.number().int().describe("Total session time in seconds").optional(),
|
|
39
39
|
session_count: zod.z.number().int().describe("Number of sessions recorded").optional(),
|
|
40
40
|
notification_types: zod.z.number().int().describe("Notification permission state").optional()
|
|
41
|
-
}).describe("Subscription object representing a device or channel subscribed to notifications.")).describe("List of subscriptions (devices/channels) owned by the user").optional(),
|
|
41
|
+
}).passthrough().describe("Subscription object representing a device or channel subscribed to notifications.")).describe("List of subscriptions (devices/channels) owned by the user").optional(),
|
|
42
42
|
subscription_options: zod.z.object({ retain_previous_owner: zod.z.boolean().describe("Whether to retain the previous owner when transferring subscriptions").optional() }).describe("Options for subscription management.").optional()
|
|
43
43
|
}).describe("Request model for creating a OneSignal user with optional subscriptions and aliases.");
|
|
44
44
|
const OnesignalRestApiCreateUserOutput = zod.z.object({
|
|
45
|
-
identity: zod.z.
|
|
46
|
-
properties: zod.z.
|
|
47
|
-
subscriptions: zod.z.array(zod.z.
|
|
45
|
+
identity: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Identity information of the created user").nullable().optional(),
|
|
46
|
+
properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Properties of the created user").nullable().optional(),
|
|
47
|
+
subscriptions: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Subscriptions associated with the created user").nullable().optional()
|
|
48
48
|
}).passthrough().describe("Response model after creating a OneSignal user.");
|
|
49
49
|
const onesignalRestApiCreateUser = require_action.action("ONESIGNAL_REST_API_CREATE_USER", {
|
|
50
50
|
slug: "onesignal_rest_api-create-user",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateUserInput
|
|
1
|
+
{"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateUserInput = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n identity: z.object({\n external_id: z.string().describe(\"External user ID for identifying the user across platforms\").optional(),\n onesignal_id: z.string().describe(\"OneSignal user ID for existing users\").optional(),\n}).passthrough().describe(\"Identity object for user identification. Aliases provided will be used to look up an existing user.\").optional(),\n properties: z.object({\n ip: z.string().describe(\"IP address of the user\").optional(),\n lat: z.number().describe(\"Latitude coordinate of the user's location\").optional(),\n long: z.number().describe(\"Longitude coordinate of the user's location\").optional(),\n tags: z.record(z.string(), z.unknown()).describe(\"Custom key/value tags associated with the user\").optional(),\n country: z.string().describe(\"Country code (e.g., 'US')\").optional(),\n language: z.string().describe(\"Language code of the user (e.g., 'en')\").optional(),\n purchases: z.array(z.record(z.string(), z.unknown())).describe(\"List of purchase records for the user\").optional(),\n last_active: z.number().int().describe(\"UNIX timestamp of when the user was last active\").optional(),\n timezone_id: z.string().describe(\"Timezone identifier (e.g., 'America/New_York')\").optional(),\n amount_spent: z.number().describe(\"Total amount spent by the user\").optional(),\n first_active: z.number().int().describe(\"UNIX timestamp of when the user was first active\").optional(),\n}).describe(\"User properties including location, activity, and custom data.\").optional(),\n subscriptions: z.array(z.object({\n id: z.string().describe(\"Subscription ID\").optional(),\n sdk: z.string().describe(\"SDK version used\").optional(),\n type: z.string().describe(\"Subscription type (e.g., 'AndroidPush', 'iOSPush', 'Email', 'SMS')\").optional(),\n token: z.string().describe(\"Push token or address for the subscription\").optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted/jailbroken\").optional(),\n carrier: z.string().describe(\"Mobile carrier\").optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled\").optional(),\n net_type: z.number().int().describe(\"Network type\").optional(),\n web_auth: z.string().describe(\"Web push auth key\").optional(),\n web_p256: z.string().describe(\"Web push p256 key\").optional(),\n device_os: z.string().describe(\"Operating system version\").optional(),\n test_type: z.number().int().describe(\"Test type (1 for development, 2 for ad-hoc)\").optional(),\n app_version: z.string().describe(\"Version of the app\").optional(),\n device_model: z.string().describe(\"Device model\").optional(),\n session_time: z.number().int().describe(\"Total session time in seconds\").optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state\").optional(),\n}).passthrough().describe(\"Subscription object representing a device or channel subscribed to notifications.\")).describe(\"List of subscriptions (devices/channels) owned by the user\").optional(),\n subscription_options: z.object({\n retain_previous_owner: z.boolean().describe(\"Whether to retain the previous owner when transferring subscriptions\").optional(),\n}).describe(\"Options for subscription management.\").optional(),\n}).describe(\"Request model for creating a OneSignal user with optional subscriptions and aliases.\");\nexport const OnesignalRestApiCreateUserOutput = z.object({\n identity: z.record(z.string(), z.unknown()).describe(\"Identity information of the created user\").nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Properties of the created user\").nullable().optional(),\n subscriptions: z.array(z.record(z.string(), z.unknown())).describe(\"Subscriptions associated with the created user\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a OneSignal user.\");\n\nexport const onesignalRestApiCreateUser = action(\"ONESIGNAL_REST_API_CREATE_USER\", {\n slug: \"onesignal_rest_api-create-user\",\n name: \"Create User\",\n description: \"Tool to create a OneSignal user with optional subscriptions and aliases. Aliases provided in the payload will be used to look up an existing user.\",\n input: OnesignalRestApiCreateUserInput,\n output: OnesignalRestApiCreateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACnD,UAAUA,IAAAA,EAAE,OAAO;EACnB,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACxG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CACxI,Y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ateUserInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OnesignalRestApiCreateUserInput: z.ZodObject<{
|
|
5
|
+
app_id: z.ZodString;
|
|
6
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
external_id: z.ZodOptional<z.ZodString>;
|
|
8
|
+
onesignal_id: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
properties: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
ip: z.ZodOptional<z.ZodString>;
|
|
12
|
+
lat: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
long: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15
|
+
country: z.ZodOptional<z.ZodString>;
|
|
16
|
+
language: z.ZodOptional<z.ZodString>;
|
|
17
|
+
purchases: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
18
|
+
last_active: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
timezone_id: z.ZodOptional<z.ZodString>;
|
|
20
|
+
amount_spent: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
first_active: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodOptional<z.ZodString>;
|
|
25
|
+
sdk: z.ZodOptional<z.ZodString>;
|
|
26
|
+
type: z.ZodOptional<z.ZodString>;
|
|
27
|
+
token: z.ZodOptional<z.ZodString>;
|
|
28
|
+
rooted: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
carrier: z.ZodOptional<z.ZodString>;
|
|
30
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
net_type: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
web_auth: z.ZodOptional<z.ZodString>;
|
|
33
|
+
web_p256: z.ZodOptional<z.ZodString>;
|
|
34
|
+
device_os: z.ZodOptional<z.ZodString>;
|
|
35
|
+
test_type: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
app_version: z.ZodOptional<z.ZodString>;
|
|
37
|
+
device_model: z.ZodOptional<z.ZodString>;
|
|
38
|
+
session_time: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
session_count: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
notification_types: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
}, z.core.$loose>>>;
|
|
42
|
+
subscription_options: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
retain_previous_owner: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
declare const OnesignalRestApiCreateUserOutput: z.ZodObject<{
|
|
47
|
+
identity: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
48
|
+
properties: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
49
|
+
subscriptions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
50
|
+
}, z.core.$loose>;
|
|
51
|
+
declare const onesignalRestApiCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
52
|
+
app_id: string;
|
|
53
|
+
identity?: {
|
|
54
|
+
[x: string]: unknown;
|
|
55
|
+
external_id?: string | undefined;
|
|
56
|
+
onesignal_id?: string | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
properties?: {
|
|
59
|
+
ip?: string | undefined;
|
|
60
|
+
lat?: number | undefined;
|
|
61
|
+
long?: number | undefined;
|
|
62
|
+
tags?: Record<string, unknown> | undefined;
|
|
63
|
+
country?: string | undefined;
|
|
64
|
+
language?: string | undefined;
|
|
65
|
+
purchases?: Record<string, unknown>[] | undefined;
|
|
66
|
+
last_active?: number | undefined;
|
|
67
|
+
timezone_id?: string | undefined;
|
|
68
|
+
amount_spent?: number | undefined;
|
|
69
|
+
first_active?: number | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
subscriptions?: {
|
|
72
|
+
[x: string]: unknown;
|
|
73
|
+
id?: string | undefined;
|
|
74
|
+
sdk?: string | undefined;
|
|
75
|
+
type?: string | undefined;
|
|
76
|
+
token?: string | undefined;
|
|
77
|
+
rooted?: boolean | undefined;
|
|
78
|
+
carrier?: string | undefined;
|
|
79
|
+
enabled?: boolean | undefined;
|
|
80
|
+
net_type?: number | undefined;
|
|
81
|
+
web_auth?: string | undefined;
|
|
82
|
+
web_p256?: string | undefined;
|
|
83
|
+
device_os?: string | undefined;
|
|
84
|
+
test_type?: number | undefined;
|
|
85
|
+
app_version?: string | undefined;
|
|
86
|
+
device_model?: string | undefined;
|
|
87
|
+
session_time?: number | undefined;
|
|
88
|
+
session_count?: number | undefined;
|
|
89
|
+
notification_types?: number | undefined;
|
|
90
|
+
}[] | undefined;
|
|
91
|
+
subscription_options?: {
|
|
92
|
+
retain_previous_owner?: boolean | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
95
|
//#endregion
|
|
8
96
|
export { onesignalRestApiCreateUser };
|
|
9
97
|
//# sourceMappingURL=create-user.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAMhC,0BAAA,gCAA0B,wBAAA;;;;;;;;;;;WAMrC,MAAA;;;gBAAA,MAAA"}
|
|
@@ -1,9 +1,97 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-user.d.ts
|
|
4
|
-
declare const OnesignalRestApiCreateUserInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OnesignalRestApiCreateUserInput: z.ZodObject<{
|
|
5
|
+
app_id: z.ZodString;
|
|
6
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
external_id: z.ZodOptional<z.ZodString>;
|
|
8
|
+
onesignal_id: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
properties: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
ip: z.ZodOptional<z.ZodString>;
|
|
12
|
+
lat: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
long: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15
|
+
country: z.ZodOptional<z.ZodString>;
|
|
16
|
+
language: z.ZodOptional<z.ZodString>;
|
|
17
|
+
purchases: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
18
|
+
last_active: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
timezone_id: z.ZodOptional<z.ZodString>;
|
|
20
|
+
amount_spent: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
first_active: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodOptional<z.ZodString>;
|
|
25
|
+
sdk: z.ZodOptional<z.ZodString>;
|
|
26
|
+
type: z.ZodOptional<z.ZodString>;
|
|
27
|
+
token: z.ZodOptional<z.ZodString>;
|
|
28
|
+
rooted: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
carrier: z.ZodOptional<z.ZodString>;
|
|
30
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
net_type: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
web_auth: z.ZodOptional<z.ZodString>;
|
|
33
|
+
web_p256: z.ZodOptional<z.ZodString>;
|
|
34
|
+
device_os: z.ZodOptional<z.ZodString>;
|
|
35
|
+
test_type: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
app_version: z.ZodOptional<z.ZodString>;
|
|
37
|
+
device_model: z.ZodOptional<z.ZodString>;
|
|
38
|
+
session_time: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
session_count: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
notification_types: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
}, z.core.$loose>>>;
|
|
42
|
+
subscription_options: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
retain_previous_owner: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
declare const OnesignalRestApiCreateUserOutput: z.ZodObject<{
|
|
47
|
+
identity: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
48
|
+
properties: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
49
|
+
subscriptions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
50
|
+
}, z.core.$loose>;
|
|
51
|
+
declare const onesignalRestApiCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
52
|
+
app_id: string;
|
|
53
|
+
identity?: {
|
|
54
|
+
[x: string]: unknown;
|
|
55
|
+
external_id?: string | undefined;
|
|
56
|
+
onesignal_id?: string | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
properties?: {
|
|
59
|
+
ip?: string | undefined;
|
|
60
|
+
lat?: number | undefined;
|
|
61
|
+
long?: number | undefined;
|
|
62
|
+
tags?: Record<string, unknown> | undefined;
|
|
63
|
+
country?: string | undefined;
|
|
64
|
+
language?: string | undefined;
|
|
65
|
+
purchases?: Record<string, unknown>[] | undefined;
|
|
66
|
+
last_active?: number | undefined;
|
|
67
|
+
timezone_id?: string | undefined;
|
|
68
|
+
amount_spent?: number | undefined;
|
|
69
|
+
first_active?: number | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
subscriptions?: {
|
|
72
|
+
[x: string]: unknown;
|
|
73
|
+
id?: string | undefined;
|
|
74
|
+
sdk?: string | undefined;
|
|
75
|
+
type?: string | undefined;
|
|
76
|
+
token?: string | undefined;
|
|
77
|
+
rooted?: boolean | undefined;
|
|
78
|
+
carrier?: string | undefined;
|
|
79
|
+
enabled?: boolean | undefined;
|
|
80
|
+
net_type?: number | undefined;
|
|
81
|
+
web_auth?: string | undefined;
|
|
82
|
+
web_p256?: string | undefined;
|
|
83
|
+
device_os?: string | undefined;
|
|
84
|
+
test_type?: number | undefined;
|
|
85
|
+
app_version?: string | undefined;
|
|
86
|
+
device_model?: string | undefined;
|
|
87
|
+
session_time?: number | undefined;
|
|
88
|
+
session_count?: number | undefined;
|
|
89
|
+
notification_types?: number | undefined;
|
|
90
|
+
}[] | undefined;
|
|
91
|
+
subscription_options?: {
|
|
92
|
+
retain_previous_owner?: boolean | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
95
|
//#endregion
|
|
8
96
|
export { onesignalRestApiCreateUser };
|
|
9
97
|
//# sourceMappingURL=create-user.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAMhC,0BAAA,gCAA0B,wBAAA;;;;;;;;;;;WAMrC,MAAA;;;gBAAA,MAAA"}
|
|
@@ -14,10 +14,10 @@ const onesignalRestApiCreateUser = action("ONESIGNAL_REST_API_CREATE_USER", {
|
|
|
14
14
|
ip: z.string().describe("IP address of the user").optional(),
|
|
15
15
|
lat: z.number().describe("Latitude coordinate of the user's location").optional(),
|
|
16
16
|
long: z.number().describe("Longitude coordinate of the user's location").optional(),
|
|
17
|
-
tags: z.
|
|
17
|
+
tags: z.record(z.string(), z.unknown()).describe("Custom key/value tags associated with the user").optional(),
|
|
18
18
|
country: z.string().describe("Country code (e.g., 'US')").optional(),
|
|
19
19
|
language: z.string().describe("Language code of the user (e.g., 'en')").optional(),
|
|
20
|
-
purchases: z.array(z.
|
|
20
|
+
purchases: z.array(z.record(z.string(), z.unknown())).describe("List of purchase records for the user").optional(),
|
|
21
21
|
last_active: z.number().int().describe("UNIX timestamp of when the user was last active").optional(),
|
|
22
22
|
timezone_id: z.string().describe("Timezone identifier (e.g., 'America/New_York')").optional(),
|
|
23
23
|
amount_spent: z.number().describe("Total amount spent by the user").optional(),
|
|
@@ -41,13 +41,13 @@ const onesignalRestApiCreateUser = action("ONESIGNAL_REST_API_CREATE_USER", {
|
|
|
41
41
|
session_time: z.number().int().describe("Total session time in seconds").optional(),
|
|
42
42
|
session_count: z.number().int().describe("Number of sessions recorded").optional(),
|
|
43
43
|
notification_types: z.number().int().describe("Notification permission state").optional()
|
|
44
|
-
}).describe("Subscription object representing a device or channel subscribed to notifications.")).describe("List of subscriptions (devices/channels) owned by the user").optional(),
|
|
44
|
+
}).passthrough().describe("Subscription object representing a device or channel subscribed to notifications.")).describe("List of subscriptions (devices/channels) owned by the user").optional(),
|
|
45
45
|
subscription_options: z.object({ retain_previous_owner: z.boolean().describe("Whether to retain the previous owner when transferring subscriptions").optional() }).describe("Options for subscription management.").optional()
|
|
46
46
|
}).describe("Request model for creating a OneSignal user with optional subscriptions and aliases."),
|
|
47
47
|
output: z.object({
|
|
48
|
-
identity: z.
|
|
49
|
-
properties: z.
|
|
50
|
-
subscriptions: z.array(z.
|
|
48
|
+
identity: z.record(z.string(), z.unknown()).describe("Identity information of the created user").nullable().optional(),
|
|
49
|
+
properties: z.record(z.string(), z.unknown()).describe("Properties of the created user").nullable().optional(),
|
|
50
|
+
subscriptions: z.array(z.record(z.string(), z.unknown())).describe("Subscriptions associated with the created user").nullable().optional()
|
|
51
51
|
}).passthrough().describe("Response model after creating a OneSignal user.")
|
|
52
52
|
});
|
|
53
53
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.mjs","names":[],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateUserInput
|
|
1
|
+
{"version":3,"file":"create-user.mjs","names":[],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiCreateUserInput = z.object({\n app_id: z.string().describe(\"Your OneSignal App ID\"),\n identity: z.object({\n external_id: z.string().describe(\"External user ID for identifying the user across platforms\").optional(),\n onesignal_id: z.string().describe(\"OneSignal user ID for existing users\").optional(),\n}).passthrough().describe(\"Identity object for user identification. Aliases provided will be used to look up an existing user.\").optional(),\n properties: z.object({\n ip: z.string().describe(\"IP address of the user\").optional(),\n lat: z.number().describe(\"Latitude coordinate of the user's location\").optional(),\n long: z.number().describe(\"Longitude coordinate of the user's location\").optional(),\n tags: z.record(z.string(), z.unknown()).describe(\"Custom key/value tags associated with the user\").optional(),\n country: z.string().describe(\"Country code (e.g., 'US')\").optional(),\n language: z.string().describe(\"Language code of the user (e.g., 'en')\").optional(),\n purchases: z.array(z.record(z.string(), z.unknown())).describe(\"List of purchase records for the user\").optional(),\n last_active: z.number().int().describe(\"UNIX timestamp of when the user was last active\").optional(),\n timezone_id: z.string().describe(\"Timezone identifier (e.g., 'America/New_York')\").optional(),\n amount_spent: z.number().describe(\"Total amount spent by the user\").optional(),\n first_active: z.number().int().describe(\"UNIX timestamp of when the user was first active\").optional(),\n}).describe(\"User properties including location, activity, and custom data.\").optional(),\n subscriptions: z.array(z.object({\n id: z.string().describe(\"Subscription ID\").optional(),\n sdk: z.string().describe(\"SDK version used\").optional(),\n type: z.string().describe(\"Subscription type (e.g., 'AndroidPush', 'iOSPush', 'Email', 'SMS')\").optional(),\n token: z.string().describe(\"Push token or address for the subscription\").optional(),\n rooted: z.boolean().describe(\"Whether the device is rooted/jailbroken\").optional(),\n carrier: z.string().describe(\"Mobile carrier\").optional(),\n enabled: z.boolean().describe(\"Whether the subscription is enabled\").optional(),\n net_type: z.number().int().describe(\"Network type\").optional(),\n web_auth: z.string().describe(\"Web push auth key\").optional(),\n web_p256: z.string().describe(\"Web push p256 key\").optional(),\n device_os: z.string().describe(\"Operating system version\").optional(),\n test_type: z.number().int().describe(\"Test type (1 for development, 2 for ad-hoc)\").optional(),\n app_version: z.string().describe(\"Version of the app\").optional(),\n device_model: z.string().describe(\"Device model\").optional(),\n session_time: z.number().int().describe(\"Total session time in seconds\").optional(),\n session_count: z.number().int().describe(\"Number of sessions recorded\").optional(),\n notification_types: z.number().int().describe(\"Notification permission state\").optional(),\n}).passthrough().describe(\"Subscription object representing a device or channel subscribed to notifications.\")).describe(\"List of subscriptions (devices/channels) owned by the user\").optional(),\n subscription_options: z.object({\n retain_previous_owner: z.boolean().describe(\"Whether to retain the previous owner when transferring subscriptions\").optional(),\n}).describe(\"Options for subscription management.\").optional(),\n}).describe(\"Request model for creating a OneSignal user with optional subscriptions and aliases.\");\nexport const OnesignalRestApiCreateUserOutput = z.object({\n identity: z.record(z.string(), z.unknown()).describe(\"Identity information of the created user\").nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Properties of the created user\").nullable().optional(),\n subscriptions: z.array(z.record(z.string(), z.unknown())).describe(\"Subscriptions associated with the created user\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a OneSignal user.\");\n\nexport const onesignalRestApiCreateUser = action(\"ONESIGNAL_REST_API_CREATE_USER\", {\n slug: \"onesignal_rest_api-create-user\",\n name: \"Create User\",\n description: \"Tool to create a OneSignal user with optional subscriptions and aliases. Aliases provided in the payload will be used to look up an existing user.\",\n input: OnesignalRestApiCreateUserInput,\n output: OnesignalRestApiCreateUserOutput,\n});\n"],"mappings":";;AAoDA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApD6C,EAAE,OAAO;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACnD,UAAU,EAAE,OAAO;GACnB,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;GACxG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EACxI,YAAY,EAAE,OAAO;GACrB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;GAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;GAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;GAClF,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;GAC5G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;GACnE,UAAU,EAAE,OAAO,CAAC,CAAC,S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QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ const OnesignalRestApiDeleteAliasInput = zod.z.object({
|
|
|
7
7
|
alias_label: zod.z.string().describe("The alias label to identify the user (e.g., 'external_id', 'email')"),
|
|
8
8
|
alias_label_to_delete: zod.z.string().describe("The alias label to delete from the user's identity (e.g., 'email', 'phone_number')")
|
|
9
9
|
}).describe("Parameters for deleting an alias by alias label from a OneSignal user.");
|
|
10
|
-
const OnesignalRestApiDeleteAliasOutput = zod.z.object({ identity: zod.z.
|
|
10
|
+
const OnesignalRestApiDeleteAliasOutput = zod.z.object({ identity: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The remaining identity information after deleting the alias").nullable().optional() }).passthrough().describe("Response from OneSignal when deleting an alias.");
|
|
11
11
|
const onesignalRestApiDeleteAlias = require_action.action("ONESIGNAL_REST_API_DELETE_ALIAS", {
|
|
12
12
|
slug: "onesignal_rest_api-delete-alias",
|
|
13
13
|
name: "Delete Alias",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-alias.cjs","names":["z","action"],"sources":["../../src/actions/delete-alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiDeleteAliasInput
|
|
1
|
+
{"version":3,"file":"delete-alias.cjs","names":["z","action"],"sources":["../../src/actions/delete-alias.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiDeleteAliasInput = z.object({\n app_id: z.string().describe(\"The OneSignal App ID\"),\n alias_id: z.string().describe(\"The value of the alias to identify the user\"),\n alias_label: z.string().describe(\"The alias label to identify the user (e.g., 'external_id', 'email')\"),\n alias_label_to_delete: z.string().describe(\"The alias label to delete from the user's identity (e.g., 'email', 'phone_number')\"),\n}).describe(\"Parameters for deleting an alias by alias label from a OneSignal user.\");\nexport const OnesignalRestApiDeleteAliasOutput = z.object({\n identity: z.record(z.string(), z.unknown()).describe(\"The remaining identity information after deleting the alias\").nullable().optional(),\n}).passthrough().describe(\"Response from OneSignal when deleting an alias.\");\n\nexport const onesignalRestApiDeleteAlias = action(\"ONESIGNAL_REST_API_DELETE_ALIAS\", {\n slug: \"onesignal_rest_api-delete-alias\",\n name: \"Delete Alias\",\n description: \"Tool to delete an alias by alias label from a OneSignal user. Use when you need to remove a specific alias identity from a user's profile.\",\n input: OnesignalRestApiDeleteAliasInput,\n output: OnesignalRestApiDeleteAliasOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAClD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACtG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;AACjI,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-alias.d.ts
|
|
4
|
-
declare const OnesignalRestApiDeleteAliasInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OnesignalRestApiDeleteAliasInput: z.ZodObject<{
|
|
5
|
+
app_id: z.ZodString;
|
|
6
|
+
alias_id: z.ZodString;
|
|
7
|
+
alias_label: z.ZodString;
|
|
8
|
+
alias_label_to_delete: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const OnesignalRestApiDeleteAliasOutput: z.ZodObject<{
|
|
11
|
+
identity: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
declare const onesignalRestApiDeleteAlias: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
app_id: string;
|
|
15
|
+
alias_id: string;
|
|
16
|
+
alias_label: string;
|
|
17
|
+
alias_label_to_delete: string;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { onesignalRestApiDeleteAlias };
|
|
9
21
|
//# sourceMappingURL=delete-alias.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-alias.d.cts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":";;;cAIa,gCAAA,
|
|
1
|
+
{"version":3,"file":"delete-alias.d.cts","names":[],"sources":["../../src/actions/delete-alias.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAMhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
|