@getuserfeedback/protocol 0.5.12 → 0.6.0
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/app-event.d.ts +274 -274
- package/dist/app-event.d.ts.map +1 -1
- package/dist/app-event.js +16 -16
- package/dist/client-meta.d.ts +13 -13
- package/dist/client-meta.d.ts.map +1 -1
- package/dist/client-meta.js +6 -6
- package/dist/flow-assignments.d.ts +183 -183
- package/dist/flow-assignments.d.ts.map +1 -1
- package/dist/flow-assignments.js +16 -16
- package/dist/identity-type.d.ts +2 -2
- package/dist/identity-type.d.ts.map +1 -1
- package/dist/identity-type.js +13 -15
- package/dist/index.d.ts +85 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/public-grant-scope.d.ts +3 -3
- package/dist/public-grant-scope.d.ts.map +1 -1
- package/dist/public-grant-scope.js +1 -1
- package/dist/runtime-endpoints.d.ts +4 -4
- package/dist/runtime-endpoints.d.ts.map +1 -1
- package/dist/runtime-endpoints.js +4 -6
- package/dist/scopes.d.ts +2 -2
- package/dist/scopes.d.ts.map +1 -1
- package/dist/scopes.js +1 -1
- package/dist/trpc-envelope.d.ts +4 -4
- package/dist/trpc-envelope.d.ts.map +1 -1
- package/dist/trpc-envelope.js +1 -1
- package/dist/version-resolution.d.ts +5 -5
- package/dist/version-resolution.d.ts.map +1 -1
- package/dist/version-resolution.js +2 -2
- package/dist/widget-commands.d.ts +108 -108
- package/dist/widget-commands.d.ts.map +1 -1
- package/dist/widget-commands.js +30 -56
- package/dist/widget-config.d.ts +161 -245
- package/dist/widget-config.d.ts.map +1 -1
- package/dist/widget-config.js +22 -36
- package/package.json +1 -1
package/dist/app-event.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-event.d.ts","sourceRoot":"","sources":["../src/app-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"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;AACtE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACrE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC/D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
package/dist/app-event.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
2
|
import { appEventIdentityTypeSchema } from "./identity-type.js";
|
|
3
3
|
export { appEventIdentityTypeSchema } from "./identity-type.js";
|
|
4
4
|
export const appEventIdentitySchema = z.object({
|
|
5
5
|
type: appEventIdentityTypeSchema,
|
|
6
|
-
value: z.string().trim().
|
|
6
|
+
value: z.string().check(z.trim(), z.minLength(1)),
|
|
7
7
|
});
|
|
8
8
|
const appEventFlagValueSchema = z.lazy(() => z.union([
|
|
9
9
|
z.string(),
|
|
@@ -14,24 +14,24 @@ const appEventFlagValueSchema = z.lazy(() => z.union([
|
|
|
14
14
|
z.record(z.string(), appEventFlagValueSchema),
|
|
15
15
|
]));
|
|
16
16
|
export const appEventFlagProviderSchema = z.object({
|
|
17
|
-
name: z.string().trim().
|
|
18
|
-
project: z.optional(z.string().trim().
|
|
19
|
-
environment: z.optional(z.string().trim().
|
|
17
|
+
name: z.string().check(z.trim(), z.minLength(1)),
|
|
18
|
+
project: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
19
|
+
environment: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
20
20
|
});
|
|
21
21
|
export const appEventFlagSchema = z.object({
|
|
22
|
-
key: z.string().trim().
|
|
23
|
-
target: z.optional(z.string().trim().
|
|
22
|
+
key: z.string().check(z.trim(), z.minLength(1)),
|
|
23
|
+
target: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
24
24
|
value: appEventFlagValueSchema,
|
|
25
|
-
variant: z.optional(z.string().trim().
|
|
25
|
+
variant: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
26
26
|
origin: z.optional(z.enum(["runtime_config", "trigger_context", "provider_sync", "api"])),
|
|
27
27
|
provider: z.optional(appEventFlagProviderSchema),
|
|
28
|
-
status: z.optional(z.string().trim().
|
|
29
|
-
reason: z.optional(z.string().trim().
|
|
30
|
-
evaluatedAt: z.optional(z.string().trim().
|
|
28
|
+
status: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
29
|
+
reason: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
30
|
+
evaluatedAt: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
31
31
|
});
|
|
32
32
|
export const appEventCapabilitySchema = z.object({
|
|
33
|
-
key: z.string().trim().
|
|
34
|
-
source: z.optional(z.string().trim().
|
|
33
|
+
key: z.string().check(z.trim(), z.minLength(1)),
|
|
34
|
+
source: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
35
35
|
provider: z.optional(appEventFlagProviderSchema),
|
|
36
36
|
});
|
|
37
37
|
const appEventPageSchema = z.object({
|
|
@@ -56,15 +56,15 @@ export const appEventBaseSchema = z.object({
|
|
|
56
56
|
const appEventSurveyReferenceSchema = z.object({
|
|
57
57
|
surveyId: z.string(),
|
|
58
58
|
});
|
|
59
|
-
export const appEventSurveyViewedSchema =
|
|
59
|
+
export const appEventSurveyViewedSchema = z.extend(appEventBaseSchema, {
|
|
60
60
|
event: z.literal("Flow Viewed"),
|
|
61
61
|
references: appEventSurveyReferenceSchema,
|
|
62
62
|
});
|
|
63
|
-
export const appEventFlowDismissedSchema =
|
|
63
|
+
export const appEventFlowDismissedSchema = z.extend(appEventBaseSchema, {
|
|
64
64
|
event: z.literal("Flow Dismissed"),
|
|
65
65
|
references: appEventSurveyReferenceSchema,
|
|
66
66
|
});
|
|
67
|
-
export const appEventTrackSchema =
|
|
67
|
+
export const appEventTrackSchema = z.extend(appEventBaseSchema, {
|
|
68
68
|
event: z.enum(["Flow Viewed", "Flow Dismissed"]),
|
|
69
69
|
references: appEventSurveyReferenceSchema,
|
|
70
70
|
});
|
package/dist/client-meta.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
export declare const clientMetaSchema: z.
|
|
3
|
-
loader: z.
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
|
+
export declare const clientMetaSchema: z.ZodMiniObject<{
|
|
3
|
+
loader: z.ZodMiniEnum<{
|
|
4
4
|
custom: "custom";
|
|
5
5
|
sdk: "sdk";
|
|
6
6
|
gtm: "gtm";
|
|
@@ -8,32 +8,32 @@ export declare const clientMetaSchema: z.ZodObject<{
|
|
|
8
8
|
rudderstack: "rudderstack";
|
|
9
9
|
tealium: "tealium";
|
|
10
10
|
}>;
|
|
11
|
-
clientName: z.
|
|
12
|
-
clientVersion: z.
|
|
13
|
-
integrator: z.
|
|
14
|
-
name: z.
|
|
15
|
-
version: z.
|
|
11
|
+
clientName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
12
|
+
clientVersion: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
13
|
+
integrator: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
14
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
15
|
+
version: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
16
16
|
}, z.core.$strip>>;
|
|
17
|
-
transport: z.
|
|
17
|
+
transport: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
18
18
|
loader: "loader";
|
|
19
19
|
"script-tag": "script-tag";
|
|
20
20
|
esm: "esm";
|
|
21
21
|
"tag-manager": "tag-manager";
|
|
22
22
|
snippet: "snippet";
|
|
23
23
|
}>>;
|
|
24
|
-
runtime: z.
|
|
25
|
-
framework: z.
|
|
24
|
+
runtime: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
25
|
+
framework: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
26
26
|
next: "next";
|
|
27
27
|
vite: "vite";
|
|
28
28
|
webpack: "webpack";
|
|
29
29
|
plain: "plain";
|
|
30
30
|
}>>;
|
|
31
|
-
runtime: z.
|
|
31
|
+
runtime: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
32
32
|
browser: "browser";
|
|
33
33
|
edge: "edge";
|
|
34
34
|
}>>;
|
|
35
35
|
}, z.core.$strip>>;
|
|
36
|
-
notes: z.
|
|
36
|
+
notes: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
export type ClientMeta = z.output<typeof clientMetaSchema>;
|
|
39
39
|
//# sourceMappingURL=client-meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-meta.d.ts","sourceRoot":"","sources":["../src/client-meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"client-meta.d.ts","sourceRoot":"","sources":["../src/client-meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoB3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
package/dist/client-meta.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
2
|
export const clientMetaSchema = z.object({
|
|
3
3
|
loader: z.enum(["sdk", "gtm", "segment", "rudderstack", "tealium", "custom"]),
|
|
4
|
-
clientName: z.optional(z.string().trim().
|
|
5
|
-
clientVersion: z.optional(z.string().trim().
|
|
4
|
+
clientName: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
5
|
+
clientVersion: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
6
6
|
integrator: z.optional(z.object({
|
|
7
|
-
name: z.optional(z.string().trim().
|
|
8
|
-
version: z.optional(z.string().trim().
|
|
7
|
+
name: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
8
|
+
version: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
9
9
|
})),
|
|
10
10
|
transport: z.optional(z.enum(["script-tag", "esm", "loader", "tag-manager", "snippet"])),
|
|
11
11
|
runtime: z.optional(z.object({
|
|
12
12
|
framework: z.optional(z.enum(["next", "vite", "webpack", "plain"])),
|
|
13
13
|
runtime: z.optional(z.enum(["browser", "edge"])),
|
|
14
14
|
})),
|
|
15
|
-
notes: z.optional(z.string().trim().
|
|
15
|
+
notes: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
16
16
|
});
|