@kl1/contracts 1.3.24 → 1.3.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,7 @@ export declare const cxLogContract: {
15
15
  channelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
16
  trunks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17
17
  queueId: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18
- agentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18
+ agentIds: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>, string[], string[] | Record<string, string>>>;
19
19
  direction: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"inbound">, z.ZodLiteral<"outbound">]>, "many">>;
20
20
  disposition: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
21
21
  sentimentScore: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"positive">, z.ZodLiteral<"neutral">, z.ZodLiteral<"negative">]>, "many">>;
@@ -81,7 +81,7 @@ export declare const cxLogContract: {
81
81
  channelIds?: string[] | undefined;
82
82
  trunks?: string[] | undefined;
83
83
  queueId?: string[] | undefined;
84
- agentIds?: string[] | undefined;
84
+ agentIds?: string[] | Record<string, string> | undefined;
85
85
  direction?: ("inbound" | "outbound")[] | undefined;
86
86
  disposition?: string[] | undefined;
87
87
  sentimentScore?: ("negative" | "positive" | "neutral")[] | undefined;
@@ -10561,7 +10561,7 @@ export declare const cxLogContract: {
10561
10561
  channelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10562
10562
  trunks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10563
10563
  queueId: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10564
- agentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10564
+ agentIds: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>, string[], string[] | Record<string, string>>>;
10565
10565
  direction: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"inbound">, z.ZodLiteral<"outbound">]>, "many">>;
10566
10566
  disposition: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10567
10567
  sentimentScore: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"positive">, z.ZodLiteral<"neutral">, z.ZodLiteral<"negative">]>, "many">>;
@@ -10627,7 +10627,7 @@ export declare const cxLogContract: {
10627
10627
  channelIds?: string[] | undefined;
10628
10628
  trunks?: string[] | undefined;
10629
10629
  queueId?: string[] | undefined;
10630
- agentIds?: string[] | undefined;
10630
+ agentIds?: string[] | Record<string, string> | undefined;
10631
10631
  direction?: ("inbound" | "outbound")[] | undefined;
10632
10632
  disposition?: string[] | undefined;
10633
10633
  sentimentScore?: ("negative" | "positive" | "neutral")[] | undefined;
@@ -7,7 +7,7 @@ export declare const GetAllCxLogQueryParamsSchema: z.ZodOptional<z.ZodObject<{
7
7
  channelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8
8
  trunks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
9
  queueId: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10
- agentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10
+ agentIds: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>, string[], string[] | Record<string, string>>>;
11
11
  direction: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"inbound">, z.ZodLiteral<"outbound">]>, "many">>;
12
12
  disposition: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13
13
  sentimentScore: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"positive">, z.ZodLiteral<"neutral">, z.ZodLiteral<"negative">]>, "many">>;
