shred-api-client 2.3.0 → 2.3.1
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/index.d.mts +26 -2
- package/dist/index.d.ts +26 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1966,16 +1966,24 @@ declare const NotificationDetailSchema: z.ZodObject<Pick<{
|
|
|
1966
1966
|
}>>;
|
|
1967
1967
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1968
1968
|
error: z.ZodOptional<z.ZodString>;
|
|
1969
|
-
}, "userId" | "title" | "body" | "metadata">, "strip", z.ZodTypeAny, {
|
|
1969
|
+
}, "userId" | "title" | "body" | "cta" | "metadata">, "strip", z.ZodTypeAny, {
|
|
1970
1970
|
userId: string;
|
|
1971
1971
|
title: string;
|
|
1972
1972
|
body: string;
|
|
1973
1973
|
metadata: Record<string, string | number>;
|
|
1974
|
+
cta?: {
|
|
1975
|
+
label: string;
|
|
1976
|
+
url: string;
|
|
1977
|
+
} | undefined;
|
|
1974
1978
|
}, {
|
|
1975
1979
|
userId: string;
|
|
1976
1980
|
title: string;
|
|
1977
1981
|
body: string;
|
|
1978
1982
|
metadata: Record<string, string | number>;
|
|
1983
|
+
cta?: {
|
|
1984
|
+
label: string;
|
|
1985
|
+
url: string;
|
|
1986
|
+
} | undefined;
|
|
1979
1987
|
}>;
|
|
1980
1988
|
declare const CriteriaSchema: z.ZodObject<{
|
|
1981
1989
|
type: z.ZodNativeEnum<typeof CriteriaType>;
|
|
@@ -2096,16 +2104,24 @@ declare const TriggerSchema: z.ZodObject<{
|
|
|
2096
2104
|
}>>;
|
|
2097
2105
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
2098
2106
|
error: z.ZodOptional<z.ZodString>;
|
|
2099
|
-
}, "userId" | "title" | "body" | "metadata">, "strip", z.ZodTypeAny, {
|
|
2107
|
+
}, "userId" | "title" | "body" | "cta" | "metadata">, "strip", z.ZodTypeAny, {
|
|
2100
2108
|
userId: string;
|
|
2101
2109
|
title: string;
|
|
2102
2110
|
body: string;
|
|
2103
2111
|
metadata: Record<string, string | number>;
|
|
2112
|
+
cta?: {
|
|
2113
|
+
label: string;
|
|
2114
|
+
url: string;
|
|
2115
|
+
} | undefined;
|
|
2104
2116
|
}, {
|
|
2105
2117
|
userId: string;
|
|
2106
2118
|
title: string;
|
|
2107
2119
|
body: string;
|
|
2108
2120
|
metadata: Record<string, string | number>;
|
|
2121
|
+
cta?: {
|
|
2122
|
+
label: string;
|
|
2123
|
+
url: string;
|
|
2124
|
+
} | undefined;
|
|
2109
2125
|
}>;
|
|
2110
2126
|
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2111
2127
|
batchId: z.ZodString;
|
|
@@ -2218,6 +2234,10 @@ declare const TriggerSchema: z.ZodObject<{
|
|
|
2218
2234
|
title: string;
|
|
2219
2235
|
body: string;
|
|
2220
2236
|
metadata: Record<string, string | number>;
|
|
2237
|
+
cta?: {
|
|
2238
|
+
label: string;
|
|
2239
|
+
url: string;
|
|
2240
|
+
} | undefined;
|
|
2221
2241
|
};
|
|
2222
2242
|
timeOfDay: string;
|
|
2223
2243
|
criteria: {
|
|
@@ -2265,6 +2285,10 @@ declare const TriggerSchema: z.ZodObject<{
|
|
|
2265
2285
|
title: string;
|
|
2266
2286
|
body: string;
|
|
2267
2287
|
metadata: Record<string, string | number>;
|
|
2288
|
+
cta?: {
|
|
2289
|
+
label: string;
|
|
2290
|
+
url: string;
|
|
2291
|
+
} | undefined;
|
|
2268
2292
|
};
|
|
2269
2293
|
timeOfDay: string;
|
|
2270
2294
|
criteria: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1966,16 +1966,24 @@ declare const NotificationDetailSchema: z.ZodObject<Pick<{
|
|
|
1966
1966
|
}>>;
|
|
1967
1967
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1968
1968
|
error: z.ZodOptional<z.ZodString>;
|
|
1969
|
-
}, "userId" | "title" | "body" | "metadata">, "strip", z.ZodTypeAny, {
|
|
1969
|
+
}, "userId" | "title" | "body" | "cta" | "metadata">, "strip", z.ZodTypeAny, {
|
|
1970
1970
|
userId: string;
|
|
1971
1971
|
title: string;
|
|
1972
1972
|
body: string;
|
|
1973
1973
|
metadata: Record<string, string | number>;
|
|
1974
|
+
cta?: {
|
|
1975
|
+
label: string;
|
|
1976
|
+
url: string;
|
|
1977
|
+
} | undefined;
|
|
1974
1978
|
}, {
|
|
1975
1979
|
userId: string;
|
|
1976
1980
|
title: string;
|
|
1977
1981
|
body: string;
|
|
1978
1982
|
metadata: Record<string, string | number>;
|
|
1983
|
+
cta?: {
|
|
1984
|
+
label: string;
|
|
1985
|
+
url: string;
|
|
1986
|
+
} | undefined;
|
|
1979
1987
|
}>;
|
|
1980
1988
|
declare const CriteriaSchema: z.ZodObject<{
|
|
1981
1989
|
type: z.ZodNativeEnum<typeof CriteriaType>;
|
|
@@ -2096,16 +2104,24 @@ declare const TriggerSchema: z.ZodObject<{
|
|
|
2096
2104
|
}>>;
|
|
2097
2105
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
2098
2106
|
error: z.ZodOptional<z.ZodString>;
|
|
2099
|
-
}, "userId" | "title" | "body" | "metadata">, "strip", z.ZodTypeAny, {
|
|
2107
|
+
}, "userId" | "title" | "body" | "cta" | "metadata">, "strip", z.ZodTypeAny, {
|
|
2100
2108
|
userId: string;
|
|
2101
2109
|
title: string;
|
|
2102
2110
|
body: string;
|
|
2103
2111
|
metadata: Record<string, string | number>;
|
|
2112
|
+
cta?: {
|
|
2113
|
+
label: string;
|
|
2114
|
+
url: string;
|
|
2115
|
+
} | undefined;
|
|
2104
2116
|
}, {
|
|
2105
2117
|
userId: string;
|
|
2106
2118
|
title: string;
|
|
2107
2119
|
body: string;
|
|
2108
2120
|
metadata: Record<string, string | number>;
|
|
2121
|
+
cta?: {
|
|
2122
|
+
label: string;
|
|
2123
|
+
url: string;
|
|
2124
|
+
} | undefined;
|
|
2109
2125
|
}>;
|
|
2110
2126
|
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2111
2127
|
batchId: z.ZodString;
|
|
@@ -2218,6 +2234,10 @@ declare const TriggerSchema: z.ZodObject<{
|
|
|
2218
2234
|
title: string;
|
|
2219
2235
|
body: string;
|
|
2220
2236
|
metadata: Record<string, string | number>;
|
|
2237
|
+
cta?: {
|
|
2238
|
+
label: string;
|
|
2239
|
+
url: string;
|
|
2240
|
+
} | undefined;
|
|
2221
2241
|
};
|
|
2222
2242
|
timeOfDay: string;
|
|
2223
2243
|
criteria: {
|
|
@@ -2265,6 +2285,10 @@ declare const TriggerSchema: z.ZodObject<{
|
|
|
2265
2285
|
title: string;
|
|
2266
2286
|
body: string;
|
|
2267
2287
|
metadata: Record<string, string | number>;
|
|
2288
|
+
cta?: {
|
|
2289
|
+
label: string;
|
|
2290
|
+
url: string;
|
|
2291
|
+
} | undefined;
|
|
2268
2292
|
};
|
|
2269
2293
|
timeOfDay: string;
|
|
2270
2294
|
criteria: {
|
package/dist/index.js
CHANGED
|
@@ -186,7 +186,8 @@ var NotificationDetailSchema = NotificationItemSchema.pick({
|
|
|
186
186
|
title: true,
|
|
187
187
|
body: true,
|
|
188
188
|
userId: true,
|
|
189
|
-
metadata: true
|
|
189
|
+
metadata: true,
|
|
190
|
+
cta: true
|
|
190
191
|
});
|
|
191
192
|
var CriteriaSchema = import_zod.z.object({
|
|
192
193
|
type: import_zod.z.nativeEnum(CriteriaType),
|