@microsoft/agents-activity 1.11.0-beta.1.gbb71e7eb94 → 1.11.0-beta.2.g7511806a43

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.
@@ -55,4 +55,15 @@ export declare enum ActionTypes {
55
55
  /**
56
56
  * Zod schema for validating ActionTypes.
57
57
  */
58
- export declare const actionTypesZodSchema: z.ZodEnum<["openUrl", "imBack", "postBack", "playAudio", "showImage", "downloadFile", "signin", "call", "messageBack", "openApp"]>;
58
+ export declare const actionTypesZodSchema: z.ZodEnum<{
59
+ call: "call";
60
+ downloadFile: "downloadFile";
61
+ imBack: "imBack";
62
+ messageBack: "messageBack";
63
+ openApp: "openApp";
64
+ openUrl: "openUrl";
65
+ playAudio: "playAudio";
66
+ postBack: "postBack";
67
+ showImage: "showImage";
68
+ signin: "signin";
69
+ }>;
@@ -45,7 +45,18 @@ export interface CardAction {
45
45
  * Zod schema for validating CardAction.
46
46
  */
47
47
  export declare const cardActionZodSchema: z.ZodObject<{
48
- type: z.ZodUnion<[z.ZodEnum<["openUrl", "imBack", "postBack", "playAudio", "showImage", "downloadFile", "signin", "call", "messageBack", "openApp"]>, z.ZodString]>;
48
+ type: z.ZodUnion<readonly [z.ZodEnum<{
49
+ call: "call";
50
+ downloadFile: "downloadFile";
51
+ imBack: "imBack";
52
+ messageBack: "messageBack";
53
+ openApp: "openApp";
54
+ openUrl: "openUrl";
55
+ playAudio: "playAudio";
56
+ postBack: "postBack";
57
+ showImage: "showImage";
58
+ signin: "signin";
59
+ }>, z.ZodString]>;
49
60
  title: z.ZodString;
50
61
  image: z.ZodOptional<z.ZodString>;
51
62
  text: z.ZodOptional<z.ZodString>;
@@ -53,22 +64,4 @@ export declare const cardActionZodSchema: z.ZodObject<{
53
64
  value: z.ZodOptional<z.ZodAny>;
54
65
  channelData: z.ZodOptional<z.ZodUnknown>;
55
66
  imageAltText: z.ZodOptional<z.ZodString>;
56
- }, "strip", z.ZodTypeAny, {
57
- type: string;
58
- title: string;
59
- image?: string | undefined;
60
- text?: string | undefined;
61
- displayText?: string | undefined;
62
- value?: any;
63
- channelData?: unknown;
64
- imageAltText?: string | undefined;
65
- }, {
66
- type: string;
67
- title: string;
68
- image?: string | undefined;
69
- text?: string | undefined;
70
- displayText?: string | undefined;
71
- value?: any;
72
- channelData?: unknown;
73
- imageAltText?: string | undefined;
74
- }>;
67
+ }, z.core.$strip>;
@@ -29,24 +29,12 @@ export interface SemanticAction {
29
29
  */
30
30
  export declare const semanticActionZodSchema: z.ZodObject<{
31
31
  id: z.ZodString;
32
- state: z.ZodUnion<[z.ZodEnum<["start", "continue", "done"]>, z.ZodString]>;
32
+ state: z.ZodUnion<readonly [z.ZodEnum<{
33
+ continue: "continue";
34
+ done: "done";
35
+ start: "start";
36
+ }>, z.ZodString]>;
33
37
  entities: z.ZodRecord<z.ZodString, z.ZodObject<{
34
38
  type: z.ZodString;
35
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
36
- type: z.ZodString;
37
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
38
- type: z.ZodString;
39
- }, z.ZodTypeAny, "passthrough">>>;
40
- }, "strip", z.ZodTypeAny, {
41
- id: string;
42
- state: string;
43
- entities: Record<string, z.objectOutputType<{
44
- type: z.ZodString;
45
- }, z.ZodTypeAny, "passthrough">>;
46
- }, {
47
- id: string;
48
- state: string;
49
- entities: Record<string, z.objectInputType<{
50
- type: z.ZodString;
51
- }, z.ZodTypeAny, "passthrough">>;
52
- }>;
39
+ }, z.core.$loose>>;
40
+ }, z.core.$strip>;
@@ -14,6 +14,6 @@ const semanticActionStateTypes_1 = require("./semanticActionStateTypes");
14
14
  exports.semanticActionZodSchema = zod_1.z.object({
15
15
  id: zod_1.z.string().min(1),
16
16
  state: zod_1.z.union([semanticActionStateTypes_1.semanticActionStateTypesZodSchema, zod_1.z.string().min(1)]),
17
- entities: zod_1.z.record(entity_1.entityZodSchema)
17
+ entities: zod_1.z.record(zod_1.z.string(), entity_1.entityZodSchema)
18
18
  });
19
19
  //# sourceMappingURL=semanticAction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"semanticAction.js","sourceRoot":"","sources":["../../../src/action/semanticAction.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AACvB,6CAA0D;AAC1D,yEAAwG;AAoBxG;;GAEG;AACU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,4DAAiC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACtE,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,wBAAe,CAAC;CACpC,CAAC,CAAA"}
1
+ {"version":3,"file":"semanticAction.js","sourceRoot":"","sources":["../../../src/action/semanticAction.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AACvB,6CAA0D;AAC1D,yEAAwG;AAoBxG;;GAEG;AACU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,4DAAiC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACtE,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,wBAAe,CAAC;CAChD,CAAC,CAAA"}
@@ -23,4 +23,8 @@ export declare enum SemanticActionStateTypes {
23
23
  /**
24
24
  * Zod schema for validating SemanticActionStateTypes.
25
25
  */
26
- export declare const semanticActionStateTypesZodSchema: z.ZodEnum<["start", "continue", "done"]>;
26
+ export declare const semanticActionStateTypesZodSchema: z.ZodEnum<{
27
+ continue: "continue";
28
+ done: "done";
29
+ start: "start";
30
+ }>;
@@ -21,9 +21,20 @@ export interface SuggestedActions {
21
21
  * Zod schema for validating SuggestedActions.
22
22
  */
23
23
  export declare const suggestedActionsZodSchema: z.ZodObject<{
24
- to: z.ZodArray<z.ZodString, "many">;
24
+ to: z.ZodArray<z.ZodString>;
25
25
  actions: z.ZodArray<z.ZodObject<{
26
- type: z.ZodUnion<[z.ZodEnum<["openUrl", "imBack", "postBack", "playAudio", "showImage", "downloadFile", "signin", "call", "messageBack", "openApp"]>, z.ZodString]>;
26
+ type: z.ZodUnion<readonly [z.ZodEnum<{
27
+ call: "call";
28
+ downloadFile: "downloadFile";
29
+ imBack: "imBack";
30
+ messageBack: "messageBack";
31
+ openApp: "openApp";
32
+ openUrl: "openUrl";
33
+ playAudio: "playAudio";
34
+ postBack: "postBack";
35
+ showImage: "showImage";
36
+ signin: "signin";
37
+ }>, z.ZodString]>;
27
38
  title: z.ZodString;
28
39
  image: z.ZodOptional<z.ZodString>;
29
40
  text: z.ZodOptional<z.ZodString>;
@@ -31,47 +42,5 @@ export declare const suggestedActionsZodSchema: z.ZodObject<{
31
42
  value: z.ZodOptional<z.ZodAny>;
32
43
  channelData: z.ZodOptional<z.ZodUnknown>;
33
44
  imageAltText: z.ZodOptional<z.ZodString>;
34
- }, "strip", z.ZodTypeAny, {
35
- type: string;
36
- title: string;
37
- image?: string | undefined;
38
- text?: string | undefined;
39
- displayText?: string | undefined;
40
- value?: any;
41
- channelData?: unknown;
42
- imageAltText?: string | undefined;
43
- }, {
44
- type: string;
45
- title: string;
46
- image?: string | undefined;
47
- text?: string | undefined;
48
- displayText?: string | undefined;
49
- value?: any;
50
- channelData?: unknown;
51
- imageAltText?: string | undefined;
52
- }>, "many">;
53
- }, "strip", z.ZodTypeAny, {
54
- to: string[];
55
- actions: {
56
- type: string;
57
- title: string;
58
- image?: string | undefined;
59
- text?: string | undefined;
60
- displayText?: string | undefined;
61
- value?: any;
62
- channelData?: unknown;
63
- imageAltText?: string | undefined;
64
- }[];
65
- }, {
66
- to: string[];
67
- actions: {
68
- type: string;
69
- title: string;
70
- image?: string | undefined;
71
- text?: string | undefined;
72
- displayText?: string | undefined;
73
- value?: any;
74
- channelData?: unknown;
75
- imageAltText?: string | undefined;
76
- }[];
77
- }>;
45
+ }, z.core.$strip>>;
46
+ }, z.core.$strip>;