@getuserfeedback/protocol 0.5.5 → 0.5.7
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 +242 -0
- package/dist/app-event.d.ts.map +1 -1
- package/dist/app-event.js +31 -0
- package/dist/host/sdk-types.d.ts +35 -1
- package/dist/host/sdk-types.d.ts.map +1 -1
- package/dist/host/sdk.d.ts +1 -1
- package/dist/host/sdk.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/widget-commands.d.ts +77 -0
- package/dist/widget-commands.d.ts.map +1 -1
- package/dist/widget-config.d.ts +156 -0
- package/dist/widget-config.d.ts.map +1 -1
- package/dist/widget-config.js +5 -0
- package/package.json +2 -2
package/dist/app-event.d.ts
CHANGED
|
@@ -4,6 +4,43 @@ export declare const appEventIdentitySchema: z.ZodObject<{
|
|
|
4
4
|
type: z.ZodPipe<z.ZodString, z.ZodTransform<"anonymousId" | "userId" | "traits.email" | "traits.phone" | "context.device.id" | "context.device.advertisingId" | "context.device.token", string>>;
|
|
5
5
|
value: z.ZodString;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
|
+
type AppEventFlagValue = string | number | boolean | null | AppEventFlagValue[] | {
|
|
8
|
+
[key: string]: AppEventFlagValue;
|
|
9
|
+
};
|
|
10
|
+
export declare const appEventFlagProviderSchema: z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
project: z.ZodOptional<z.ZodString>;
|
|
13
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const appEventFlagSchema: z.ZodObject<{
|
|
16
|
+
key: z.ZodString;
|
|
17
|
+
target: z.ZodOptional<z.ZodString>;
|
|
18
|
+
value: z.ZodType<AppEventFlagValue, unknown, z.core.$ZodTypeInternals<AppEventFlagValue, unknown>>;
|
|
19
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
20
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
runtime_config: "runtime_config";
|
|
22
|
+
trigger_context: "trigger_context";
|
|
23
|
+
provider_sync: "provider_sync";
|
|
24
|
+
api: "api";
|
|
25
|
+
}>>;
|
|
26
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
project: z.ZodOptional<z.ZodString>;
|
|
29
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
status: z.ZodOptional<z.ZodString>;
|
|
32
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
33
|
+
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export declare const appEventCapabilitySchema: z.ZodObject<{
|
|
36
|
+
key: z.ZodString;
|
|
37
|
+
source: z.ZodOptional<z.ZodString>;
|
|
38
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
project: z.ZodOptional<z.ZodString>;
|
|
41
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
7
44
|
export declare const appEventContextSchema: z.ZodObject<{
|
|
8
45
|
page: z.ZodOptional<z.ZodObject<{
|
|
9
46
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -12,6 +49,35 @@ export declare const appEventContextSchema: z.ZodObject<{
|
|
|
12
49
|
}, z.core.$strip>>;
|
|
13
50
|
locale: z.ZodOptional<z.ZodString>;
|
|
14
51
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
52
|
+
flags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
+
key: z.ZodString;
|
|
54
|
+
target: z.ZodOptional<z.ZodString>;
|
|
55
|
+
value: z.ZodType<AppEventFlagValue, unknown, z.core.$ZodTypeInternals<AppEventFlagValue, unknown>>;
|
|
56
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
57
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
runtime_config: "runtime_config";
|
|
59
|
+
trigger_context: "trigger_context";
|
|
60
|
+
provider_sync: "provider_sync";
|
|
61
|
+
api: "api";
|
|
62
|
+
}>>;
|
|
63
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
64
|
+
name: z.ZodString;
|
|
65
|
+
project: z.ZodOptional<z.ZodString>;
|
|
66
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
status: z.ZodOptional<z.ZodString>;
|
|
69
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
70
|
+
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
71
|
+
}, z.core.$strip>>>;
|
|
72
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
73
|
+
key: z.ZodString;
|
|
74
|
+
source: z.ZodOptional<z.ZodString>;
|
|
75
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
project: z.ZodOptional<z.ZodString>;
|
|
78
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
}, z.core.$strip>>>;
|
|
15
81
|
}, z.core.$strip>;
|
|
16
82
|
export declare const appEventBaseSchema: z.ZodObject<{
|
|
17
83
|
traits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -27,6 +93,35 @@ export declare const appEventBaseSchema: z.ZodObject<{
|
|
|
27
93
|
}, z.core.$strip>>;
|
|
28
94
|
locale: z.ZodOptional<z.ZodString>;
|
|
29
95
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
96
|
+
flags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
97
|
+
key: z.ZodString;
|
|
98
|
+
target: z.ZodOptional<z.ZodString>;
|
|
99
|
+
value: z.ZodType<AppEventFlagValue, unknown, z.core.$ZodTypeInternals<AppEventFlagValue, unknown>>;
|
|
100
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
101
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
102
|
+
runtime_config: "runtime_config";
|
|
103
|
+
trigger_context: "trigger_context";
|
|
104
|
+
provider_sync: "provider_sync";
|
|
105
|
+
api: "api";
|
|
106
|
+
}>>;
|
|
107
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
108
|
+
name: z.ZodString;
|
|
109
|
+
project: z.ZodOptional<z.ZodString>;
|
|
110
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
status: z.ZodOptional<z.ZodString>;
|
|
113
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
114
|
+
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
115
|
+
}, z.core.$strip>>>;
|
|
116
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
117
|
+
key: z.ZodString;
|
|
118
|
+
source: z.ZodOptional<z.ZodString>;
|
|
119
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
120
|
+
name: z.ZodString;
|
|
121
|
+
project: z.ZodOptional<z.ZodString>;
|
|
122
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
123
|
+
}, z.core.$strip>>;
|
|
124
|
+
}, z.core.$strip>>>;
|
|
30
125
|
}, z.core.$strip>>;
|
|
31
126
|
messageId: z.ZodOptional<z.ZodString>;
|
|
32
127
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -45,6 +140,35 @@ export declare const appEventSurveyViewedSchema: z.ZodObject<{
|
|
|
45
140
|
}, z.core.$strip>>;
|
|
46
141
|
locale: z.ZodOptional<z.ZodString>;
|
|
47
142
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
143
|
+
flags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
144
|
+
key: z.ZodString;
|
|
145
|
+
target: z.ZodOptional<z.ZodString>;
|
|
146
|
+
value: z.ZodType<AppEventFlagValue, unknown, z.core.$ZodTypeInternals<AppEventFlagValue, unknown>>;
|
|
147
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
148
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
149
|
+
runtime_config: "runtime_config";
|
|
150
|
+
trigger_context: "trigger_context";
|
|
151
|
+
provider_sync: "provider_sync";
|
|
152
|
+
api: "api";
|
|
153
|
+
}>>;
|
|
154
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
name: z.ZodString;
|
|
156
|
+
project: z.ZodOptional<z.ZodString>;
|
|
157
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
158
|
+
}, z.core.$strip>>;
|
|
159
|
+
status: z.ZodOptional<z.ZodString>;
|
|
160
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
161
|
+
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
162
|
+
}, z.core.$strip>>>;
|
|
163
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
164
|
+
key: z.ZodString;
|
|
165
|
+
source: z.ZodOptional<z.ZodString>;
|
|
166
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
167
|
+
name: z.ZodString;
|
|
168
|
+
project: z.ZodOptional<z.ZodString>;
|
|
169
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$strip>>;
|
|
171
|
+
}, z.core.$strip>>>;
|
|
48
172
|
}, z.core.$strip>>;
|
|
49
173
|
messageId: z.ZodOptional<z.ZodString>;
|
|
50
174
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -67,6 +191,35 @@ export declare const appEventFlowDismissedSchema: z.ZodObject<{
|
|
|
67
191
|
}, z.core.$strip>>;
|
|
68
192
|
locale: z.ZodOptional<z.ZodString>;
|
|
69
193
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
194
|
+
flags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
195
|
+
key: z.ZodString;
|
|
196
|
+
target: z.ZodOptional<z.ZodString>;
|
|
197
|
+
value: z.ZodType<AppEventFlagValue, unknown, z.core.$ZodTypeInternals<AppEventFlagValue, unknown>>;
|
|
198
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
199
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
200
|
+
runtime_config: "runtime_config";
|
|
201
|
+
trigger_context: "trigger_context";
|
|
202
|
+
provider_sync: "provider_sync";
|
|
203
|
+
api: "api";
|
|
204
|
+
}>>;
|
|
205
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
206
|
+
name: z.ZodString;
|
|
207
|
+
project: z.ZodOptional<z.ZodString>;
|
|
208
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
209
|
+
}, z.core.$strip>>;
|
|
210
|
+
status: z.ZodOptional<z.ZodString>;
|
|
211
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
212
|
+
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
213
|
+
}, z.core.$strip>>>;
|
|
214
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
215
|
+
key: z.ZodString;
|
|
216
|
+
source: z.ZodOptional<z.ZodString>;
|
|
217
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
218
|
+
name: z.ZodString;
|
|
219
|
+
project: z.ZodOptional<z.ZodString>;
|
|
220
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
221
|
+
}, z.core.$strip>>;
|
|
222
|
+
}, z.core.$strip>>>;
|
|
70
223
|
}, z.core.$strip>>;
|
|
71
224
|
messageId: z.ZodOptional<z.ZodString>;
|
|
72
225
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -89,6 +242,35 @@ export declare const appEventTrackSchema: z.ZodObject<{
|
|
|
89
242
|
}, z.core.$strip>>;
|
|
90
243
|
locale: z.ZodOptional<z.ZodString>;
|
|
91
244
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
245
|
+
flags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
246
|
+
key: z.ZodString;
|
|
247
|
+
target: z.ZodOptional<z.ZodString>;
|
|
248
|
+
value: z.ZodType<AppEventFlagValue, unknown, z.core.$ZodTypeInternals<AppEventFlagValue, unknown>>;
|
|
249
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
250
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
251
|
+
runtime_config: "runtime_config";
|
|
252
|
+
trigger_context: "trigger_context";
|
|
253
|
+
provider_sync: "provider_sync";
|
|
254
|
+
api: "api";
|
|
255
|
+
}>>;
|
|
256
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
name: z.ZodString;
|
|
258
|
+
project: z.ZodOptional<z.ZodString>;
|
|
259
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
260
|
+
}, z.core.$strip>>;
|
|
261
|
+
status: z.ZodOptional<z.ZodString>;
|
|
262
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
263
|
+
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
264
|
+
}, z.core.$strip>>>;
|
|
265
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
266
|
+
key: z.ZodString;
|
|
267
|
+
source: z.ZodOptional<z.ZodString>;
|
|
268
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
269
|
+
name: z.ZodString;
|
|
270
|
+
project: z.ZodOptional<z.ZodString>;
|
|
271
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
272
|
+
}, z.core.$strip>>;
|
|
273
|
+
}, z.core.$strip>>>;
|
|
92
274
|
}, z.core.$strip>>;
|
|
93
275
|
messageId: z.ZodOptional<z.ZodString>;
|
|
94
276
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -114,6 +296,35 @@ export declare const appEventPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
114
296
|
}, z.core.$strip>>;
|
|
115
297
|
locale: z.ZodOptional<z.ZodString>;
|
|
116
298
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
299
|
+
flags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
300
|
+
key: z.ZodString;
|
|
301
|
+
target: z.ZodOptional<z.ZodString>;
|
|
302
|
+
value: z.ZodType<AppEventFlagValue, unknown, z.core.$ZodTypeInternals<AppEventFlagValue, unknown>>;
|
|
303
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
304
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
305
|
+
runtime_config: "runtime_config";
|
|
306
|
+
trigger_context: "trigger_context";
|
|
307
|
+
provider_sync: "provider_sync";
|
|
308
|
+
api: "api";
|
|
309
|
+
}>>;
|
|
310
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
311
|
+
name: z.ZodString;
|
|
312
|
+
project: z.ZodOptional<z.ZodString>;
|
|
313
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
314
|
+
}, z.core.$strip>>;
|
|
315
|
+
status: z.ZodOptional<z.ZodString>;
|
|
316
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
317
|
+
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
318
|
+
}, z.core.$strip>>>;
|
|
319
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
320
|
+
key: z.ZodString;
|
|
321
|
+
source: z.ZodOptional<z.ZodString>;
|
|
322
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
323
|
+
name: z.ZodString;
|
|
324
|
+
project: z.ZodOptional<z.ZodString>;
|
|
325
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
326
|
+
}, z.core.$strip>>;
|
|
327
|
+
}, z.core.$strip>>>;
|
|
117
328
|
}, z.core.$strip>>;
|
|
118
329
|
messageId: z.ZodOptional<z.ZodString>;
|
|
119
330
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -135,6 +346,35 @@ export declare const appEventPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
135
346
|
}, z.core.$strip>>;
|
|
136
347
|
locale: z.ZodOptional<z.ZodString>;
|
|
137
348
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
349
|
+
flags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
350
|
+
key: z.ZodString;
|
|
351
|
+
target: z.ZodOptional<z.ZodString>;
|
|
352
|
+
value: z.ZodType<AppEventFlagValue, unknown, z.core.$ZodTypeInternals<AppEventFlagValue, unknown>>;
|
|
353
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
354
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
355
|
+
runtime_config: "runtime_config";
|
|
356
|
+
trigger_context: "trigger_context";
|
|
357
|
+
provider_sync: "provider_sync";
|
|
358
|
+
api: "api";
|
|
359
|
+
}>>;
|
|
360
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
361
|
+
name: z.ZodString;
|
|
362
|
+
project: z.ZodOptional<z.ZodString>;
|
|
363
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
364
|
+
}, z.core.$strip>>;
|
|
365
|
+
status: z.ZodOptional<z.ZodString>;
|
|
366
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
367
|
+
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
368
|
+
}, z.core.$strip>>>;
|
|
369
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
370
|
+
key: z.ZodString;
|
|
371
|
+
source: z.ZodOptional<z.ZodString>;
|
|
372
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
373
|
+
name: z.ZodString;
|
|
374
|
+
project: z.ZodOptional<z.ZodString>;
|
|
375
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
376
|
+
}, z.core.$strip>>;
|
|
377
|
+
}, z.core.$strip>>>;
|
|
138
378
|
}, z.core.$strip>>;
|
|
139
379
|
messageId: z.ZodOptional<z.ZodString>;
|
|
140
380
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -145,4 +385,6 @@ export declare const appEventPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
145
385
|
}, z.core.$strip>], "event">;
|
|
146
386
|
export type AppEventTrackInput = z.output<typeof appEventTrackSchema>;
|
|
147
387
|
export type AppEventPayload = z.output<typeof appEventPayloadSchema>;
|
|
388
|
+
export type AppEventFlag = z.output<typeof appEventFlagSchema>;
|
|
389
|
+
export type AppEventCapability = z.output<typeof appEventCapabilitySchema>;
|
|
148
390
|
//# sourceMappingURL=app-event.d.ts.map
|
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,KAAK,CAAC;AAGzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAEhE,eAAO,MAAM,sBAAsB;;;iBAGjC,CAAC;AAQH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"app-event.d.ts","sourceRoot":"","sources":["../src/app-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAEhE,eAAO,MAAM,sBAAsB;;;iBAGjC,CAAC;AAEH,KAAK,iBAAiB,GACnB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,iBAAiB,EAAE,GACnB;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAAA;CAAE,CAAC;AAaxC,eAAO,MAAM,0BAA0B;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;iBAY7B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;iBAInC,CAAC;AAQH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMhC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM7B,CAAC;AAMH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGrC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGtC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG9B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGhC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;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
|
@@ -5,6 +5,35 @@ export const appEventIdentitySchema = z.object({
|
|
|
5
5
|
type: appEventIdentityTypeSchema,
|
|
6
6
|
value: z.string().trim().min(1),
|
|
7
7
|
});
|
|
8
|
+
const appEventFlagValueSchema = z.lazy(() => z.union([
|
|
9
|
+
z.string(),
|
|
10
|
+
z.number(),
|
|
11
|
+
z.boolean(),
|
|
12
|
+
z.null(),
|
|
13
|
+
z.array(appEventFlagValueSchema),
|
|
14
|
+
z.record(z.string(), appEventFlagValueSchema),
|
|
15
|
+
]));
|
|
16
|
+
export const appEventFlagProviderSchema = z.object({
|
|
17
|
+
name: z.string().trim().min(1),
|
|
18
|
+
project: z.optional(z.string().trim().min(1)),
|
|
19
|
+
environment: z.optional(z.string().trim().min(1)),
|
|
20
|
+
});
|
|
21
|
+
export const appEventFlagSchema = z.object({
|
|
22
|
+
key: z.string().trim().min(1),
|
|
23
|
+
target: z.optional(z.string().trim().min(1)),
|
|
24
|
+
value: appEventFlagValueSchema,
|
|
25
|
+
variant: z.optional(z.string().trim().min(1)),
|
|
26
|
+
origin: z.optional(z.enum(["runtime_config", "trigger_context", "provider_sync", "api"])),
|
|
27
|
+
provider: z.optional(appEventFlagProviderSchema),
|
|
28
|
+
status: z.optional(z.string().trim().min(1)),
|
|
29
|
+
reason: z.optional(z.string().trim().min(1)),
|
|
30
|
+
evaluatedAt: z.optional(z.string().trim().min(1)),
|
|
31
|
+
});
|
|
32
|
+
export const appEventCapabilitySchema = z.object({
|
|
33
|
+
key: z.string().trim().min(1),
|
|
34
|
+
source: z.optional(z.string().trim().min(1)),
|
|
35
|
+
provider: z.optional(appEventFlagProviderSchema),
|
|
36
|
+
});
|
|
8
37
|
const appEventPageSchema = z.object({
|
|
9
38
|
path: z.optional(z.string()),
|
|
10
39
|
referrer: z.optional(z.string()),
|
|
@@ -14,6 +43,8 @@ export const appEventContextSchema = z.object({
|
|
|
14
43
|
page: z.optional(appEventPageSchema),
|
|
15
44
|
locale: z.optional(z.string()),
|
|
16
45
|
userAgent: z.optional(z.string()),
|
|
46
|
+
flags: z.optional(z.array(appEventFlagSchema)),
|
|
47
|
+
capabilities: z.optional(z.array(appEventCapabilitySchema)),
|
|
17
48
|
});
|
|
18
49
|
export const appEventBaseSchema = z.object({
|
|
19
50
|
traits: z.optional(z.record(z.string(), z.unknown())),
|
package/dist/host/sdk-types.d.ts
CHANGED
|
@@ -19,7 +19,35 @@ export type AppEventContext = {
|
|
|
19
19
|
};
|
|
20
20
|
locale?: string;
|
|
21
21
|
userAgent?: string;
|
|
22
|
+
flags?: AppEventFlag[] | undefined;
|
|
23
|
+
capabilities?: AppEventCapability[] | undefined;
|
|
22
24
|
};
|
|
25
|
+
export type AppEventFlagValue = string | number | boolean | null | AppEventFlagValue[] | {
|
|
26
|
+
[key: string]: AppEventFlagValue;
|
|
27
|
+
};
|
|
28
|
+
export type AppEventFlagProvider = {
|
|
29
|
+
name: string;
|
|
30
|
+
project?: string | undefined;
|
|
31
|
+
environment?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
export type AppEventFlag = {
|
|
34
|
+
key: string;
|
|
35
|
+
target?: string | undefined;
|
|
36
|
+
value: AppEventFlagValue;
|
|
37
|
+
variant?: string | undefined;
|
|
38
|
+
origin?: "runtime_config" | "trigger_context" | "provider_sync" | "api";
|
|
39
|
+
provider?: AppEventFlagProvider | undefined;
|
|
40
|
+
status?: string | undefined;
|
|
41
|
+
reason?: string | undefined;
|
|
42
|
+
evaluatedAt?: string | undefined;
|
|
43
|
+
};
|
|
44
|
+
export type AppEventCapability = {
|
|
45
|
+
key: string;
|
|
46
|
+
source?: string | undefined;
|
|
47
|
+
provider?: AppEventFlagProvider | undefined;
|
|
48
|
+
};
|
|
49
|
+
export type FlagsInput = AppEventFlag[] | Record<string, AppEventFlagValue>;
|
|
50
|
+
export type CapabilitiesInput = Array<string | AppEventCapability>;
|
|
23
51
|
/** Optional fields shared by all flow lifecycle events (traits, identities, context, timing). */
|
|
24
52
|
export type AppEventBase = {
|
|
25
53
|
traits?: Record<string, unknown> | undefined;
|
|
@@ -127,7 +155,7 @@ export type ConfigureOptions = {
|
|
|
127
155
|
consent?: ConsentConfig | undefined;
|
|
128
156
|
auth?: AuthConfig | undefined;
|
|
129
157
|
};
|
|
130
|
-
/** @internal Options when initializing the widget: API key, color scheme, disableTelemetry, enableDebug, defaultConsent, and optional
|
|
158
|
+
/** @internal Options when initializing the widget: API key, color scheme, disableTelemetry, enableDebug, defaultConsent, capabilities, and optional customer targeting context. */
|
|
131
159
|
export type InitOptions = {
|
|
132
160
|
apiKey: string;
|
|
133
161
|
colorScheme?: ColorSchemeConfig | undefined;
|
|
@@ -136,6 +164,8 @@ export type InitOptions = {
|
|
|
136
164
|
defaultConsent?: ConsentConfig | undefined;
|
|
137
165
|
clientMeta?: ClientMeta | undefined;
|
|
138
166
|
capabilities?: string[] | undefined;
|
|
167
|
+
flags?: AppEventFlag[] | undefined;
|
|
168
|
+
hostCapabilities?: AppEventCapability[] | undefined;
|
|
139
169
|
runtimeEndpoints?: RuntimeEndpoints | undefined;
|
|
140
170
|
};
|
|
141
171
|
export type ClientOptions = {
|
|
@@ -177,6 +207,10 @@ export type ClientOptions = {
|
|
|
177
207
|
* Excluded by default: user identity and detailed page fields (path/referrer/search).
|
|
178
208
|
*/
|
|
179
209
|
disableTelemetry?: boolean | undefined;
|
|
210
|
+
/** Customer feature flag evaluations collected with widget initialization. */
|
|
211
|
+
flags?: FlagsInput | undefined;
|
|
212
|
+
/** Customer host capabilities collected with widget initialization. */
|
|
213
|
+
capabilities?: CapabilitiesInput | undefined;
|
|
180
214
|
_loaderUrl?: string | undefined;
|
|
181
215
|
_coreUrl?: string | undefined;
|
|
182
216
|
_apiUrl?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk-types.d.ts","sourceRoot":"","sources":["../../src/host/sdk-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,2DAA2D;AAC3D,MAAM,MAAM,oBAAoB,GAC7B,aAAa,GACb,QAAQ,GACR,cAAc,GACd,cAAc,GACd,mBAAmB,GACnB,8BAA8B,GAC9B,sBAAsB,CAAC;AAE1B,oEAAoE;AACpE,MAAM,MAAM,gBAAgB,GAAG;IAC9B,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gEAAgE;AAChE,MAAM,MAAM,eAAe,GAAG;IAC7B,IAAI,CAAC,EAAE;QACN,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,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G,IAAI,GAAG,SAAS,CAAC;YACnC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;SACnC,CAAC;QACF,aAAa,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;KACpC,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CACjD,CAAC"}
|
package/dist/host/sdk.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export { createCommandDispatch } from "./command-dispatch.js";
|
|
|
6
6
|
export { COMMAND_SETTLEMENT_TIMEOUT_CODE, CommandSettlementError, CommandSettlementTimeoutError, toCommandSettlementError, waitForCommandSettlement, } from "./command-settlement.js";
|
|
7
7
|
export type { FlowHandleFromSettlement, FlowState, } from "./host-event-contract.js";
|
|
8
8
|
export { getFlowHandleFromSettlementDetail, isFlowStateChangedDetail, isHandleInvalidatedDetail, isInstanceFlowStateChangedDetail, } from "./host-event-contract.js";
|
|
9
|
-
export type { AppEventPayload, ClientMeta, ClientOptions, Command, CommandEnvelope, ConfigureOptions, ContainerPolicy, InitOptions, PublicCommandPayload, ResponseMetadataInput, TelemetryEvent, } from "./sdk-types.js";
|
|
9
|
+
export type { AppEventCapability, AppEventFlag, AppEventFlagProvider, AppEventFlagValue, AppEventPayload, CapabilitiesInput, ClientMeta, ClientOptions, Command, CommandEnvelope, ConfigureOptions, ContainerPolicy, FlagsInput, InitOptions, PublicCommandPayload, ResponseMetadataInput, TelemetryEvent, } from "./sdk-types.js";
|
|
10
10
|
//# sourceMappingURL=sdk.d.ts.map
|
package/dist/host/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/host/sdk.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EACN,+BAA+B,EAC/B,sBAAsB,EACtB,6BAA6B,EAC7B,wBAAwB,EACxB,wBAAwB,GACxB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACX,wBAAwB,EACxB,SAAS,GACT,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACN,iCAAiC,EACjC,wBAAwB,EACxB,yBAAyB,EACzB,gCAAgC,GAChC,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACX,eAAe,EACf,UAAU,EACV,aAAa,EACb,OAAO,EACP,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,oBAAoB,EACpB,qBAAqB,EAGrB,cAAc,GACd,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/host/sdk.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EACN,+BAA+B,EAC/B,sBAAsB,EACtB,6BAA6B,EAC7B,wBAAwB,EACxB,wBAAwB,GACxB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACX,wBAAwB,EACxB,SAAS,GACT,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACN,iCAAiC,EACjC,wBAAwB,EACxB,yBAAyB,EACzB,gCAAgC,GAChC,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACX,kBAAkB,EAClB,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,OAAO,EACP,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,WAAW,EACX,oBAAoB,EACpB,qBAAqB,EAGrB,cAAc,GACd,MAAM,gBAAgB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type AppEventPayload, type AppEventTrackInput, appEventBaseSchema, appEventContextSchema, appEventFlowDismissedSchema, appEventIdentitySchema, appEventIdentityTypeSchema, appEventPayloadSchema, appEventSurveyViewedSchema, appEventTrackSchema, } from "./app-event.js";
|
|
1
|
+
export { type AppEventCapability, type AppEventFlag, type AppEventPayload, type AppEventTrackInput, appEventBaseSchema, appEventCapabilitySchema, appEventContextSchema, appEventFlagProviderSchema, appEventFlagSchema, appEventFlowDismissedSchema, appEventIdentitySchema, appEventIdentityTypeSchema, appEventPayloadSchema, appEventSurveyViewedSchema, appEventTrackSchema, } from "./app-event.js";
|
|
2
2
|
export { type ClientMeta, clientMetaSchema, } from "./client-meta.js";
|
|
3
3
|
export { DEFAULT_AUTO_DETECT_COLOR_SCHEME_ATTRS } from "./defaults.js";
|
|
4
4
|
export { type ClaimPendingFlowAssignmentsRequest, type ClaimPendingFlowAssignmentsResponse, claimPendingFlowAssignmentsRequestSchema, claimPendingFlowAssignmentsResponseSchema, type FlowAssignmentRecipientRequest, type FlowAssignmentRecord, type FlowAssignmentStatus, flowAssignmentRecipientRequestSchema, flowAssignmentRecordSchema, flowAssignmentStatusSchema, type ListPendingFlowAssignmentsResponse, listPendingFlowAssignmentsResponseSchema, nullableUpdateFlowAssignmentLifecycleResponseSchema, type ReleaseFlowAssignmentClaimRequest, type ReleaseFlowAssignmentClaimResponse, releaseFlowAssignmentClaimRequestSchema, releaseFlowAssignmentClaimResponseSchema, type UpdateFlowAssignmentLifecycleRequest, type UpdateFlowAssignmentLifecycleResponse, updateFlowAssignmentLifecycleRequestSchema, updateFlowAssignmentLifecycleResponseSchema, } from "./flow-assignments.js";
|
|
@@ -8,5 +8,5 @@ export { getScopeMeta, isScope, listScopes, SCOPE_IDS, type Scope, scopeIdSchema
|
|
|
8
8
|
export { type TrpcSuccessResponse, trpcSuccessResponseSchema, } from "./trpc-envelope.js";
|
|
9
9
|
export { type FlowVersionResolution, flowVersionResolutionSchema, type ThemeVersionResolution, themeVersionResolutionSchema, } from "./version-resolution.js";
|
|
10
10
|
export { type PublicCommandPayload, parseConfigureOptions, parseInitOptions, parsePublicCommand, publicCommandPayloadSchema, publicWidgetCommandKindSchema, } from "./widget-commands.js";
|
|
11
|
-
export { type ColorSchemeConfigInput, type ConfigureOptions, colorSchemeConfigInputSchema, configureOptionsSchema, consentConfigInputSchema, type InitOptions, initOptionsSchema, isPublicGrantScope, type PublicGrantScope, publicGrantScopeIdSchema, } from "./widget-config.js";
|
|
11
|
+
export { type ColorSchemeConfigInput, type ConfigureOptions, colorSchemeConfigInputSchema, configureOptionsSchema, consentConfigInputSchema, type FlagsConfigInput, flagsConfigInputSchema, type HostCapabilitiesConfigInput, hostCapabilitiesConfigInputSchema, type InitOptions, initOptionsSchema, isPublicGrantScope, type PublicGrantScope, publicGrantScopeIdSchema, } from "./widget-config.js";
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACtB,0BAA0B,EAC1B,qBAAqB,EACrB,0BAA0B,EAC1B,mBAAmB,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACN,KAAK,UAAU,EACf,gBAAgB,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sCAAsC,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EACN,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACxC,wCAAwC,EACxC,yCAAyC,EACzC,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,oCAAoC,EACpC,0BAA0B,EAC1B,0BAA0B,EAC1B,KAAK,kCAAkC,EACvC,wCAAwC,EACxC,mDAAmD,EACnD,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EACvC,uCAAuC,EACvC,wCAAwC,EACxC,KAAK,oC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M,sBAAsB,CAAC;AAC9B,OAAO,EACN,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,KAAK,2BAA2B,EAChC,iCAAiC,EACjC,KAAK,WAAW,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,gBAAgB,EACrB,wBAAwB,GACxB,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { appEventBaseSchema, appEventContextSchema, appEventFlowDismissedSchema, appEventIdentitySchema, appEventIdentityTypeSchema, appEventPayloadSchema, appEventSurveyViewedSchema, appEventTrackSchema, } from "./app-event.js";
|
|
1
|
+
export { appEventBaseSchema, appEventCapabilitySchema, appEventContextSchema, appEventFlagProviderSchema, appEventFlagSchema, appEventFlowDismissedSchema, appEventIdentitySchema, appEventIdentityTypeSchema, appEventPayloadSchema, appEventSurveyViewedSchema, appEventTrackSchema, } from "./app-event.js";
|
|
2
2
|
export { clientMetaSchema, } from "./client-meta.js";
|
|
3
3
|
export { DEFAULT_AUTO_DETECT_COLOR_SCHEME_ATTRS } from "./defaults.js";
|
|
4
4
|
export { claimPendingFlowAssignmentsRequestSchema, claimPendingFlowAssignmentsResponseSchema, flowAssignmentRecipientRequestSchema, flowAssignmentRecordSchema, flowAssignmentStatusSchema, listPendingFlowAssignmentsResponseSchema, nullableUpdateFlowAssignmentLifecycleResponseSchema, releaseFlowAssignmentClaimRequestSchema, releaseFlowAssignmentClaimResponseSchema, updateFlowAssignmentLifecycleRequestSchema, updateFlowAssignmentLifecycleResponseSchema, } from "./flow-assignments.js";
|
|
@@ -8,4 +8,4 @@ export { getScopeMeta, isScope, listScopes, SCOPE_IDS, scopeIdSchema, } from "./
|
|
|
8
8
|
export { trpcSuccessResponseSchema, } from "./trpc-envelope.js";
|
|
9
9
|
export { flowVersionResolutionSchema, themeVersionResolutionSchema, } from "./version-resolution.js";
|
|
10
10
|
export { parseConfigureOptions, parseInitOptions, parsePublicCommand, publicCommandPayloadSchema, publicWidgetCommandKindSchema, } from "./widget-commands.js";
|
|
11
|
-
export { colorSchemeConfigInputSchema, configureOptionsSchema, consentConfigInputSchema, initOptionsSchema, isPublicGrantScope, publicGrantScopeIdSchema, } from "./widget-config.js";
|
|
11
|
+
export { colorSchemeConfigInputSchema, configureOptionsSchema, consentConfigInputSchema, flagsConfigInputSchema, hostCapabilitiesConfigInputSchema, initOptionsSchema, isPublicGrantScope, publicGrantScopeIdSchema, } from "./widget-config.js";
|
|
@@ -162,6 +162,83 @@ export declare const publicCommandPayloadSchema: z.ZodUnion<readonly [z.ZodDiscr
|
|
|
162
162
|
notes: z.ZodOptional<z.ZodString>;
|
|
163
163
|
}, z.core.$strip>>;
|
|
164
164
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
165
|
+
flags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
166
|
+
key: z.ZodString;
|
|
167
|
+
target: z.ZodOptional<z.ZodString>;
|
|
168
|
+
value: z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
169
|
+
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
170
|
+
} | null)[] | {
|
|
171
|
+
[key: string]: string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
172
|
+
} | null)[] | {
|
|
173
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
174
|
+
} | null)[] | {
|
|
175
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
176
|
+
} | null)[] | {
|
|
177
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
178
|
+
} | null)[] | {
|
|
179
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
180
|
+
} | null)[] | {
|
|
181
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
182
|
+
} | null)[] | {
|
|
183
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
184
|
+
} | null)[] | {
|
|
185
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
186
|
+
} | null)[] | {
|
|
187
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
188
|
+
} | null)[] | {
|
|
189
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
190
|
+
} | null)[] | {
|
|
191
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
192
|
+
} | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
193
|
+
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
194
|
+
} | null)[] | {
|
|
195
|
+
[key: string]: string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
196
|
+
} | null)[] | {
|
|
197
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
198
|
+
} | null)[] | {
|
|
199
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
200
|
+
} | null)[] | {
|
|
201
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
202
|
+
} | null)[] | {
|
|
203
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
204
|
+
} | null)[] | {
|
|
205
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
206
|
+
} | null)[] | {
|
|
207
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
208
|
+
} | null)[] | {
|
|
209
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
210
|
+
} | null)[] | {
|
|
211
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
212
|
+
} | null)[] | {
|
|
213
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
214
|
+
} | null)[] | {
|
|
215
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
216
|
+
} | null, unknown>>;
|
|
217
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
218
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
219
|
+
runtime_config: "runtime_config";
|
|
220
|
+
trigger_context: "trigger_context";
|
|
221
|
+
provider_sync: "provider_sync";
|
|
222
|
+
api: "api";
|
|
223
|
+
}>>;
|
|
224
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
225
|
+
name: z.ZodString;
|
|
226
|
+
project: z.ZodOptional<z.ZodString>;
|
|
227
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, z.core.$strip>>;
|
|
229
|
+
status: z.ZodOptional<z.ZodString>;
|
|
230
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
231
|
+
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
232
|
+
}, z.core.$strip>>>;
|
|
233
|
+
hostCapabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
234
|
+
key: z.ZodString;
|
|
235
|
+
source: z.ZodOptional<z.ZodString>;
|
|
236
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
237
|
+
name: z.ZodString;
|
|
238
|
+
project: z.ZodOptional<z.ZodString>;
|
|
239
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
240
|
+
}, z.core.$strip>>;
|
|
241
|
+
}, z.core.$strip>>>;
|
|
165
242
|
runtimeEndpoints: z.ZodOptional<z.ZodObject<{
|
|
166
243
|
apiUrl: z.ZodOptional<z.ZodString>;
|
|
167
244
|
coreUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-commands.d.ts","sourceRoot":"","sources":["../src/widget-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACN,KAAK,gBAAgB,EAErB,KAAK,WAAW,EAEhB,MAAM,oBAAoB,CAAC;AAmB5B,eAAO,MAAM,6BAA6B;;;;;;;;;;;EAAmC,CAAC;AAiD9E,eAAO,MAAM,qBAAqB;;;;;;;;;4BAahC,CAAC;AAiBH,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"widget-commands.d.ts","sourceRoot":"","sources":["../src/widget-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACN,KAAK,gBAAgB,EAErB,KAAK,WAAW,EAEhB,MAAM,oBAAoB,CAAC;AAmB5B,eAAO,MAAM,6BAA6B;;;;;;;;;;;EAAmC,CAAC;AAiD9E,eAAO,MAAM,qBAAqB;;;;;;;;;4BAahC,CAAC;AAiBH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAwDrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE/E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,CAE5D;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,CAEtE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,oBAAoB,CAEvE"}
|
package/dist/widget-config.d.ts
CHANGED
|
@@ -37,6 +37,85 @@ export declare const authConfigInputSchema: z.ZodObject<{
|
|
|
37
37
|
token: z.ZodString;
|
|
38
38
|
}, z.core.$strip>, z.ZodNull]>>;
|
|
39
39
|
}, z.core.$strip>;
|
|
40
|
+
export declare const flagsConfigInputSchema: z.ZodArray<z.ZodObject<{
|
|
41
|
+
key: z.ZodString;
|
|
42
|
+
target: z.ZodOptional<z.ZodString>;
|
|
43
|
+
value: z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
44
|
+
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
45
|
+
} | null)[] | {
|
|
46
|
+
[key: string]: string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
47
|
+
} | null)[] | {
|
|
48
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
49
|
+
} | null)[] | {
|
|
50
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
51
|
+
} | null)[] | {
|
|
52
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
53
|
+
} | null)[] | {
|
|
54
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
55
|
+
} | null)[] | {
|
|
56
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
57
|
+
} | null)[] | {
|
|
58
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
59
|
+
} | null)[] | {
|
|
60
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
61
|
+
} | null)[] | {
|
|
62
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
63
|
+
} | null)[] | {
|
|
64
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
65
|
+
} | null)[] | {
|
|
66
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
67
|
+
} | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
68
|
+
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
69
|
+
} | null)[] | {
|
|
70
|
+
[key: string]: string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
71
|
+
} | null)[] | {
|
|
72
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
73
|
+
} | null)[] | {
|
|
74
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
75
|
+
} | null)[] | {
|
|
76
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
77
|
+
} | null)[] | {
|
|
78
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
79
|
+
} | null)[] | {
|
|
80
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
81
|
+
} | null)[] | {
|
|
82
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
83
|
+
} | null)[] | {
|
|
84
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
85
|
+
} | null)[] | {
|
|
86
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
87
|
+
} | null)[] | {
|
|
88
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
89
|
+
} | null)[] | {
|
|
90
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
91
|
+
} | null, unknown>>;
|
|
92
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
93
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
94
|
+
runtime_config: "runtime_config";
|
|
95
|
+
trigger_context: "trigger_context";
|
|
96
|
+
provider_sync: "provider_sync";
|
|
97
|
+
api: "api";
|
|
98
|
+
}>>;
|
|
99
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
100
|
+
name: z.ZodString;
|
|
101
|
+
project: z.ZodOptional<z.ZodString>;
|
|
102
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
status: z.ZodOptional<z.ZodString>;
|
|
105
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
106
|
+
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
export type FlagsConfigInput = z.output<typeof flagsConfigInputSchema>;
|
|
109
|
+
export declare const hostCapabilitiesConfigInputSchema: z.ZodArray<z.ZodObject<{
|
|
110
|
+
key: z.ZodString;
|
|
111
|
+
source: z.ZodOptional<z.ZodString>;
|
|
112
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
113
|
+
name: z.ZodString;
|
|
114
|
+
project: z.ZodOptional<z.ZodString>;
|
|
115
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, z.core.$strip>>;
|
|
117
|
+
}, z.core.$strip>>;
|
|
118
|
+
export type HostCapabilitiesConfigInput = z.output<typeof hostCapabilitiesConfigInputSchema>;
|
|
40
119
|
export declare const configureOptionsSchema: z.ZodObject<{
|
|
41
120
|
colorScheme: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
42
121
|
autoDetectColorScheme: z.ZodArray<z.ZodString>;
|
|
@@ -126,6 +205,83 @@ export declare const initOptionsSchema: z.ZodObject<{
|
|
|
126
205
|
notes: z.ZodOptional<z.ZodString>;
|
|
127
206
|
}, z.core.$strip>>;
|
|
128
207
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
208
|
+
flags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
209
|
+
key: z.ZodString;
|
|
210
|
+
target: z.ZodOptional<z.ZodString>;
|
|
211
|
+
value: z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
212
|
+
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
213
|
+
} | null)[] | {
|
|
214
|
+
[key: string]: string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
215
|
+
} | null)[] | {
|
|
216
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
217
|
+
} | null)[] | {
|
|
218
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
219
|
+
} | null)[] | {
|
|
220
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
221
|
+
} | null)[] | {
|
|
222
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
223
|
+
} | null)[] | {
|
|
224
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
225
|
+
} | null)[] | {
|
|
226
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
227
|
+
} | null)[] | {
|
|
228
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
229
|
+
} | null)[] | {
|
|
230
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
231
|
+
} | null)[] | {
|
|
232
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
233
|
+
} | null)[] | {
|
|
234
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
235
|
+
} | null, unknown, z.core.$ZodTypeInternals<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
236
|
+
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
237
|
+
} | null)[] | {
|
|
238
|
+
[key: string]: string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
239
|
+
} | null)[] | {
|
|
240
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
241
|
+
} | null)[] | {
|
|
242
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
243
|
+
} | null)[] | {
|
|
244
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
245
|
+
} | null)[] | {
|
|
246
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
247
|
+
} | null)[] | {
|
|
248
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
249
|
+
} | null)[] | {
|
|
250
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
251
|
+
} | null)[] | {
|
|
252
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
253
|
+
} | null)[] | {
|
|
254
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
255
|
+
} | null)[] | {
|
|
256
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
257
|
+
} | null)[] | {
|
|
258
|
+
[key: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null;
|
|
259
|
+
} | null, unknown>>;
|
|
260
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
261
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
262
|
+
runtime_config: "runtime_config";
|
|
263
|
+
trigger_context: "trigger_context";
|
|
264
|
+
provider_sync: "provider_sync";
|
|
265
|
+
api: "api";
|
|
266
|
+
}>>;
|
|
267
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
268
|
+
name: z.ZodString;
|
|
269
|
+
project: z.ZodOptional<z.ZodString>;
|
|
270
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
271
|
+
}, z.core.$strip>>;
|
|
272
|
+
status: z.ZodOptional<z.ZodString>;
|
|
273
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
274
|
+
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
275
|
+
}, z.core.$strip>>>;
|
|
276
|
+
hostCapabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
277
|
+
key: z.ZodString;
|
|
278
|
+
source: z.ZodOptional<z.ZodString>;
|
|
279
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
280
|
+
name: z.ZodString;
|
|
281
|
+
project: z.ZodOptional<z.ZodString>;
|
|
282
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
283
|
+
}, z.core.$strip>>;
|
|
284
|
+
}, z.core.$strip>>>;
|
|
129
285
|
runtimeEndpoints: z.ZodOptional<z.ZodObject<{
|
|
130
286
|
apiUrl: z.ZodOptional<z.ZodString>;
|
|
131
287
|
coreUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-config.d.ts","sourceRoot":"","sources":["../src/widget-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"widget-config.d.ts","sourceRoot":"","sources":["../src/widget-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AA4BzB,eAAO,MAAM,wBAAwB;;;;;;;EAA8B,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,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BAAiB,CAAC,CAAC;AAE7D,eAAO,MAAM,2BAA2B,EAAE,sBAEzC,CAAC"}
|
package/dist/widget-config.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
import { appEventCapabilitySchema, appEventFlagSchema } from "./app-event.js";
|
|
2
3
|
import { clientMetaSchema } from "./client-meta.js";
|
|
3
4
|
import { DEFAULT_AUTO_DETECT_COLOR_SCHEME_ATTRS } from "./defaults.js";
|
|
4
5
|
import { runtimeEndpointsSchema } from "./runtime-endpoints.js";
|
|
@@ -43,6 +44,8 @@ export const authConfigInputSchema = z.object({
|
|
|
43
44
|
z.null(),
|
|
44
45
|
])),
|
|
45
46
|
});
|
|
47
|
+
export const flagsConfigInputSchema = z.array(appEventFlagSchema);
|
|
48
|
+
export const hostCapabilitiesConfigInputSchema = z.array(appEventCapabilitySchema);
|
|
46
49
|
export const configureOptionsSchema = z
|
|
47
50
|
.object({
|
|
48
51
|
colorScheme: z.optional(colorSchemeConfigInputSchema),
|
|
@@ -59,6 +62,8 @@ export const initOptionsSchema = z
|
|
|
59
62
|
defaultConsent: z.optional(consentConfigInputSchema),
|
|
60
63
|
clientMeta: z.optional(clientMetaSchema),
|
|
61
64
|
capabilities: z.optional(z.array(z.string())),
|
|
65
|
+
flags: z.optional(flagsConfigInputSchema),
|
|
66
|
+
hostCapabilities: z.optional(hostCapabilitiesConfigInputSchema),
|
|
62
67
|
runtimeEndpoints: z.optional(runtimeEndpointsSchema),
|
|
63
68
|
})
|
|
64
69
|
.strict();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getuserfeedback/protocol",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
4
4
|
"description": "getuserfeedback widget protocol — host surface and (later) wire protocol",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"getuserfeedback",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"lint": "ultracite check .",
|
|
79
|
-
"build": "bun
|
|
79
|
+
"build": "bun ../../scripts/clean-build-output.ts dist tsconfig.tsbuildinfo && tsc -b tsconfig.json",
|
|
80
80
|
"typecheck": "tsc -b tsconfig.json",
|
|
81
81
|
"test": "bun test --dots",
|
|
82
82
|
"pack:verify": "node ../../scripts/pack-and-verify.cjs",
|