@getuserfeedback/protocol 1.5.0 → 1.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/flow-display.d.ts +13 -0
- package/dist/flow-display.d.ts.map +1 -1
- package/dist/flow-display.js +9 -0
- package/dist/host/command-envelope-schema.d.ts +872 -0
- package/dist/host/command-envelope-schema.d.ts.map +1 -0
- package/dist/host/command-envelope-schema.js +18 -0
- package/dist/host/command-envelope.d.ts +2 -1
- package/dist/host/command-envelope.d.ts.map +1 -1
- package/dist/host/constants.d.ts.map +1 -1
- package/dist/host/sdk-types.d.ts +27 -1
- package/dist/host/sdk-types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/response-metadata.d.ts +5 -0
- package/dist/response-metadata.d.ts.map +1 -0
- package/dist/response-metadata.js +8 -0
- package/dist/webview-transport.d.ts +18 -0
- package/dist/webview-transport.d.ts.map +1 -1
- package/dist/widget-commands.d.ts +9 -0
- package/dist/widget-commands.d.ts.map +1 -1
- package/dist/widget-commands.js +2 -0
- package/package.json +7 -1
- package/src/flow-display.test.ts +35 -0
- package/src/flow-display.ts +17 -0
- package/src/host/command-envelope-schema.ts +24 -0
- package/src/host/command-envelope.ts +3 -0
- package/src/host/constants.ts +5 -1
- package/src/host/sdk-types.ts +34 -0
- package/src/index.ts +6 -0
- package/src/protocol-root.test.ts +63 -0
- package/src/response-metadata.ts +10 -0
- package/src/widget-commands.ts +2 -0
package/dist/flow-display.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export declare const runtimeDisplayEligibilitySchema: z.ZodMiniObject<{
|
|
|
5
5
|
path: z.ZodMiniString<string>;
|
|
6
6
|
}, z.core.$strip>>;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
|
+
export declare const runtimeDisplayTriggerSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
9
|
+
kind: z.ZodMiniLiteral<"immediate">;
|
|
10
|
+
}, z.core.$strip>], "kind">;
|
|
8
11
|
export declare const runtimeDisplayBroadcastOpportunitySchema: z.ZodMiniObject<{
|
|
9
12
|
opportunityId: z.ZodMiniString<string>;
|
|
10
13
|
flowId: z.ZodMiniString<string>;
|
|
@@ -20,6 +23,9 @@ export declare const runtimeDisplayBroadcastOpportunitySchema: z.ZodMiniObject<{
|
|
|
20
23
|
path: z.ZodMiniString<string>;
|
|
21
24
|
}, z.core.$strip>>;
|
|
22
25
|
}, z.core.$strip>;
|
|
26
|
+
runtimeTrigger: z.ZodMiniDefault<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
27
|
+
kind: z.ZodMiniLiteral<"immediate">;
|
|
28
|
+
}, z.core.$strip>], "kind">>;
|
|
23
29
|
}, z.core.$strip>;
|
|
24
30
|
export declare const runtimeDisplayBroadcastsSchema: z.ZodMiniObject<{
|
|
25
31
|
version: z.ZodMiniString<string>;
|
|
@@ -38,6 +44,9 @@ export declare const runtimeDisplayBroadcastsSchema: z.ZodMiniObject<{
|
|
|
38
44
|
path: z.ZodMiniString<string>;
|
|
39
45
|
}, z.core.$strip>>;
|
|
40
46
|
}, z.core.$strip>;
|
|
47
|
+
runtimeTrigger: z.ZodMiniDefault<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
48
|
+
kind: z.ZodMiniLiteral<"immediate">;
|
|
49
|
+
}, z.core.$strip>], "kind">>;
|
|
41
50
|
}, z.core.$strip>>;
|
|
42
51
|
}, z.core.$strip>;
|
|
43
52
|
export declare const flowDisplaySyncRequestSchema: z.ZodMiniObject<{
|
|
@@ -183,12 +192,16 @@ export declare const flowDisplaySyncResponseSchema: z.ZodMiniObject<{
|
|
|
183
192
|
path: z.ZodMiniString<string>;
|
|
184
193
|
}, z.core.$strip>>;
|
|
185
194
|
}, z.core.$strip>;
|
|
195
|
+
runtimeTrigger: z.ZodMiniDefault<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
196
|
+
kind: z.ZodMiniLiteral<"immediate">;
|
|
197
|
+
}, z.core.$strip>], "kind">>;
|
|
186
198
|
}, z.core.$strip>>;
|
|
187
199
|
}, z.core.$strip>;
|
|
188
200
|
}, z.core.$strip>;
|
|
189
201
|
export type RuntimeDisplayBroadcasts = z.output<typeof runtimeDisplayBroadcastsSchema>;
|
|
190
202
|
export type RuntimeDisplayBroadcastOpportunity = z.output<typeof runtimeDisplayBroadcastOpportunitySchema>;
|
|
191
203
|
export type RuntimeDisplayEligibility = z.output<typeof runtimeDisplayEligibilitySchema>;
|
|
204
|
+
export type RuntimeDisplayTrigger = z.output<typeof runtimeDisplayTriggerSchema>;
|
|
192
205
|
export type FlowDisplaySyncRequest = z.output<typeof flowDisplaySyncRequestSchema>;
|
|
193
206
|
export type FlowDisplaySyncResponse = z.output<typeof flowDisplaySyncResponseSchema>;
|
|
194
207
|
//# sourceMappingURL=flow-display.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-display.d.ts","sourceRoot":"","sources":["../src/flow-display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAQ9B,eAAO,MAAM,+BAA+B;;;;;iBAU1C,CAAC;AAEH,eAAO,MAAM,wCAAwC
|
|
1
|
+
{"version":3,"file":"flow-display.d.ts","sourceRoot":"","sources":["../src/flow-display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAQ9B,eAAO,MAAM,+BAA+B;;;;;iBAU1C,CAAC;AAMH,eAAO,MAAM,2BAA2B;;2BAItC,CAAC;AAEH,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;iBAcnD,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;iBAGzC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASvC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC9C,OAAO,8BAA8B,CACrC,CAAC;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CACxD,OAAO,wCAAwC,CAC/C,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAC/C,OAAO,+BAA+B,CACtC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAC3C,OAAO,2BAA2B,CAClC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAC5C,OAAO,4BAA4B,CACnC,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,6BAA6B,CACpC,CAAC"}
|
package/dist/flow-display.js
CHANGED
|
@@ -6,6 +6,14 @@ export const runtimeDisplayEligibilitySchema = z.object({
|
|
|
6
6
|
path: z.string().check(z.trim(), z.minLength(1)),
|
|
7
7
|
})),
|
|
8
8
|
});
|
|
9
|
+
const immediateRuntimeDisplayTrigger = {
|
|
10
|
+
kind: "immediate",
|
|
11
|
+
};
|
|
12
|
+
export const runtimeDisplayTriggerSchema = z.discriminatedUnion("kind", [
|
|
13
|
+
z.object({
|
|
14
|
+
kind: z.literal("immediate"),
|
|
15
|
+
}),
|
|
16
|
+
]);
|
|
9
17
|
export const runtimeDisplayBroadcastOpportunitySchema = z.object({
|
|
10
18
|
opportunityId: z.string().check(z.trim(), z.minLength(1)),
|
|
11
19
|
flowId: z.string().check(z.trim(), z.minLength(1)),
|
|
@@ -16,6 +24,7 @@ export const runtimeDisplayBroadcastOpportunitySchema = z.object({
|
|
|
16
24
|
automationVersionId: z.optional(z.string().check(z.trim(), z.minLength(1))),
|
|
17
25
|
}),
|
|
18
26
|
runtimeEligibility: runtimeDisplayEligibilitySchema,
|
|
27
|
+
runtimeTrigger: z._default(runtimeDisplayTriggerSchema, immediateRuntimeDisplayTrigger),
|
|
19
28
|
});
|
|
20
29
|
export const runtimeDisplayBroadcastsSchema = z.object({
|
|
21
30
|
version: z.string().check(z.trim(), z.minLength(1)),
|