@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
|
@@ -7,23 +7,23 @@ const OnesignalRestApiViewSegmentsInput = zod.z.object({
|
|
|
7
7
|
offset: zod.z.number().int().describe("Zero-based offset for pagination. Results sorted by creation time.").optional()
|
|
8
8
|
}).describe("Request model for viewing segments of a OneSignal app.");
|
|
9
9
|
const OnesignalRestApiViewSegments_SegmentSchema = zod.z.object({
|
|
10
|
-
id: zod.z.string().describe("Unique identifier of the segment"),
|
|
11
|
-
name: zod.z.string().describe("Name of the segment"),
|
|
10
|
+
id: zod.z.string().describe("Unique identifier of the segment").nullable(),
|
|
11
|
+
name: zod.z.string().describe("Name of the segment").nullable(),
|
|
12
12
|
app_id: zod.z.string().describe("App ID this segment belongs to").nullable().optional(),
|
|
13
13
|
source: zod.z.string().describe("Source of the segment (e.g., 'default')").nullable().optional(),
|
|
14
|
-
filters: zod.z.array(zod.z.
|
|
14
|
+
filters: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of filter conditions that define this segment").nullable().optional(),
|
|
15
15
|
is_active: zod.z.boolean().describe("Whether the segment is active").nullable().optional(),
|
|
16
16
|
read_only: zod.z.boolean().describe("Whether the segment is read-only").nullable().optional(),
|
|
17
|
-
created_at: zod.z.string().describe("ISO 8601 timestamp when the segment was created"),
|
|
17
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the segment was created").nullable(),
|
|
18
18
|
updated_at: zod.z.string().describe("ISO 8601 timestamp when the segment was last updated").nullable().optional(),
|
|
19
19
|
segment_status: zod.z.string().describe("Status of the segment").nullable().optional(),
|
|
20
20
|
loading_started_at: zod.z.string().describe("ISO 8601 timestamp when segment loading started").nullable().optional(),
|
|
21
21
|
loading_completed_at: zod.z.string().describe("ISO 8601 timestamp when segment loading completed").nullable().optional()
|
|
22
|
-
}).describe("Representation of a single segment in OneSignal.");
|
|
22
|
+
}).passthrough().describe("Representation of a single segment in OneSignal.");
|
|
23
23
|
const OnesignalRestApiViewSegmentsOutput = zod.z.object({
|
|
24
24
|
segments: zod.z.array(OnesignalRestApiViewSegments_SegmentSchema).describe("List of segments associated with the app"),
|
|
25
|
-
total_count: zod.z.number().int().describe("Total number of segments for the app")
|
|
26
|
-
}).describe("Response model for viewing segments.");
|
|
25
|
+
total_count: zod.z.number().int().describe("Total number of segments for the app").nullable()
|
|
26
|
+
}).passthrough().describe("Response model for viewing segments.");
|
|
27
27
|
const onesignalRestApiViewSegments = require_action.action("ONESIGNAL_REST_API_VIEW_SEGMENTS", {
|
|
28
28
|
slug: "onesignal_rest_api-view-segments",
|
|
29
29
|
name: "View Segments",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-segments.cjs","names":["z","action"],"sources":["../../src/actions/view-segments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewSegmentsInput
|
|
1
|
+
{"version":3,"file":"view-segments.cjs","names":["z","action"],"sources":["../../src/actions/view-segments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewSegmentsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of segments to return (1-300). Default is 50.\").optional(),\n app_id: z.string().describe(\"OneSignal App ID to list segments for\"),\n offset: z.number().int().describe(\"Zero-based offset for pagination. Results sorted by creation time.\").optional(),\n}).describe(\"Request model for viewing segments of a OneSignal app.\");\nconst OnesignalRestApiViewSegments_SegmentSchema = z.object({\n id: z.string().describe(\"Unique identifier of the segment\").nullable(),\n name: z.string().describe(\"Name of the segment\").nullable(),\n app_id: z.string().describe(\"App ID this segment belongs to\").nullable().optional(),\n source: z.string().describe(\"Source of the segment (e.g., 'default')\").nullable().optional(),\n filters: z.array(z.record(z.string(), z.unknown())).describe(\"List of filter conditions that define this segment\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the segment is active\").nullable().optional(),\n read_only: z.boolean().describe(\"Whether the segment is read-only\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the segment was created\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the segment was last updated\").nullable().optional(),\n segment_status: z.string().describe(\"Status of the segment\").nullable().optional(),\n loading_started_at: z.string().describe(\"ISO 8601 timestamp when segment loading started\").nullable().optional(),\n loading_completed_at: z.string().describe(\"ISO 8601 timestamp when segment loading completed\").nullable().optional(),\n}).passthrough().describe(\"Representation of a single segment in OneSignal.\");\nexport const OnesignalRestApiViewSegmentsOutput = z.object({\n segments: z.array(OnesignalRestApiViewSegments_SegmentSchema).describe(\"List of segments associated with the app\"),\n total_count: z.number().int().describe(\"Total number of segments for the app\").nullable(),\n}).passthrough().describe(\"Response model for viewing segments.\");\n\nexport const onesignalRestApiViewSegments = action(\"ONESIGNAL_REST_API_VIEW_SEGMENTS\", {\n slug: \"onesignal_rest_api-view-segments\",\n name: \"View Segments\",\n description: \"Tool to view segments for a OneSignal app. Use when you need to list all segments associated with an app.\",\n input: OnesignalRestApiViewSegmentsInput,\n output: OnesignalRestApiViewSegmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,I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AC,CAAC,SAAS,0CAA0C;CACjH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/view-segments.d.ts
|
|
4
|
-
declare const OnesignalRestApiViewSegmentsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OnesignalRestApiViewSegmentsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
app_id: z.ZodString;
|
|
7
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const OnesignalRestApiViewSegmentsOutput: z.ZodObject<{
|
|
10
|
+
segments: z.ZodArray<z.ZodObject<{
|
|
11
|
+
id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
filters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
16
|
+
is_active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
17
|
+
read_only: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
18
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
19
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
segment_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
loading_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
loading_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
total_count: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
declare const onesignalRestApiViewSegments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
app_id: string;
|
|
28
|
+
limit?: number | undefined;
|
|
29
|
+
offset?: number | undefined;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { onesignalRestApiViewSegments };
|
|
9
33
|
//# sourceMappingURL=view-segments.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-segments.d.cts","names":[],"sources":["../../src/actions/view-segments.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"view-segments.d.cts","names":[],"sources":["../../src/actions/view-segments.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAmBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAKlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/view-segments.d.ts
|
|
4
|
-
declare const OnesignalRestApiViewSegmentsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OnesignalRestApiViewSegmentsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
app_id: z.ZodString;
|
|
7
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const OnesignalRestApiViewSegmentsOutput: z.ZodObject<{
|
|
10
|
+
segments: z.ZodArray<z.ZodObject<{
|
|
11
|
+
id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
filters: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
16
|
+
is_active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
17
|
+
read_only: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
18
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
19
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
segment_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
loading_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
loading_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
total_count: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
declare const onesignalRestApiViewSegments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
app_id: string;
|
|
28
|
+
limit?: number | undefined;
|
|
29
|
+
offset?: number | undefined;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { onesignalRestApiViewSegments };
|
|
9
33
|
//# sourceMappingURL=view-segments.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-segments.d.mts","names":[],"sources":["../../src/actions/view-segments.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"view-segments.d.mts","names":[],"sources":["../../src/actions/view-segments.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAmBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAKlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -7,19 +7,19 @@ const OnesignalRestApiViewSegmentsInput = z.object({
|
|
|
7
7
|
offset: z.number().int().describe("Zero-based offset for pagination. Results sorted by creation time.").optional()
|
|
8
8
|
}).describe("Request model for viewing segments of a OneSignal app.");
|
|
9
9
|
const OnesignalRestApiViewSegments_SegmentSchema = z.object({
|
|
10
|
-
id: z.string().describe("Unique identifier of the segment"),
|
|
11
|
-
name: z.string().describe("Name of the segment"),
|
|
10
|
+
id: z.string().describe("Unique identifier of the segment").nullable(),
|
|
11
|
+
name: z.string().describe("Name of the segment").nullable(),
|
|
12
12
|
app_id: z.string().describe("App ID this segment belongs to").nullable().optional(),
|
|
13
13
|
source: z.string().describe("Source of the segment (e.g., 'default')").nullable().optional(),
|
|
14
|
-
filters: z.array(z.
|
|
14
|
+
filters: z.array(z.record(z.string(), z.unknown())).describe("List of filter conditions that define this segment").nullable().optional(),
|
|
15
15
|
is_active: z.boolean().describe("Whether the segment is active").nullable().optional(),
|
|
16
16
|
read_only: z.boolean().describe("Whether the segment is read-only").nullable().optional(),
|
|
17
|
-
created_at: z.string().describe("ISO 8601 timestamp when the segment was created"),
|
|
17
|
+
created_at: z.string().describe("ISO 8601 timestamp when the segment was created").nullable(),
|
|
18
18
|
updated_at: z.string().describe("ISO 8601 timestamp when the segment was last updated").nullable().optional(),
|
|
19
19
|
segment_status: z.string().describe("Status of the segment").nullable().optional(),
|
|
20
20
|
loading_started_at: z.string().describe("ISO 8601 timestamp when segment loading started").nullable().optional(),
|
|
21
21
|
loading_completed_at: z.string().describe("ISO 8601 timestamp when segment loading completed").nullable().optional()
|
|
22
|
-
}).describe("Representation of a single segment in OneSignal.");
|
|
22
|
+
}).passthrough().describe("Representation of a single segment in OneSignal.");
|
|
23
23
|
const onesignalRestApiViewSegments = action("ONESIGNAL_REST_API_VIEW_SEGMENTS", {
|
|
24
24
|
slug: "onesignal_rest_api-view-segments",
|
|
25
25
|
name: "View Segments",
|
|
@@ -27,8 +27,8 @@ const onesignalRestApiViewSegments = action("ONESIGNAL_REST_API_VIEW_SEGMENTS",
|
|
|
27
27
|
input: OnesignalRestApiViewSegmentsInput,
|
|
28
28
|
output: z.object({
|
|
29
29
|
segments: z.array(OnesignalRestApiViewSegments_SegmentSchema).describe("List of segments associated with the app"),
|
|
30
|
-
total_count: z.number().int().describe("Total number of segments for the app")
|
|
31
|
-
}).describe("Response model for viewing segments.")
|
|
30
|
+
total_count: z.number().int().describe("Total number of segments for the app").nullable()
|
|
31
|
+
}).passthrough().describe("Response model for viewing segments.")
|
|
32
32
|
});
|
|
33
33
|
//#endregion
|
|
34
34
|
export { onesignalRestApiViewSegments };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-segments.mjs","names":[],"sources":["../../src/actions/view-segments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewSegmentsInput
|
|
1
|
+
{"version":3,"file":"view-segments.mjs","names":[],"sources":["../../src/actions/view-segments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OnesignalRestApiViewSegmentsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of segments to return (1-300). Default is 50.\").optional(),\n app_id: z.string().describe(\"OneSignal App ID to list segments for\"),\n offset: z.number().int().describe(\"Zero-based offset for pagination. Results sorted by creation time.\").optional(),\n}).describe(\"Request model for viewing segments of a OneSignal app.\");\nconst OnesignalRestApiViewSegments_SegmentSchema = z.object({\n id: z.string().describe(\"Unique identifier of the segment\").nullable(),\n name: z.string().describe(\"Name of the segment\").nullable(),\n app_id: z.string().describe(\"App ID this segment belongs to\").nullable().optional(),\n source: z.string().describe(\"Source of the segment (e.g., 'default')\").nullable().optional(),\n filters: z.array(z.record(z.string(), z.unknown())).describe(\"List of filter conditions that define this segment\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the segment is active\").nullable().optional(),\n read_only: z.boolean().describe(\"Whether the segment is read-only\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the segment was created\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the segment was last updated\").nullable().optional(),\n segment_status: z.string().describe(\"Status of the segment\").nullable().optional(),\n loading_started_at: z.string().describe(\"ISO 8601 timestamp when segment loading started\").nullable().optional(),\n loading_completed_at: z.string().describe(\"ISO 8601 timestamp when segment loading completed\").nullable().optional(),\n}).passthrough().describe(\"Representation of a single segment in OneSignal.\");\nexport const OnesignalRestApiViewSegmentsOutput = z.object({\n segments: z.array(OnesignalRestApiViewSegments_SegmentSchema).describe(\"List of segments associated with the app\"),\n total_count: z.number().int().describe(\"Total number of segments for the app\").nullable(),\n}).passthrough().describe(\"Response model for viewing segments.\");\n\nexport const onesignalRestApiViewSegments = action(\"ONESIGNAL_REST_API_VIEW_SEGMENTS\", {\n slug: \"onesignal_rest_api-view-segments\",\n name: \"View Segments\",\n description: \"Tool to view segments for a OneSignal app. Use when you need to list all segments associated with an app.\",\n input: OnesignalRestApiViewSegmentsInput,\n output: OnesignalRestApiViewSegmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SA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0CAA0C;EACjH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,13 @@ const onesignalRestApiCatalog = {
|
|
|
7
7
|
"category": "Notifications",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/onesignal_rest_api",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "OneSignal App API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "The App API Key is a private key used for most REST API requests related to a specific app. Find it in the OneSignal Dashboard under Settings > Keys & IDs."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
exports.onesignalRestApiCatalog = onesignalRestApiCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const onesignalRestApiCatalog = {\n \"slug\": \"onesignal_rest_api\",\n \"name\": \"OneSignal REST API\",\n \"description\": \"The OneSignal REST API enables developers to programmatically send push notifications, emails, and SMS, manage users and subscriptions, and configure apps.\",\n \"category\": \"Notifications\",\n \"logo\": \"https://logos.composio.dev/api/onesignal_rest_api\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,0BAA0B;CACrC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const onesignalRestApiCatalog = {\n \"slug\": \"onesignal_rest_api\",\n \"name\": \"OneSignal REST API\",\n \"description\": \"The OneSignal REST API enables developers to programmatically send push notifications, emails, and SMS, manage users and subscriptions, and configure apps.\",\n \"category\": \"Notifications\",\n \"logo\": \"https://logos.composio.dev/api/onesignal_rest_api\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"OneSignal App API Key\",\n \"secret\": true,\n \"description\": \"The App API Key is a private key used for most REST API requests related to a specific app. Find it in the OneSignal Dashboard under Settings > Keys & IDs.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,0BAA0B;CACrC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,14 @@ declare const onesignalRestApiCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/onesignal_rest_api";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "OneSignal App API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "The App API Key is a private key used for most REST API requests related to a specific app. Find it in the OneSignal Dashboard under Settings > Keys & IDs.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { onesignalRestApiCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,14 @@ declare const onesignalRestApiCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/onesignal_rest_api";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "OneSignal App API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "The App API Key is a private key used for most REST API requests related to a specific app. Find it in the OneSignal Dashboard under Settings > Keys & IDs.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { onesignalRestApiCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,13 @@ const onesignalRestApiCatalog = {
|
|
|
7
7
|
"category": "Notifications",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/onesignal_rest_api",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "OneSignal App API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "The App API Key is a private key used for most REST API requests related to a specific app. Find it in the OneSignal Dashboard under Settings > Keys & IDs."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
export { onesignalRestApiCatalog };
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const onesignalRestApiCatalog = {\n \"slug\": \"onesignal_rest_api\",\n \"name\": \"OneSignal REST API\",\n \"description\": \"The OneSignal REST API enables developers to programmatically send push notifications, emails, and SMS, manage users and subscriptions, and configure apps.\",\n \"category\": \"Notifications\",\n \"logo\": \"https://logos.composio.dev/api/onesignal_rest_api\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,0BAA0B;CACrC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const onesignalRestApiCatalog = {\n \"slug\": \"onesignal_rest_api\",\n \"name\": \"OneSignal REST API\",\n \"description\": \"The OneSignal REST API enables developers to programmatically send push notifications, emails, and SMS, manage users and subscriptions, and configure apps.\",\n \"category\": \"Notifications\",\n \"logo\": \"https://logos.composio.dev/api/onesignal_rest_api\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"OneSignal App API Key\",\n \"secret\": true,\n \"description\": \"The App API Key is a private key used for most REST API requests related to a specific app. Find it in the OneSignal Dashboard under Settings > Keys & IDs.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,0BAA0B;CACrC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/onesignal_rest_api",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|