@@ -73,7 +73,7 @@ export declare const GetAllCxLogQueryParamsSchema: z.ZodOptional<z.ZodObject<{
73
73
  channelIds?: string[] | undefined;
74
74
  trunks?: string[] | undefined;
75
75
  queueId?: string[] | undefined;
76
- agentIds?: string[] | undefined;
76
+ agentIds?: string[] | Record<string, string> | undefined;
77
77
  direction?: ("inbound" | "outbound")[] | undefined;
78
78
  disposition?: string[] | undefined;
79
79
  sentimentScore?: ("negative" | "positive" | "neutral")[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/cx-log/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAgBpB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4B5B,CAAC"}
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/cx-log/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAgBpB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsC5B,CAAC"}
@@ -761,6 +761,248 @@ export declare const widgetContract: {
761
761
  'x-client-timezone'?: string | undefined;
762
762
  }>>>;
763
763
  };
764
+ getContactProfileWidgets: {
765
+ summary: "Get contact profile widgets";
766
+ method: "GET";
767
+ responses: {
768
+ 200: z.ZodArray<z.ZodObject<{
769
+ id: z.ZodString;
770
+ createdAt: z.ZodDate;
771
+ updatedAt: z.ZodDate;
772
+ deletedAt: z.ZodNullable<z.ZodDate>;
773
+ name: z.ZodString;
774
+ description: z.ZodNullable<z.ZodString>;
775
+ position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
776
+ fields: z.ZodObject<{
777
+ data: z.ZodArray<z.ZodString, "many">;
778
+ }, "strip", z.ZodTypeAny, {
779
+ data: string[];
780
+ }, {
781
+ data: string[];
782
+ }>;
783
+ url: z.ZodString;
784
+ type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
785
+ headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
786
+ key: z.ZodString;
787
+ value: z.ZodString;
788
+ }, "strip", z.ZodTypeAny, {
789
+ key: string;
790
+ value: string;
791
+ }, {
792
+ key: string;
793
+ value: string;
794
+ }>, "many">>;
795
+ method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
796
+ fileKey: z.ZodNullable<z.ZodString>;
797
+ fileUrl: z.ZodNullable<z.ZodString>;
798
+ }, "strip", z.ZodTypeAny, {
799
+ name: string;
800
+ type: "custom" | "iframe" | null;
801
+ id: string;
802
+ url: string;
803
+ position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
804
+ method: "get" | "post" | null;
805
+ description: string | null;
806
+ createdAt: Date;
807
+ updatedAt: Date;
808
+ deletedAt: Date | null;
809
+ headers: {
810
+ key: string;
811
+ value: string;
812
+ }[] | null;
813
+ fileKey: string | null;
814
+ fileUrl: string | null;
815
+ fields: {
816
+ data: string[];
817
+ };
818
+ }, {
819
+ name: string;
820
+ type: "custom" | "iframe" | null;
821
+ id: string;
822
+ url: string;
823
+ position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
824
+ method: "get" | "post" | null;
825
+ description: string | null;
826
+ createdAt: Date;
827
+ updatedAt: Date;
828
+ deletedAt: Date | null;
829
+ headers: {
830
+ key: string;
831
+ value: string;
832
+ }[] | null;
833
+ fileKey: string | null;
834
+ fileUrl: string | null;
835
+ fields: {
836
+ data: string[];
837
+ };
838
+ }>, "many">;
839
+ 400: z.ZodObject<{
840
+ message: z.ZodString;
841
+ }, "strip", z.ZodTypeAny, {
842
+ message: string;
843
+ }, {
844
+ message: string;
845
+ }>;
846
+ 401: z.ZodObject<{
847
+ message: z.ZodString;
848
+ error: z.ZodAny;
849
+ }, "strip", z.ZodTypeAny, {
850
+ message: string;
851
+ error?: any;
852
+ }, {
853
+ message: string;
854
+ error?: any;
855
+ }>;
856
+ 500: z.ZodObject<{
857
+ message: z.ZodString;
858
+ error: z.ZodAny;
859
+ }, "strip", z.ZodTypeAny, {
860
+ message: string;
861
+ error?: any;
862
+ }, {
863
+ message: string;
864
+ error?: any;
865
+ }>;
866
+ };
867
+ path: "ms/widget/contact_profile";
868
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
869
+ 'x-tenant': z.ZodString;
870
+ 'x-service-token': z.ZodString;
871
+ 'x-code': z.ZodOptional<z.ZodString>;
872
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
873
+ }, "strip", z.ZodTypeAny, {
874
+ 'x-tenant': string;
875
+ 'x-service-token': string;
876
+ 'x-client-timezone': string;
877
+ 'x-code'?: string | undefined;
878
+ }, {
879
+ 'x-tenant': string;
880
+ 'x-service-token': string;
881
+ 'x-code'?: string | undefined;
882
+ 'x-client-timezone'?: string | undefined;
883
+ }>>>;
884
+ };
885
+ getInboxDetailWidgets: {
886
+ summary: "Get inbox detail widgets";
887
+ method: "GET";
888
+ responses: {
889
+ 200: z.ZodArray<z.ZodObject<{
890
+ id: z.ZodString;
891
+ createdAt: z.ZodDate;
892
+ updatedAt: z.ZodDate;
893
+ deletedAt: z.ZodNullable<z.ZodDate>;
894
+ name: z.ZodString;
895
+ description: z.ZodNullable<z.ZodString>;
896
+ position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
897
+ fields: z.ZodObject<{
898
+ data: z.ZodArray<z.ZodString, "many">;
899
+ }, "strip", z.ZodTypeAny, {
900
+ data: string[];
901
+ }, {
902
+ data: string[];
903
+ }>;
904
+ url: z.ZodString;
905
+ type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
906
+ headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
907
+ key: z.ZodString;
908
+ value: z.ZodString;
909
+ }, "strip", z.ZodTypeAny, {
910
+ key: string;
911
+ value: string;
912
+ }, {
913
+ key: string;
914
+ value: string;
915
+ }>, "many">>;
916
+ method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
917
+ fileKey: z.ZodNullable<z.ZodString>;
918
+ fileUrl: z.ZodNullable<z.ZodString>;
919
+ }, "strip", z.ZodTypeAny, {
920
+ name: string;
921
+ type: "custom" | "iframe" | null;
922
+ id: string;
923
+ url: string;
924
+ position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
925
+ method: "get" | "post" | null;
926
+ description: string | null;
927
+ createdAt: Date;
928
+ updatedAt: Date;
929
+ deletedAt: Date | null;
930
+ headers: {
931
+ key: string;
932
+ value: string;
933
+ }[] | null;
934
+ fileKey: string | null;
935
+ fileUrl: string | null;
936
+ fields: {
937
+ data: string[];
938
+ };
939
+ }, {
940
+ name: string;
941
+ type: "custom" | "iframe" | null;
942
+ id: string;
943
+ url: string;
944
+ position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
945
+ method: "get" | "post" | null;
946
+ description: string | null;
947
+ createdAt: Date;
948
+ updatedAt: Date;
949
+ deletedAt: Date | null;
950
+ headers: {
951
+ key: string;
952
+ value: string;
953
+ }[] | null;
954
+ fileKey: string | null;
955
+ fileUrl: string | null;
956
+ fields: {
957
+ data: string[];
958
+ };
959
+ }>, "many">;
960
+ 400: z.ZodObject<{
961
+ message: z.ZodString;
962
+ }, "strip", z.ZodTypeAny, {
963
+ message: string;
964
+ }, {
965
+ message: string;
966
+ }>;
967
+ 401: z.ZodObject<{
968
+ message: z.ZodString;
969
+ error: z.ZodAny;
970
+ }, "strip", z.ZodTypeAny, {
971
+ message: string;
972
+ error?: any;
973
+ }, {
974
+ message: string;
975
+ error?: any;
976
+ }>;
977
+ 500: z.ZodObject<{
978
+ message: z.ZodString;
979
+ error: z.ZodAny;
980
+ }, "strip", z.ZodTypeAny, {
981
+ message: string;
982
+ error?: any;
983
+ }, {
984
+ message: string;
985
+ error?: any;
986
+ }>;
987
+ };
988
+ path: "ms/widget/inbox_detail";
989
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
990
+ 'x-tenant': z.ZodString;
991
+ 'x-service-token': z.ZodString;
992
+ 'x-code': z.ZodOptional<z.ZodString>;
993
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
994
+ }, "strip", z.ZodTypeAny, {
995
+ 'x-tenant': string;
996
+ 'x-service-token': string;
997
+ 'x-client-timezone': string;
998
+ 'x-code'?: string | undefined;
999
+ }, {
1000
+ 'x-tenant': string;
1001
+ 'x-service-token': string;
1002
+ 'x-code'?: string | undefined;
1003
+ 'x-client-timezone'?: string | undefined;
1004
+ }>>>;
1005
+ };
764
1006
  getWidgetById: {
765
1007
  summary: "Get widget by id";
766
1008
  method: "GET";
@@ -905,13 +1147,54 @@ export declare const widgetContract: {
905
1147
  responses: {
906
1148
  201: z.ZodObject<{
907
1149
  requestId: z.ZodString;
908
- url: z.ZodString;
1150
+ widget: z.ZodObject<{
1151
+ token: z.ZodNullable<z.ZodString>;
1152
+ headers: z.ZodArray<z.ZodObject<{
1153
+ key: z.ZodString;
1154
+ value: z.ZodString;
1155
+ }, "strip", z.ZodTypeAny, {
1156
+ key: string;
1157
+ value: string;
1158
+ }, {
1159
+ key: string;
1160
+ value: string;
1161
+ }>, "many">;
1162
+ url: z.ZodString;
1163
+ }, "strip", z.ZodTypeAny, {
1164
+ url: string;
1165
+ headers: {
1166
+ key: string;
1167
+ value: string;
1168
+ }[];
1169
+ token: string | null;
1170
+ }, {
1171
+ url: string;
1172
+ headers: {
1173
+ key: string;
1174
+ value: string;
1175
+ }[];
1176
+ token: string | null;
1177
+ }>;
909
1178
  }, "strip", z.ZodTypeAny, {
910
- url: string;
911
1179
  requestId: string;
1180
+ widget: {
1181
+ url: string;
1182
+ headers: {
1183
+ key: string;
1184
+ value: string;
1185
+ }[];
1186
+ token: string | null;
1187
+ };
912
1188
  }, {
913
- url: string;
914
1189
  requestId: string;
1190
+ widget: {
1191
+ url: string;
1192
+ headers: {
1193
+ key: string;
1194
+ value: string;
1195
+ }[];
1196
+ token: string | null;
1197
+ };
915
1198
  }>;
916
1199
  400: z.ZodObject<{
917
1200
  message: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/widget/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAQpB,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EACnB,MAAM,cAAc,CAAC;AAGtB,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACrE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACrE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,2BAA2B,CACnC,CAAC;AACF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAClD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0L1B,CAAC"}
package/dist/index.js CHANGED
@@ -743,8 +743,6 @@ var messageTypes = [
743
743
  import_zod18.default.literal("text_with_image"),
744
744
  import_zod18.default.literal("reaction"),
745
745
  import_zod18.default.literal("contacts"),
746
- // messenger referral
747
- import_zod18.default.literal("referral"),
748
746
  // system
749
747
  import_zod18.default.literal("csat"),
750
748
  import_zod18.default.literal("assign"),
@@ -4182,7 +4180,17 @@ var GetAllCxLogQueryParamsSchema = DefaultQueryParamsSchema.extend({
4182
4180
  channelIds: import_zod51.default.array(import_zod51.default.string().uuid()),
4183
4181
  trunks: import_zod51.default.array(import_zod51.default.string()),
4184
4182
  queueId: import_zod51.default.array(import_zod51.default.string()),
4185
- agentIds: import_zod51.default.array(import_zod51.default.string()),
4183
+ agentIds: import_zod51.default.union([
4184
+ import_zod51.default.array(import_zod51.default.string()),
4185
+ // If it's an array
4186
+ import_zod51.default.record(import_zod51.default.string())
4187
+ // If it's an object
4188
+ ]).transform((val) => {
4189
+ if (Array.isArray(val)) {
4190
+ return val;
4191
+ }
4192
+ return Object.values(val);
4193
+ }),
4186
4194
  direction: import_zod51.default.array(import_zod51.default.union([import_zod51.default.literal("inbound"), import_zod51.default.literal("outbound")])),
4187
4195
  disposition: import_zod51.default.array(import_zod51.default.string()),
4188
4196
  sentimentScore: import_zod51.default.array(sentimentScoreSchema),
@@ -7203,6 +7211,34 @@ var widgetContract = (0, import_core29.initContract)().router(
7203
7211
  },
7204
7212
  summary: "Get contact widgets"
7205
7213
  },
7214
+ getContactProfileWidgets: {
7215
+ method: "GET",
7216
+ path: "/contact_profile",
7217
+ headers: DefaultHeaderSchema,
7218
+ responses: {
7219
+ 200: import_zod88.default.array(WidgetSchema),
7220
+ 400: import_zod88.default.object({
7221
+ message: import_zod88.default.string()
7222
+ }),
7223
+ 401: DefaultUnauthorizedSchema,
7224
+ 500: DefaultErrorResponseSchema
7225
+ },
7226
+ summary: "Get contact profile widgets"
7227
+ },
7228
+ getInboxDetailWidgets: {
7229
+ method: "GET",
7230
+ path: "/inbox_detail",
7231
+ headers: DefaultHeaderSchema,
7232
+ responses: {
7233
+ 200: import_zod88.default.array(WidgetSchema),
7234
+ 400: import_zod88.default.object({
7235
+ message: import_zod88.default.string()
7236
+ }),
7237
+ 401: DefaultUnauthorizedSchema,
7238
+ 500: DefaultErrorResponseSchema
7239
+ },
7240
+ summary: "Get inbox detail widgets"
7241
+ },
7206
7242
  getWidgetById: {
7207
7243
  method: "GET",
7208
7244
  path: "/:id",
@@ -7225,7 +7261,11 @@ var widgetContract = (0, import_core29.initContract)().router(
7225
7261
  headers: DefaultHeaderSchema,
7226
7262
  responses: {
7227
7263
  201: DefaultSuccessResponseSchema.extend({
7228
- url: import_zod88.default.string()
7264
+ widget: import_zod88.default.object({
7265
+ token: import_zod88.default.string().nullable(),
7266
+ headers: import_zod88.default.array(WidgetHeaderSchema),
7267
+ url: import_zod88.default.string()
7268
+ })
7229
7269
  }),
7230
7270
  400: import_zod88.default.object({
7231
7271
  message: import_zod88.default.string()