@getuserfeedback/protocol 0.5.12 → 0.6.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/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/errors.d.ts +73 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +43 -0
- package/dist/flow-assignments.d.ts +262 -183
- package/dist/flow-assignments.d.ts.map +1 -1
- package/dist/flow-assignments.js +17 -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 +87 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -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
CHANGED
|
@@ -1,386 +1,386 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
2
|
export { appEventIdentityTypeSchema } from "./identity-type.js";
|
|
3
|
-
export declare const appEventIdentitySchema: z.
|
|
4
|
-
type: z.
|
|
5
|
-
value: z.
|
|
3
|
+
export declare const appEventIdentitySchema: z.ZodMiniObject<{
|
|
4
|
+
type: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<"anonymousId" | "userId" | "traits.email" | "traits.phone" | "context.device.id" | "context.device.advertisingId" | "context.device.token", string>>;
|
|
5
|
+
value: z.ZodMiniString<string>;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
type AppEventFlagValue = string | number | boolean | null | AppEventFlagValue[] | {
|
|
8
8
|
[key: string]: AppEventFlagValue;
|
|
9
9
|
};
|
|
10
|
-
export declare const appEventFlagProviderSchema: z.
|
|
11
|
-
name: z.
|
|
12
|
-
project: z.
|
|
13
|
-
environment: z.
|
|
10
|
+
export declare const appEventFlagProviderSchema: z.ZodMiniObject<{
|
|
11
|
+
name: z.ZodMiniString<string>;
|
|
12
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
13
|
+
environment: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
|
-
export declare const appEventFlagSchema: z.
|
|
16
|
-
key: z.
|
|
17
|
-
target: z.
|
|
18
|
-
value: z.
|
|
19
|
-
variant: z.
|
|
20
|
-
origin: z.
|
|
15
|
+
export declare const appEventFlagSchema: z.ZodMiniObject<{
|
|
16
|
+
key: z.ZodMiniString<string>;
|
|
17
|
+
target: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
18
|
+
value: z.ZodMiniType<AppEventFlagValue, unknown, z.core.$ZodTypeInternals<AppEventFlagValue, unknown>>;
|
|
19
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
20
|
+
origin: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
21
21
|
runtime_config: "runtime_config";
|
|
22
22
|
trigger_context: "trigger_context";
|
|
23
23
|
provider_sync: "provider_sync";
|
|
24
24
|
api: "api";
|
|
25
25
|
}>>;
|
|
26
|
-
provider: z.
|
|
27
|
-
name: z.
|
|
28
|
-
project: z.
|
|
29
|
-
environment: z.
|
|
26
|
+
provider: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
27
|
+
name: z.ZodMiniString<string>;
|
|
28
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
29
|
+
environment: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
30
30
|
}, z.core.$strip>>;
|
|
31
|
-
status: z.
|
|
32
|
-
reason: z.
|
|
33
|
-
evaluatedAt: z.
|
|
31
|
+
status: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
32
|
+
reason: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
33
|
+
evaluatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
34
34
|
}, z.core.$strip>;
|
|
35
|
-
export declare const appEventCapabilitySchema: z.
|
|
36
|
-
key: z.
|
|
37
|
-
source: z.
|
|
38
|
-
provider: z.
|
|
39
|
-
name: z.
|
|
40
|
-
project: z.
|
|
41
|
-
environment: z.
|
|
35
|
+
export declare const appEventCapabilitySchema: z.ZodMiniObject<{
|
|
36
|
+
key: z.ZodMiniString<string>;
|
|
37
|
+
source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
38
|
+
provider: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
39
|
+
name: z.ZodMiniString<string>;
|
|
40
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
41
|
+
environment: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
42
42
|
}, z.core.$strip>>;
|
|
43
43
|
}, z.core.$strip>;
|
|
44
|
-
export declare const appEventContextSchema: z.
|
|
45
|
-
page: z.
|
|
46
|
-
path: z.
|
|
47
|
-
referrer: z.
|
|
48
|
-
search: z.
|
|
44
|
+
export declare const appEventContextSchema: z.ZodMiniObject<{
|
|
45
|
+
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
46
|
+
path: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
47
|
+
referrer: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
48
|
+
search: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
49
49
|
}, z.core.$strip>>;
|
|
50
|
-
locale: z.
|
|
51
|
-
userAgent: z.
|
|
52
|
-
flags: z.
|
|
53
|
-
key: z.
|
|
54
|
-
target: z.
|
|
55
|
-
value: z.
|
|
56
|
-
variant: z.
|
|
57
|
-
origin: z.
|
|
50
|
+
locale: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
51
|
+
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
52
|
+
flags: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
53
|
+
key: z.ZodMiniString<string>;
|
|
54
|
+
target: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
55
|
+
value: z.ZodMiniType<AppEventFlagValue, unknown, z.core.$ZodTypeInternals<AppEventFlagValue, unknown>>;
|
|
56
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
57
|
+
origin: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
58
58
|
runtime_config: "runtime_config";
|
|
59
59
|
trigger_context: "trigger_context";
|
|
60
60
|
provider_sync: "provider_sync";
|
|
61
61
|
api: "api";
|
|
62
62
|
}>>;
|
|
63
|
-
provider: z.
|
|
64
|
-
name: z.
|
|
65
|
-
project: z.
|
|
66
|
-
environment: z.
|
|
63
|
+
provider: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
64
|
+
name: z.ZodMiniString<string>;
|
|
65
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
66
|
+
environment: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
67
67
|
}, z.core.$strip>>;
|
|
68
|
-
status: z.
|
|
69
|
-
reason: z.
|
|
70
|
-
evaluatedAt: z.
|
|
68
|
+
status: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
69
|
+
reason: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
70
|
+
evaluatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
71
71
|
}, z.core.$strip>>>;
|
|
72
|
-
capabilities: z.
|
|
73
|
-
key: z.
|
|
74
|
-
source: z.
|
|
75
|
-
provider: z.
|
|
76
|
-
name: z.
|
|
77
|
-
project: z.
|
|
78
|
-
environment: z.
|
|
72
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
73
|
+
key: z.ZodMiniString<string>;
|
|
74
|
+
source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
75
|
+
provider: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
76
|
+
name: z.ZodMiniString<string>;
|
|
77
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
78
|
+
environment: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
79
79
|
}, z.core.$strip>>;
|
|
80
80
|
}, z.core.$strip>>>;
|
|
81
81
|
}, z.core.$strip>;
|
|
82
|
-
export declare const appEventBaseSchema: z.
|
|
83
|
-
traits: z.
|
|
84
|
-
identities: z.
|
|
85
|
-
type: z.
|
|
86
|
-
value: z.
|
|
82
|
+
export declare const appEventBaseSchema: z.ZodMiniObject<{
|
|
83
|
+
traits: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
84
|
+
identities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
85
|
+
type: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<"anonymousId" | "userId" | "traits.email" | "traits.phone" | "context.device.id" | "context.device.advertisingId" | "context.device.token", string>>;
|
|
86
|
+
value: z.ZodMiniString<string>;
|
|
87
87
|
}, z.core.$strip>>>;
|
|
88
|
-
context: z.
|
|
89
|
-
page: z.
|
|
90
|
-
path: z.
|
|
91
|
-
referrer: z.
|
|
92
|
-
search: z.
|
|
88
|
+
context: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
89
|
+
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
90
|
+
path: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
91
|
+
referrer: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
92
|
+
search: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
93
93
|
}, z.core.$strip>>;
|
|
94
|
-
locale: z.
|
|
95
|
-
userAgent: z.
|
|
96
|
-
flags: z.
|
|
97
|
-
key: z.
|
|
98
|
-
target: z.
|
|
99
|
-
value: z.
|
|
100
|
-
variant: z.
|
|
101
|
-
origin: z.
|
|
94
|
+
locale: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
95
|
+
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
96
|
+
flags: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
97
|
+
key: z.ZodMiniString<string>;
|
|
98
|
+
target: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
99
|
+
value: z.ZodMiniType<AppEventFlagValue, unknown, z.core.$ZodTypeInternals<AppEventFlagValue, unknown>>;
|
|
100
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
101
|
+
origin: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
102
102
|
runtime_config: "runtime_config";
|
|
103
103
|
trigger_context: "trigger_context";
|
|
104
104
|
provider_sync: "provider_sync";
|
|
105
105
|
api: "api";
|
|
106
106
|
}>>;
|
|
107
|
-
provider: z.
|
|
108
|
-
name: z.
|
|
109
|
-
project: z.
|
|
110
|
-
environment: z.
|
|
107
|
+
provider: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
108
|
+
name: z.ZodMiniString<string>;
|
|
109
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
110
|
+
environment: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
111
111
|
}, z.core.$strip>>;
|
|
112
|
-
status: z.
|
|
113
|
-
reason: z.
|
|
114
|
-
evaluatedAt: z.
|
|
112
|
+
status: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
113
|
+
reason: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
114
|
+
evaluatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
115
115
|
}, z.core.$strip>>>;
|
|
116
|
-
capabilities: z.
|
|
117
|
-
key: z.
|
|
118
|
-
source: z.
|
|
119
|
-
provider: z.
|
|
120
|
-
name: z.
|
|
121
|
-
project: z.
|
|
122
|
-
environment: z.
|
|
116
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
117
|
+
key: z.ZodMiniString<string>;
|
|
118
|
+
source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
119
|
+
provider: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
120
|
+
name: z.ZodMiniString<string>;
|
|
121
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
122
|
+
environment: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
123
123
|
}, z.core.$strip>>;
|
|
124
124
|
}, z.core.$strip>>>;
|
|
125
125
|
}, z.core.$strip>>;
|
|
126
|
-
messageId: z.
|
|
127
|
-
timestamp: z.
|
|
126
|
+
messageId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
127
|
+
timestamp: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
128
128
|
}, z.core.$strip>;
|
|
129
|
-
export declare const appEventSurveyViewedSchema: z.
|
|
130
|
-
traits: z.
|
|
131
|
-
identities: z.
|
|
132
|
-
type: z.
|
|
133
|
-
value: z.
|
|
129
|
+
export declare const appEventSurveyViewedSchema: z.ZodMiniObject<{
|
|
130
|
+
traits: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
131
|
+
identities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
132
|
+
type: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<"anonymousId" | "userId" | "traits.email" | "traits.phone" | "context.device.id" | "context.device.advertisingId" | "context.device.token", string>>;
|
|
133
|
+
value: z.ZodMiniString<string>;
|
|
134
134
|
}, z.core.$strip>>>;
|
|
135
|
-
context: z.
|
|
136
|
-
page: z.
|
|
137
|
-
path: z.
|
|
138
|
-
referrer: z.
|
|
139
|
-
search: z.
|
|
135
|
+
context: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
136
|
+
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
137
|
+
path: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
138
|
+
referrer: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
139
|
+
search: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
140
140
|
}, z.core.$strip>>;
|
|
141
|
-
locale: z.
|
|
142
|
-
userAgent: z.
|
|
143
|
-
flags: z.
|
|
144
|
-
key: z.
|
|
145
|
-
target: z.
|
|
146
|
-
value: z.
|
|
147
|
-
variant: z.
|
|
148
|
-
origin: z.
|
|
141
|
+
locale: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
142
|
+
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
143
|
+
flags: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
144
|
+
key: z.ZodMiniString<string>;
|
|
145
|
+
target: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
146
|
+
value: z.ZodMiniType<AppEventFlagValue, unknown, z.core.$ZodTypeInternals<AppEventFlagValue, unknown>>;
|
|
147
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
148
|
+
origin: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
149
149
|
runtime_config: "runtime_config";
|
|
150
150
|
trigger_context: "trigger_context";
|
|
151
151
|
provider_sync: "provider_sync";
|
|
152
152
|
api: "api";
|
|
153
153
|
}>>;
|
|
154
|
-
provider: z.
|
|
155
|
-
name: z.
|
|
156
|
-
project: z.
|
|
157
|
-
environment: z.
|
|
154
|
+
provider: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
155
|
+
name: z.ZodMiniString<string>;
|
|
156
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
157
|
+
environment: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
158
158
|
}, z.core.$strip>>;
|
|
159
|
-
status: z.
|
|
160
|
-
reason: z.
|
|
161
|
-
evaluatedAt: z.
|
|
159
|
+
status: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
160
|
+
reason: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
161
|
+
evaluatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
162
162
|
}, z.core.$strip>>>;
|
|
163
|
-
capabilities: z.
|
|
164
|
-
key: z.
|
|
165
|
-
source: z.
|
|
166
|
-
provider: z.
|
|
167
|
-
name: z.
|
|
168
|
-
project: z.
|
|
169
|
-
environment: z.
|
|
163
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
164
|
+
key: z.ZodMiniString<string>;
|
|
165
|
+
source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
166
|
+
provider: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
167
|
+
name: z.ZodMiniString<string>;
|
|
168
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
169
|
+
environment: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
170
170
|
}, z.core.$strip>>;
|
|
171
171
|
}, z.core.$strip>>>;
|
|
172
172
|
}, z.core.$strip>>;
|
|
173
|
-
messageId: z.
|
|
174
|
-
timestamp: z.
|
|
175
|
-
event: z.
|
|
176
|
-
references: z.
|
|
177
|
-
surveyId: z.
|
|
173
|
+
messageId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
174
|
+
timestamp: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
175
|
+
event: z.ZodMiniLiteral<"Flow Viewed">;
|
|
176
|
+
references: z.ZodMiniObject<{
|
|
177
|
+
surveyId: z.ZodMiniString<string>;
|
|
178
178
|
}, z.core.$strip>;
|
|
179
179
|
}, z.core.$strip>;
|
|
180
|
-
export declare const appEventFlowDismissedSchema: z.
|
|
181
|
-
traits: z.
|
|
182
|
-
identities: z.
|
|
183
|
-
type: z.
|
|
184
|
-
value: z.
|
|
180
|
+
export declare const appEventFlowDismissedSchema: z.ZodMiniObject<{
|
|
181
|
+
traits: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
182
|
+
identities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
183
|
+
type: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<"anonymousId" | "userId" | "traits.email" | "traits.phone" | "context.device.id" | "context.device.advertisingId" | "context.device.token", string>>;
|
|
184
|
+
value: z.ZodMiniString<string>;
|
|
185
185
|
}, z.core.$strip>>>;
|
|
186
|
-
context: z.
|
|
187
|
-
page: z.
|
|
188
|
-
path: z.
|
|
189
|
-
referrer: z.
|
|
190
|
-
search: z.
|
|
186
|
+
context: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
187
|
+
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
188
|
+
path: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
189
|
+
referrer: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
190
|
+
search: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
191
191
|
}, z.core.$strip>>;
|
|
192
|
-
locale: z.
|
|
193
|
-
userAgent: z.
|
|
194
|
-
flags: z.
|
|
195
|
-
key: z.
|
|
196
|
-
target: z.
|
|
197
|
-
value: z.
|
|
198
|
-
variant: z.
|
|
199
|
-
origin: z.
|
|
192
|
+
locale: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
193
|
+
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
194
|
+
flags: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
195
|
+
key: z.ZodMiniString<string>;
|
|
196
|
+
target: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
197
|
+
value: z.ZodMiniType<AppEventFlagValue, unknown, z.core.$ZodTypeInternals<AppEventFlagValue, unknown>>;
|
|
198
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
199
|
+
origin: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
200
200
|
runtime_config: "runtime_config";
|
|
201
201
|
trigger_context: "trigger_context";
|
|
202
202
|
provider_sync: "provider_sync";
|
|
203
203
|
api: "api";
|
|
204
204
|
}>>;
|
|
205
|
-
provider: z.
|
|
206
|
-
name: z.
|
|
207
|
-
project: z.
|
|
208
|
-
environment: z.
|
|
205
|
+
provider: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
206
|
+
name: z.ZodMiniString<string>;
|
|
207
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
208
|
+
environment: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
209
209
|
}, z.core.$strip>>;
|
|
210
|
-
status: z.
|
|
211
|
-
reason: z.
|
|
212
|
-
evaluatedAt: z.
|
|
210
|
+
status: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
211
|
+
reason: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
212
|
+
evaluatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
213
213
|
}, z.core.$strip>>>;
|
|
214
|
-
capabilities: z.
|
|
215
|
-
key: z.
|
|
216
|
-
source: z.
|
|
217
|
-
provider: z.
|
|
218
|
-
name: z.
|
|
219
|
-
project: z.
|
|
220
|
-
environment: z.
|
|
214
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
215
|
+
key: z.ZodMiniString<string>;
|
|
216
|
+
source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
217
|
+
provider: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
218
|
+
name: z.ZodMiniString<string>;
|
|
219
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
220
|
+
environment: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
221
221
|
}, z.core.$strip>>;
|
|
222
222
|
}, z.core.$strip>>>;
|
|
223
223
|
}, z.core.$strip>>;
|
|
224
|
-
messageId: z.
|
|
225
|
-
timestamp: z.
|
|
226
|
-
event: z.
|
|
227
|
-
references: z.
|
|
228
|
-
surveyId: z.
|
|
224
|
+
messageId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
225
|
+
timestamp: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
226
|
+
event: z.ZodMiniLiteral<"Flow Dismissed">;
|
|
227
|
+
references: z.ZodMiniObject<{
|
|
228
|
+
surveyId: z.ZodMiniString<string>;
|
|
229
229
|
}, z.core.$strip>;
|
|
230
230
|
}, z.core.$strip>;
|
|
231
|
-
export declare const appEventTrackSchema: z.
|
|
232
|
-
traits: z.
|
|
233
|
-
identities: z.
|
|
234
|
-
type: z.
|
|
235
|
-
value: z.
|
|
231
|
+
export declare const appEventTrackSchema: z.ZodMiniObject<{
|
|
232
|
+
traits: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
233
|
+
identities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
234
|
+
type: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<"anonymousId" | "userId" | "traits.email" | "traits.phone" | "context.device.id" | "context.device.advertisingId" | "context.device.token", string>>;
|
|
235
|
+
value: z.ZodMiniString<string>;
|
|
236
236
|
}, z.core.$strip>>>;
|
|
237
|
-
context: z.
|
|
238
|
-
page: z.
|
|
239
|
-
path: z.
|
|
240
|
-
referrer: z.
|
|
241
|
-
search: z.
|
|
237
|
+
context: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
238
|
+
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
239
|
+
path: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
240
|
+
referrer: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
241
|
+
search: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
242
242
|
}, z.core.$strip>>;
|
|
243
|
-
locale: z.
|
|
244
|
-
userAgent: z.
|
|
245
|
-
flags: z.
|
|
246
|
-
key: z.
|
|
247
|
-
target: z.
|
|
248
|
-
value: z.
|
|
249
|
-
variant: z.
|
|
250
|
-
origin: z.
|
|
243
|
+
locale: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
244
|
+
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
245
|
+
flags: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
246
|
+
key: z.ZodMiniString<string>;
|
|
247
|
+
target: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
248
|
+
value: z.ZodMiniType<AppEventFlagValue, unknown, z.core.$ZodTypeInternals<AppEventFlagValue, unknown>>;
|
|
249
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
250
|
+
origin: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
251
251
|
runtime_config: "runtime_config";
|
|
252
252
|
trigger_context: "trigger_context";
|
|
253
253
|
provider_sync: "provider_sync";
|
|
254
254
|
api: "api";
|
|
255
255
|
}>>;
|
|
256
|
-
provider: z.
|
|
257
|
-
name: z.
|
|
258
|
-
project: z.
|
|
259
|
-
environment: z.
|
|
256
|
+
provider: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
257
|
+
name: z.ZodMiniString<string>;
|
|
258
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
259
|
+
environment: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
260
260
|
}, z.core.$strip>>;
|
|
261
|
-
status: z.
|
|
262
|
-
reason: z.
|
|
263
|
-
evaluatedAt: z.
|
|
261
|
+
status: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
262
|
+
reason: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
263
|
+
evaluatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
264
264
|
}, z.core.$strip>>>;
|
|
265
|
-
capabilities: z.
|
|
266
|
-
key: z.
|
|
267
|
-
source: z.
|
|
268
|
-
provider: z.
|
|
269
|
-
name: z.
|
|
270
|
-
project: z.
|
|
271
|
-
environment: z.
|
|
265
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
266
|
+
key: z.ZodMiniString<string>;
|
|
267
|
+
source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
268
|
+
provider: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
269
|
+
name: z.ZodMiniString<string>;
|
|
270
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
271
|
+
environment: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
272
272
|
}, z.core.$strip>>;
|
|
273
273
|
}, z.core.$strip>>>;
|
|
274
274
|
}, z.core.$strip>>;
|
|
275
|
-
messageId: z.
|
|
276
|
-
timestamp: z.
|
|
277
|
-
event: z.
|
|
275
|
+
messageId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
276
|
+
timestamp: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
277
|
+
event: z.ZodMiniEnum<{
|
|
278
278
|
"Flow Viewed": "Flow Viewed";
|
|
279
279
|
"Flow Dismissed": "Flow Dismissed";
|
|
280
280
|
}>;
|
|
281
|
-
references: z.
|
|
282
|
-
surveyId: z.
|
|
281
|
+
references: z.ZodMiniObject<{
|
|
282
|
+
surveyId: z.ZodMiniString<string>;
|
|
283
283
|
}, z.core.$strip>;
|
|
284
284
|
}, z.core.$strip>;
|
|
285
|
-
export declare const appEventPayloadSchema: z.
|
|
286
|
-
traits: z.
|
|
287
|
-
identities: z.
|
|
288
|
-
type: z.
|
|
289
|
-
value: z.
|
|
285
|
+
export declare const appEventPayloadSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
286
|
+
traits: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
287
|
+
identities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
288
|
+
type: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<"anonymousId" | "userId" | "traits.email" | "traits.phone" | "context.device.id" | "context.device.advertisingId" | "context.device.token", string>>;
|
|
289
|
+
value: z.ZodMiniString<string>;
|
|
290
290
|
}, z.core.$strip>>>;
|
|
291
|
-
context: z.
|
|
292
|
-
page: z.
|
|
293
|
-
path: z.
|
|
294
|
-
referrer: z.
|
|
295
|
-
search: z.
|
|
291
|
+
context: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
292
|
+
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
293
|
+
path: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
294
|
+
referrer: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
295
|
+
search: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
296
296
|
}, z.core.$strip>>;
|
|
297
|
-
locale: z.
|
|
298
|
-
userAgent: z.
|
|
299
|
-
flags: z.
|
|
300
|
-
key: z.
|
|
301
|
-
target: z.
|
|
302
|
-
value: z.
|
|
303
|
-
variant: z.
|
|
304
|
-
origin: z.
|
|
297
|
+
locale: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
298
|
+
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
299
|
+
flags: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
300
|
+
key: z.ZodMiniString<string>;
|
|
301
|
+
target: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
302
|
+
value: z.ZodMiniType<AppEventFlagValue, unknown, z.core.$ZodTypeInternals<AppEventFlagValue, unknown>>;
|
|
303
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
304
|
+
origin: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
305
305
|
runtime_config: "runtime_config";
|
|
306
306
|
trigger_context: "trigger_context";
|
|
307
307
|
provider_sync: "provider_sync";
|
|
308
308
|
api: "api";
|
|
309
309
|
}>>;
|
|
310
|
-
provider: z.
|
|
311
|
-
name: z.
|
|
312
|
-
project: z.
|
|
313
|
-
environment: z.
|
|
310
|
+
provider: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
311
|
+
name: z.ZodMiniString<string>;
|
|
312
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
313
|
+
environment: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
314
314
|
}, z.core.$strip>>;
|
|
315
|
-
status: z.
|
|
316
|
-
reason: z.
|
|
317
|
-
evaluatedAt: z.
|
|
315
|
+
status: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
316
|
+
reason: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
317
|
+
evaluatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
318
318
|
}, z.core.$strip>>>;
|
|
319
|
-
capabilities: z.
|
|
320
|
-
key: z.
|
|
321
|
-
source: z.
|
|
322
|
-
provider: z.
|
|
323
|
-
name: z.
|
|
324
|
-
project: z.
|
|
325
|
-
environment: z.
|
|
319
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
320
|
+
key: z.ZodMiniString<string>;
|
|
321
|
+
source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
322
|
+
provider: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
323
|
+
name: z.ZodMiniString<string>;
|
|
324
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
325
|
+
environment: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
326
326
|
}, z.core.$strip>>;
|
|
327
327
|
}, z.core.$strip>>>;
|
|
328
328
|
}, z.core.$strip>>;
|
|
329
|
-
messageId: z.
|
|
330
|
-
timestamp: z.
|
|
331
|
-
event: z.
|
|
332
|
-
references: z.
|
|
333
|
-
surveyId: z.
|
|
329
|
+
messageId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
330
|
+
timestamp: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
331
|
+
event: z.ZodMiniLiteral<"Flow Viewed">;
|
|
332
|
+
references: z.ZodMiniObject<{
|
|
333
|
+
surveyId: z.ZodMiniString<string>;
|
|
334
334
|
}, z.core.$strip>;
|
|
335
|
-
}, z.core.$strip>, z.
|
|
336
|
-
traits: z.
|
|
337
|
-
identities: z.
|
|
338
|
-
type: z.
|
|
339
|
-
value: z.
|
|
335
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
336
|
+
traits: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
337
|
+
identities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
338
|
+
type: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<"anonymousId" | "userId" | "traits.email" | "traits.phone" | "context.device.id" | "context.device.advertisingId" | "context.device.token", string>>;
|
|
339
|
+
value: z.ZodMiniString<string>;
|
|
340
340
|
}, z.core.$strip>>>;
|
|
341
|
-
context: z.
|
|
342
|
-
page: z.
|
|
343
|
-
path: z.
|
|
344
|
-
referrer: z.
|
|
345
|
-
search: z.
|
|
341
|
+
context: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
342
|
+
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
343
|
+
path: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
344
|
+
referrer: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
345
|
+
search: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
346
346
|
}, z.core.$strip>>;
|
|
347
|
-
locale: z.
|
|
348
|
-
userAgent: z.
|
|
349
|
-
flags: z.
|
|
350
|
-
key: z.
|
|
351
|
-
target: z.
|
|
352
|
-
value: z.
|
|
353
|
-
variant: z.
|
|
354
|
-
origin: z.
|
|
347
|
+
locale: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
348
|
+
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
349
|
+
flags: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
350
|
+
key: z.ZodMiniString<string>;
|
|
351
|
+
target: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
352
|
+
value: z.ZodMiniType<AppEventFlagValue, unknown, z.core.$ZodTypeInternals<AppEventFlagValue, unknown>>;
|
|
353
|
+
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
354
|
+
origin: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
355
355
|
runtime_config: "runtime_config";
|
|
356
356
|
trigger_context: "trigger_context";
|
|
357
357
|
provider_sync: "provider_sync";
|
|
358
358
|
api: "api";
|
|
359
359
|
}>>;
|
|
360
|
-
provider: z.
|
|
361
|
-
name: z.
|
|
362
|
-
project: z.
|
|
363
|
-
environment: z.
|
|
360
|
+
provider: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
361
|
+
name: z.ZodMiniString<string>;
|
|
362
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
363
|
+
environment: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
364
364
|
}, z.core.$strip>>;
|
|
365
|
-
status: z.
|
|
366
|
-
reason: z.
|
|
367
|
-
evaluatedAt: z.
|
|
365
|
+
status: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
366
|
+
reason: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
367
|
+
evaluatedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
368
368
|
}, z.core.$strip>>>;
|
|
369
|
-
capabilities: z.
|
|
370
|
-
key: z.
|
|
371
|
-
source: z.
|
|
372
|
-
provider: z.
|
|
373
|
-
name: z.
|
|
374
|
-
project: z.
|
|
375
|
-
environment: z.
|
|
369
|
+
capabilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
370
|
+
key: z.ZodMiniString<string>;
|
|
371
|
+
source: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
372
|
+
provider: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
373
|
+
name: z.ZodMiniString<string>;
|
|
374
|
+
project: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
375
|
+
environment: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
376
376
|
}, z.core.$strip>>;
|
|
377
377
|
}, z.core.$strip>>>;
|
|
378
378
|
}, z.core.$strip>>;
|
|
379
|
-
messageId: z.
|
|
380
|
-
timestamp: z.
|
|
381
|
-
event: z.
|
|
382
|
-
references: z.
|
|
383
|
-
surveyId: z.
|
|
379
|
+
messageId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
380
|
+
timestamp: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
381
|
+
event: z.ZodMiniLiteral<"Flow Dismissed">;
|
|
382
|
+
references: z.ZodMiniObject<{
|
|
383
|
+
surveyId: z.ZodMiniString<string>;
|
|
384
384
|
}, z.core.$strip>;
|
|
385
385
|
}, z.core.$strip>], "event">;
|
|
386
386
|
export type AppEventTrackInput = z.output<typeof appEventTrackSchema>;
|