@scout9/app 1.0.0-alpha.0.6.6 → 1.0.0-alpha.0.6.8

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/types/index.d.ts CHANGED
@@ -503,6 +503,10 @@ declare module '@scout9/app' {
503
503
  initial: string | null;
504
504
  };
505
505
 
506
+ /**
507
+ * metadata relationship for the <entity-context>/<entity> element in transcripts and instructions
508
+ * @ingress auto/manual
509
+ */
506
510
  export type EntityToken = {
507
511
  start: number;
508
512
  end: number;
@@ -511,6 +515,38 @@ declare module '@scout9/app' {
511
515
  text?: string | null;
512
516
  }
513
517
 
518
+ /**
519
+ * metadata relationship for the <entity-api> element in transcripts and instructions
520
+ * @ingress auto/manual
521
+ */
522
+ export type EntityApi = {
523
+
524
+ /**
525
+ * REST URI to hit
526
+ */
527
+ uri: string;
528
+
529
+ /**
530
+ * Method to use to call the api, defaults to "POST"
531
+ */
532
+ method?: string;
533
+
534
+ /**
535
+ * Additional payload to include to the api
536
+ */
537
+ body?: ConversationContext;
538
+
539
+ /**
540
+ * Headers to apply to the call
541
+ */
542
+ headers?: Record<string, string>;
543
+
544
+ /**
545
+ * Separate URI to establish OAuth 2.0/JWT tokens
546
+ */
547
+ auth?: Omit<EntityApi, 'auth'>;
548
+ }
549
+
514
550
  export type Message = {
515
551
  /** Unique ID for the message */
516
552
  id: string;
@@ -683,7 +719,6 @@ declare module '@scout9/app' {
683
719
  */
684
720
  anticipate?: Anticipate | undefined;
685
721
 
686
-
687
722
  /**
688
723
  * If provided, it will propagate entity context to your Scout9 entity context store
689
724
  * @ingress auto/manual only
@@ -913,10 +948,10 @@ declare module '@scout9/app/spirits' {
913
948
  progress?: StatusCallback | undefined;
914
949
  };
915
950
  export type ConversationEvent = {
916
- conversation: Change<any> & {
951
+ conversation: (Change<any> & {
917
952
  forwardNote?: string;
918
953
  forward?: any['forward'];
919
- };
954
+ });
920
955
  messages: Change<Array<any>>;
921
956
  context: Change<any>;
922
957
  message: Change<any>;
@@ -5998,6 +6033,59 @@ declare module '@scout9/app/schemas' {
5998
6033
  context?: any;
5999
6034
  note?: string | undefined;
6000
6035
  }>;
6036
+ export const DirectMessageSchema: z.ZodObject<Omit<{
6037
+ id: z.ZodOptional<z.ZodString>;
6038
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
6039
+ content: z.ZodOptional<z.ZodString>;
6040
+ time: z.ZodOptional<z.ZodString>;
6041
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6042
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6043
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
6044
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
6045
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
6046
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
6047
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
6048
+ start: z.ZodNumber;
6049
+ end: z.ZodNumber;
6050
+ type: z.ZodString;
6051
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6052
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6053
+ }, "strip", z.ZodTypeAny, {
6054
+ type: string;
6055
+ end: number;
6056
+ start: number;
6057
+ option?: string | null | undefined;
6058
+ text?: string | null | undefined;
6059
+ }, {
6060
+ type: string;
6061
+ end: number;
6062
+ start: number;
6063
+ option?: string | null | undefined;
6064
+ text?: string | null | undefined;
6065
+ }>, "many">>>>;
6066
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
6067
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
6068
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
6069
+ name?: string | undefined;
6070
+ content?: string | undefined;
6071
+ context?: any;
6072
+ scheduled?: string | undefined;
6073
+ intent?: string | null | undefined;
6074
+ intentScore?: number | null | undefined;
6075
+ delayInSeconds?: number | null | undefined;
6076
+ ignoreTransform?: boolean | undefined;
6077
+ mediaUrls?: string[] | null | undefined;
6078
+ }, {
6079
+ name?: string | undefined;
6080
+ content?: string | undefined;
6081
+ context?: any;
6082
+ scheduled?: string | undefined;
6083
+ intent?: string | null | undefined;
6084
+ intentScore?: number | null | undefined;
6085
+ delayInSeconds?: number | null | undefined;
6086
+ ignoreTransform?: boolean | undefined;
6087
+ mediaUrls?: string[] | null | undefined;
6088
+ }>;
6001
6089
  /**
6002
6090
  * The workflow response object slot
6003
6091
  */
@@ -6042,15 +6130,58 @@ declare module '@scout9/app/schemas' {
6042
6130
  persist?: boolean | undefined;
6043
6131
  }>]>, "many">]>>;
6044
6132
  removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6045
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
6046
- content: z.ZodString;
6047
- transform: z.ZodOptional<z.ZodBoolean>;
6048
- }, "strip", z.ZodTypeAny, {
6049
- content: string;
6050
- transform?: boolean | undefined;
6133
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
6134
+ id: z.ZodOptional<z.ZodString>;
6135
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
6136
+ content: z.ZodOptional<z.ZodString>;
6137
+ time: z.ZodOptional<z.ZodString>;
6138
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6139
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6140
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
6141
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
6142
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
6143
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
6144
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
6145
+ start: z.ZodNumber;
6146
+ end: z.ZodNumber;
6147
+ type: z.ZodString;
6148
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6149
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6150
+ }, "strip", z.ZodTypeAny, {
6151
+ type: string;
6152
+ end: number;
6153
+ start: number;
6154
+ option?: string | null | undefined;
6155
+ text?: string | null | undefined;
6156
+ }, {
6157
+ type: string;
6158
+ end: number;
6159
+ start: number;
6160
+ option?: string | null | undefined;
6161
+ text?: string | null | undefined;
6162
+ }>, "many">>>>;
6163
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
6164
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
6165
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
6166
+ name?: string | undefined;
6167
+ content?: string | undefined;
6168
+ context?: any;
6169
+ scheduled?: string | undefined;
6170
+ intent?: string | null | undefined;
6171
+ intentScore?: number | null | undefined;
6172
+ delayInSeconds?: number | null | undefined;
6173
+ ignoreTransform?: boolean | undefined;
6174
+ mediaUrls?: string[] | null | undefined;
6051
6175
  }, {
6052
- content: string;
6053
- transform?: boolean | undefined;
6176
+ name?: string | undefined;
6177
+ content?: string | undefined;
6178
+ context?: any;
6179
+ scheduled?: string | undefined;
6180
+ intent?: string | null | undefined;
6181
+ intentScore?: number | null | undefined;
6182
+ delayInSeconds?: number | null | undefined;
6183
+ ignoreTransform?: boolean | undefined;
6184
+ mediaUrls?: string[] | null | undefined;
6054
6185
  }>]>>;
6055
6186
  secondsDelay: z.ZodOptional<z.ZodNumber>;
6056
6187
  scheduled: z.ZodOptional<z.ZodNumber>;
@@ -6161,8 +6292,15 @@ declare module '@scout9/app/schemas' {
6161
6292
  })[] | undefined;
6162
6293
  removeInstructions?: string[] | undefined;
6163
6294
  message?: string | {
6164
- content: string;
6165
- transform?: boolean | undefined;
6295
+ name?: string | undefined;
6296
+ content?: string | undefined;
6297
+ context?: any;
6298
+ scheduled?: string | undefined;
6299
+ intent?: string | null | undefined;
6300
+ intentScore?: number | null | undefined;
6301
+ delayInSeconds?: number | null | undefined;
6302
+ ignoreTransform?: boolean | undefined;
6303
+ mediaUrls?: string[] | null | undefined;
6166
6304
  } | undefined;
6167
6305
  secondsDelay?: number | undefined;
6168
6306
  scheduled?: number | undefined;
@@ -6213,8 +6351,15 @@ declare module '@scout9/app/schemas' {
6213
6351
  })[] | undefined;
6214
6352
  removeInstructions?: string[] | undefined;
6215
6353
  message?: string | {
6216
- content: string;
6217
- transform?: boolean | undefined;
6354
+ name?: string | undefined;
6355
+ content?: string | undefined;
6356
+ context?: any;
6357
+ scheduled?: string | undefined;
6358
+ intent?: string | null | undefined;
6359
+ intentScore?: number | null | undefined;
6360
+ delayInSeconds?: number | null | undefined;
6361
+ ignoreTransform?: boolean | undefined;
6362
+ mediaUrls?: string[] | null | undefined;
6218
6363
  } | undefined;
6219
6364
  secondsDelay?: number | undefined;
6220
6365
  scheduled?: number | undefined;
@@ -6248,19 +6393,90 @@ declare module '@scout9/app/schemas' {
6248
6393
  overrideLock?: boolean | undefined;
6249
6394
  } | undefined;
6250
6395
  }>;
6396
+ export const EntityContextUpsertSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObject<{
6397
+ entityType: z.ZodString;
6398
+ entityRecordId: z.ZodString;
6399
+ method: z.ZodLiteral<"delete">;
6400
+ }, "strip", z.ZodTypeAny, {
6401
+ method: "delete";
6402
+ entityType: string;
6403
+ entityRecordId: string;
6404
+ }, {
6405
+ method: "delete";
6406
+ entityType: string;
6407
+ entityRecordId: string;
6408
+ }>, z.ZodObject<{
6409
+ entityType: z.ZodString;
6410
+ entityRecordId: z.ZodString;
6411
+ method: z.ZodLiteral<"mutate">;
6412
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodLiteral<"#remove">, z.ZodLiteral<"#delete">]>>;
6413
+ }, "strip", z.ZodTypeAny, {
6414
+ method: "mutate";
6415
+ entityType: string;
6416
+ entityRecordId: string;
6417
+ fields: Record<string, string | number | boolean | null>;
6418
+ }, {
6419
+ method: "mutate";
6420
+ entityType: string;
6421
+ entityRecordId: string;
6422
+ fields: Record<string, string | number | boolean | null>;
6423
+ }>]>;
6251
6424
  /**
6252
6425
  * The workflow response object slot
6253
6426
  */
6254
6427
  export const WorkflowResponseSlotSchema: z.ZodObject<{
6255
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
6256
- content: z.ZodString;
6257
- transform: z.ZodOptional<z.ZodBoolean>;
6258
- }, "strip", z.ZodTypeAny, {
6259
- content: string;
6260
- transform?: boolean | undefined;
6428
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
6429
+ id: z.ZodOptional<z.ZodString>;
6430
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
6431
+ content: z.ZodOptional<z.ZodString>;
6432
+ time: z.ZodOptional<z.ZodString>;
6433
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6434
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6435
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
6436
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
6437
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
6438
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
6439
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
6440
+ start: z.ZodNumber;
6441
+ end: z.ZodNumber;
6442
+ type: z.ZodString;
6443
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6444
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6445
+ }, "strip", z.ZodTypeAny, {
6446
+ type: string;
6447
+ end: number;
6448
+ start: number;
6449
+ option?: string | null | undefined;
6450
+ text?: string | null | undefined;
6451
+ }, {
6452
+ type: string;
6453
+ end: number;
6454
+ start: number;
6455
+ option?: string | null | undefined;
6456
+ text?: string | null | undefined;
6457
+ }>, "many">>>>;
6458
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
6459
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
6460
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
6461
+ name?: string | undefined;
6462
+ content?: string | undefined;
6463
+ context?: any;
6464
+ scheduled?: string | undefined;
6465
+ intent?: string | null | undefined;
6466
+ intentScore?: number | null | undefined;
6467
+ delayInSeconds?: number | null | undefined;
6468
+ ignoreTransform?: boolean | undefined;
6469
+ mediaUrls?: string[] | null | undefined;
6261
6470
  }, {
6262
- content: string;
6263
- transform?: boolean | undefined;
6471
+ name?: string | undefined;
6472
+ content?: string | undefined;
6473
+ context?: any;
6474
+ scheduled?: string | undefined;
6475
+ intent?: string | null | undefined;
6476
+ intentScore?: number | null | undefined;
6477
+ delayInSeconds?: number | null | undefined;
6478
+ ignoreTransform?: boolean | undefined;
6479
+ mediaUrls?: string[] | null | undefined;
6264
6480
  }>]>>;
6265
6481
  forward: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
6266
6482
  to: z.ZodOptional<z.ZodString>;
@@ -6436,15 +6652,58 @@ declare module '@scout9/app/schemas' {
6436
6652
  persist?: boolean | undefined;
6437
6653
  }>]>, "many">]>>;
6438
6654
  removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6439
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
6440
- content: z.ZodString;
6441
- transform: z.ZodOptional<z.ZodBoolean>;
6442
- }, "strip", z.ZodTypeAny, {
6443
- content: string;
6444
- transform?: boolean | undefined;
6655
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
6656
+ id: z.ZodOptional<z.ZodString>;
6657
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
6658
+ content: z.ZodOptional<z.ZodString>;
6659
+ time: z.ZodOptional<z.ZodString>;
6660
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6661
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6662
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
6663
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
6664
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
6665
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
6666
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
6667
+ start: z.ZodNumber;
6668
+ end: z.ZodNumber;
6669
+ type: z.ZodString;
6670
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6671
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6672
+ }, "strip", z.ZodTypeAny, {
6673
+ type: string;
6674
+ end: number;
6675
+ start: number;
6676
+ option?: string | null | undefined;
6677
+ text?: string | null | undefined;
6678
+ }, {
6679
+ type: string;
6680
+ end: number;
6681
+ start: number;
6682
+ option?: string | null | undefined;
6683
+ text?: string | null | undefined;
6684
+ }>, "many">>>>;
6685
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
6686
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
6687
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
6688
+ name?: string | undefined;
6689
+ content?: string | undefined;
6690
+ context?: any;
6691
+ scheduled?: string | undefined;
6692
+ intent?: string | null | undefined;
6693
+ intentScore?: number | null | undefined;
6694
+ delayInSeconds?: number | null | undefined;
6695
+ ignoreTransform?: boolean | undefined;
6696
+ mediaUrls?: string[] | null | undefined;
6445
6697
  }, {
6446
- content: string;
6447
- transform?: boolean | undefined;
6698
+ name?: string | undefined;
6699
+ content?: string | undefined;
6700
+ context?: any;
6701
+ scheduled?: string | undefined;
6702
+ intent?: string | null | undefined;
6703
+ intentScore?: number | null | undefined;
6704
+ delayInSeconds?: number | null | undefined;
6705
+ ignoreTransform?: boolean | undefined;
6706
+ mediaUrls?: string[] | null | undefined;
6448
6707
  }>]>>;
6449
6708
  secondsDelay: z.ZodOptional<z.ZodNumber>;
6450
6709
  scheduled: z.ZodOptional<z.ZodNumber>;
@@ -6555,8 +6814,15 @@ declare module '@scout9/app/schemas' {
6555
6814
  })[] | undefined;
6556
6815
  removeInstructions?: string[] | undefined;
6557
6816
  message?: string | {
6558
- content: string;
6559
- transform?: boolean | undefined;
6817
+ name?: string | undefined;
6818
+ content?: string | undefined;
6819
+ context?: any;
6820
+ scheduled?: string | undefined;
6821
+ intent?: string | null | undefined;
6822
+ intentScore?: number | null | undefined;
6823
+ delayInSeconds?: number | null | undefined;
6824
+ ignoreTransform?: boolean | undefined;
6825
+ mediaUrls?: string[] | null | undefined;
6560
6826
  } | undefined;
6561
6827
  secondsDelay?: number | undefined;
6562
6828
  scheduled?: number | undefined;
@@ -6607,8 +6873,15 @@ declare module '@scout9/app/schemas' {
6607
6873
  })[] | undefined;
6608
6874
  removeInstructions?: string[] | undefined;
6609
6875
  message?: string | {
6610
- content: string;
6611
- transform?: boolean | undefined;
6876
+ name?: string | undefined;
6877
+ content?: string | undefined;
6878
+ context?: any;
6879
+ scheduled?: string | undefined;
6880
+ intent?: string | null | undefined;
6881
+ intentScore?: number | null | undefined;
6882
+ delayInSeconds?: number | null | undefined;
6883
+ ignoreTransform?: boolean | undefined;
6884
+ mediaUrls?: string[] | null | undefined;
6612
6885
  } | undefined;
6613
6886
  secondsDelay?: number | undefined;
6614
6887
  scheduled?: number | undefined;
@@ -6683,15 +6956,58 @@ declare module '@scout9/app/schemas' {
6683
6956
  persist?: boolean | undefined;
6684
6957
  }>]>, "many">]>>;
6685
6958
  removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6686
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
6687
- content: z.ZodString;
6688
- transform: z.ZodOptional<z.ZodBoolean>;
6689
- }, "strip", z.ZodTypeAny, {
6690
- content: string;
6691
- transform?: boolean | undefined;
6959
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
6960
+ id: z.ZodOptional<z.ZodString>;
6961
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
6962
+ content: z.ZodOptional<z.ZodString>;
6963
+ time: z.ZodOptional<z.ZodString>;
6964
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6965
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6966
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
6967
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
6968
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
6969
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
6970
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
6971
+ start: z.ZodNumber;
6972
+ end: z.ZodNumber;
6973
+ type: z.ZodString;
6974
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6975
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6976
+ }, "strip", z.ZodTypeAny, {
6977
+ type: string;
6978
+ end: number;
6979
+ start: number;
6980
+ option?: string | null | undefined;
6981
+ text?: string | null | undefined;
6982
+ }, {
6983
+ type: string;
6984
+ end: number;
6985
+ start: number;
6986
+ option?: string | null | undefined;
6987
+ text?: string | null | undefined;
6988
+ }>, "many">>>>;
6989
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
6990
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
6991
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
6992
+ name?: string | undefined;
6993
+ content?: string | undefined;
6994
+ context?: any;
6995
+ scheduled?: string | undefined;
6996
+ intent?: string | null | undefined;
6997
+ intentScore?: number | null | undefined;
6998
+ delayInSeconds?: number | null | undefined;
6999
+ ignoreTransform?: boolean | undefined;
7000
+ mediaUrls?: string[] | null | undefined;
6692
7001
  }, {
6693
- content: string;
6694
- transform?: boolean | undefined;
7002
+ name?: string | undefined;
7003
+ content?: string | undefined;
7004
+ context?: any;
7005
+ scheduled?: string | undefined;
7006
+ intent?: string | null | undefined;
7007
+ intentScore?: number | null | undefined;
7008
+ delayInSeconds?: number | null | undefined;
7009
+ ignoreTransform?: boolean | undefined;
7010
+ mediaUrls?: string[] | null | undefined;
6695
7011
  }>]>>;
6696
7012
  secondsDelay: z.ZodOptional<z.ZodNumber>;
6697
7013
  scheduled: z.ZodOptional<z.ZodNumber>;
@@ -6802,8 +7118,15 @@ declare module '@scout9/app/schemas' {
6802
7118
  })[] | undefined;
6803
7119
  removeInstructions?: string[] | undefined;
6804
7120
  message?: string | {
6805
- content: string;
6806
- transform?: boolean | undefined;
7121
+ name?: string | undefined;
7122
+ content?: string | undefined;
7123
+ context?: any;
7124
+ scheduled?: string | undefined;
7125
+ intent?: string | null | undefined;
7126
+ intentScore?: number | null | undefined;
7127
+ delayInSeconds?: number | null | undefined;
7128
+ ignoreTransform?: boolean | undefined;
7129
+ mediaUrls?: string[] | null | undefined;
6807
7130
  } | undefined;
6808
7131
  secondsDelay?: number | undefined;
6809
7132
  scheduled?: number | undefined;
@@ -6854,8 +7177,15 @@ declare module '@scout9/app/schemas' {
6854
7177
  })[] | undefined;
6855
7178
  removeInstructions?: string[] | undefined;
6856
7179
  message?: string | {
6857
- content: string;
6858
- transform?: boolean | undefined;
7180
+ name?: string | undefined;
7181
+ content?: string | undefined;
7182
+ context?: any;
7183
+ scheduled?: string | undefined;
7184
+ intent?: string | null | undefined;
7185
+ intentScore?: number | null | undefined;
7186
+ delayInSeconds?: number | null | undefined;
7187
+ ignoreTransform?: boolean | undefined;
7188
+ mediaUrls?: string[] | null | undefined;
6859
7189
  } | undefined;
6860
7190
  secondsDelay?: number | undefined;
6861
7191
  scheduled?: number | undefined;
@@ -6909,8 +7239,15 @@ declare module '@scout9/app/schemas' {
6909
7239
  })[] | undefined;
6910
7240
  removeInstructions?: string[] | undefined;
6911
7241
  message?: string | {
6912
- content: string;
6913
- transform?: boolean | undefined;
7242
+ name?: string | undefined;
7243
+ content?: string | undefined;
7244
+ context?: any;
7245
+ scheduled?: string | undefined;
7246
+ intent?: string | null | undefined;
7247
+ intentScore?: number | null | undefined;
7248
+ delayInSeconds?: number | null | undefined;
7249
+ ignoreTransform?: boolean | undefined;
7250
+ mediaUrls?: string[] | null | undefined;
6914
7251
  } | undefined;
6915
7252
  secondsDelay?: number | undefined;
6916
7253
  scheduled?: number | undefined;
@@ -6962,8 +7299,15 @@ declare module '@scout9/app/schemas' {
6962
7299
  })[] | undefined;
6963
7300
  removeInstructions?: string[] | undefined;
6964
7301
  message?: string | {
6965
- content: string;
6966
- transform?: boolean | undefined;
7302
+ name?: string | undefined;
7303
+ content?: string | undefined;
7304
+ context?: any;
7305
+ scheduled?: string | undefined;
7306
+ intent?: string | null | undefined;
7307
+ intentScore?: number | null | undefined;
7308
+ delayInSeconds?: number | null | undefined;
7309
+ ignoreTransform?: boolean | undefined;
7310
+ mediaUrls?: string[] | null | undefined;
6967
7311
  } | undefined;
6968
7312
  secondsDelay?: number | undefined;
6969
7313
  scheduled?: number | undefined;
@@ -7017,8 +7361,15 @@ declare module '@scout9/app/schemas' {
7017
7361
  })[] | undefined;
7018
7362
  removeInstructions?: string[] | undefined;
7019
7363
  message?: string | {
7020
- content: string;
7021
- transform?: boolean | undefined;
7364
+ name?: string | undefined;
7365
+ content?: string | undefined;
7366
+ context?: any;
7367
+ scheduled?: string | undefined;
7368
+ intent?: string | null | undefined;
7369
+ intentScore?: number | null | undefined;
7370
+ delayInSeconds?: number | null | undefined;
7371
+ ignoreTransform?: boolean | undefined;
7372
+ mediaUrls?: string[] | null | undefined;
7022
7373
  } | undefined;
7023
7374
  secondsDelay?: number | undefined;
7024
7375
  scheduled?: number | undefined;
@@ -7070,8 +7421,15 @@ declare module '@scout9/app/schemas' {
7070
7421
  })[] | undefined;
7071
7422
  removeInstructions?: string[] | undefined;
7072
7423
  message?: string | {
7073
- content: string;
7074
- transform?: boolean | undefined;
7424
+ name?: string | undefined;
7425
+ content?: string | undefined;
7426
+ context?: any;
7427
+ scheduled?: string | undefined;
7428
+ intent?: string | null | undefined;
7429
+ intentScore?: number | null | undefined;
7430
+ delayInSeconds?: number | null | undefined;
7431
+ ignoreTransform?: boolean | undefined;
7432
+ mediaUrls?: string[] | null | undefined;
7075
7433
  } | undefined;
7076
7434
  secondsDelay?: number | undefined;
7077
7435
  scheduled?: number | undefined;
@@ -7106,15 +7464,58 @@ declare module '@scout9/app/schemas' {
7106
7464
  } | undefined;
7107
7465
  };
7108
7466
  }>, z.ZodArray<z.ZodObject<{
7109
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
7110
- content: z.ZodString;
7111
- transform: z.ZodOptional<z.ZodBoolean>;
7112
- }, "strip", z.ZodTypeAny, {
7113
- content: string;
7114
- transform?: boolean | undefined;
7467
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
7468
+ id: z.ZodOptional<z.ZodString>;
7469
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
7470
+ content: z.ZodOptional<z.ZodString>;
7471
+ time: z.ZodOptional<z.ZodString>;
7472
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7473
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7474
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
7475
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
7476
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
7477
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
7478
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
7479
+ start: z.ZodNumber;
7480
+ end: z.ZodNumber;
7481
+ type: z.ZodString;
7482
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7483
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7484
+ }, "strip", z.ZodTypeAny, {
7485
+ type: string;
7486
+ end: number;
7487
+ start: number;
7488
+ option?: string | null | undefined;
7489
+ text?: string | null | undefined;
7490
+ }, {
7491
+ type: string;
7492
+ end: number;
7493
+ start: number;
7494
+ option?: string | null | undefined;
7495
+ text?: string | null | undefined;
7496
+ }>, "many">>>>;
7497
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
7498
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
7499
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
7500
+ name?: string | undefined;
7501
+ content?: string | undefined;
7502
+ context?: any;
7503
+ scheduled?: string | undefined;
7504
+ intent?: string | null | undefined;
7505
+ intentScore?: number | null | undefined;
7506
+ delayInSeconds?: number | null | undefined;
7507
+ ignoreTransform?: boolean | undefined;
7508
+ mediaUrls?: string[] | null | undefined;
7115
7509
  }, {
7116
- content: string;
7117
- transform?: boolean | undefined;
7510
+ name?: string | undefined;
7511
+ content?: string | undefined;
7512
+ context?: any;
7513
+ scheduled?: string | undefined;
7514
+ intent?: string | null | undefined;
7515
+ intentScore?: number | null | undefined;
7516
+ delayInSeconds?: number | null | undefined;
7517
+ ignoreTransform?: boolean | undefined;
7518
+ mediaUrls?: string[] | null | undefined;
7118
7519
  }>]>>;
7119
7520
  forward: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
7120
7521
  to: z.ZodOptional<z.ZodString>;
@@ -7251,8 +7652,15 @@ declare module '@scout9/app/schemas' {
7251
7652
  }, "strip", z.ZodTypeAny, {
7252
7653
  keywords: string[];
7253
7654
  message?: string | {
7254
- content: string;
7255
- transform?: boolean | undefined;
7655
+ name?: string | undefined;
7656
+ content?: string | undefined;
7657
+ context?: any;
7658
+ scheduled?: string | undefined;
7659
+ intent?: string | null | undefined;
7660
+ intentScore?: number | null | undefined;
7661
+ delayInSeconds?: number | null | undefined;
7662
+ ignoreTransform?: boolean | undefined;
7663
+ mediaUrls?: string[] | null | undefined;
7256
7664
  } | undefined;
7257
7665
  forward?: string | boolean | {
7258
7666
  to?: string | undefined;
@@ -7304,8 +7712,15 @@ declare module '@scout9/app/schemas' {
7304
7712
  }, {
7305
7713
  keywords: string[];
7306
7714
  message?: string | {
7307
- content: string;
7308
- transform?: boolean | undefined;
7715
+ name?: string | undefined;
7716
+ content?: string | undefined;
7717
+ context?: any;
7718
+ scheduled?: string | undefined;
7719
+ intent?: string | null | undefined;
7720
+ intentScore?: number | null | undefined;
7721
+ delayInSeconds?: number | null | undefined;
7722
+ ignoreTransform?: boolean | undefined;
7723
+ mediaUrls?: string[] | null | undefined;
7309
7724
  } | undefined;
7310
7725
  forward?: string | boolean | {
7311
7726
  to?: string | undefined;
@@ -7355,10 +7770,45 @@ declare module '@scout9/app/schemas' {
7355
7770
  overrideLock?: boolean | undefined;
7356
7771
  } | undefined;
7357
7772
  }>, "many">]>>;
7773
+ entityContextUpsert: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"method", [z.ZodObject<{
7774
+ entityType: z.ZodString;
7775
+ entityRecordId: z.ZodString;
7776
+ method: z.ZodLiteral<"delete">;
7777
+ }, "strip", z.ZodTypeAny, {
7778
+ method: "delete";
7779
+ entityType: string;
7780
+ entityRecordId: string;
7781
+ }, {
7782
+ method: "delete";
7783
+ entityType: string;
7784
+ entityRecordId: string;
7785
+ }>, z.ZodObject<{
7786
+ entityType: z.ZodString;
7787
+ entityRecordId: z.ZodString;
7788
+ method: z.ZodLiteral<"mutate">;
7789
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodLiteral<"#remove">, z.ZodLiteral<"#delete">]>>;
7790
+ }, "strip", z.ZodTypeAny, {
7791
+ method: "mutate";
7792
+ entityType: string;
7793
+ entityRecordId: string;
7794
+ fields: Record<string, string | number | boolean | null>;
7795
+ }, {
7796
+ method: "mutate";
7797
+ entityType: string;
7798
+ entityRecordId: string;
7799
+ fields: Record<string, string | number | boolean | null>;
7800
+ }>]>, "many">>;
7358
7801
  }, "strip", z.ZodTypeAny, {
7359
7802
  message?: string | {
7360
- content: string;
7361
- transform?: boolean | undefined;
7803
+ name?: string | undefined;
7804
+ content?: string | undefined;
7805
+ context?: any;
7806
+ scheduled?: string | undefined;
7807
+ intent?: string | null | undefined;
7808
+ intentScore?: number | null | undefined;
7809
+ delayInSeconds?: number | null | undefined;
7810
+ ignoreTransform?: boolean | undefined;
7811
+ mediaUrls?: string[] | null | undefined;
7362
7812
  } | undefined;
7363
7813
  forward?: string | boolean | {
7364
7814
  to?: string | undefined;
@@ -7427,8 +7877,15 @@ declare module '@scout9/app/schemas' {
7427
7877
  })[] | undefined;
7428
7878
  removeInstructions?: string[] | undefined;
7429
7879
  message?: string | {
7430
- content: string;
7431
- transform?: boolean | undefined;
7880
+ name?: string | undefined;
7881
+ content?: string | undefined;
7882
+ context?: any;
7883
+ scheduled?: string | undefined;
7884
+ intent?: string | null | undefined;
7885
+ intentScore?: number | null | undefined;
7886
+ delayInSeconds?: number | null | undefined;
7887
+ ignoreTransform?: boolean | undefined;
7888
+ mediaUrls?: string[] | null | undefined;
7432
7889
  } | undefined;
7433
7890
  secondsDelay?: number | undefined;
7434
7891
  scheduled?: number | undefined;
@@ -7480,8 +7937,15 @@ declare module '@scout9/app/schemas' {
7480
7937
  })[] | undefined;
7481
7938
  removeInstructions?: string[] | undefined;
7482
7939
  message?: string | {
7483
- content: string;
7484
- transform?: boolean | undefined;
7940
+ name?: string | undefined;
7941
+ content?: string | undefined;
7942
+ context?: any;
7943
+ scheduled?: string | undefined;
7944
+ intent?: string | null | undefined;
7945
+ intentScore?: number | null | undefined;
7946
+ delayInSeconds?: number | null | undefined;
7947
+ ignoreTransform?: boolean | undefined;
7948
+ mediaUrls?: string[] | null | undefined;
7485
7949
  } | undefined;
7486
7950
  secondsDelay?: number | undefined;
7487
7951
  scheduled?: number | undefined;
@@ -7518,8 +7982,15 @@ declare module '@scout9/app/schemas' {
7518
7982
  } | {
7519
7983
  keywords: string[];
7520
7984
  message?: string | {
7521
- content: string;
7522
- transform?: boolean | undefined;
7985
+ name?: string | undefined;
7986
+ content?: string | undefined;
7987
+ context?: any;
7988
+ scheduled?: string | undefined;
7989
+ intent?: string | null | undefined;
7990
+ intentScore?: number | null | undefined;
7991
+ delayInSeconds?: number | null | undefined;
7992
+ ignoreTransform?: boolean | undefined;
7993
+ mediaUrls?: string[] | null | undefined;
7523
7994
  } | undefined;
7524
7995
  forward?: string | boolean | {
7525
7996
  to?: string | undefined;
@@ -7569,10 +8040,27 @@ declare module '@scout9/app/schemas' {
7569
8040
  overrideLock?: boolean | undefined;
7570
8041
  } | undefined;
7571
8042
  }[] | undefined;
8043
+ entityContextUpsert?: ({
8044
+ method: "delete";
8045
+ entityType: string;
8046
+ entityRecordId: string;
8047
+ } | {
8048
+ method: "mutate";
8049
+ entityType: string;
8050
+ entityRecordId: string;
8051
+ fields: Record<string, string | number | boolean | null>;
8052
+ })[] | undefined;
7572
8053
  }, {
7573
8054
  message?: string | {
7574
- content: string;
7575
- transform?: boolean | undefined;
8055
+ name?: string | undefined;
8056
+ content?: string | undefined;
8057
+ context?: any;
8058
+ scheduled?: string | undefined;
8059
+ intent?: string | null | undefined;
8060
+ intentScore?: number | null | undefined;
8061
+ delayInSeconds?: number | null | undefined;
8062
+ ignoreTransform?: boolean | undefined;
8063
+ mediaUrls?: string[] | null | undefined;
7576
8064
  } | undefined;
7577
8065
  forward?: string | boolean | {
7578
8066
  to?: string | undefined;
@@ -7641,8 +8129,15 @@ declare module '@scout9/app/schemas' {
7641
8129
  })[] | undefined;
7642
8130
  removeInstructions?: string[] | undefined;
7643
8131
  message?: string | {
7644
- content: string;
7645
- transform?: boolean | undefined;
8132
+ name?: string | undefined;
8133
+ content?: string | undefined;
8134
+ context?: any;
8135
+ scheduled?: string | undefined;
8136
+ intent?: string | null | undefined;
8137
+ intentScore?: number | null | undefined;
8138
+ delayInSeconds?: number | null | undefined;
8139
+ ignoreTransform?: boolean | undefined;
8140
+ mediaUrls?: string[] | null | undefined;
7646
8141
  } | undefined;
7647
8142
  secondsDelay?: number | undefined;
7648
8143
  scheduled?: number | undefined;
@@ -7694,8 +8189,15 @@ declare module '@scout9/app/schemas' {
7694
8189
  })[] | undefined;
7695
8190
  removeInstructions?: string[] | undefined;
7696
8191
  message?: string | {
7697
- content: string;
7698
- transform?: boolean | undefined;
8192
+ name?: string | undefined;
8193
+ content?: string | undefined;
8194
+ context?: any;
8195
+ scheduled?: string | undefined;
8196
+ intent?: string | null | undefined;
8197
+ intentScore?: number | null | undefined;
8198
+ delayInSeconds?: number | null | undefined;
8199
+ ignoreTransform?: boolean | undefined;
8200
+ mediaUrls?: string[] | null | undefined;
7699
8201
  } | undefined;
7700
8202
  secondsDelay?: number | undefined;
7701
8203
  scheduled?: number | undefined;
@@ -7732,8 +8234,15 @@ declare module '@scout9/app/schemas' {
7732
8234
  } | {
7733
8235
  keywords: string[];
7734
8236
  message?: string | {
7735
- content: string;
7736
- transform?: boolean | undefined;
8237
+ name?: string | undefined;
8238
+ content?: string | undefined;
8239
+ context?: any;
8240
+ scheduled?: string | undefined;
8241
+ intent?: string | null | undefined;
8242
+ intentScore?: number | null | undefined;
8243
+ delayInSeconds?: number | null | undefined;
8244
+ ignoreTransform?: boolean | undefined;
8245
+ mediaUrls?: string[] | null | undefined;
7737
8246
  } | undefined;
7738
8247
  forward?: string | boolean | {
7739
8248
  to?: string | undefined;
@@ -7783,20 +8292,73 @@ declare module '@scout9/app/schemas' {
7783
8292
  overrideLock?: boolean | undefined;
7784
8293
  } | undefined;
7785
8294
  }[] | undefined;
8295
+ entityContextUpsert?: ({
8296
+ method: "delete";
8297
+ entityType: string;
8298
+ entityRecordId: string;
8299
+ } | {
8300
+ method: "mutate";
8301
+ entityType: string;
8302
+ entityRecordId: string;
8303
+ fields: Record<string, string | number | boolean | null>;
8304
+ })[] | undefined;
7786
8305
  }>;
7787
8306
  /**
7788
8307
  * The workflow response to send in any given workflow
7789
8308
  */
7790
8309
  export const WorkflowResponseSchema: z.ZodUnion<[z.ZodObject<{
7791
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
7792
- content: z.ZodString;
7793
- transform: z.ZodOptional<z.ZodBoolean>;
7794
- }, "strip", z.ZodTypeAny, {
7795
- content: string;
7796
- transform?: boolean | undefined;
8310
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
8311
+ id: z.ZodOptional<z.ZodString>;
8312
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
8313
+ content: z.ZodOptional<z.ZodString>;
8314
+ time: z.ZodOptional<z.ZodString>;
8315
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8316
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8317
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
8318
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
8319
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
8320
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
8321
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
8322
+ start: z.ZodNumber;
8323
+ end: z.ZodNumber;
8324
+ type: z.ZodString;
8325
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8326
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8327
+ }, "strip", z.ZodTypeAny, {
8328
+ type: string;
8329
+ end: number;
8330
+ start: number;
8331
+ option?: string | null | undefined;
8332
+ text?: string | null | undefined;
8333
+ }, {
8334
+ type: string;
8335
+ end: number;
8336
+ start: number;
8337
+ option?: string | null | undefined;
8338
+ text?: string | null | undefined;
8339
+ }>, "many">>>>;
8340
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
8341
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
8342
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
8343
+ name?: string | undefined;
8344
+ content?: string | undefined;
8345
+ context?: any;
8346
+ scheduled?: string | undefined;
8347
+ intent?: string | null | undefined;
8348
+ intentScore?: number | null | undefined;
8349
+ delayInSeconds?: number | null | undefined;
8350
+ ignoreTransform?: boolean | undefined;
8351
+ mediaUrls?: string[] | null | undefined;
7797
8352
  }, {
7798
- content: string;
7799
- transform?: boolean | undefined;
8353
+ name?: string | undefined;
8354
+ content?: string | undefined;
8355
+ context?: any;
8356
+ scheduled?: string | undefined;
8357
+ intent?: string | null | undefined;
8358
+ intentScore?: number | null | undefined;
8359
+ delayInSeconds?: number | null | undefined;
8360
+ ignoreTransform?: boolean | undefined;
8361
+ mediaUrls?: string[] | null | undefined;
7800
8362
  }>]>>;
7801
8363
  forward: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
7802
8364
  to: z.ZodOptional<z.ZodString>;
@@ -7972,15 +8534,58 @@ declare module '@scout9/app/schemas' {
7972
8534
  persist?: boolean | undefined;
7973
8535
  }>]>, "many">]>>;
7974
8536
  removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7975
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
7976
- content: z.ZodString;
7977
- transform: z.ZodOptional<z.ZodBoolean>;
7978
- }, "strip", z.ZodTypeAny, {
7979
- content: string;
7980
- transform?: boolean | undefined;
8537
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
8538
+ id: z.ZodOptional<z.ZodString>;
8539
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
8540
+ content: z.ZodOptional<z.ZodString>;
8541
+ time: z.ZodOptional<z.ZodString>;
8542
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8543
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8544
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
8545
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
8546
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
8547
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
8548
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
8549
+ start: z.ZodNumber;
8550
+ end: z.ZodNumber;
8551
+ type: z.ZodString;
8552
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8553
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8554
+ }, "strip", z.ZodTypeAny, {
8555
+ type: string;
8556
+ end: number;
8557
+ start: number;
8558
+ option?: string | null | undefined;
8559
+ text?: string | null | undefined;
8560
+ }, {
8561
+ type: string;
8562
+ end: number;
8563
+ start: number;
8564
+ option?: string | null | undefined;
8565
+ text?: string | null | undefined;
8566
+ }>, "many">>>>;
8567
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
8568
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
8569
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
8570
+ name?: string | undefined;
8571
+ content?: string | undefined;
8572
+ context?: any;
8573
+ scheduled?: string | undefined;
8574
+ intent?: string | null | undefined;
8575
+ intentScore?: number | null | undefined;
8576
+ delayInSeconds?: number | null | undefined;
8577
+ ignoreTransform?: boolean | undefined;
8578
+ mediaUrls?: string[] | null | undefined;
7981
8579
  }, {
7982
- content: string;
7983
- transform?: boolean | undefined;
8580
+ name?: string | undefined;
8581
+ content?: string | undefined;
8582
+ context?: any;
8583
+ scheduled?: string | undefined;
8584
+ intent?: string | null | undefined;
8585
+ intentScore?: number | null | undefined;
8586
+ delayInSeconds?: number | null | undefined;
8587
+ ignoreTransform?: boolean | undefined;
8588
+ mediaUrls?: string[] | null | undefined;
7984
8589
  }>]>>;
7985
8590
  secondsDelay: z.ZodOptional<z.ZodNumber>;
7986
8591
  scheduled: z.ZodOptional<z.ZodNumber>;
@@ -8091,8 +8696,15 @@ declare module '@scout9/app/schemas' {
8091
8696
  })[] | undefined;
8092
8697
  removeInstructions?: string[] | undefined;
8093
8698
  message?: string | {
8094
- content: string;
8095
- transform?: boolean | undefined;
8699
+ name?: string | undefined;
8700
+ content?: string | undefined;
8701
+ context?: any;
8702
+ scheduled?: string | undefined;
8703
+ intent?: string | null | undefined;
8704
+ intentScore?: number | null | undefined;
8705
+ delayInSeconds?: number | null | undefined;
8706
+ ignoreTransform?: boolean | undefined;
8707
+ mediaUrls?: string[] | null | undefined;
8096
8708
  } | undefined;
8097
8709
  secondsDelay?: number | undefined;
8098
8710
  scheduled?: number | undefined;
@@ -8143,8 +8755,15 @@ declare module '@scout9/app/schemas' {
8143
8755
  })[] | undefined;
8144
8756
  removeInstructions?: string[] | undefined;
8145
8757
  message?: string | {
8146
- content: string;
8147
- transform?: boolean | undefined;
8758
+ name?: string | undefined;
8759
+ content?: string | undefined;
8760
+ context?: any;
8761
+ scheduled?: string | undefined;
8762
+ intent?: string | null | undefined;
8763
+ intentScore?: number | null | undefined;
8764
+ delayInSeconds?: number | null | undefined;
8765
+ ignoreTransform?: boolean | undefined;
8766
+ mediaUrls?: string[] | null | undefined;
8148
8767
  } | undefined;
8149
8768
  secondsDelay?: number | undefined;
8150
8769
  scheduled?: number | undefined;
@@ -8219,15 +8838,58 @@ declare module '@scout9/app/schemas' {
8219
8838
  persist?: boolean | undefined;
8220
8839
  }>]>, "many">]>>;
8221
8840
  removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8222
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
8223
- content: z.ZodString;
8224
- transform: z.ZodOptional<z.ZodBoolean>;
8225
- }, "strip", z.ZodTypeAny, {
8226
- content: string;
8227
- transform?: boolean | undefined;
8841
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
8842
+ id: z.ZodOptional<z.ZodString>;
8843
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
8844
+ content: z.ZodOptional<z.ZodString>;
8845
+ time: z.ZodOptional<z.ZodString>;
8846
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8847
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8848
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
8849
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
8850
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
8851
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
8852
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
8853
+ start: z.ZodNumber;
8854
+ end: z.ZodNumber;
8855
+ type: z.ZodString;
8856
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8857
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8858
+ }, "strip", z.ZodTypeAny, {
8859
+ type: string;
8860
+ end: number;
8861
+ start: number;
8862
+ option?: string | null | undefined;
8863
+ text?: string | null | undefined;
8864
+ }, {
8865
+ type: string;
8866
+ end: number;
8867
+ start: number;
8868
+ option?: string | null | undefined;
8869
+ text?: string | null | undefined;
8870
+ }>, "many">>>>;
8871
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
8872
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
8873
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
8874
+ name?: string | undefined;
8875
+ content?: string | undefined;
8876
+ context?: any;
8877
+ scheduled?: string | undefined;
8878
+ intent?: string | null | undefined;
8879
+ intentScore?: number | null | undefined;
8880
+ delayInSeconds?: number | null | undefined;
8881
+ ignoreTransform?: boolean | undefined;
8882
+ mediaUrls?: string[] | null | undefined;
8228
8883
  }, {
8229
- content: string;
8230
- transform?: boolean | undefined;
8884
+ name?: string | undefined;
8885
+ content?: string | undefined;
8886
+ context?: any;
8887
+ scheduled?: string | undefined;
8888
+ intent?: string | null | undefined;
8889
+ intentScore?: number | null | undefined;
8890
+ delayInSeconds?: number | null | undefined;
8891
+ ignoreTransform?: boolean | undefined;
8892
+ mediaUrls?: string[] | null | undefined;
8231
8893
  }>]>>;
8232
8894
  secondsDelay: z.ZodOptional<z.ZodNumber>;
8233
8895
  scheduled: z.ZodOptional<z.ZodNumber>;
@@ -8338,8 +9000,15 @@ declare module '@scout9/app/schemas' {
8338
9000
  })[] | undefined;
8339
9001
  removeInstructions?: string[] | undefined;
8340
9002
  message?: string | {
8341
- content: string;
8342
- transform?: boolean | undefined;
9003
+ name?: string | undefined;
9004
+ content?: string | undefined;
9005
+ context?: any;
9006
+ scheduled?: string | undefined;
9007
+ intent?: string | null | undefined;
9008
+ intentScore?: number | null | undefined;
9009
+ delayInSeconds?: number | null | undefined;
9010
+ ignoreTransform?: boolean | undefined;
9011
+ mediaUrls?: string[] | null | undefined;
8343
9012
  } | undefined;
8344
9013
  secondsDelay?: number | undefined;
8345
9014
  scheduled?: number | undefined;
@@ -8390,8 +9059,15 @@ declare module '@scout9/app/schemas' {
8390
9059
  })[] | undefined;
8391
9060
  removeInstructions?: string[] | undefined;
8392
9061
  message?: string | {
8393
- content: string;
8394
- transform?: boolean | undefined;
9062
+ name?: string | undefined;
9063
+ content?: string | undefined;
9064
+ context?: any;
9065
+ scheduled?: string | undefined;
9066
+ intent?: string | null | undefined;
9067
+ intentScore?: number | null | undefined;
9068
+ delayInSeconds?: number | null | undefined;
9069
+ ignoreTransform?: boolean | undefined;
9070
+ mediaUrls?: string[] | null | undefined;
8395
9071
  } | undefined;
8396
9072
  secondsDelay?: number | undefined;
8397
9073
  scheduled?: number | undefined;
@@ -8445,8 +9121,15 @@ declare module '@scout9/app/schemas' {
8445
9121
  })[] | undefined;
8446
9122
  removeInstructions?: string[] | undefined;
8447
9123
  message?: string | {
8448
- content: string;
8449
- transform?: boolean | undefined;
9124
+ name?: string | undefined;
9125
+ content?: string | undefined;
9126
+ context?: any;
9127
+ scheduled?: string | undefined;
9128
+ intent?: string | null | undefined;
9129
+ intentScore?: number | null | undefined;
9130
+ delayInSeconds?: number | null | undefined;
9131
+ ignoreTransform?: boolean | undefined;
9132
+ mediaUrls?: string[] | null | undefined;
8450
9133
  } | undefined;
8451
9134
  secondsDelay?: number | undefined;
8452
9135
  scheduled?: number | undefined;
@@ -8498,8 +9181,15 @@ declare module '@scout9/app/schemas' {
8498
9181
  })[] | undefined;
8499
9182
  removeInstructions?: string[] | undefined;
8500
9183
  message?: string | {
8501
- content: string;
8502
- transform?: boolean | undefined;
9184
+ name?: string | undefined;
9185
+ content?: string | undefined;
9186
+ context?: any;
9187
+ scheduled?: string | undefined;
9188
+ intent?: string | null | undefined;
9189
+ intentScore?: number | null | undefined;
9190
+ delayInSeconds?: number | null | undefined;
9191
+ ignoreTransform?: boolean | undefined;
9192
+ mediaUrls?: string[] | null | undefined;
8503
9193
  } | undefined;
8504
9194
  secondsDelay?: number | undefined;
8505
9195
  scheduled?: number | undefined;
@@ -8553,8 +9243,15 @@ declare module '@scout9/app/schemas' {
8553
9243
  })[] | undefined;
8554
9244
  removeInstructions?: string[] | undefined;
8555
9245
  message?: string | {
8556
- content: string;
8557
- transform?: boolean | undefined;
9246
+ name?: string | undefined;
9247
+ content?: string | undefined;
9248
+ context?: any;
9249
+ scheduled?: string | undefined;
9250
+ intent?: string | null | undefined;
9251
+ intentScore?: number | null | undefined;
9252
+ delayInSeconds?: number | null | undefined;
9253
+ ignoreTransform?: boolean | undefined;
9254
+ mediaUrls?: string[] | null | undefined;
8558
9255
  } | undefined;
8559
9256
  secondsDelay?: number | undefined;
8560
9257
  scheduled?: number | undefined;
@@ -8606,8 +9303,15 @@ declare module '@scout9/app/schemas' {
8606
9303
  })[] | undefined;
8607
9304
  removeInstructions?: string[] | undefined;
8608
9305
  message?: string | {
8609
- content: string;
8610
- transform?: boolean | undefined;
9306
+ name?: string | undefined;
9307
+ content?: string | undefined;
9308
+ context?: any;
9309
+ scheduled?: string | undefined;
9310
+ intent?: string | null | undefined;
9311
+ intentScore?: number | null | undefined;
9312
+ delayInSeconds?: number | null | undefined;
9313
+ ignoreTransform?: boolean | undefined;
9314
+ mediaUrls?: string[] | null | undefined;
8611
9315
  } | undefined;
8612
9316
  secondsDelay?: number | undefined;
8613
9317
  scheduled?: number | undefined;
@@ -8642,15 +9346,58 @@ declare module '@scout9/app/schemas' {
8642
9346
  } | undefined;
8643
9347
  };
8644
9348
  }>, z.ZodArray<z.ZodObject<{
8645
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
8646
- content: z.ZodString;
8647
- transform: z.ZodOptional<z.ZodBoolean>;
8648
- }, "strip", z.ZodTypeAny, {
8649
- content: string;
8650
- transform?: boolean | undefined;
9349
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
9350
+ id: z.ZodOptional<z.ZodString>;
9351
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
9352
+ content: z.ZodOptional<z.ZodString>;
9353
+ time: z.ZodOptional<z.ZodString>;
9354
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9355
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9356
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
9357
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
9358
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
9359
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
9360
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
9361
+ start: z.ZodNumber;
9362
+ end: z.ZodNumber;
9363
+ type: z.ZodString;
9364
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9365
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9366
+ }, "strip", z.ZodTypeAny, {
9367
+ type: string;
9368
+ end: number;
9369
+ start: number;
9370
+ option?: string | null | undefined;
9371
+ text?: string | null | undefined;
9372
+ }, {
9373
+ type: string;
9374
+ end: number;
9375
+ start: number;
9376
+ option?: string | null | undefined;
9377
+ text?: string | null | undefined;
9378
+ }>, "many">>>>;
9379
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
9380
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
9381
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
9382
+ name?: string | undefined;
9383
+ content?: string | undefined;
9384
+ context?: any;
9385
+ scheduled?: string | undefined;
9386
+ intent?: string | null | undefined;
9387
+ intentScore?: number | null | undefined;
9388
+ delayInSeconds?: number | null | undefined;
9389
+ ignoreTransform?: boolean | undefined;
9390
+ mediaUrls?: string[] | null | undefined;
8651
9391
  }, {
8652
- content: string;
8653
- transform?: boolean | undefined;
9392
+ name?: string | undefined;
9393
+ content?: string | undefined;
9394
+ context?: any;
9395
+ scheduled?: string | undefined;
9396
+ intent?: string | null | undefined;
9397
+ intentScore?: number | null | undefined;
9398
+ delayInSeconds?: number | null | undefined;
9399
+ ignoreTransform?: boolean | undefined;
9400
+ mediaUrls?: string[] | null | undefined;
8654
9401
  }>]>>;
8655
9402
  forward: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
8656
9403
  to: z.ZodOptional<z.ZodString>;
@@ -8787,8 +9534,15 @@ declare module '@scout9/app/schemas' {
8787
9534
  }, "strip", z.ZodTypeAny, {
8788
9535
  keywords: string[];
8789
9536
  message?: string | {
8790
- content: string;
8791
- transform?: boolean | undefined;
9537
+ name?: string | undefined;
9538
+ content?: string | undefined;
9539
+ context?: any;
9540
+ scheduled?: string | undefined;
9541
+ intent?: string | null | undefined;
9542
+ intentScore?: number | null | undefined;
9543
+ delayInSeconds?: number | null | undefined;
9544
+ ignoreTransform?: boolean | undefined;
9545
+ mediaUrls?: string[] | null | undefined;
8792
9546
  } | undefined;
8793
9547
  forward?: string | boolean | {
8794
9548
  to?: string | undefined;
@@ -8840,8 +9594,15 @@ declare module '@scout9/app/schemas' {
8840
9594
  }, {
8841
9595
  keywords: string[];
8842
9596
  message?: string | {
8843
- content: string;
8844
- transform?: boolean | undefined;
9597
+ name?: string | undefined;
9598
+ content?: string | undefined;
9599
+ context?: any;
9600
+ scheduled?: string | undefined;
9601
+ intent?: string | null | undefined;
9602
+ intentScore?: number | null | undefined;
9603
+ delayInSeconds?: number | null | undefined;
9604
+ ignoreTransform?: boolean | undefined;
9605
+ mediaUrls?: string[] | null | undefined;
8845
9606
  } | undefined;
8846
9607
  forward?: string | boolean | {
8847
9608
  to?: string | undefined;
@@ -8891,10 +9652,45 @@ declare module '@scout9/app/schemas' {
8891
9652
  overrideLock?: boolean | undefined;
8892
9653
  } | undefined;
8893
9654
  }>, "many">]>>;
9655
+ entityContextUpsert: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"method", [z.ZodObject<{
9656
+ entityType: z.ZodString;
9657
+ entityRecordId: z.ZodString;
9658
+ method: z.ZodLiteral<"delete">;
9659
+ }, "strip", z.ZodTypeAny, {
9660
+ method: "delete";
9661
+ entityType: string;
9662
+ entityRecordId: string;
9663
+ }, {
9664
+ method: "delete";
9665
+ entityType: string;
9666
+ entityRecordId: string;
9667
+ }>, z.ZodObject<{
9668
+ entityType: z.ZodString;
9669
+ entityRecordId: z.ZodString;
9670
+ method: z.ZodLiteral<"mutate">;
9671
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodLiteral<"#remove">, z.ZodLiteral<"#delete">]>>;
9672
+ }, "strip", z.ZodTypeAny, {
9673
+ method: "mutate";
9674
+ entityType: string;
9675
+ entityRecordId: string;
9676
+ fields: Record<string, string | number | boolean | null>;
9677
+ }, {
9678
+ method: "mutate";
9679
+ entityType: string;
9680
+ entityRecordId: string;
9681
+ fields: Record<string, string | number | boolean | null>;
9682
+ }>]>, "many">>;
8894
9683
  }, "strip", z.ZodTypeAny, {
8895
9684
  message?: string | {
8896
- content: string;
8897
- transform?: boolean | undefined;
9685
+ name?: string | undefined;
9686
+ content?: string | undefined;
9687
+ context?: any;
9688
+ scheduled?: string | undefined;
9689
+ intent?: string | null | undefined;
9690
+ intentScore?: number | null | undefined;
9691
+ delayInSeconds?: number | null | undefined;
9692
+ ignoreTransform?: boolean | undefined;
9693
+ mediaUrls?: string[] | null | undefined;
8898
9694
  } | undefined;
8899
9695
  forward?: string | boolean | {
8900
9696
  to?: string | undefined;
@@ -8963,8 +9759,15 @@ declare module '@scout9/app/schemas' {
8963
9759
  })[] | undefined;
8964
9760
  removeInstructions?: string[] | undefined;
8965
9761
  message?: string | {
8966
- content: string;
8967
- transform?: boolean | undefined;
9762
+ name?: string | undefined;
9763
+ content?: string | undefined;
9764
+ context?: any;
9765
+ scheduled?: string | undefined;
9766
+ intent?: string | null | undefined;
9767
+ intentScore?: number | null | undefined;
9768
+ delayInSeconds?: number | null | undefined;
9769
+ ignoreTransform?: boolean | undefined;
9770
+ mediaUrls?: string[] | null | undefined;
8968
9771
  } | undefined;
8969
9772
  secondsDelay?: number | undefined;
8970
9773
  scheduled?: number | undefined;
@@ -9016,8 +9819,15 @@ declare module '@scout9/app/schemas' {
9016
9819
  })[] | undefined;
9017
9820
  removeInstructions?: string[] | undefined;
9018
9821
  message?: string | {
9019
- content: string;
9020
- transform?: boolean | undefined;
9822
+ name?: string | undefined;
9823
+ content?: string | undefined;
9824
+ context?: any;
9825
+ scheduled?: string | undefined;
9826
+ intent?: string | null | undefined;
9827
+ intentScore?: number | null | undefined;
9828
+ delayInSeconds?: number | null | undefined;
9829
+ ignoreTransform?: boolean | undefined;
9830
+ mediaUrls?: string[] | null | undefined;
9021
9831
  } | undefined;
9022
9832
  secondsDelay?: number | undefined;
9023
9833
  scheduled?: number | undefined;
@@ -9054,8 +9864,15 @@ declare module '@scout9/app/schemas' {
9054
9864
  } | {
9055
9865
  keywords: string[];
9056
9866
  message?: string | {
9057
- content: string;
9058
- transform?: boolean | undefined;
9867
+ name?: string | undefined;
9868
+ content?: string | undefined;
9869
+ context?: any;
9870
+ scheduled?: string | undefined;
9871
+ intent?: string | null | undefined;
9872
+ intentScore?: number | null | undefined;
9873
+ delayInSeconds?: number | null | undefined;
9874
+ ignoreTransform?: boolean | undefined;
9875
+ mediaUrls?: string[] | null | undefined;
9059
9876
  } | undefined;
9060
9877
  forward?: string | boolean | {
9061
9878
  to?: string | undefined;
@@ -9105,10 +9922,27 @@ declare module '@scout9/app/schemas' {
9105
9922
  overrideLock?: boolean | undefined;
9106
9923
  } | undefined;
9107
9924
  }[] | undefined;
9925
+ entityContextUpsert?: ({
9926
+ method: "delete";
9927
+ entityType: string;
9928
+ entityRecordId: string;
9929
+ } | {
9930
+ method: "mutate";
9931
+ entityType: string;
9932
+ entityRecordId: string;
9933
+ fields: Record<string, string | number | boolean | null>;
9934
+ })[] | undefined;
9108
9935
  }, {
9109
9936
  message?: string | {
9110
- content: string;
9111
- transform?: boolean | undefined;
9937
+ name?: string | undefined;
9938
+ content?: string | undefined;
9939
+ context?: any;
9940
+ scheduled?: string | undefined;
9941
+ intent?: string | null | undefined;
9942
+ intentScore?: number | null | undefined;
9943
+ delayInSeconds?: number | null | undefined;
9944
+ ignoreTransform?: boolean | undefined;
9945
+ mediaUrls?: string[] | null | undefined;
9112
9946
  } | undefined;
9113
9947
  forward?: string | boolean | {
9114
9948
  to?: string | undefined;
@@ -9177,8 +10011,15 @@ declare module '@scout9/app/schemas' {
9177
10011
  })[] | undefined;
9178
10012
  removeInstructions?: string[] | undefined;
9179
10013
  message?: string | {
9180
- content: string;
9181
- transform?: boolean | undefined;
10014
+ name?: string | undefined;
10015
+ content?: string | undefined;
10016
+ context?: any;
10017
+ scheduled?: string | undefined;
10018
+ intent?: string | null | undefined;
10019
+ intentScore?: number | null | undefined;
10020
+ delayInSeconds?: number | null | undefined;
10021
+ ignoreTransform?: boolean | undefined;
10022
+ mediaUrls?: string[] | null | undefined;
9182
10023
  } | undefined;
9183
10024
  secondsDelay?: number | undefined;
9184
10025
  scheduled?: number | undefined;
@@ -9230,8 +10071,15 @@ declare module '@scout9/app/schemas' {
9230
10071
  })[] | undefined;
9231
10072
  removeInstructions?: string[] | undefined;
9232
10073
  message?: string | {
9233
- content: string;
9234
- transform?: boolean | undefined;
10074
+ name?: string | undefined;
10075
+ content?: string | undefined;
10076
+ context?: any;
10077
+ scheduled?: string | undefined;
10078
+ intent?: string | null | undefined;
10079
+ intentScore?: number | null | undefined;
10080
+ delayInSeconds?: number | null | undefined;
10081
+ ignoreTransform?: boolean | undefined;
10082
+ mediaUrls?: string[] | null | undefined;
9235
10083
  } | undefined;
9236
10084
  secondsDelay?: number | undefined;
9237
10085
  scheduled?: number | undefined;
@@ -9268,8 +10116,15 @@ declare module '@scout9/app/schemas' {
9268
10116
  } | {
9269
10117
  keywords: string[];
9270
10118
  message?: string | {
9271
- content: string;
9272
- transform?: boolean | undefined;
10119
+ name?: string | undefined;
10120
+ content?: string | undefined;
10121
+ context?: any;
10122
+ scheduled?: string | undefined;
10123
+ intent?: string | null | undefined;
10124
+ intentScore?: number | null | undefined;
10125
+ delayInSeconds?: number | null | undefined;
10126
+ ignoreTransform?: boolean | undefined;
10127
+ mediaUrls?: string[] | null | undefined;
9273
10128
  } | undefined;
9274
10129
  forward?: string | boolean | {
9275
10130
  to?: string | undefined;
@@ -9319,16 +10174,69 @@ declare module '@scout9/app/schemas' {
9319
10174
  overrideLock?: boolean | undefined;
9320
10175
  } | undefined;
9321
10176
  }[] | undefined;
10177
+ entityContextUpsert?: ({
10178
+ method: "delete";
10179
+ entityType: string;
10180
+ entityRecordId: string;
10181
+ } | {
10182
+ method: "mutate";
10183
+ entityType: string;
10184
+ entityRecordId: string;
10185
+ fields: Record<string, string | number | boolean | null>;
10186
+ })[] | undefined;
9322
10187
  }>, z.ZodArray<z.ZodObject<{
9323
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
9324
- content: z.ZodString;
9325
- transform: z.ZodOptional<z.ZodBoolean>;
9326
- }, "strip", z.ZodTypeAny, {
9327
- content: string;
9328
- transform?: boolean | undefined;
10188
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
10189
+ id: z.ZodOptional<z.ZodString>;
10190
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
10191
+ content: z.ZodOptional<z.ZodString>;
10192
+ time: z.ZodOptional<z.ZodString>;
10193
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10194
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10195
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
10196
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
10197
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
10198
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
10199
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
10200
+ start: z.ZodNumber;
10201
+ end: z.ZodNumber;
10202
+ type: z.ZodString;
10203
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10204
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10205
+ }, "strip", z.ZodTypeAny, {
10206
+ type: string;
10207
+ end: number;
10208
+ start: number;
10209
+ option?: string | null | undefined;
10210
+ text?: string | null | undefined;
10211
+ }, {
10212
+ type: string;
10213
+ end: number;
10214
+ start: number;
10215
+ option?: string | null | undefined;
10216
+ text?: string | null | undefined;
10217
+ }>, "many">>>>;
10218
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
10219
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
10220
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
10221
+ name?: string | undefined;
10222
+ content?: string | undefined;
10223
+ context?: any;
10224
+ scheduled?: string | undefined;
10225
+ intent?: string | null | undefined;
10226
+ intentScore?: number | null | undefined;
10227
+ delayInSeconds?: number | null | undefined;
10228
+ ignoreTransform?: boolean | undefined;
10229
+ mediaUrls?: string[] | null | undefined;
9329
10230
  }, {
9330
- content: string;
9331
- transform?: boolean | undefined;
10231
+ name?: string | undefined;
10232
+ content?: string | undefined;
10233
+ context?: any;
10234
+ scheduled?: string | undefined;
10235
+ intent?: string | null | undefined;
10236
+ intentScore?: number | null | undefined;
10237
+ delayInSeconds?: number | null | undefined;
10238
+ ignoreTransform?: boolean | undefined;
10239
+ mediaUrls?: string[] | null | undefined;
9332
10240
  }>]>>;
9333
10241
  forward: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
9334
10242
  to: z.ZodOptional<z.ZodString>;
@@ -9504,15 +10412,58 @@ declare module '@scout9/app/schemas' {
9504
10412
  persist?: boolean | undefined;
9505
10413
  }>]>, "many">]>>;
9506
10414
  removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9507
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
9508
- content: z.ZodString;
9509
- transform: z.ZodOptional<z.ZodBoolean>;
9510
- }, "strip", z.ZodTypeAny, {
9511
- content: string;
9512
- transform?: boolean | undefined;
10415
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
10416
+ id: z.ZodOptional<z.ZodString>;
10417
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
10418
+ content: z.ZodOptional<z.ZodString>;
10419
+ time: z.ZodOptional<z.ZodString>;
10420
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10421
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10422
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
10423
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
10424
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
10425
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
10426
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
10427
+ start: z.ZodNumber;
10428
+ end: z.ZodNumber;
10429
+ type: z.ZodString;
10430
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10431
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10432
+ }, "strip", z.ZodTypeAny, {
10433
+ type: string;
10434
+ end: number;
10435
+ start: number;
10436
+ option?: string | null | undefined;
10437
+ text?: string | null | undefined;
10438
+ }, {
10439
+ type: string;
10440
+ end: number;
10441
+ start: number;
10442
+ option?: string | null | undefined;
10443
+ text?: string | null | undefined;
10444
+ }>, "many">>>>;
10445
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
10446
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
10447
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
10448
+ name?: string | undefined;
10449
+ content?: string | undefined;
10450
+ context?: any;
10451
+ scheduled?: string | undefined;
10452
+ intent?: string | null | undefined;
10453
+ intentScore?: number | null | undefined;
10454
+ delayInSeconds?: number | null | undefined;
10455
+ ignoreTransform?: boolean | undefined;
10456
+ mediaUrls?: string[] | null | undefined;
9513
10457
  }, {
9514
- content: string;
9515
- transform?: boolean | undefined;
10458
+ name?: string | undefined;
10459
+ content?: string | undefined;
10460
+ context?: any;
10461
+ scheduled?: string | undefined;
10462
+ intent?: string | null | undefined;
10463
+ intentScore?: number | null | undefined;
10464
+ delayInSeconds?: number | null | undefined;
10465
+ ignoreTransform?: boolean | undefined;
10466
+ mediaUrls?: string[] | null | undefined;
9516
10467
  }>]>>;
9517
10468
  secondsDelay: z.ZodOptional<z.ZodNumber>;
9518
10469
  scheduled: z.ZodOptional<z.ZodNumber>;
@@ -9623,8 +10574,15 @@ declare module '@scout9/app/schemas' {
9623
10574
  })[] | undefined;
9624
10575
  removeInstructions?: string[] | undefined;
9625
10576
  message?: string | {
9626
- content: string;
9627
- transform?: boolean | undefined;
10577
+ name?: string | undefined;
10578
+ content?: string | undefined;
10579
+ context?: any;
10580
+ scheduled?: string | undefined;
10581
+ intent?: string | null | undefined;
10582
+ intentScore?: number | null | undefined;
10583
+ delayInSeconds?: number | null | undefined;
10584
+ ignoreTransform?: boolean | undefined;
10585
+ mediaUrls?: string[] | null | undefined;
9628
10586
  } | undefined;
9629
10587
  secondsDelay?: number | undefined;
9630
10588
  scheduled?: number | undefined;
@@ -9675,8 +10633,15 @@ declare module '@scout9/app/schemas' {
9675
10633
  })[] | undefined;
9676
10634
  removeInstructions?: string[] | undefined;
9677
10635
  message?: string | {
9678
- content: string;
9679
- transform?: boolean | undefined;
10636
+ name?: string | undefined;
10637
+ content?: string | undefined;
10638
+ context?: any;
10639
+ scheduled?: string | undefined;
10640
+ intent?: string | null | undefined;
10641
+ intentScore?: number | null | undefined;
10642
+ delayInSeconds?: number | null | undefined;
10643
+ ignoreTransform?: boolean | undefined;
10644
+ mediaUrls?: string[] | null | undefined;
9680
10645
  } | undefined;
9681
10646
  secondsDelay?: number | undefined;
9682
10647
  scheduled?: number | undefined;
@@ -9751,15 +10716,58 @@ declare module '@scout9/app/schemas' {
9751
10716
  persist?: boolean | undefined;
9752
10717
  }>]>, "many">]>>;
9753
10718
  removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9754
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
9755
- content: z.ZodString;
9756
- transform: z.ZodOptional<z.ZodBoolean>;
9757
- }, "strip", z.ZodTypeAny, {
9758
- content: string;
9759
- transform?: boolean | undefined;
10719
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
10720
+ id: z.ZodOptional<z.ZodString>;
10721
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
10722
+ content: z.ZodOptional<z.ZodString>;
10723
+ time: z.ZodOptional<z.ZodString>;
10724
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10725
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10726
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
10727
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
10728
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
10729
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
10730
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
10731
+ start: z.ZodNumber;
10732
+ end: z.ZodNumber;
10733
+ type: z.ZodString;
10734
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10735
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10736
+ }, "strip", z.ZodTypeAny, {
10737
+ type: string;
10738
+ end: number;
10739
+ start: number;
10740
+ option?: string | null | undefined;
10741
+ text?: string | null | undefined;
10742
+ }, {
10743
+ type: string;
10744
+ end: number;
10745
+ start: number;
10746
+ option?: string | null | undefined;
10747
+ text?: string | null | undefined;
10748
+ }>, "many">>>>;
10749
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
10750
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
10751
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
10752
+ name?: string | undefined;
10753
+ content?: string | undefined;
10754
+ context?: any;
10755
+ scheduled?: string | undefined;
10756
+ intent?: string | null | undefined;
10757
+ intentScore?: number | null | undefined;
10758
+ delayInSeconds?: number | null | undefined;
10759
+ ignoreTransform?: boolean | undefined;
10760
+ mediaUrls?: string[] | null | undefined;
9760
10761
  }, {
9761
- content: string;
9762
- transform?: boolean | undefined;
10762
+ name?: string | undefined;
10763
+ content?: string | undefined;
10764
+ context?: any;
10765
+ scheduled?: string | undefined;
10766
+ intent?: string | null | undefined;
10767
+ intentScore?: number | null | undefined;
10768
+ delayInSeconds?: number | null | undefined;
10769
+ ignoreTransform?: boolean | undefined;
10770
+ mediaUrls?: string[] | null | undefined;
9763
10771
  }>]>>;
9764
10772
  secondsDelay: z.ZodOptional<z.ZodNumber>;
9765
10773
  scheduled: z.ZodOptional<z.ZodNumber>;
@@ -9870,8 +10878,15 @@ declare module '@scout9/app/schemas' {
9870
10878
  })[] | undefined;
9871
10879
  removeInstructions?: string[] | undefined;
9872
10880
  message?: string | {
9873
- content: string;
9874
- transform?: boolean | undefined;
10881
+ name?: string | undefined;
10882
+ content?: string | undefined;
10883
+ context?: any;
10884
+ scheduled?: string | undefined;
10885
+ intent?: string | null | undefined;
10886
+ intentScore?: number | null | undefined;
10887
+ delayInSeconds?: number | null | undefined;
10888
+ ignoreTransform?: boolean | undefined;
10889
+ mediaUrls?: string[] | null | undefined;
9875
10890
  } | undefined;
9876
10891
  secondsDelay?: number | undefined;
9877
10892
  scheduled?: number | undefined;
@@ -9922,8 +10937,15 @@ declare module '@scout9/app/schemas' {
9922
10937
  })[] | undefined;
9923
10938
  removeInstructions?: string[] | undefined;
9924
10939
  message?: string | {
9925
- content: string;
9926
- transform?: boolean | undefined;
10940
+ name?: string | undefined;
10941
+ content?: string | undefined;
10942
+ context?: any;
10943
+ scheduled?: string | undefined;
10944
+ intent?: string | null | undefined;
10945
+ intentScore?: number | null | undefined;
10946
+ delayInSeconds?: number | null | undefined;
10947
+ ignoreTransform?: boolean | undefined;
10948
+ mediaUrls?: string[] | null | undefined;
9927
10949
  } | undefined;
9928
10950
  secondsDelay?: number | undefined;
9929
10951
  scheduled?: number | undefined;
@@ -9977,8 +10999,15 @@ declare module '@scout9/app/schemas' {
9977
10999
  })[] | undefined;
9978
11000
  removeInstructions?: string[] | undefined;
9979
11001
  message?: string | {
9980
- content: string;
9981
- transform?: boolean | undefined;
11002
+ name?: string | undefined;
11003
+ content?: string | undefined;
11004
+ context?: any;
11005
+ scheduled?: string | undefined;
11006
+ intent?: string | null | undefined;
11007
+ intentScore?: number | null | undefined;
11008
+ delayInSeconds?: number | null | undefined;
11009
+ ignoreTransform?: boolean | undefined;
11010
+ mediaUrls?: string[] | null | undefined;
9982
11011
  } | undefined;
9983
11012
  secondsDelay?: number | undefined;
9984
11013
  scheduled?: number | undefined;
@@ -10030,8 +11059,15 @@ declare module '@scout9/app/schemas' {
10030
11059
  })[] | undefined;
10031
11060
  removeInstructions?: string[] | undefined;
10032
11061
  message?: string | {
10033
- content: string;
10034
- transform?: boolean | undefined;
11062
+ name?: string | undefined;
11063
+ content?: string | undefined;
11064
+ context?: any;
11065
+ scheduled?: string | undefined;
11066
+ intent?: string | null | undefined;
11067
+ intentScore?: number | null | undefined;
11068
+ delayInSeconds?: number | null | undefined;
11069
+ ignoreTransform?: boolean | undefined;
11070
+ mediaUrls?: string[] | null | undefined;
10035
11071
  } | undefined;
10036
11072
  secondsDelay?: number | undefined;
10037
11073
  scheduled?: number | undefined;
@@ -10085,8 +11121,15 @@ declare module '@scout9/app/schemas' {
10085
11121
  })[] | undefined;
10086
11122
  removeInstructions?: string[] | undefined;
10087
11123
  message?: string | {
10088
- content: string;
10089
- transform?: boolean | undefined;
11124
+ name?: string | undefined;
11125
+ content?: string | undefined;
11126
+ context?: any;
11127
+ scheduled?: string | undefined;
11128
+ intent?: string | null | undefined;
11129
+ intentScore?: number | null | undefined;
11130
+ delayInSeconds?: number | null | undefined;
11131
+ ignoreTransform?: boolean | undefined;
11132
+ mediaUrls?: string[] | null | undefined;
10090
11133
  } | undefined;
10091
11134
  secondsDelay?: number | undefined;
10092
11135
  scheduled?: number | undefined;
@@ -10138,8 +11181,15 @@ declare module '@scout9/app/schemas' {
10138
11181
  })[] | undefined;
10139
11182
  removeInstructions?: string[] | undefined;
10140
11183
  message?: string | {
10141
- content: string;
10142
- transform?: boolean | undefined;
11184
+ name?: string | undefined;
11185
+ content?: string | undefined;
11186
+ context?: any;
11187
+ scheduled?: string | undefined;
11188
+ intent?: string | null | undefined;
11189
+ intentScore?: number | null | undefined;
11190
+ delayInSeconds?: number | null | undefined;
11191
+ ignoreTransform?: boolean | undefined;
11192
+ mediaUrls?: string[] | null | undefined;
10143
11193
  } | undefined;
10144
11194
  secondsDelay?: number | undefined;
10145
11195
  scheduled?: number | undefined;
@@ -10174,15 +11224,58 @@ declare module '@scout9/app/schemas' {
10174
11224
  } | undefined;
10175
11225
  };
10176
11226
  }>, z.ZodArray<z.ZodObject<{
10177
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
10178
- content: z.ZodString;
10179
- transform: z.ZodOptional<z.ZodBoolean>;
10180
- }, "strip", z.ZodTypeAny, {
10181
- content: string;
10182
- transform?: boolean | undefined;
11227
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
11228
+ id: z.ZodOptional<z.ZodString>;
11229
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
11230
+ content: z.ZodOptional<z.ZodString>;
11231
+ time: z.ZodOptional<z.ZodString>;
11232
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11233
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11234
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
11235
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
11236
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
11237
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
11238
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
11239
+ start: z.ZodNumber;
11240
+ end: z.ZodNumber;
11241
+ type: z.ZodString;
11242
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
11243
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
11244
+ }, "strip", z.ZodTypeAny, {
11245
+ type: string;
11246
+ end: number;
11247
+ start: number;
11248
+ option?: string | null | undefined;
11249
+ text?: string | null | undefined;
11250
+ }, {
11251
+ type: string;
11252
+ end: number;
11253
+ start: number;
11254
+ option?: string | null | undefined;
11255
+ text?: string | null | undefined;
11256
+ }>, "many">>>>;
11257
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
11258
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
11259
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
11260
+ name?: string | undefined;
11261
+ content?: string | undefined;
11262
+ context?: any;
11263
+ scheduled?: string | undefined;
11264
+ intent?: string | null | undefined;
11265
+ intentScore?: number | null | undefined;
11266
+ delayInSeconds?: number | null | undefined;
11267
+ ignoreTransform?: boolean | undefined;
11268
+ mediaUrls?: string[] | null | undefined;
10183
11269
  }, {
10184
- content: string;
10185
- transform?: boolean | undefined;
11270
+ name?: string | undefined;
11271
+ content?: string | undefined;
11272
+ context?: any;
11273
+ scheduled?: string | undefined;
11274
+ intent?: string | null | undefined;
11275
+ intentScore?: number | null | undefined;
11276
+ delayInSeconds?: number | null | undefined;
11277
+ ignoreTransform?: boolean | undefined;
11278
+ mediaUrls?: string[] | null | undefined;
10186
11279
  }>]>>;
10187
11280
  forward: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
10188
11281
  to: z.ZodOptional<z.ZodString>;
@@ -10319,8 +11412,15 @@ declare module '@scout9/app/schemas' {
10319
11412
  }, "strip", z.ZodTypeAny, {
10320
11413
  keywords: string[];
10321
11414
  message?: string | {
10322
- content: string;
10323
- transform?: boolean | undefined;
11415
+ name?: string | undefined;
11416
+ content?: string | undefined;
11417
+ context?: any;
11418
+ scheduled?: string | undefined;
11419
+ intent?: string | null | undefined;
11420
+ intentScore?: number | null | undefined;
11421
+ delayInSeconds?: number | null | undefined;
11422
+ ignoreTransform?: boolean | undefined;
11423
+ mediaUrls?: string[] | null | undefined;
10324
11424
  } | undefined;
10325
11425
  forward?: string | boolean | {
10326
11426
  to?: string | undefined;
@@ -10372,8 +11472,15 @@ declare module '@scout9/app/schemas' {
10372
11472
  }, {
10373
11473
  keywords: string[];
10374
11474
  message?: string | {
10375
- content: string;
10376
- transform?: boolean | undefined;
11475
+ name?: string | undefined;
11476
+ content?: string | undefined;
11477
+ context?: any;
11478
+ scheduled?: string | undefined;
11479
+ intent?: string | null | undefined;
11480
+ intentScore?: number | null | undefined;
11481
+ delayInSeconds?: number | null | undefined;
11482
+ ignoreTransform?: boolean | undefined;
11483
+ mediaUrls?: string[] | null | undefined;
10377
11484
  } | undefined;
10378
11485
  forward?: string | boolean | {
10379
11486
  to?: string | undefined;
@@ -10423,10 +11530,45 @@ declare module '@scout9/app/schemas' {
10423
11530
  overrideLock?: boolean | undefined;
10424
11531
  } | undefined;
10425
11532
  }>, "many">]>>;
11533
+ entityContextUpsert: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"method", [z.ZodObject<{
11534
+ entityType: z.ZodString;
11535
+ entityRecordId: z.ZodString;
11536
+ method: z.ZodLiteral<"delete">;
11537
+ }, "strip", z.ZodTypeAny, {
11538
+ method: "delete";
11539
+ entityType: string;
11540
+ entityRecordId: string;
11541
+ }, {
11542
+ method: "delete";
11543
+ entityType: string;
11544
+ entityRecordId: string;
11545
+ }>, z.ZodObject<{
11546
+ entityType: z.ZodString;
11547
+ entityRecordId: z.ZodString;
11548
+ method: z.ZodLiteral<"mutate">;
11549
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodLiteral<"#remove">, z.ZodLiteral<"#delete">]>>;
11550
+ }, "strip", z.ZodTypeAny, {
11551
+ method: "mutate";
11552
+ entityType: string;
11553
+ entityRecordId: string;
11554
+ fields: Record<string, string | number | boolean | null>;
11555
+ }, {
11556
+ method: "mutate";
11557
+ entityType: string;
11558
+ entityRecordId: string;
11559
+ fields: Record<string, string | number | boolean | null>;
11560
+ }>]>, "many">>;
10426
11561
  }, "strip", z.ZodTypeAny, {
10427
11562
  message?: string | {
10428
- content: string;
10429
- transform?: boolean | undefined;
11563
+ name?: string | undefined;
11564
+ content?: string | undefined;
11565
+ context?: any;
11566
+ scheduled?: string | undefined;
11567
+ intent?: string | null | undefined;
11568
+ intentScore?: number | null | undefined;
11569
+ delayInSeconds?: number | null | undefined;
11570
+ ignoreTransform?: boolean | undefined;
11571
+ mediaUrls?: string[] | null | undefined;
10430
11572
  } | undefined;
10431
11573
  forward?: string | boolean | {
10432
11574
  to?: string | undefined;
@@ -10495,8 +11637,15 @@ declare module '@scout9/app/schemas' {
10495
11637
  })[] | undefined;
10496
11638
  removeInstructions?: string[] | undefined;
10497
11639
  message?: string | {
10498
- content: string;
10499
- transform?: boolean | undefined;
11640
+ name?: string | undefined;
11641
+ content?: string | undefined;
11642
+ context?: any;
11643
+ scheduled?: string | undefined;
11644
+ intent?: string | null | undefined;
11645
+ intentScore?: number | null | undefined;
11646
+ delayInSeconds?: number | null | undefined;
11647
+ ignoreTransform?: boolean | undefined;
11648
+ mediaUrls?: string[] | null | undefined;
10500
11649
  } | undefined;
10501
11650
  secondsDelay?: number | undefined;
10502
11651
  scheduled?: number | undefined;
@@ -10548,8 +11697,15 @@ declare module '@scout9/app/schemas' {
10548
11697
  })[] | undefined;
10549
11698
  removeInstructions?: string[] | undefined;
10550
11699
  message?: string | {
10551
- content: string;
10552
- transform?: boolean | undefined;
11700
+ name?: string | undefined;
11701
+ content?: string | undefined;
11702
+ context?: any;
11703
+ scheduled?: string | undefined;
11704
+ intent?: string | null | undefined;
11705
+ intentScore?: number | null | undefined;
11706
+ delayInSeconds?: number | null | undefined;
11707
+ ignoreTransform?: boolean | undefined;
11708
+ mediaUrls?: string[] | null | undefined;
10553
11709
  } | undefined;
10554
11710
  secondsDelay?: number | undefined;
10555
11711
  scheduled?: number | undefined;
@@ -10586,8 +11742,15 @@ declare module '@scout9/app/schemas' {
10586
11742
  } | {
10587
11743
  keywords: string[];
10588
11744
  message?: string | {
10589
- content: string;
10590
- transform?: boolean | undefined;
11745
+ name?: string | undefined;
11746
+ content?: string | undefined;
11747
+ context?: any;
11748
+ scheduled?: string | undefined;
11749
+ intent?: string | null | undefined;
11750
+ intentScore?: number | null | undefined;
11751
+ delayInSeconds?: number | null | undefined;
11752
+ ignoreTransform?: boolean | undefined;
11753
+ mediaUrls?: string[] | null | undefined;
10591
11754
  } | undefined;
10592
11755
  forward?: string | boolean | {
10593
11756
  to?: string | undefined;
@@ -10637,10 +11800,27 @@ declare module '@scout9/app/schemas' {
10637
11800
  overrideLock?: boolean | undefined;
10638
11801
  } | undefined;
10639
11802
  }[] | undefined;
11803
+ entityContextUpsert?: ({
11804
+ method: "delete";
11805
+ entityType: string;
11806
+ entityRecordId: string;
11807
+ } | {
11808
+ method: "mutate";
11809
+ entityType: string;
11810
+ entityRecordId: string;
11811
+ fields: Record<string, string | number | boolean | null>;
11812
+ })[] | undefined;
10640
11813
  }, {
10641
11814
  message?: string | {
10642
- content: string;
10643
- transform?: boolean | undefined;
11815
+ name?: string | undefined;
11816
+ content?: string | undefined;
11817
+ context?: any;
11818
+ scheduled?: string | undefined;
11819
+ intent?: string | null | undefined;
11820
+ intentScore?: number | null | undefined;
11821
+ delayInSeconds?: number | null | undefined;
11822
+ ignoreTransform?: boolean | undefined;
11823
+ mediaUrls?: string[] | null | undefined;
10644
11824
  } | undefined;
10645
11825
  forward?: string | boolean | {
10646
11826
  to?: string | undefined;
@@ -10709,8 +11889,15 @@ declare module '@scout9/app/schemas' {
10709
11889
  })[] | undefined;
10710
11890
  removeInstructions?: string[] | undefined;
10711
11891
  message?: string | {
10712
- content: string;
10713
- transform?: boolean | undefined;
11892
+ name?: string | undefined;
11893
+ content?: string | undefined;
11894
+ context?: any;
11895
+ scheduled?: string | undefined;
11896
+ intent?: string | null | undefined;
11897
+ intentScore?: number | null | undefined;
11898
+ delayInSeconds?: number | null | undefined;
11899
+ ignoreTransform?: boolean | undefined;
11900
+ mediaUrls?: string[] | null | undefined;
10714
11901
  } | undefined;
10715
11902
  secondsDelay?: number | undefined;
10716
11903
  scheduled?: number | undefined;
@@ -10762,8 +11949,15 @@ declare module '@scout9/app/schemas' {
10762
11949
  })[] | undefined;
10763
11950
  removeInstructions?: string[] | undefined;
10764
11951
  message?: string | {
10765
- content: string;
10766
- transform?: boolean | undefined;
11952
+ name?: string | undefined;
11953
+ content?: string | undefined;
11954
+ context?: any;
11955
+ scheduled?: string | undefined;
11956
+ intent?: string | null | undefined;
11957
+ intentScore?: number | null | undefined;
11958
+ delayInSeconds?: number | null | undefined;
11959
+ ignoreTransform?: boolean | undefined;
11960
+ mediaUrls?: string[] | null | undefined;
10767
11961
  } | undefined;
10768
11962
  secondsDelay?: number | undefined;
10769
11963
  scheduled?: number | undefined;
@@ -10800,8 +11994,15 @@ declare module '@scout9/app/schemas' {
10800
11994
  } | {
10801
11995
  keywords: string[];
10802
11996
  message?: string | {
10803
- content: string;
10804
- transform?: boolean | undefined;
11997
+ name?: string | undefined;
11998
+ content?: string | undefined;
11999
+ context?: any;
12000
+ scheduled?: string | undefined;
12001
+ intent?: string | null | undefined;
12002
+ intentScore?: number | null | undefined;
12003
+ delayInSeconds?: number | null | undefined;
12004
+ ignoreTransform?: boolean | undefined;
12005
+ mediaUrls?: string[] | null | undefined;
10805
12006
  } | undefined;
10806
12007
  forward?: string | boolean | {
10807
12008
  to?: string | undefined;
@@ -10851,6 +12052,16 @@ declare module '@scout9/app/schemas' {
10851
12052
  overrideLock?: boolean | undefined;
10852
12053
  } | undefined;
10853
12054
  }[] | undefined;
12055
+ entityContextUpsert?: ({
12056
+ method: "delete";
12057
+ entityType: string;
12058
+ entityRecordId: string;
12059
+ } | {
12060
+ method: "mutate";
12061
+ entityType: string;
12062
+ entityRecordId: string;
12063
+ fields: Record<string, string | number | boolean | null>;
12064
+ })[] | undefined;
10854
12065
  }>, "many">]>;
10855
12066
  export const WorkflowFunctionSchema: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
10856
12067
  messages: z.ZodArray<z.ZodObject<{
@@ -11610,15 +12821,58 @@ declare module '@scout9/app/schemas' {
11610
12821
  context?: any;
11611
12822
  note?: string | undefined;
11612
12823
  }>], z.ZodUnknown>, z.ZodUnion<[z.ZodPromise<z.ZodUnion<[z.ZodObject<{
11613
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
11614
- content: z.ZodString;
11615
- transform: z.ZodOptional<z.ZodBoolean>;
11616
- }, "strip", z.ZodTypeAny, {
11617
- content: string;
11618
- transform?: boolean | undefined;
12824
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
12825
+ id: z.ZodOptional<z.ZodString>;
12826
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
12827
+ content: z.ZodOptional<z.ZodString>;
12828
+ time: z.ZodOptional<z.ZodString>;
12829
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12830
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12831
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
12832
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
12833
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
12834
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
12835
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
12836
+ start: z.ZodNumber;
12837
+ end: z.ZodNumber;
12838
+ type: z.ZodString;
12839
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12840
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12841
+ }, "strip", z.ZodTypeAny, {
12842
+ type: string;
12843
+ end: number;
12844
+ start: number;
12845
+ option?: string | null | undefined;
12846
+ text?: string | null | undefined;
12847
+ }, {
12848
+ type: string;
12849
+ end: number;
12850
+ start: number;
12851
+ option?: string | null | undefined;
12852
+ text?: string | null | undefined;
12853
+ }>, "many">>>>;
12854
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
12855
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
12856
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
12857
+ name?: string | undefined;
12858
+ content?: string | undefined;
12859
+ context?: any;
12860
+ scheduled?: string | undefined;
12861
+ intent?: string | null | undefined;
12862
+ intentScore?: number | null | undefined;
12863
+ delayInSeconds?: number | null | undefined;
12864
+ ignoreTransform?: boolean | undefined;
12865
+ mediaUrls?: string[] | null | undefined;
11619
12866
  }, {
11620
- content: string;
11621
- transform?: boolean | undefined;
12867
+ name?: string | undefined;
12868
+ content?: string | undefined;
12869
+ context?: any;
12870
+ scheduled?: string | undefined;
12871
+ intent?: string | null | undefined;
12872
+ intentScore?: number | null | undefined;
12873
+ delayInSeconds?: number | null | undefined;
12874
+ ignoreTransform?: boolean | undefined;
12875
+ mediaUrls?: string[] | null | undefined;
11622
12876
  }>]>>;
11623
12877
  forward: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
11624
12878
  to: z.ZodOptional<z.ZodString>;
@@ -11794,15 +13048,58 @@ declare module '@scout9/app/schemas' {
11794
13048
  persist?: boolean | undefined;
11795
13049
  }>]>, "many">]>>;
11796
13050
  removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11797
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
11798
- content: z.ZodString;
11799
- transform: z.ZodOptional<z.ZodBoolean>;
11800
- }, "strip", z.ZodTypeAny, {
11801
- content: string;
11802
- transform?: boolean | undefined;
13051
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
13052
+ id: z.ZodOptional<z.ZodString>;
13053
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
13054
+ content: z.ZodOptional<z.ZodString>;
13055
+ time: z.ZodOptional<z.ZodString>;
13056
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13057
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13058
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
13059
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
13060
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
13061
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
13062
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
13063
+ start: z.ZodNumber;
13064
+ end: z.ZodNumber;
13065
+ type: z.ZodString;
13066
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
13067
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
13068
+ }, "strip", z.ZodTypeAny, {
13069
+ type: string;
13070
+ end: number;
13071
+ start: number;
13072
+ option?: string | null | undefined;
13073
+ text?: string | null | undefined;
13074
+ }, {
13075
+ type: string;
13076
+ end: number;
13077
+ start: number;
13078
+ option?: string | null | undefined;
13079
+ text?: string | null | undefined;
13080
+ }>, "many">>>>;
13081
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
13082
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
13083
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
13084
+ name?: string | undefined;
13085
+ content?: string | undefined;
13086
+ context?: any;
13087
+ scheduled?: string | undefined;
13088
+ intent?: string | null | undefined;
13089
+ intentScore?: number | null | undefined;
13090
+ delayInSeconds?: number | null | undefined;
13091
+ ignoreTransform?: boolean | undefined;
13092
+ mediaUrls?: string[] | null | undefined;
11803
13093
  }, {
11804
- content: string;
11805
- transform?: boolean | undefined;
13094
+ name?: string | undefined;
13095
+ content?: string | undefined;
13096
+ context?: any;
13097
+ scheduled?: string | undefined;
13098
+ intent?: string | null | undefined;
13099
+ intentScore?: number | null | undefined;
13100
+ delayInSeconds?: number | null | undefined;
13101
+ ignoreTransform?: boolean | undefined;
13102
+ mediaUrls?: string[] | null | undefined;
11806
13103
  }>]>>;
11807
13104
  secondsDelay: z.ZodOptional<z.ZodNumber>;
11808
13105
  scheduled: z.ZodOptional<z.ZodNumber>;
@@ -11913,8 +13210,15 @@ declare module '@scout9/app/schemas' {
11913
13210
  })[] | undefined;
11914
13211
  removeInstructions?: string[] | undefined;
11915
13212
  message?: string | {
11916
- content: string;
11917
- transform?: boolean | undefined;
13213
+ name?: string | undefined;
13214
+ content?: string | undefined;
13215
+ context?: any;
13216
+ scheduled?: string | undefined;
13217
+ intent?: string | null | undefined;
13218
+ intentScore?: number | null | undefined;
13219
+ delayInSeconds?: number | null | undefined;
13220
+ ignoreTransform?: boolean | undefined;
13221
+ mediaUrls?: string[] | null | undefined;
11918
13222
  } | undefined;
11919
13223
  secondsDelay?: number | undefined;
11920
13224
  scheduled?: number | undefined;
@@ -11965,8 +13269,15 @@ declare module '@scout9/app/schemas' {
11965
13269
  })[] | undefined;
11966
13270
  removeInstructions?: string[] | undefined;
11967
13271
  message?: string | {
11968
- content: string;
11969
- transform?: boolean | undefined;
13272
+ name?: string | undefined;
13273
+ content?: string | undefined;
13274
+ context?: any;
13275
+ scheduled?: string | undefined;
13276
+ intent?: string | null | undefined;
13277
+ intentScore?: number | null | undefined;
13278
+ delayInSeconds?: number | null | undefined;
13279
+ ignoreTransform?: boolean | undefined;
13280
+ mediaUrls?: string[] | null | undefined;
11970
13281
  } | undefined;
11971
13282
  secondsDelay?: number | undefined;
11972
13283
  scheduled?: number | undefined;
@@ -12041,15 +13352,58 @@ declare module '@scout9/app/schemas' {
12041
13352
  persist?: boolean | undefined;
12042
13353
  }>]>, "many">]>>;
12043
13354
  removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12044
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
12045
- content: z.ZodString;
12046
- transform: z.ZodOptional<z.ZodBoolean>;
12047
- }, "strip", z.ZodTypeAny, {
12048
- content: string;
12049
- transform?: boolean | undefined;
13355
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
13356
+ id: z.ZodOptional<z.ZodString>;
13357
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
13358
+ content: z.ZodOptional<z.ZodString>;
13359
+ time: z.ZodOptional<z.ZodString>;
13360
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13361
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13362
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
13363
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
13364
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
13365
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
13366
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
13367
+ start: z.ZodNumber;
13368
+ end: z.ZodNumber;
13369
+ type: z.ZodString;
13370
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
13371
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
13372
+ }, "strip", z.ZodTypeAny, {
13373
+ type: string;
13374
+ end: number;
13375
+ start: number;
13376
+ option?: string | null | undefined;
13377
+ text?: string | null | undefined;
13378
+ }, {
13379
+ type: string;
13380
+ end: number;
13381
+ start: number;
13382
+ option?: string | null | undefined;
13383
+ text?: string | null | undefined;
13384
+ }>, "many">>>>;
13385
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
13386
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
13387
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
13388
+ name?: string | undefined;
13389
+ content?: string | undefined;
13390
+ context?: any;
13391
+ scheduled?: string | undefined;
13392
+ intent?: string | null | undefined;
13393
+ intentScore?: number | null | undefined;
13394
+ delayInSeconds?: number | null | undefined;
13395
+ ignoreTransform?: boolean | undefined;
13396
+ mediaUrls?: string[] | null | undefined;
12050
13397
  }, {
12051
- content: string;
12052
- transform?: boolean | undefined;
13398
+ name?: string | undefined;
13399
+ content?: string | undefined;
13400
+ context?: any;
13401
+ scheduled?: string | undefined;
13402
+ intent?: string | null | undefined;
13403
+ intentScore?: number | null | undefined;
13404
+ delayInSeconds?: number | null | undefined;
13405
+ ignoreTransform?: boolean | undefined;
13406
+ mediaUrls?: string[] | null | undefined;
12053
13407
  }>]>>;
12054
13408
  secondsDelay: z.ZodOptional<z.ZodNumber>;
12055
13409
  scheduled: z.ZodOptional<z.ZodNumber>;
@@ -12160,8 +13514,15 @@ declare module '@scout9/app/schemas' {
12160
13514
  })[] | undefined;
12161
13515
  removeInstructions?: string[] | undefined;
12162
13516
  message?: string | {
12163
- content: string;
12164
- transform?: boolean | undefined;
13517
+ name?: string | undefined;
13518
+ content?: string | undefined;
13519
+ context?: any;
13520
+ scheduled?: string | undefined;
13521
+ intent?: string | null | undefined;
13522
+ intentScore?: number | null | undefined;
13523
+ delayInSeconds?: number | null | undefined;
13524
+ ignoreTransform?: boolean | undefined;
13525
+ mediaUrls?: string[] | null | undefined;
12165
13526
  } | undefined;
12166
13527
  secondsDelay?: number | undefined;
12167
13528
  scheduled?: number | undefined;
@@ -12212,8 +13573,15 @@ declare module '@scout9/app/schemas' {
12212
13573
  })[] | undefined;
12213
13574
  removeInstructions?: string[] | undefined;
12214
13575
  message?: string | {
12215
- content: string;
12216
- transform?: boolean | undefined;
13576
+ name?: string | undefined;
13577
+ content?: string | undefined;
13578
+ context?: any;
13579
+ scheduled?: string | undefined;
13580
+ intent?: string | null | undefined;
13581
+ intentScore?: number | null | undefined;
13582
+ delayInSeconds?: number | null | undefined;
13583
+ ignoreTransform?: boolean | undefined;
13584
+ mediaUrls?: string[] | null | undefined;
12217
13585
  } | undefined;
12218
13586
  secondsDelay?: number | undefined;
12219
13587
  scheduled?: number | undefined;
@@ -12267,8 +13635,15 @@ declare module '@scout9/app/schemas' {
12267
13635
  })[] | undefined;
12268
13636
  removeInstructions?: string[] | undefined;
12269
13637
  message?: string | {
12270
- content: string;
12271
- transform?: boolean | undefined;
13638
+ name?: string | undefined;
13639
+ content?: string | undefined;
13640
+ context?: any;
13641
+ scheduled?: string | undefined;
13642
+ intent?: string | null | undefined;
13643
+ intentScore?: number | null | undefined;
13644
+ delayInSeconds?: number | null | undefined;
13645
+ ignoreTransform?: boolean | undefined;
13646
+ mediaUrls?: string[] | null | undefined;
12272
13647
  } | undefined;
12273
13648
  secondsDelay?: number | undefined;
12274
13649
  scheduled?: number | undefined;
@@ -12320,8 +13695,15 @@ declare module '@scout9/app/schemas' {
12320
13695
  })[] | undefined;
12321
13696
  removeInstructions?: string[] | undefined;
12322
13697
  message?: string | {
12323
- content: string;
12324
- transform?: boolean | undefined;
13698
+ name?: string | undefined;
13699
+ content?: string | undefined;
13700
+ context?: any;
13701
+ scheduled?: string | undefined;
13702
+ intent?: string | null | undefined;
13703
+ intentScore?: number | null | undefined;
13704
+ delayInSeconds?: number | null | undefined;
13705
+ ignoreTransform?: boolean | undefined;
13706
+ mediaUrls?: string[] | null | undefined;
12325
13707
  } | undefined;
12326
13708
  secondsDelay?: number | undefined;
12327
13709
  scheduled?: number | undefined;
@@ -12375,8 +13757,15 @@ declare module '@scout9/app/schemas' {
12375
13757
  })[] | undefined;
12376
13758
  removeInstructions?: string[] | undefined;
12377
13759
  message?: string | {
12378
- content: string;
12379
- transform?: boolean | undefined;
13760
+ name?: string | undefined;
13761
+ content?: string | undefined;
13762
+ context?: any;
13763
+ scheduled?: string | undefined;
13764
+ intent?: string | null | undefined;
13765
+ intentScore?: number | null | undefined;
13766
+ delayInSeconds?: number | null | undefined;
13767
+ ignoreTransform?: boolean | undefined;
13768
+ mediaUrls?: string[] | null | undefined;
12380
13769
  } | undefined;
12381
13770
  secondsDelay?: number | undefined;
12382
13771
  scheduled?: number | undefined;
@@ -12428,8 +13817,15 @@ declare module '@scout9/app/schemas' {
12428
13817
  })[] | undefined;
12429
13818
  removeInstructions?: string[] | undefined;
12430
13819
  message?: string | {
12431
- content: string;
12432
- transform?: boolean | undefined;
13820
+ name?: string | undefined;
13821
+ content?: string | undefined;
13822
+ context?: any;
13823
+ scheduled?: string | undefined;
13824
+ intent?: string | null | undefined;
13825
+ intentScore?: number | null | undefined;
13826
+ delayInSeconds?: number | null | undefined;
13827
+ ignoreTransform?: boolean | undefined;
13828
+ mediaUrls?: string[] | null | undefined;
12433
13829
  } | undefined;
12434
13830
  secondsDelay?: number | undefined;
12435
13831
  scheduled?: number | undefined;
@@ -12464,15 +13860,58 @@ declare module '@scout9/app/schemas' {
12464
13860
  } | undefined;
12465
13861
  };
12466
13862
  }>, z.ZodArray<z.ZodObject<{
12467
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
12468
- content: z.ZodString;
12469
- transform: z.ZodOptional<z.ZodBoolean>;
12470
- }, "strip", z.ZodTypeAny, {
12471
- content: string;
12472
- transform?: boolean | undefined;
13863
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
13864
+ id: z.ZodOptional<z.ZodString>;
13865
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
13866
+ content: z.ZodOptional<z.ZodString>;
13867
+ time: z.ZodOptional<z.ZodString>;
13868
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13869
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13870
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
13871
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
13872
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
13873
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
13874
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
13875
+ start: z.ZodNumber;
13876
+ end: z.ZodNumber;
13877
+ type: z.ZodString;
13878
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
13879
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
13880
+ }, "strip", z.ZodTypeAny, {
13881
+ type: string;
13882
+ end: number;
13883
+ start: number;
13884
+ option?: string | null | undefined;
13885
+ text?: string | null | undefined;
13886
+ }, {
13887
+ type: string;
13888
+ end: number;
13889
+ start: number;
13890
+ option?: string | null | undefined;
13891
+ text?: string | null | undefined;
13892
+ }>, "many">>>>;
13893
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
13894
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
13895
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
13896
+ name?: string | undefined;
13897
+ content?: string | undefined;
13898
+ context?: any;
13899
+ scheduled?: string | undefined;
13900
+ intent?: string | null | undefined;
13901
+ intentScore?: number | null | undefined;
13902
+ delayInSeconds?: number | null | undefined;
13903
+ ignoreTransform?: boolean | undefined;
13904
+ mediaUrls?: string[] | null | undefined;
12473
13905
  }, {
12474
- content: string;
12475
- transform?: boolean | undefined;
13906
+ name?: string | undefined;
13907
+ content?: string | undefined;
13908
+ context?: any;
13909
+ scheduled?: string | undefined;
13910
+ intent?: string | null | undefined;
13911
+ intentScore?: number | null | undefined;
13912
+ delayInSeconds?: number | null | undefined;
13913
+ ignoreTransform?: boolean | undefined;
13914
+ mediaUrls?: string[] | null | undefined;
12476
13915
  }>]>>;
12477
13916
  forward: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
12478
13917
  to: z.ZodOptional<z.ZodString>;
@@ -12609,8 +14048,15 @@ declare module '@scout9/app/schemas' {
12609
14048
  }, "strip", z.ZodTypeAny, {
12610
14049
  keywords: string[];
12611
14050
  message?: string | {
12612
- content: string;
12613
- transform?: boolean | undefined;
14051
+ name?: string | undefined;
14052
+ content?: string | undefined;
14053
+ context?: any;
14054
+ scheduled?: string | undefined;
14055
+ intent?: string | null | undefined;
14056
+ intentScore?: number | null | undefined;
14057
+ delayInSeconds?: number | null | undefined;
14058
+ ignoreTransform?: boolean | undefined;
14059
+ mediaUrls?: string[] | null | undefined;
12614
14060
  } | undefined;
12615
14061
  forward?: string | boolean | {
12616
14062
  to?: string | undefined;
@@ -12662,8 +14108,15 @@ declare module '@scout9/app/schemas' {
12662
14108
  }, {
12663
14109
  keywords: string[];
12664
14110
  message?: string | {
12665
- content: string;
12666
- transform?: boolean | undefined;
14111
+ name?: string | undefined;
14112
+ content?: string | undefined;
14113
+ context?: any;
14114
+ scheduled?: string | undefined;
14115
+ intent?: string | null | undefined;
14116
+ intentScore?: number | null | undefined;
14117
+ delayInSeconds?: number | null | undefined;
14118
+ ignoreTransform?: boolean | undefined;
14119
+ mediaUrls?: string[] | null | undefined;
12667
14120
  } | undefined;
12668
14121
  forward?: string | boolean | {
12669
14122
  to?: string | undefined;
@@ -12713,10 +14166,45 @@ declare module '@scout9/app/schemas' {
12713
14166
  overrideLock?: boolean | undefined;
12714
14167
  } | undefined;
12715
14168
  }>, "many">]>>;
14169
+ entityContextUpsert: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"method", [z.ZodObject<{
14170
+ entityType: z.ZodString;
14171
+ entityRecordId: z.ZodString;
14172
+ method: z.ZodLiteral<"delete">;
14173
+ }, "strip", z.ZodTypeAny, {
14174
+ method: "delete";
14175
+ entityType: string;
14176
+ entityRecordId: string;
14177
+ }, {
14178
+ method: "delete";
14179
+ entityType: string;
14180
+ entityRecordId: string;
14181
+ }>, z.ZodObject<{
14182
+ entityType: z.ZodString;
14183
+ entityRecordId: z.ZodString;
14184
+ method: z.ZodLiteral<"mutate">;
14185
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodLiteral<"#remove">, z.ZodLiteral<"#delete">]>>;
14186
+ }, "strip", z.ZodTypeAny, {
14187
+ method: "mutate";
14188
+ entityType: string;
14189
+ entityRecordId: string;
14190
+ fields: Record<string, string | number | boolean | null>;
14191
+ }, {
14192
+ method: "mutate";
14193
+ entityType: string;
14194
+ entityRecordId: string;
14195
+ fields: Record<string, string | number | boolean | null>;
14196
+ }>]>, "many">>;
12716
14197
  }, "strip", z.ZodTypeAny, {
12717
14198
  message?: string | {
12718
- content: string;
12719
- transform?: boolean | undefined;
14199
+ name?: string | undefined;
14200
+ content?: string | undefined;
14201
+ context?: any;
14202
+ scheduled?: string | undefined;
14203
+ intent?: string | null | undefined;
14204
+ intentScore?: number | null | undefined;
14205
+ delayInSeconds?: number | null | undefined;
14206
+ ignoreTransform?: boolean | undefined;
14207
+ mediaUrls?: string[] | null | undefined;
12720
14208
  } | undefined;
12721
14209
  forward?: string | boolean | {
12722
14210
  to?: string | undefined;
@@ -12785,8 +14273,15 @@ declare module '@scout9/app/schemas' {
12785
14273
  })[] | undefined;
12786
14274
  removeInstructions?: string[] | undefined;
12787
14275
  message?: string | {
12788
- content: string;
12789
- transform?: boolean | undefined;
14276
+ name?: string | undefined;
14277
+ content?: string | undefined;
14278
+ context?: any;
14279
+ scheduled?: string | undefined;
14280
+ intent?: string | null | undefined;
14281
+ intentScore?: number | null | undefined;
14282
+ delayInSeconds?: number | null | undefined;
14283
+ ignoreTransform?: boolean | undefined;
14284
+ mediaUrls?: string[] | null | undefined;
12790
14285
  } | undefined;
12791
14286
  secondsDelay?: number | undefined;
12792
14287
  scheduled?: number | undefined;
@@ -12838,8 +14333,15 @@ declare module '@scout9/app/schemas' {
12838
14333
  })[] | undefined;
12839
14334
  removeInstructions?: string[] | undefined;
12840
14335
  message?: string | {
12841
- content: string;
12842
- transform?: boolean | undefined;
14336
+ name?: string | undefined;
14337
+ content?: string | undefined;
14338
+ context?: any;
14339
+ scheduled?: string | undefined;
14340
+ intent?: string | null | undefined;
14341
+ intentScore?: number | null | undefined;
14342
+ delayInSeconds?: number | null | undefined;
14343
+ ignoreTransform?: boolean | undefined;
14344
+ mediaUrls?: string[] | null | undefined;
12843
14345
  } | undefined;
12844
14346
  secondsDelay?: number | undefined;
12845
14347
  scheduled?: number | undefined;
@@ -12876,8 +14378,15 @@ declare module '@scout9/app/schemas' {
12876
14378
  } | {
12877
14379
  keywords: string[];
12878
14380
  message?: string | {
12879
- content: string;
12880
- transform?: boolean | undefined;
14381
+ name?: string | undefined;
14382
+ content?: string | undefined;
14383
+ context?: any;
14384
+ scheduled?: string | undefined;
14385
+ intent?: string | null | undefined;
14386
+ intentScore?: number | null | undefined;
14387
+ delayInSeconds?: number | null | undefined;
14388
+ ignoreTransform?: boolean | undefined;
14389
+ mediaUrls?: string[] | null | undefined;
12881
14390
  } | undefined;
12882
14391
  forward?: string | boolean | {
12883
14392
  to?: string | undefined;
@@ -12927,10 +14436,27 @@ declare module '@scout9/app/schemas' {
12927
14436
  overrideLock?: boolean | undefined;
12928
14437
  } | undefined;
12929
14438
  }[] | undefined;
14439
+ entityContextUpsert?: ({
14440
+ method: "delete";
14441
+ entityType: string;
14442
+ entityRecordId: string;
14443
+ } | {
14444
+ method: "mutate";
14445
+ entityType: string;
14446
+ entityRecordId: string;
14447
+ fields: Record<string, string | number | boolean | null>;
14448
+ })[] | undefined;
12930
14449
  }, {
12931
14450
  message?: string | {
12932
- content: string;
12933
- transform?: boolean | undefined;
14451
+ name?: string | undefined;
14452
+ content?: string | undefined;
14453
+ context?: any;
14454
+ scheduled?: string | undefined;
14455
+ intent?: string | null | undefined;
14456
+ intentScore?: number | null | undefined;
14457
+ delayInSeconds?: number | null | undefined;
14458
+ ignoreTransform?: boolean | undefined;
14459
+ mediaUrls?: string[] | null | undefined;
12934
14460
  } | undefined;
12935
14461
  forward?: string | boolean | {
12936
14462
  to?: string | undefined;
@@ -12999,8 +14525,15 @@ declare module '@scout9/app/schemas' {
12999
14525
  })[] | undefined;
13000
14526
  removeInstructions?: string[] | undefined;
13001
14527
  message?: string | {
13002
- content: string;
13003
- transform?: boolean | undefined;
14528
+ name?: string | undefined;
14529
+ content?: string | undefined;
14530
+ context?: any;
14531
+ scheduled?: string | undefined;
14532
+ intent?: string | null | undefined;
14533
+ intentScore?: number | null | undefined;
14534
+ delayInSeconds?: number | null | undefined;
14535
+ ignoreTransform?: boolean | undefined;
14536
+ mediaUrls?: string[] | null | undefined;
13004
14537
  } | undefined;
13005
14538
  secondsDelay?: number | undefined;
13006
14539
  scheduled?: number | undefined;
@@ -13052,8 +14585,15 @@ declare module '@scout9/app/schemas' {
13052
14585
  })[] | undefined;
13053
14586
  removeInstructions?: string[] | undefined;
13054
14587
  message?: string | {
13055
- content: string;
13056
- transform?: boolean | undefined;
14588
+ name?: string | undefined;
14589
+ content?: string | undefined;
14590
+ context?: any;
14591
+ scheduled?: string | undefined;
14592
+ intent?: string | null | undefined;
14593
+ intentScore?: number | null | undefined;
14594
+ delayInSeconds?: number | null | undefined;
14595
+ ignoreTransform?: boolean | undefined;
14596
+ mediaUrls?: string[] | null | undefined;
13057
14597
  } | undefined;
13058
14598
  secondsDelay?: number | undefined;
13059
14599
  scheduled?: number | undefined;
@@ -13090,8 +14630,15 @@ declare module '@scout9/app/schemas' {
13090
14630
  } | {
13091
14631
  keywords: string[];
13092
14632
  message?: string | {
13093
- content: string;
13094
- transform?: boolean | undefined;
14633
+ name?: string | undefined;
14634
+ content?: string | undefined;
14635
+ context?: any;
14636
+ scheduled?: string | undefined;
14637
+ intent?: string | null | undefined;
14638
+ intentScore?: number | null | undefined;
14639
+ delayInSeconds?: number | null | undefined;
14640
+ ignoreTransform?: boolean | undefined;
14641
+ mediaUrls?: string[] | null | undefined;
13095
14642
  } | undefined;
13096
14643
  forward?: string | boolean | {
13097
14644
  to?: string | undefined;
@@ -13141,16 +14688,69 @@ declare module '@scout9/app/schemas' {
13141
14688
  overrideLock?: boolean | undefined;
13142
14689
  } | undefined;
13143
14690
  }[] | undefined;
14691
+ entityContextUpsert?: ({
14692
+ method: "delete";
14693
+ entityType: string;
14694
+ entityRecordId: string;
14695
+ } | {
14696
+ method: "mutate";
14697
+ entityType: string;
14698
+ entityRecordId: string;
14699
+ fields: Record<string, string | number | boolean | null>;
14700
+ })[] | undefined;
13144
14701
  }>, z.ZodArray<z.ZodObject<{
13145
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
13146
- content: z.ZodString;
13147
- transform: z.ZodOptional<z.ZodBoolean>;
13148
- }, "strip", z.ZodTypeAny, {
13149
- content: string;
13150
- transform?: boolean | undefined;
14702
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
14703
+ id: z.ZodOptional<z.ZodString>;
14704
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
14705
+ content: z.ZodOptional<z.ZodString>;
14706
+ time: z.ZodOptional<z.ZodString>;
14707
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
14708
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
14709
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
14710
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
14711
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
14712
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
14713
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
14714
+ start: z.ZodNumber;
14715
+ end: z.ZodNumber;
14716
+ type: z.ZodString;
14717
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
14718
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
14719
+ }, "strip", z.ZodTypeAny, {
14720
+ type: string;
14721
+ end: number;
14722
+ start: number;
14723
+ option?: string | null | undefined;
14724
+ text?: string | null | undefined;
14725
+ }, {
14726
+ type: string;
14727
+ end: number;
14728
+ start: number;
14729
+ option?: string | null | undefined;
14730
+ text?: string | null | undefined;
14731
+ }>, "many">>>>;
14732
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
14733
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
14734
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
14735
+ name?: string | undefined;
14736
+ content?: string | undefined;
14737
+ context?: any;
14738
+ scheduled?: string | undefined;
14739
+ intent?: string | null | undefined;
14740
+ intentScore?: number | null | undefined;
14741
+ delayInSeconds?: number | null | undefined;
14742
+ ignoreTransform?: boolean | undefined;
14743
+ mediaUrls?: string[] | null | undefined;
13151
14744
  }, {
13152
- content: string;
13153
- transform?: boolean | undefined;
14745
+ name?: string | undefined;
14746
+ content?: string | undefined;
14747
+ context?: any;
14748
+ scheduled?: string | undefined;
14749
+ intent?: string | null | undefined;
14750
+ intentScore?: number | null | undefined;
14751
+ delayInSeconds?: number | null | undefined;
14752
+ ignoreTransform?: boolean | undefined;
14753
+ mediaUrls?: string[] | null | undefined;
13154
14754
  }>]>>;
13155
14755
  forward: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
13156
14756
  to: z.ZodOptional<z.ZodString>;
@@ -13326,15 +14926,58 @@ declare module '@scout9/app/schemas' {
13326
14926
  persist?: boolean | undefined;
13327
14927
  }>]>, "many">]>>;
13328
14928
  removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13329
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
13330
- content: z.ZodString;
13331
- transform: z.ZodOptional<z.ZodBoolean>;
13332
- }, "strip", z.ZodTypeAny, {
13333
- content: string;
13334
- transform?: boolean | undefined;
14929
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
14930
+ id: z.ZodOptional<z.ZodString>;
14931
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
14932
+ content: z.ZodOptional<z.ZodString>;
14933
+ time: z.ZodOptional<z.ZodString>;
14934
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
14935
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
14936
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
14937
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
14938
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
14939
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
14940
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
14941
+ start: z.ZodNumber;
14942
+ end: z.ZodNumber;
14943
+ type: z.ZodString;
14944
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
14945
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
14946
+ }, "strip", z.ZodTypeAny, {
14947
+ type: string;
14948
+ end: number;
14949
+ start: number;
14950
+ option?: string | null | undefined;
14951
+ text?: string | null | undefined;
14952
+ }, {
14953
+ type: string;
14954
+ end: number;
14955
+ start: number;
14956
+ option?: string | null | undefined;
14957
+ text?: string | null | undefined;
14958
+ }>, "many">>>>;
14959
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
14960
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
14961
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
14962
+ name?: string | undefined;
14963
+ content?: string | undefined;
14964
+ context?: any;
14965
+ scheduled?: string | undefined;
14966
+ intent?: string | null | undefined;
14967
+ intentScore?: number | null | undefined;
14968
+ delayInSeconds?: number | null | undefined;
14969
+ ignoreTransform?: boolean | undefined;
14970
+ mediaUrls?: string[] | null | undefined;
13335
14971
  }, {
13336
- content: string;
13337
- transform?: boolean | undefined;
14972
+ name?: string | undefined;
14973
+ content?: string | undefined;
14974
+ context?: any;
14975
+ scheduled?: string | undefined;
14976
+ intent?: string | null | undefined;
14977
+ intentScore?: number | null | undefined;
14978
+ delayInSeconds?: number | null | undefined;
14979
+ ignoreTransform?: boolean | undefined;
14980
+ mediaUrls?: string[] | null | undefined;
13338
14981
  }>]>>;
13339
14982
  secondsDelay: z.ZodOptional<z.ZodNumber>;
13340
14983
  scheduled: z.ZodOptional<z.ZodNumber>;
@@ -13445,8 +15088,15 @@ declare module '@scout9/app/schemas' {
13445
15088
  })[] | undefined;
13446
15089
  removeInstructions?: string[] | undefined;
13447
15090
  message?: string | {
13448
- content: string;
13449
- transform?: boolean | undefined;
15091
+ name?: string | undefined;
15092
+ content?: string | undefined;
15093
+ context?: any;
15094
+ scheduled?: string | undefined;
15095
+ intent?: string | null | undefined;
15096
+ intentScore?: number | null | undefined;
15097
+ delayInSeconds?: number | null | undefined;
15098
+ ignoreTransform?: boolean | undefined;
15099
+ mediaUrls?: string[] | null | undefined;
13450
15100
  } | undefined;
13451
15101
  secondsDelay?: number | undefined;
13452
15102
  scheduled?: number | undefined;
@@ -13497,8 +15147,15 @@ declare module '@scout9/app/schemas' {
13497
15147
  })[] | undefined;
13498
15148
  removeInstructions?: string[] | undefined;
13499
15149
  message?: string | {
13500
- content: string;
13501
- transform?: boolean | undefined;
15150
+ name?: string | undefined;
15151
+ content?: string | undefined;
15152
+ context?: any;
15153
+ scheduled?: string | undefined;
15154
+ intent?: string | null | undefined;
15155
+ intentScore?: number | null | undefined;
15156
+ delayInSeconds?: number | null | undefined;
15157
+ ignoreTransform?: boolean | undefined;
15158
+ mediaUrls?: string[] | null | undefined;
13502
15159
  } | undefined;
13503
15160
  secondsDelay?: number | undefined;
13504
15161
  scheduled?: number | undefined;
@@ -13573,15 +15230,58 @@ declare module '@scout9/app/schemas' {
13573
15230
  persist?: boolean | undefined;
13574
15231
  }>]>, "many">]>>;
13575
15232
  removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13576
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
13577
- content: z.ZodString;
13578
- transform: z.ZodOptional<z.ZodBoolean>;
13579
- }, "strip", z.ZodTypeAny, {
13580
- content: string;
13581
- transform?: boolean | undefined;
15233
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
15234
+ id: z.ZodOptional<z.ZodString>;
15235
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
15236
+ content: z.ZodOptional<z.ZodString>;
15237
+ time: z.ZodOptional<z.ZodString>;
15238
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15239
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15240
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
15241
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
15242
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
15243
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
15244
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
15245
+ start: z.ZodNumber;
15246
+ end: z.ZodNumber;
15247
+ type: z.ZodString;
15248
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
15249
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
15250
+ }, "strip", z.ZodTypeAny, {
15251
+ type: string;
15252
+ end: number;
15253
+ start: number;
15254
+ option?: string | null | undefined;
15255
+ text?: string | null | undefined;
15256
+ }, {
15257
+ type: string;
15258
+ end: number;
15259
+ start: number;
15260
+ option?: string | null | undefined;
15261
+ text?: string | null | undefined;
15262
+ }>, "many">>>>;
15263
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
15264
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
15265
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
15266
+ name?: string | undefined;
15267
+ content?: string | undefined;
15268
+ context?: any;
15269
+ scheduled?: string | undefined;
15270
+ intent?: string | null | undefined;
15271
+ intentScore?: number | null | undefined;
15272
+ delayInSeconds?: number | null | undefined;
15273
+ ignoreTransform?: boolean | undefined;
15274
+ mediaUrls?: string[] | null | undefined;
13582
15275
  }, {
13583
- content: string;
13584
- transform?: boolean | undefined;
15276
+ name?: string | undefined;
15277
+ content?: string | undefined;
15278
+ context?: any;
15279
+ scheduled?: string | undefined;
15280
+ intent?: string | null | undefined;
15281
+ intentScore?: number | null | undefined;
15282
+ delayInSeconds?: number | null | undefined;
15283
+ ignoreTransform?: boolean | undefined;
15284
+ mediaUrls?: string[] | null | undefined;
13585
15285
  }>]>>;
13586
15286
  secondsDelay: z.ZodOptional<z.ZodNumber>;
13587
15287
  scheduled: z.ZodOptional<z.ZodNumber>;
@@ -13692,8 +15392,15 @@ declare module '@scout9/app/schemas' {
13692
15392
  })[] | undefined;
13693
15393
  removeInstructions?: string[] | undefined;
13694
15394
  message?: string | {
13695
- content: string;
13696
- transform?: boolean | undefined;
15395
+ name?: string | undefined;
15396
+ content?: string | undefined;
15397
+ context?: any;
15398
+ scheduled?: string | undefined;
15399
+ intent?: string | null | undefined;
15400
+ intentScore?: number | null | undefined;
15401
+ delayInSeconds?: number | null | undefined;
15402
+ ignoreTransform?: boolean | undefined;
15403
+ mediaUrls?: string[] | null | undefined;
13697
15404
  } | undefined;
13698
15405
  secondsDelay?: number | undefined;
13699
15406
  scheduled?: number | undefined;
@@ -13744,8 +15451,15 @@ declare module '@scout9/app/schemas' {
13744
15451
  })[] | undefined;
13745
15452
  removeInstructions?: string[] | undefined;
13746
15453
  message?: string | {
13747
- content: string;
13748
- transform?: boolean | undefined;
15454
+ name?: string | undefined;
15455
+ content?: string | undefined;
15456
+ context?: any;
15457
+ scheduled?: string | undefined;
15458
+ intent?: string | null | undefined;
15459
+ intentScore?: number | null | undefined;
15460
+ delayInSeconds?: number | null | undefined;
15461
+ ignoreTransform?: boolean | undefined;
15462
+ mediaUrls?: string[] | null | undefined;
13749
15463
  } | undefined;
13750
15464
  secondsDelay?: number | undefined;
13751
15465
  scheduled?: number | undefined;
@@ -13799,8 +15513,15 @@ declare module '@scout9/app/schemas' {
13799
15513
  })[] | undefined;
13800
15514
  removeInstructions?: string[] | undefined;
13801
15515
  message?: string | {
13802
- content: string;
13803
- transform?: boolean | undefined;
15516
+ name?: string | undefined;
15517
+ content?: string | undefined;
15518
+ context?: any;
15519
+ scheduled?: string | undefined;
15520
+ intent?: string | null | undefined;
15521
+ intentScore?: number | null | undefined;
15522
+ delayInSeconds?: number | null | undefined;
15523
+ ignoreTransform?: boolean | undefined;
15524
+ mediaUrls?: string[] | null | undefined;
13804
15525
  } | undefined;
13805
15526
  secondsDelay?: number | undefined;
13806
15527
  scheduled?: number | undefined;
@@ -13852,8 +15573,15 @@ declare module '@scout9/app/schemas' {
13852
15573
  })[] | undefined;
13853
15574
  removeInstructions?: string[] | undefined;
13854
15575
  message?: string | {
13855
- content: string;
13856
- transform?: boolean | undefined;
15576
+ name?: string | undefined;
15577
+ content?: string | undefined;
15578
+ context?: any;
15579
+ scheduled?: string | undefined;
15580
+ intent?: string | null | undefined;
15581
+ intentScore?: number | null | undefined;
15582
+ delayInSeconds?: number | null | undefined;
15583
+ ignoreTransform?: boolean | undefined;
15584
+ mediaUrls?: string[] | null | undefined;
13857
15585
  } | undefined;
13858
15586
  secondsDelay?: number | undefined;
13859
15587
  scheduled?: number | undefined;
@@ -13907,8 +15635,15 @@ declare module '@scout9/app/schemas' {
13907
15635
  })[] | undefined;
13908
15636
  removeInstructions?: string[] | undefined;
13909
15637
  message?: string | {
13910
- content: string;
13911
- transform?: boolean | undefined;
15638
+ name?: string | undefined;
15639
+ content?: string | undefined;
15640
+ context?: any;
15641
+ scheduled?: string | undefined;
15642
+ intent?: string | null | undefined;
15643
+ intentScore?: number | null | undefined;
15644
+ delayInSeconds?: number | null | undefined;
15645
+ ignoreTransform?: boolean | undefined;
15646
+ mediaUrls?: string[] | null | undefined;
13912
15647
  } | undefined;
13913
15648
  secondsDelay?: number | undefined;
13914
15649
  scheduled?: number | undefined;
@@ -13960,8 +15695,15 @@ declare module '@scout9/app/schemas' {
13960
15695
  })[] | undefined;
13961
15696
  removeInstructions?: string[] | undefined;
13962
15697
  message?: string | {
13963
- content: string;
13964
- transform?: boolean | undefined;
15698
+ name?: string | undefined;
15699
+ content?: string | undefined;
15700
+ context?: any;
15701
+ scheduled?: string | undefined;
15702
+ intent?: string | null | undefined;
15703
+ intentScore?: number | null | undefined;
15704
+ delayInSeconds?: number | null | undefined;
15705
+ ignoreTransform?: boolean | undefined;
15706
+ mediaUrls?: string[] | null | undefined;
13965
15707
  } | undefined;
13966
15708
  secondsDelay?: number | undefined;
13967
15709
  scheduled?: number | undefined;
@@ -13996,15 +15738,58 @@ declare module '@scout9/app/schemas' {
13996
15738
  } | undefined;
13997
15739
  };
13998
15740
  }>, z.ZodArray<z.ZodObject<{
13999
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
14000
- content: z.ZodString;
14001
- transform: z.ZodOptional<z.ZodBoolean>;
14002
- }, "strip", z.ZodTypeAny, {
14003
- content: string;
14004
- transform?: boolean | undefined;
15741
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
15742
+ id: z.ZodOptional<z.ZodString>;
15743
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
15744
+ content: z.ZodOptional<z.ZodString>;
15745
+ time: z.ZodOptional<z.ZodString>;
15746
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15747
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15748
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
15749
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
15750
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
15751
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
15752
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
15753
+ start: z.ZodNumber;
15754
+ end: z.ZodNumber;
15755
+ type: z.ZodString;
15756
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
15757
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
15758
+ }, "strip", z.ZodTypeAny, {
15759
+ type: string;
15760
+ end: number;
15761
+ start: number;
15762
+ option?: string | null | undefined;
15763
+ text?: string | null | undefined;
15764
+ }, {
15765
+ type: string;
15766
+ end: number;
15767
+ start: number;
15768
+ option?: string | null | undefined;
15769
+ text?: string | null | undefined;
15770
+ }>, "many">>>>;
15771
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
15772
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
15773
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
15774
+ name?: string | undefined;
15775
+ content?: string | undefined;
15776
+ context?: any;
15777
+ scheduled?: string | undefined;
15778
+ intent?: string | null | undefined;
15779
+ intentScore?: number | null | undefined;
15780
+ delayInSeconds?: number | null | undefined;
15781
+ ignoreTransform?: boolean | undefined;
15782
+ mediaUrls?: string[] | null | undefined;
14005
15783
  }, {
14006
- content: string;
14007
- transform?: boolean | undefined;
15784
+ name?: string | undefined;
15785
+ content?: string | undefined;
15786
+ context?: any;
15787
+ scheduled?: string | undefined;
15788
+ intent?: string | null | undefined;
15789
+ intentScore?: number | null | undefined;
15790
+ delayInSeconds?: number | null | undefined;
15791
+ ignoreTransform?: boolean | undefined;
15792
+ mediaUrls?: string[] | null | undefined;
14008
15793
  }>]>>;
14009
15794
  forward: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
14010
15795
  to: z.ZodOptional<z.ZodString>;
@@ -14141,8 +15926,15 @@ declare module '@scout9/app/schemas' {
14141
15926
  }, "strip", z.ZodTypeAny, {
14142
15927
  keywords: string[];
14143
15928
  message?: string | {
14144
- content: string;
14145
- transform?: boolean | undefined;
15929
+ name?: string | undefined;
15930
+ content?: string | undefined;
15931
+ context?: any;
15932
+ scheduled?: string | undefined;
15933
+ intent?: string | null | undefined;
15934
+ intentScore?: number | null | undefined;
15935
+ delayInSeconds?: number | null | undefined;
15936
+ ignoreTransform?: boolean | undefined;
15937
+ mediaUrls?: string[] | null | undefined;
14146
15938
  } | undefined;
14147
15939
  forward?: string | boolean | {
14148
15940
  to?: string | undefined;
@@ -14194,8 +15986,15 @@ declare module '@scout9/app/schemas' {
14194
15986
  }, {
14195
15987
  keywords: string[];
14196
15988
  message?: string | {
14197
- content: string;
14198
- transform?: boolean | undefined;
15989
+ name?: string | undefined;
15990
+ content?: string | undefined;
15991
+ context?: any;
15992
+ scheduled?: string | undefined;
15993
+ intent?: string | null | undefined;
15994
+ intentScore?: number | null | undefined;
15995
+ delayInSeconds?: number | null | undefined;
15996
+ ignoreTransform?: boolean | undefined;
15997
+ mediaUrls?: string[] | null | undefined;
14199
15998
  } | undefined;
14200
15999
  forward?: string | boolean | {
14201
16000
  to?: string | undefined;
@@ -14245,10 +16044,45 @@ declare module '@scout9/app/schemas' {
14245
16044
  overrideLock?: boolean | undefined;
14246
16045
  } | undefined;
14247
16046
  }>, "many">]>>;
16047
+ entityContextUpsert: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"method", [z.ZodObject<{
16048
+ entityType: z.ZodString;
16049
+ entityRecordId: z.ZodString;
16050
+ method: z.ZodLiteral<"delete">;
16051
+ }, "strip", z.ZodTypeAny, {
16052
+ method: "delete";
16053
+ entityType: string;
16054
+ entityRecordId: string;
16055
+ }, {
16056
+ method: "delete";
16057
+ entityType: string;
16058
+ entityRecordId: string;
16059
+ }>, z.ZodObject<{
16060
+ entityType: z.ZodString;
16061
+ entityRecordId: z.ZodString;
16062
+ method: z.ZodLiteral<"mutate">;
16063
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodLiteral<"#remove">, z.ZodLiteral<"#delete">]>>;
16064
+ }, "strip", z.ZodTypeAny, {
16065
+ method: "mutate";
16066
+ entityType: string;
16067
+ entityRecordId: string;
16068
+ fields: Record<string, string | number | boolean | null>;
16069
+ }, {
16070
+ method: "mutate";
16071
+ entityType: string;
16072
+ entityRecordId: string;
16073
+ fields: Record<string, string | number | boolean | null>;
16074
+ }>]>, "many">>;
14248
16075
  }, "strip", z.ZodTypeAny, {
14249
16076
  message?: string | {
14250
- content: string;
14251
- transform?: boolean | undefined;
16077
+ name?: string | undefined;
16078
+ content?: string | undefined;
16079
+ context?: any;
16080
+ scheduled?: string | undefined;
16081
+ intent?: string | null | undefined;
16082
+ intentScore?: number | null | undefined;
16083
+ delayInSeconds?: number | null | undefined;
16084
+ ignoreTransform?: boolean | undefined;
16085
+ mediaUrls?: string[] | null | undefined;
14252
16086
  } | undefined;
14253
16087
  forward?: string | boolean | {
14254
16088
  to?: string | undefined;
@@ -14317,8 +16151,15 @@ declare module '@scout9/app/schemas' {
14317
16151
  })[] | undefined;
14318
16152
  removeInstructions?: string[] | undefined;
14319
16153
  message?: string | {
14320
- content: string;
14321
- transform?: boolean | undefined;
16154
+ name?: string | undefined;
16155
+ content?: string | undefined;
16156
+ context?: any;
16157
+ scheduled?: string | undefined;
16158
+ intent?: string | null | undefined;
16159
+ intentScore?: number | null | undefined;
16160
+ delayInSeconds?: number | null | undefined;
16161
+ ignoreTransform?: boolean | undefined;
16162
+ mediaUrls?: string[] | null | undefined;
14322
16163
  } | undefined;
14323
16164
  secondsDelay?: number | undefined;
14324
16165
  scheduled?: number | undefined;
@@ -14370,8 +16211,15 @@ declare module '@scout9/app/schemas' {
14370
16211
  })[] | undefined;
14371
16212
  removeInstructions?: string[] | undefined;
14372
16213
  message?: string | {
14373
- content: string;
14374
- transform?: boolean | undefined;
16214
+ name?: string | undefined;
16215
+ content?: string | undefined;
16216
+ context?: any;
16217
+ scheduled?: string | undefined;
16218
+ intent?: string | null | undefined;
16219
+ intentScore?: number | null | undefined;
16220
+ delayInSeconds?: number | null | undefined;
16221
+ ignoreTransform?: boolean | undefined;
16222
+ mediaUrls?: string[] | null | undefined;
14375
16223
  } | undefined;
14376
16224
  secondsDelay?: number | undefined;
14377
16225
  scheduled?: number | undefined;
@@ -14408,8 +16256,15 @@ declare module '@scout9/app/schemas' {
14408
16256
  } | {
14409
16257
  keywords: string[];
14410
16258
  message?: string | {
14411
- content: string;
14412
- transform?: boolean | undefined;
16259
+ name?: string | undefined;
16260
+ content?: string | undefined;
16261
+ context?: any;
16262
+ scheduled?: string | undefined;
16263
+ intent?: string | null | undefined;
16264
+ intentScore?: number | null | undefined;
16265
+ delayInSeconds?: number | null | undefined;
16266
+ ignoreTransform?: boolean | undefined;
16267
+ mediaUrls?: string[] | null | undefined;
14413
16268
  } | undefined;
14414
16269
  forward?: string | boolean | {
14415
16270
  to?: string | undefined;
@@ -14459,10 +16314,27 @@ declare module '@scout9/app/schemas' {
14459
16314
  overrideLock?: boolean | undefined;
14460
16315
  } | undefined;
14461
16316
  }[] | undefined;
16317
+ entityContextUpsert?: ({
16318
+ method: "delete";
16319
+ entityType: string;
16320
+ entityRecordId: string;
16321
+ } | {
16322
+ method: "mutate";
16323
+ entityType: string;
16324
+ entityRecordId: string;
16325
+ fields: Record<string, string | number | boolean | null>;
16326
+ })[] | undefined;
14462
16327
  }, {
14463
16328
  message?: string | {
14464
- content: string;
14465
- transform?: boolean | undefined;
16329
+ name?: string | undefined;
16330
+ content?: string | undefined;
16331
+ context?: any;
16332
+ scheduled?: string | undefined;
16333
+ intent?: string | null | undefined;
16334
+ intentScore?: number | null | undefined;
16335
+ delayInSeconds?: number | null | undefined;
16336
+ ignoreTransform?: boolean | undefined;
16337
+ mediaUrls?: string[] | null | undefined;
14466
16338
  } | undefined;
14467
16339
  forward?: string | boolean | {
14468
16340
  to?: string | undefined;
@@ -14531,8 +16403,15 @@ declare module '@scout9/app/schemas' {
14531
16403
  })[] | undefined;
14532
16404
  removeInstructions?: string[] | undefined;
14533
16405
  message?: string | {
14534
- content: string;
14535
- transform?: boolean | undefined;
16406
+ name?: string | undefined;
16407
+ content?: string | undefined;
16408
+ context?: any;
16409
+ scheduled?: string | undefined;
16410
+ intent?: string | null | undefined;
16411
+ intentScore?: number | null | undefined;
16412
+ delayInSeconds?: number | null | undefined;
16413
+ ignoreTransform?: boolean | undefined;
16414
+ mediaUrls?: string[] | null | undefined;
14536
16415
  } | undefined;
14537
16416
  secondsDelay?: number | undefined;
14538
16417
  scheduled?: number | undefined;
@@ -14584,8 +16463,15 @@ declare module '@scout9/app/schemas' {
14584
16463
  })[] | undefined;
14585
16464
  removeInstructions?: string[] | undefined;
14586
16465
  message?: string | {
14587
- content: string;
14588
- transform?: boolean | undefined;
16466
+ name?: string | undefined;
16467
+ content?: string | undefined;
16468
+ context?: any;
16469
+ scheduled?: string | undefined;
16470
+ intent?: string | null | undefined;
16471
+ intentScore?: number | null | undefined;
16472
+ delayInSeconds?: number | null | undefined;
16473
+ ignoreTransform?: boolean | undefined;
16474
+ mediaUrls?: string[] | null | undefined;
14589
16475
  } | undefined;
14590
16476
  secondsDelay?: number | undefined;
14591
16477
  scheduled?: number | undefined;
@@ -14622,8 +16508,15 @@ declare module '@scout9/app/schemas' {
14622
16508
  } | {
14623
16509
  keywords: string[];
14624
16510
  message?: string | {
14625
- content: string;
14626
- transform?: boolean | undefined;
16511
+ name?: string | undefined;
16512
+ content?: string | undefined;
16513
+ context?: any;
16514
+ scheduled?: string | undefined;
16515
+ intent?: string | null | undefined;
16516
+ intentScore?: number | null | undefined;
16517
+ delayInSeconds?: number | null | undefined;
16518
+ ignoreTransform?: boolean | undefined;
16519
+ mediaUrls?: string[] | null | undefined;
14627
16520
  } | undefined;
14628
16521
  forward?: string | boolean | {
14629
16522
  to?: string | undefined;
@@ -14673,16 +16566,69 @@ declare module '@scout9/app/schemas' {
14673
16566
  overrideLock?: boolean | undefined;
14674
16567
  } | undefined;
14675
16568
  }[] | undefined;
16569
+ entityContextUpsert?: ({
16570
+ method: "delete";
16571
+ entityType: string;
16572
+ entityRecordId: string;
16573
+ } | {
16574
+ method: "mutate";
16575
+ entityType: string;
16576
+ entityRecordId: string;
16577
+ fields: Record<string, string | number | boolean | null>;
16578
+ })[] | undefined;
14676
16579
  }>, "many">]>>, z.ZodUnion<[z.ZodObject<{
14677
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
14678
- content: z.ZodString;
14679
- transform: z.ZodOptional<z.ZodBoolean>;
14680
- }, "strip", z.ZodTypeAny, {
14681
- content: string;
14682
- transform?: boolean | undefined;
16580
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
16581
+ id: z.ZodOptional<z.ZodString>;
16582
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
16583
+ content: z.ZodOptional<z.ZodString>;
16584
+ time: z.ZodOptional<z.ZodString>;
16585
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
16586
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
16587
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
16588
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
16589
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
16590
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
16591
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
16592
+ start: z.ZodNumber;
16593
+ end: z.ZodNumber;
16594
+ type: z.ZodString;
16595
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
16596
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
16597
+ }, "strip", z.ZodTypeAny, {
16598
+ type: string;
16599
+ end: number;
16600
+ start: number;
16601
+ option?: string | null | undefined;
16602
+ text?: string | null | undefined;
16603
+ }, {
16604
+ type: string;
16605
+ end: number;
16606
+ start: number;
16607
+ option?: string | null | undefined;
16608
+ text?: string | null | undefined;
16609
+ }>, "many">>>>;
16610
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
16611
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
16612
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
16613
+ name?: string | undefined;
16614
+ content?: string | undefined;
16615
+ context?: any;
16616
+ scheduled?: string | undefined;
16617
+ intent?: string | null | undefined;
16618
+ intentScore?: number | null | undefined;
16619
+ delayInSeconds?: number | null | undefined;
16620
+ ignoreTransform?: boolean | undefined;
16621
+ mediaUrls?: string[] | null | undefined;
14683
16622
  }, {
14684
- content: string;
14685
- transform?: boolean | undefined;
16623
+ name?: string | undefined;
16624
+ content?: string | undefined;
16625
+ context?: any;
16626
+ scheduled?: string | undefined;
16627
+ intent?: string | null | undefined;
16628
+ intentScore?: number | null | undefined;
16629
+ delayInSeconds?: number | null | undefined;
16630
+ ignoreTransform?: boolean | undefined;
16631
+ mediaUrls?: string[] | null | undefined;
14686
16632
  }>]>>;
14687
16633
  forward: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
14688
16634
  to: z.ZodOptional<z.ZodString>;
@@ -14858,15 +16804,58 @@ declare module '@scout9/app/schemas' {
14858
16804
  persist?: boolean | undefined;
14859
16805
  }>]>, "many">]>>;
14860
16806
  removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14861
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
14862
- content: z.ZodString;
14863
- transform: z.ZodOptional<z.ZodBoolean>;
14864
- }, "strip", z.ZodTypeAny, {
14865
- content: string;
14866
- transform?: boolean | undefined;
16807
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
16808
+ id: z.ZodOptional<z.ZodString>;
16809
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
16810
+ content: z.ZodOptional<z.ZodString>;
16811
+ time: z.ZodOptional<z.ZodString>;
16812
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
16813
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
16814
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
16815
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
16816
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
16817
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
16818
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
16819
+ start: z.ZodNumber;
16820
+ end: z.ZodNumber;
16821
+ type: z.ZodString;
16822
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
16823
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
16824
+ }, "strip", z.ZodTypeAny, {
16825
+ type: string;
16826
+ end: number;
16827
+ start: number;
16828
+ option?: string | null | undefined;
16829
+ text?: string | null | undefined;
16830
+ }, {
16831
+ type: string;
16832
+ end: number;
16833
+ start: number;
16834
+ option?: string | null | undefined;
16835
+ text?: string | null | undefined;
16836
+ }>, "many">>>>;
16837
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
16838
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
16839
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
16840
+ name?: string | undefined;
16841
+ content?: string | undefined;
16842
+ context?: any;
16843
+ scheduled?: string | undefined;
16844
+ intent?: string | null | undefined;
16845
+ intentScore?: number | null | undefined;
16846
+ delayInSeconds?: number | null | undefined;
16847
+ ignoreTransform?: boolean | undefined;
16848
+ mediaUrls?: string[] | null | undefined;
14867
16849
  }, {
14868
- content: string;
14869
- transform?: boolean | undefined;
16850
+ name?: string | undefined;
16851
+ content?: string | undefined;
16852
+ context?: any;
16853
+ scheduled?: string | undefined;
16854
+ intent?: string | null | undefined;
16855
+ intentScore?: number | null | undefined;
16856
+ delayInSeconds?: number | null | undefined;
16857
+ ignoreTransform?: boolean | undefined;
16858
+ mediaUrls?: string[] | null | undefined;
14870
16859
  }>]>>;
14871
16860
  secondsDelay: z.ZodOptional<z.ZodNumber>;
14872
16861
  scheduled: z.ZodOptional<z.ZodNumber>;
@@ -14977,8 +16966,15 @@ declare module '@scout9/app/schemas' {
14977
16966
  })[] | undefined;
14978
16967
  removeInstructions?: string[] | undefined;
14979
16968
  message?: string | {
14980
- content: string;
14981
- transform?: boolean | undefined;
16969
+ name?: string | undefined;
16970
+ content?: string | undefined;
16971
+ context?: any;
16972
+ scheduled?: string | undefined;
16973
+ intent?: string | null | undefined;
16974
+ intentScore?: number | null | undefined;
16975
+ delayInSeconds?: number | null | undefined;
16976
+ ignoreTransform?: boolean | undefined;
16977
+ mediaUrls?: string[] | null | undefined;
14982
16978
  } | undefined;
14983
16979
  secondsDelay?: number | undefined;
14984
16980
  scheduled?: number | undefined;
@@ -15029,8 +17025,15 @@ declare module '@scout9/app/schemas' {
15029
17025
  })[] | undefined;
15030
17026
  removeInstructions?: string[] | undefined;
15031
17027
  message?: string | {
15032
- content: string;
15033
- transform?: boolean | undefined;
17028
+ name?: string | undefined;
17029
+ content?: string | undefined;
17030
+ context?: any;
17031
+ scheduled?: string | undefined;
17032
+ intent?: string | null | undefined;
17033
+ intentScore?: number | null | undefined;
17034
+ delayInSeconds?: number | null | undefined;
17035
+ ignoreTransform?: boolean | undefined;
17036
+ mediaUrls?: string[] | null | undefined;
15034
17037
  } | undefined;
15035
17038
  secondsDelay?: number | undefined;
15036
17039
  scheduled?: number | undefined;
@@ -15105,15 +17108,58 @@ declare module '@scout9/app/schemas' {
15105
17108
  persist?: boolean | undefined;
15106
17109
  }>]>, "many">]>>;
15107
17110
  removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15108
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
15109
- content: z.ZodString;
15110
- transform: z.ZodOptional<z.ZodBoolean>;
15111
- }, "strip", z.ZodTypeAny, {
15112
- content: string;
15113
- transform?: boolean | undefined;
17111
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
17112
+ id: z.ZodOptional<z.ZodString>;
17113
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
17114
+ content: z.ZodOptional<z.ZodString>;
17115
+ time: z.ZodOptional<z.ZodString>;
17116
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
17117
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
17118
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
17119
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
17120
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
17121
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
17122
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
17123
+ start: z.ZodNumber;
17124
+ end: z.ZodNumber;
17125
+ type: z.ZodString;
17126
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
17127
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
17128
+ }, "strip", z.ZodTypeAny, {
17129
+ type: string;
17130
+ end: number;
17131
+ start: number;
17132
+ option?: string | null | undefined;
17133
+ text?: string | null | undefined;
17134
+ }, {
17135
+ type: string;
17136
+ end: number;
17137
+ start: number;
17138
+ option?: string | null | undefined;
17139
+ text?: string | null | undefined;
17140
+ }>, "many">>>>;
17141
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
17142
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
17143
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
17144
+ name?: string | undefined;
17145
+ content?: string | undefined;
17146
+ context?: any;
17147
+ scheduled?: string | undefined;
17148
+ intent?: string | null | undefined;
17149
+ intentScore?: number | null | undefined;
17150
+ delayInSeconds?: number | null | undefined;
17151
+ ignoreTransform?: boolean | undefined;
17152
+ mediaUrls?: string[] | null | undefined;
15114
17153
  }, {
15115
- content: string;
15116
- transform?: boolean | undefined;
17154
+ name?: string | undefined;
17155
+ content?: string | undefined;
17156
+ context?: any;
17157
+ scheduled?: string | undefined;
17158
+ intent?: string | null | undefined;
17159
+ intentScore?: number | null | undefined;
17160
+ delayInSeconds?: number | null | undefined;
17161
+ ignoreTransform?: boolean | undefined;
17162
+ mediaUrls?: string[] | null | undefined;
15117
17163
  }>]>>;
15118
17164
  secondsDelay: z.ZodOptional<z.ZodNumber>;
15119
17165
  scheduled: z.ZodOptional<z.ZodNumber>;
@@ -15224,8 +17270,15 @@ declare module '@scout9/app/schemas' {
15224
17270
  })[] | undefined;
15225
17271
  removeInstructions?: string[] | undefined;
15226
17272
  message?: string | {
15227
- content: string;
15228
- transform?: boolean | undefined;
17273
+ name?: string | undefined;
17274
+ content?: string | undefined;
17275
+ context?: any;
17276
+ scheduled?: string | undefined;
17277
+ intent?: string | null | undefined;
17278
+ intentScore?: number | null | undefined;
17279
+ delayInSeconds?: number | null | undefined;
17280
+ ignoreTransform?: boolean | undefined;
17281
+ mediaUrls?: string[] | null | undefined;
15229
17282
  } | undefined;
15230
17283
  secondsDelay?: number | undefined;
15231
17284
  scheduled?: number | undefined;
@@ -15276,8 +17329,15 @@ declare module '@scout9/app/schemas' {
15276
17329
  })[] | undefined;
15277
17330
  removeInstructions?: string[] | undefined;
15278
17331
  message?: string | {
15279
- content: string;
15280
- transform?: boolean | undefined;
17332
+ name?: string | undefined;
17333
+ content?: string | undefined;
17334
+ context?: any;
17335
+ scheduled?: string | undefined;
17336
+ intent?: string | null | undefined;
17337
+ intentScore?: number | null | undefined;
17338
+ delayInSeconds?: number | null | undefined;
17339
+ ignoreTransform?: boolean | undefined;
17340
+ mediaUrls?: string[] | null | undefined;
15281
17341
  } | undefined;
15282
17342
  secondsDelay?: number | undefined;
15283
17343
  scheduled?: number | undefined;
@@ -15331,8 +17391,15 @@ declare module '@scout9/app/schemas' {
15331
17391
  })[] | undefined;
15332
17392
  removeInstructions?: string[] | undefined;
15333
17393
  message?: string | {
15334
- content: string;
15335
- transform?: boolean | undefined;
17394
+ name?: string | undefined;
17395
+ content?: string | undefined;
17396
+ context?: any;
17397
+ scheduled?: string | undefined;
17398
+ intent?: string | null | undefined;
17399
+ intentScore?: number | null | undefined;
17400
+ delayInSeconds?: number | null | undefined;
17401
+ ignoreTransform?: boolean | undefined;
17402
+ mediaUrls?: string[] | null | undefined;
15336
17403
  } | undefined;
15337
17404
  secondsDelay?: number | undefined;
15338
17405
  scheduled?: number | undefined;
@@ -15384,8 +17451,15 @@ declare module '@scout9/app/schemas' {
15384
17451
  })[] | undefined;
15385
17452
  removeInstructions?: string[] | undefined;
15386
17453
  message?: string | {
15387
- content: string;
15388
- transform?: boolean | undefined;
17454
+ name?: string | undefined;
17455
+ content?: string | undefined;
17456
+ context?: any;
17457
+ scheduled?: string | undefined;
17458
+ intent?: string | null | undefined;
17459
+ intentScore?: number | null | undefined;
17460
+ delayInSeconds?: number | null | undefined;
17461
+ ignoreTransform?: boolean | undefined;
17462
+ mediaUrls?: string[] | null | undefined;
15389
17463
  } | undefined;
15390
17464
  secondsDelay?: number | undefined;
15391
17465
  scheduled?: number | undefined;
@@ -15439,8 +17513,15 @@ declare module '@scout9/app/schemas' {
15439
17513
  })[] | undefined;
15440
17514
  removeInstructions?: string[] | undefined;
15441
17515
  message?: string | {
15442
- content: string;
15443
- transform?: boolean | undefined;
17516
+ name?: string | undefined;
17517
+ content?: string | undefined;
17518
+ context?: any;
17519
+ scheduled?: string | undefined;
17520
+ intent?: string | null | undefined;
17521
+ intentScore?: number | null | undefined;
17522
+ delayInSeconds?: number | null | undefined;
17523
+ ignoreTransform?: boolean | undefined;
17524
+ mediaUrls?: string[] | null | undefined;
15444
17525
  } | undefined;
15445
17526
  secondsDelay?: number | undefined;
15446
17527
  scheduled?: number | undefined;
@@ -15492,8 +17573,15 @@ declare module '@scout9/app/schemas' {
15492
17573
  })[] | undefined;
15493
17574
  removeInstructions?: string[] | undefined;
15494
17575
  message?: string | {
15495
- content: string;
15496
- transform?: boolean | undefined;
17576
+ name?: string | undefined;
17577
+ content?: string | undefined;
17578
+ context?: any;
17579
+ scheduled?: string | undefined;
17580
+ intent?: string | null | undefined;
17581
+ intentScore?: number | null | undefined;
17582
+ delayInSeconds?: number | null | undefined;
17583
+ ignoreTransform?: boolean | undefined;
17584
+ mediaUrls?: string[] | null | undefined;
15497
17585
  } | undefined;
15498
17586
  secondsDelay?: number | undefined;
15499
17587
  scheduled?: number | undefined;
@@ -15528,15 +17616,58 @@ declare module '@scout9/app/schemas' {
15528
17616
  } | undefined;
15529
17617
  };
15530
17618
  }>, z.ZodArray<z.ZodObject<{
15531
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
15532
- content: z.ZodString;
15533
- transform: z.ZodOptional<z.ZodBoolean>;
15534
- }, "strip", z.ZodTypeAny, {
15535
- content: string;
15536
- transform?: boolean | undefined;
17619
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
17620
+ id: z.ZodOptional<z.ZodString>;
17621
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
17622
+ content: z.ZodOptional<z.ZodString>;
17623
+ time: z.ZodOptional<z.ZodString>;
17624
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
17625
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
17626
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
17627
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
17628
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
17629
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
17630
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
17631
+ start: z.ZodNumber;
17632
+ end: z.ZodNumber;
17633
+ type: z.ZodString;
17634
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
17635
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
17636
+ }, "strip", z.ZodTypeAny, {
17637
+ type: string;
17638
+ end: number;
17639
+ start: number;
17640
+ option?: string | null | undefined;
17641
+ text?: string | null | undefined;
17642
+ }, {
17643
+ type: string;
17644
+ end: number;
17645
+ start: number;
17646
+ option?: string | null | undefined;
17647
+ text?: string | null | undefined;
17648
+ }>, "many">>>>;
17649
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
17650
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
17651
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
17652
+ name?: string | undefined;
17653
+ content?: string | undefined;
17654
+ context?: any;
17655
+ scheduled?: string | undefined;
17656
+ intent?: string | null | undefined;
17657
+ intentScore?: number | null | undefined;
17658
+ delayInSeconds?: number | null | undefined;
17659
+ ignoreTransform?: boolean | undefined;
17660
+ mediaUrls?: string[] | null | undefined;
15537
17661
  }, {
15538
- content: string;
15539
- transform?: boolean | undefined;
17662
+ name?: string | undefined;
17663
+ content?: string | undefined;
17664
+ context?: any;
17665
+ scheduled?: string | undefined;
17666
+ intent?: string | null | undefined;
17667
+ intentScore?: number | null | undefined;
17668
+ delayInSeconds?: number | null | undefined;
17669
+ ignoreTransform?: boolean | undefined;
17670
+ mediaUrls?: string[] | null | undefined;
15540
17671
  }>]>>;
15541
17672
  forward: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
15542
17673
  to: z.ZodOptional<z.ZodString>;
@@ -15673,8 +17804,15 @@ declare module '@scout9/app/schemas' {
15673
17804
  }, "strip", z.ZodTypeAny, {
15674
17805
  keywords: string[];
15675
17806
  message?: string | {
15676
- content: string;
15677
- transform?: boolean | undefined;
17807
+ name?: string | undefined;
17808
+ content?: string | undefined;
17809
+ context?: any;
17810
+ scheduled?: string | undefined;
17811
+ intent?: string | null | undefined;
17812
+ intentScore?: number | null | undefined;
17813
+ delayInSeconds?: number | null | undefined;
17814
+ ignoreTransform?: boolean | undefined;
17815
+ mediaUrls?: string[] | null | undefined;
15678
17816
  } | undefined;
15679
17817
  forward?: string | boolean | {
15680
17818
  to?: string | undefined;
@@ -15726,8 +17864,15 @@ declare module '@scout9/app/schemas' {
15726
17864
  }, {
15727
17865
  keywords: string[];
15728
17866
  message?: string | {
15729
- content: string;
15730
- transform?: boolean | undefined;
17867
+ name?: string | undefined;
17868
+ content?: string | undefined;
17869
+ context?: any;
17870
+ scheduled?: string | undefined;
17871
+ intent?: string | null | undefined;
17872
+ intentScore?: number | null | undefined;
17873
+ delayInSeconds?: number | null | undefined;
17874
+ ignoreTransform?: boolean | undefined;
17875
+ mediaUrls?: string[] | null | undefined;
15731
17876
  } | undefined;
15732
17877
  forward?: string | boolean | {
15733
17878
  to?: string | undefined;
@@ -15777,10 +17922,45 @@ declare module '@scout9/app/schemas' {
15777
17922
  overrideLock?: boolean | undefined;
15778
17923
  } | undefined;
15779
17924
  }>, "many">]>>;
17925
+ entityContextUpsert: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"method", [z.ZodObject<{
17926
+ entityType: z.ZodString;
17927
+ entityRecordId: z.ZodString;
17928
+ method: z.ZodLiteral<"delete">;
17929
+ }, "strip", z.ZodTypeAny, {
17930
+ method: "delete";
17931
+ entityType: string;
17932
+ entityRecordId: string;
17933
+ }, {
17934
+ method: "delete";
17935
+ entityType: string;
17936
+ entityRecordId: string;
17937
+ }>, z.ZodObject<{
17938
+ entityType: z.ZodString;
17939
+ entityRecordId: z.ZodString;
17940
+ method: z.ZodLiteral<"mutate">;
17941
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodLiteral<"#remove">, z.ZodLiteral<"#delete">]>>;
17942
+ }, "strip", z.ZodTypeAny, {
17943
+ method: "mutate";
17944
+ entityType: string;
17945
+ entityRecordId: string;
17946
+ fields: Record<string, string | number | boolean | null>;
17947
+ }, {
17948
+ method: "mutate";
17949
+ entityType: string;
17950
+ entityRecordId: string;
17951
+ fields: Record<string, string | number | boolean | null>;
17952
+ }>]>, "many">>;
15780
17953
  }, "strip", z.ZodTypeAny, {
15781
17954
  message?: string | {
15782
- content: string;
15783
- transform?: boolean | undefined;
17955
+ name?: string | undefined;
17956
+ content?: string | undefined;
17957
+ context?: any;
17958
+ scheduled?: string | undefined;
17959
+ intent?: string | null | undefined;
17960
+ intentScore?: number | null | undefined;
17961
+ delayInSeconds?: number | null | undefined;
17962
+ ignoreTransform?: boolean | undefined;
17963
+ mediaUrls?: string[] | null | undefined;
15784
17964
  } | undefined;
15785
17965
  forward?: string | boolean | {
15786
17966
  to?: string | undefined;
@@ -15849,8 +18029,15 @@ declare module '@scout9/app/schemas' {
15849
18029
  })[] | undefined;
15850
18030
  removeInstructions?: string[] | undefined;
15851
18031
  message?: string | {
15852
- content: string;
15853
- transform?: boolean | undefined;
18032
+ name?: string | undefined;
18033
+ content?: string | undefined;
18034
+ context?: any;
18035
+ scheduled?: string | undefined;
18036
+ intent?: string | null | undefined;
18037
+ intentScore?: number | null | undefined;
18038
+ delayInSeconds?: number | null | undefined;
18039
+ ignoreTransform?: boolean | undefined;
18040
+ mediaUrls?: string[] | null | undefined;
15854
18041
  } | undefined;
15855
18042
  secondsDelay?: number | undefined;
15856
18043
  scheduled?: number | undefined;
@@ -15902,8 +18089,15 @@ declare module '@scout9/app/schemas' {
15902
18089
  })[] | undefined;
15903
18090
  removeInstructions?: string[] | undefined;
15904
18091
  message?: string | {
15905
- content: string;
15906
- transform?: boolean | undefined;
18092
+ name?: string | undefined;
18093
+ content?: string | undefined;
18094
+ context?: any;
18095
+ scheduled?: string | undefined;
18096
+ intent?: string | null | undefined;
18097
+ intentScore?: number | null | undefined;
18098
+ delayInSeconds?: number | null | undefined;
18099
+ ignoreTransform?: boolean | undefined;
18100
+ mediaUrls?: string[] | null | undefined;
15907
18101
  } | undefined;
15908
18102
  secondsDelay?: number | undefined;
15909
18103
  scheduled?: number | undefined;
@@ -15940,8 +18134,15 @@ declare module '@scout9/app/schemas' {
15940
18134
  } | {
15941
18135
  keywords: string[];
15942
18136
  message?: string | {
15943
- content: string;
15944
- transform?: boolean | undefined;
18137
+ name?: string | undefined;
18138
+ content?: string | undefined;
18139
+ context?: any;
18140
+ scheduled?: string | undefined;
18141
+ intent?: string | null | undefined;
18142
+ intentScore?: number | null | undefined;
18143
+ delayInSeconds?: number | null | undefined;
18144
+ ignoreTransform?: boolean | undefined;
18145
+ mediaUrls?: string[] | null | undefined;
15945
18146
  } | undefined;
15946
18147
  forward?: string | boolean | {
15947
18148
  to?: string | undefined;
@@ -15991,10 +18192,27 @@ declare module '@scout9/app/schemas' {
15991
18192
  overrideLock?: boolean | undefined;
15992
18193
  } | undefined;
15993
18194
  }[] | undefined;
18195
+ entityContextUpsert?: ({
18196
+ method: "delete";
18197
+ entityType: string;
18198
+ entityRecordId: string;
18199
+ } | {
18200
+ method: "mutate";
18201
+ entityType: string;
18202
+ entityRecordId: string;
18203
+ fields: Record<string, string | number | boolean | null>;
18204
+ })[] | undefined;
15994
18205
  }, {
15995
18206
  message?: string | {
15996
- content: string;
15997
- transform?: boolean | undefined;
18207
+ name?: string | undefined;
18208
+ content?: string | undefined;
18209
+ context?: any;
18210
+ scheduled?: string | undefined;
18211
+ intent?: string | null | undefined;
18212
+ intentScore?: number | null | undefined;
18213
+ delayInSeconds?: number | null | undefined;
18214
+ ignoreTransform?: boolean | undefined;
18215
+ mediaUrls?: string[] | null | undefined;
15998
18216
  } | undefined;
15999
18217
  forward?: string | boolean | {
16000
18218
  to?: string | undefined;
@@ -16063,8 +18281,15 @@ declare module '@scout9/app/schemas' {
16063
18281
  })[] | undefined;
16064
18282
  removeInstructions?: string[] | undefined;
16065
18283
  message?: string | {
16066
- content: string;
16067
- transform?: boolean | undefined;
18284
+ name?: string | undefined;
18285
+ content?: string | undefined;
18286
+ context?: any;
18287
+ scheduled?: string | undefined;
18288
+ intent?: string | null | undefined;
18289
+ intentScore?: number | null | undefined;
18290
+ delayInSeconds?: number | null | undefined;
18291
+ ignoreTransform?: boolean | undefined;
18292
+ mediaUrls?: string[] | null | undefined;
16068
18293
  } | undefined;
16069
18294
  secondsDelay?: number | undefined;
16070
18295
  scheduled?: number | undefined;
@@ -16116,8 +18341,15 @@ declare module '@scout9/app/schemas' {
16116
18341
  })[] | undefined;
16117
18342
  removeInstructions?: string[] | undefined;
16118
18343
  message?: string | {
16119
- content: string;
16120
- transform?: boolean | undefined;
18344
+ name?: string | undefined;
18345
+ content?: string | undefined;
18346
+ context?: any;
18347
+ scheduled?: string | undefined;
18348
+ intent?: string | null | undefined;
18349
+ intentScore?: number | null | undefined;
18350
+ delayInSeconds?: number | null | undefined;
18351
+ ignoreTransform?: boolean | undefined;
18352
+ mediaUrls?: string[] | null | undefined;
16121
18353
  } | undefined;
16122
18354
  secondsDelay?: number | undefined;
16123
18355
  scheduled?: number | undefined;
@@ -16154,8 +18386,15 @@ declare module '@scout9/app/schemas' {
16154
18386
  } | {
16155
18387
  keywords: string[];
16156
18388
  message?: string | {
16157
- content: string;
16158
- transform?: boolean | undefined;
18389
+ name?: string | undefined;
18390
+ content?: string | undefined;
18391
+ context?: any;
18392
+ scheduled?: string | undefined;
18393
+ intent?: string | null | undefined;
18394
+ intentScore?: number | null | undefined;
18395
+ delayInSeconds?: number | null | undefined;
18396
+ ignoreTransform?: boolean | undefined;
18397
+ mediaUrls?: string[] | null | undefined;
16159
18398
  } | undefined;
16160
18399
  forward?: string | boolean | {
16161
18400
  to?: string | undefined;
@@ -16205,16 +18444,69 @@ declare module '@scout9/app/schemas' {
16205
18444
  overrideLock?: boolean | undefined;
16206
18445
  } | undefined;
16207
18446
  }[] | undefined;
18447
+ entityContextUpsert?: ({
18448
+ method: "delete";
18449
+ entityType: string;
18450
+ entityRecordId: string;
18451
+ } | {
18452
+ method: "mutate";
18453
+ entityType: string;
18454
+ entityRecordId: string;
18455
+ fields: Record<string, string | number | boolean | null>;
18456
+ })[] | undefined;
16208
18457
  }>, z.ZodArray<z.ZodObject<{
16209
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
16210
- content: z.ZodString;
16211
- transform: z.ZodOptional<z.ZodBoolean>;
16212
- }, "strip", z.ZodTypeAny, {
16213
- content: string;
16214
- transform?: boolean | undefined;
18458
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
18459
+ id: z.ZodOptional<z.ZodString>;
18460
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
18461
+ content: z.ZodOptional<z.ZodString>;
18462
+ time: z.ZodOptional<z.ZodString>;
18463
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
18464
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
18465
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
18466
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
18467
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
18468
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
18469
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
18470
+ start: z.ZodNumber;
18471
+ end: z.ZodNumber;
18472
+ type: z.ZodString;
18473
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18474
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18475
+ }, "strip", z.ZodTypeAny, {
18476
+ type: string;
18477
+ end: number;
18478
+ start: number;
18479
+ option?: string | null | undefined;
18480
+ text?: string | null | undefined;
18481
+ }, {
18482
+ type: string;
18483
+ end: number;
18484
+ start: number;
18485
+ option?: string | null | undefined;
18486
+ text?: string | null | undefined;
18487
+ }>, "many">>>>;
18488
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
18489
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
18490
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
18491
+ name?: string | undefined;
18492
+ content?: string | undefined;
18493
+ context?: any;
18494
+ scheduled?: string | undefined;
18495
+ intent?: string | null | undefined;
18496
+ intentScore?: number | null | undefined;
18497
+ delayInSeconds?: number | null | undefined;
18498
+ ignoreTransform?: boolean | undefined;
18499
+ mediaUrls?: string[] | null | undefined;
16215
18500
  }, {
16216
- content: string;
16217
- transform?: boolean | undefined;
18501
+ name?: string | undefined;
18502
+ content?: string | undefined;
18503
+ context?: any;
18504
+ scheduled?: string | undefined;
18505
+ intent?: string | null | undefined;
18506
+ intentScore?: number | null | undefined;
18507
+ delayInSeconds?: number | null | undefined;
18508
+ ignoreTransform?: boolean | undefined;
18509
+ mediaUrls?: string[] | null | undefined;
16218
18510
  }>]>>;
16219
18511
  forward: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
16220
18512
  to: z.ZodOptional<z.ZodString>;
@@ -16390,15 +18682,58 @@ declare module '@scout9/app/schemas' {
16390
18682
  persist?: boolean | undefined;
16391
18683
  }>]>, "many">]>>;
16392
18684
  removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16393
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
16394
- content: z.ZodString;
16395
- transform: z.ZodOptional<z.ZodBoolean>;
16396
- }, "strip", z.ZodTypeAny, {
16397
- content: string;
16398
- transform?: boolean | undefined;
18685
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
18686
+ id: z.ZodOptional<z.ZodString>;
18687
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
18688
+ content: z.ZodOptional<z.ZodString>;
18689
+ time: z.ZodOptional<z.ZodString>;
18690
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
18691
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
18692
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
18693
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
18694
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
18695
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
18696
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
18697
+ start: z.ZodNumber;
18698
+ end: z.ZodNumber;
18699
+ type: z.ZodString;
18700
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18701
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18702
+ }, "strip", z.ZodTypeAny, {
18703
+ type: string;
18704
+ end: number;
18705
+ start: number;
18706
+ option?: string | null | undefined;
18707
+ text?: string | null | undefined;
18708
+ }, {
18709
+ type: string;
18710
+ end: number;
18711
+ start: number;
18712
+ option?: string | null | undefined;
18713
+ text?: string | null | undefined;
18714
+ }>, "many">>>>;
18715
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
18716
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
18717
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
18718
+ name?: string | undefined;
18719
+ content?: string | undefined;
18720
+ context?: any;
18721
+ scheduled?: string | undefined;
18722
+ intent?: string | null | undefined;
18723
+ intentScore?: number | null | undefined;
18724
+ delayInSeconds?: number | null | undefined;
18725
+ ignoreTransform?: boolean | undefined;
18726
+ mediaUrls?: string[] | null | undefined;
16399
18727
  }, {
16400
- content: string;
16401
- transform?: boolean | undefined;
18728
+ name?: string | undefined;
18729
+ content?: string | undefined;
18730
+ context?: any;
18731
+ scheduled?: string | undefined;
18732
+ intent?: string | null | undefined;
18733
+ intentScore?: number | null | undefined;
18734
+ delayInSeconds?: number | null | undefined;
18735
+ ignoreTransform?: boolean | undefined;
18736
+ mediaUrls?: string[] | null | undefined;
16402
18737
  }>]>>;
16403
18738
  secondsDelay: z.ZodOptional<z.ZodNumber>;
16404
18739
  scheduled: z.ZodOptional<z.ZodNumber>;
@@ -16509,8 +18844,15 @@ declare module '@scout9/app/schemas' {
16509
18844
  })[] | undefined;
16510
18845
  removeInstructions?: string[] | undefined;
16511
18846
  message?: string | {
16512
- content: string;
16513
- transform?: boolean | undefined;
18847
+ name?: string | undefined;
18848
+ content?: string | undefined;
18849
+ context?: any;
18850
+ scheduled?: string | undefined;
18851
+ intent?: string | null | undefined;
18852
+ intentScore?: number | null | undefined;
18853
+ delayInSeconds?: number | null | undefined;
18854
+ ignoreTransform?: boolean | undefined;
18855
+ mediaUrls?: string[] | null | undefined;
16514
18856
  } | undefined;
16515
18857
  secondsDelay?: number | undefined;
16516
18858
  scheduled?: number | undefined;
@@ -16561,8 +18903,15 @@ declare module '@scout9/app/schemas' {
16561
18903
  })[] | undefined;
16562
18904
  removeInstructions?: string[] | undefined;
16563
18905
  message?: string | {
16564
- content: string;
16565
- transform?: boolean | undefined;
18906
+ name?: string | undefined;
18907
+ content?: string | undefined;
18908
+ context?: any;
18909
+ scheduled?: string | undefined;
18910
+ intent?: string | null | undefined;
18911
+ intentScore?: number | null | undefined;
18912
+ delayInSeconds?: number | null | undefined;
18913
+ ignoreTransform?: boolean | undefined;
18914
+ mediaUrls?: string[] | null | undefined;
16566
18915
  } | undefined;
16567
18916
  secondsDelay?: number | undefined;
16568
18917
  scheduled?: number | undefined;
@@ -16637,15 +18986,58 @@ declare module '@scout9/app/schemas' {
16637
18986
  persist?: boolean | undefined;
16638
18987
  }>]>, "many">]>>;
16639
18988
  removeInstructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16640
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
16641
- content: z.ZodString;
16642
- transform: z.ZodOptional<z.ZodBoolean>;
16643
- }, "strip", z.ZodTypeAny, {
16644
- content: string;
16645
- transform?: boolean | undefined;
18989
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
18990
+ id: z.ZodOptional<z.ZodString>;
18991
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
18992
+ content: z.ZodOptional<z.ZodString>;
18993
+ time: z.ZodOptional<z.ZodString>;
18994
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
18995
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
18996
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
18997
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
18998
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
18999
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
19000
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
19001
+ start: z.ZodNumber;
19002
+ end: z.ZodNumber;
19003
+ type: z.ZodString;
19004
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
19005
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
19006
+ }, "strip", z.ZodTypeAny, {
19007
+ type: string;
19008
+ end: number;
19009
+ start: number;
19010
+ option?: string | null | undefined;
19011
+ text?: string | null | undefined;
19012
+ }, {
19013
+ type: string;
19014
+ end: number;
19015
+ start: number;
19016
+ option?: string | null | undefined;
19017
+ text?: string | null | undefined;
19018
+ }>, "many">>>>;
19019
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
19020
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
19021
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
19022
+ name?: string | undefined;
19023
+ content?: string | undefined;
19024
+ context?: any;
19025
+ scheduled?: string | undefined;
19026
+ intent?: string | null | undefined;
19027
+ intentScore?: number | null | undefined;
19028
+ delayInSeconds?: number | null | undefined;
19029
+ ignoreTransform?: boolean | undefined;
19030
+ mediaUrls?: string[] | null | undefined;
16646
19031
  }, {
16647
- content: string;
16648
- transform?: boolean | undefined;
19032
+ name?: string | undefined;
19033
+ content?: string | undefined;
19034
+ context?: any;
19035
+ scheduled?: string | undefined;
19036
+ intent?: string | null | undefined;
19037
+ intentScore?: number | null | undefined;
19038
+ delayInSeconds?: number | null | undefined;
19039
+ ignoreTransform?: boolean | undefined;
19040
+ mediaUrls?: string[] | null | undefined;
16649
19041
  }>]>>;
16650
19042
  secondsDelay: z.ZodOptional<z.ZodNumber>;
16651
19043
  scheduled: z.ZodOptional<z.ZodNumber>;
@@ -16756,8 +19148,15 @@ declare module '@scout9/app/schemas' {
16756
19148
  })[] | undefined;
16757
19149
  removeInstructions?: string[] | undefined;
16758
19150
  message?: string | {
16759
- content: string;
16760
- transform?: boolean | undefined;
19151
+ name?: string | undefined;
19152
+ content?: string | undefined;
19153
+ context?: any;
19154
+ scheduled?: string | undefined;
19155
+ intent?: string | null | undefined;
19156
+ intentScore?: number | null | undefined;
19157
+ delayInSeconds?: number | null | undefined;
19158
+ ignoreTransform?: boolean | undefined;
19159
+ mediaUrls?: string[] | null | undefined;
16761
19160
  } | undefined;
16762
19161
  secondsDelay?: number | undefined;
16763
19162
  scheduled?: number | undefined;
@@ -16808,8 +19207,15 @@ declare module '@scout9/app/schemas' {
16808
19207
  })[] | undefined;
16809
19208
  removeInstructions?: string[] | undefined;
16810
19209
  message?: string | {
16811
- content: string;
16812
- transform?: boolean | undefined;
19210
+ name?: string | undefined;
19211
+ content?: string | undefined;
19212
+ context?: any;
19213
+ scheduled?: string | undefined;
19214
+ intent?: string | null | undefined;
19215
+ intentScore?: number | null | undefined;
19216
+ delayInSeconds?: number | null | undefined;
19217
+ ignoreTransform?: boolean | undefined;
19218
+ mediaUrls?: string[] | null | undefined;
16813
19219
  } | undefined;
16814
19220
  secondsDelay?: number | undefined;
16815
19221
  scheduled?: number | undefined;
@@ -16863,8 +19269,15 @@ declare module '@scout9/app/schemas' {
16863
19269
  })[] | undefined;
16864
19270
  removeInstructions?: string[] | undefined;
16865
19271
  message?: string | {
16866
- content: string;
16867
- transform?: boolean | undefined;
19272
+ name?: string | undefined;
19273
+ content?: string | undefined;
19274
+ context?: any;
19275
+ scheduled?: string | undefined;
19276
+ intent?: string | null | undefined;
19277
+ intentScore?: number | null | undefined;
19278
+ delayInSeconds?: number | null | undefined;
19279
+ ignoreTransform?: boolean | undefined;
19280
+ mediaUrls?: string[] | null | undefined;
16868
19281
  } | undefined;
16869
19282
  secondsDelay?: number | undefined;
16870
19283
  scheduled?: number | undefined;
@@ -16916,8 +19329,15 @@ declare module '@scout9/app/schemas' {
16916
19329
  })[] | undefined;
16917
19330
  removeInstructions?: string[] | undefined;
16918
19331
  message?: string | {
16919
- content: string;
16920
- transform?: boolean | undefined;
19332
+ name?: string | undefined;
19333
+ content?: string | undefined;
19334
+ context?: any;
19335
+ scheduled?: string | undefined;
19336
+ intent?: string | null | undefined;
19337
+ intentScore?: number | null | undefined;
19338
+ delayInSeconds?: number | null | undefined;
19339
+ ignoreTransform?: boolean | undefined;
19340
+ mediaUrls?: string[] | null | undefined;
16921
19341
  } | undefined;
16922
19342
  secondsDelay?: number | undefined;
16923
19343
  scheduled?: number | undefined;
@@ -16971,8 +19391,15 @@ declare module '@scout9/app/schemas' {
16971
19391
  })[] | undefined;
16972
19392
  removeInstructions?: string[] | undefined;
16973
19393
  message?: string | {
16974
- content: string;
16975
- transform?: boolean | undefined;
19394
+ name?: string | undefined;
19395
+ content?: string | undefined;
19396
+ context?: any;
19397
+ scheduled?: string | undefined;
19398
+ intent?: string | null | undefined;
19399
+ intentScore?: number | null | undefined;
19400
+ delayInSeconds?: number | null | undefined;
19401
+ ignoreTransform?: boolean | undefined;
19402
+ mediaUrls?: string[] | null | undefined;
16976
19403
  } | undefined;
16977
19404
  secondsDelay?: number | undefined;
16978
19405
  scheduled?: number | undefined;
@@ -17024,8 +19451,15 @@ declare module '@scout9/app/schemas' {
17024
19451
  })[] | undefined;
17025
19452
  removeInstructions?: string[] | undefined;
17026
19453
  message?: string | {
17027
- content: string;
17028
- transform?: boolean | undefined;
19454
+ name?: string | undefined;
19455
+ content?: string | undefined;
19456
+ context?: any;
19457
+ scheduled?: string | undefined;
19458
+ intent?: string | null | undefined;
19459
+ intentScore?: number | null | undefined;
19460
+ delayInSeconds?: number | null | undefined;
19461
+ ignoreTransform?: boolean | undefined;
19462
+ mediaUrls?: string[] | null | undefined;
17029
19463
  } | undefined;
17030
19464
  secondsDelay?: number | undefined;
17031
19465
  scheduled?: number | undefined;
@@ -17060,15 +19494,58 @@ declare module '@scout9/app/schemas' {
17060
19494
  } | undefined;
17061
19495
  };
17062
19496
  }>, z.ZodArray<z.ZodObject<{
17063
- message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
17064
- content: z.ZodString;
17065
- transform: z.ZodOptional<z.ZodBoolean>;
17066
- }, "strip", z.ZodTypeAny, {
17067
- content: string;
17068
- transform?: boolean | undefined;
19497
+ message: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<Omit<{
19498
+ id: z.ZodOptional<z.ZodString>;
19499
+ role: z.ZodOptional<z.ZodEnum<["agent", "customer", "system"]>>;
19500
+ content: z.ZodOptional<z.ZodString>;
19501
+ time: z.ZodOptional<z.ZodString>;
19502
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
19503
+ scheduled: z.ZodOptional<z.ZodOptional<z.ZodString>>;
19504
+ context: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
19505
+ intent: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
19506
+ intentScore: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
19507
+ delayInSeconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
19508
+ entities: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
19509
+ start: z.ZodNumber;
19510
+ end: z.ZodNumber;
19511
+ type: z.ZodString;
19512
+ option: z.ZodNullable<z.ZodOptional<z.ZodString>>;
19513
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
19514
+ }, "strip", z.ZodTypeAny, {
19515
+ type: string;
19516
+ end: number;
19517
+ start: number;
19518
+ option?: string | null | undefined;
19519
+ text?: string | null | undefined;
19520
+ }, {
19521
+ type: string;
19522
+ end: number;
19523
+ start: number;
19524
+ option?: string | null | undefined;
19525
+ text?: string | null | undefined;
19526
+ }>, "many">>>>;
19527
+ ignoreTransform: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
19528
+ mediaUrls: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>>;
19529
+ }, "time" | "id" | "role" | "entities">, "strip", z.ZodTypeAny, {
19530
+ name?: string | undefined;
19531
+ content?: string | undefined;
19532
+ context?: any;
19533
+ scheduled?: string | undefined;
19534
+ intent?: string | null | undefined;
19535
+ intentScore?: number | null | undefined;
19536
+ delayInSeconds?: number | null | undefined;
19537
+ ignoreTransform?: boolean | undefined;
19538
+ mediaUrls?: string[] | null | undefined;
17069
19539
  }, {
17070
- content: string;
17071
- transform?: boolean | undefined;
19540
+ name?: string | undefined;
19541
+ content?: string | undefined;
19542
+ context?: any;
19543
+ scheduled?: string | undefined;
19544
+ intent?: string | null | undefined;
19545
+ intentScore?: number | null | undefined;
19546
+ delayInSeconds?: number | null | undefined;
19547
+ ignoreTransform?: boolean | undefined;
19548
+ mediaUrls?: string[] | null | undefined;
17072
19549
  }>]>>;
17073
19550
  forward: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
17074
19551
  to: z.ZodOptional<z.ZodString>;
@@ -17205,8 +19682,15 @@ declare module '@scout9/app/schemas' {
17205
19682
  }, "strip", z.ZodTypeAny, {
17206
19683
  keywords: string[];
17207
19684
  message?: string | {
17208
- content: string;
17209
- transform?: boolean | undefined;
19685
+ name?: string | undefined;
19686
+ content?: string | undefined;
19687
+ context?: any;
19688
+ scheduled?: string | undefined;
19689
+ intent?: string | null | undefined;
19690
+ intentScore?: number | null | undefined;
19691
+ delayInSeconds?: number | null | undefined;
19692
+ ignoreTransform?: boolean | undefined;
19693
+ mediaUrls?: string[] | null | undefined;
17210
19694
  } | undefined;
17211
19695
  forward?: string | boolean | {
17212
19696
  to?: string | undefined;
@@ -17258,8 +19742,15 @@ declare module '@scout9/app/schemas' {
17258
19742
  }, {
17259
19743
  keywords: string[];
17260
19744
  message?: string | {
17261
- content: string;
17262
- transform?: boolean | undefined;
19745
+ name?: string | undefined;
19746
+ content?: string | undefined;
19747
+ context?: any;
19748
+ scheduled?: string | undefined;
19749
+ intent?: string | null | undefined;
19750
+ intentScore?: number | null | undefined;
19751
+ delayInSeconds?: number | null | undefined;
19752
+ ignoreTransform?: boolean | undefined;
19753
+ mediaUrls?: string[] | null | undefined;
17263
19754
  } | undefined;
17264
19755
  forward?: string | boolean | {
17265
19756
  to?: string | undefined;
@@ -17309,10 +19800,45 @@ declare module '@scout9/app/schemas' {
17309
19800
  overrideLock?: boolean | undefined;
17310
19801
  } | undefined;
17311
19802
  }>, "many">]>>;
19803
+ entityContextUpsert: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"method", [z.ZodObject<{
19804
+ entityType: z.ZodString;
19805
+ entityRecordId: z.ZodString;
19806
+ method: z.ZodLiteral<"delete">;
19807
+ }, "strip", z.ZodTypeAny, {
19808
+ method: "delete";
19809
+ entityType: string;
19810
+ entityRecordId: string;
19811
+ }, {
19812
+ method: "delete";
19813
+ entityType: string;
19814
+ entityRecordId: string;
19815
+ }>, z.ZodObject<{
19816
+ entityType: z.ZodString;
19817
+ entityRecordId: z.ZodString;
19818
+ method: z.ZodLiteral<"mutate">;
19819
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodLiteral<"#remove">, z.ZodLiteral<"#delete">]>>;
19820
+ }, "strip", z.ZodTypeAny, {
19821
+ method: "mutate";
19822
+ entityType: string;
19823
+ entityRecordId: string;
19824
+ fields: Record<string, string | number | boolean | null>;
19825
+ }, {
19826
+ method: "mutate";
19827
+ entityType: string;
19828
+ entityRecordId: string;
19829
+ fields: Record<string, string | number | boolean | null>;
19830
+ }>]>, "many">>;
17312
19831
  }, "strip", z.ZodTypeAny, {
17313
19832
  message?: string | {
17314
- content: string;
17315
- transform?: boolean | undefined;
19833
+ name?: string | undefined;
19834
+ content?: string | undefined;
19835
+ context?: any;
19836
+ scheduled?: string | undefined;
19837
+ intent?: string | null | undefined;
19838
+ intentScore?: number | null | undefined;
19839
+ delayInSeconds?: number | null | undefined;
19840
+ ignoreTransform?: boolean | undefined;
19841
+ mediaUrls?: string[] | null | undefined;
17316
19842
  } | undefined;
17317
19843
  forward?: string | boolean | {
17318
19844
  to?: string | undefined;
@@ -17381,8 +19907,15 @@ declare module '@scout9/app/schemas' {
17381
19907
  })[] | undefined;
17382
19908
  removeInstructions?: string[] | undefined;
17383
19909
  message?: string | {
17384
- content: string;
17385
- transform?: boolean | undefined;
19910
+ name?: string | undefined;
19911
+ content?: string | undefined;
19912
+ context?: any;
19913
+ scheduled?: string | undefined;
19914
+ intent?: string | null | undefined;
19915
+ intentScore?: number | null | undefined;
19916
+ delayInSeconds?: number | null | undefined;
19917
+ ignoreTransform?: boolean | undefined;
19918
+ mediaUrls?: string[] | null | undefined;
17386
19919
  } | undefined;
17387
19920
  secondsDelay?: number | undefined;
17388
19921
  scheduled?: number | undefined;
@@ -17434,8 +19967,15 @@ declare module '@scout9/app/schemas' {
17434
19967
  })[] | undefined;
17435
19968
  removeInstructions?: string[] | undefined;
17436
19969
  message?: string | {
17437
- content: string;
17438
- transform?: boolean | undefined;
19970
+ name?: string | undefined;
19971
+ content?: string | undefined;
19972
+ context?: any;
19973
+ scheduled?: string | undefined;
19974
+ intent?: string | null | undefined;
19975
+ intentScore?: number | null | undefined;
19976
+ delayInSeconds?: number | null | undefined;
19977
+ ignoreTransform?: boolean | undefined;
19978
+ mediaUrls?: string[] | null | undefined;
17439
19979
  } | undefined;
17440
19980
  secondsDelay?: number | undefined;
17441
19981
  scheduled?: number | undefined;
@@ -17472,8 +20012,15 @@ declare module '@scout9/app/schemas' {
17472
20012
  } | {
17473
20013
  keywords: string[];
17474
20014
  message?: string | {
17475
- content: string;
17476
- transform?: boolean | undefined;
20015
+ name?: string | undefined;
20016
+ content?: string | undefined;
20017
+ context?: any;
20018
+ scheduled?: string | undefined;
20019
+ intent?: string | null | undefined;
20020
+ intentScore?: number | null | undefined;
20021
+ delayInSeconds?: number | null | undefined;
20022
+ ignoreTransform?: boolean | undefined;
20023
+ mediaUrls?: string[] | null | undefined;
17477
20024
  } | undefined;
17478
20025
  forward?: string | boolean | {
17479
20026
  to?: string | undefined;
@@ -17523,10 +20070,27 @@ declare module '@scout9/app/schemas' {
17523
20070
  overrideLock?: boolean | undefined;
17524
20071
  } | undefined;
17525
20072
  }[] | undefined;
20073
+ entityContextUpsert?: ({
20074
+ method: "delete";
20075
+ entityType: string;
20076
+ entityRecordId: string;
20077
+ } | {
20078
+ method: "mutate";
20079
+ entityType: string;
20080
+ entityRecordId: string;
20081
+ fields: Record<string, string | number | boolean | null>;
20082
+ })[] | undefined;
17526
20083
  }, {
17527
20084
  message?: string | {
17528
- content: string;
17529
- transform?: boolean | undefined;
20085
+ name?: string | undefined;
20086
+ content?: string | undefined;
20087
+ context?: any;
20088
+ scheduled?: string | undefined;
20089
+ intent?: string | null | undefined;
20090
+ intentScore?: number | null | undefined;
20091
+ delayInSeconds?: number | null | undefined;
20092
+ ignoreTransform?: boolean | undefined;
20093
+ mediaUrls?: string[] | null | undefined;
17530
20094
  } | undefined;
17531
20095
  forward?: string | boolean | {
17532
20096
  to?: string | undefined;
@@ -17595,8 +20159,15 @@ declare module '@scout9/app/schemas' {
17595
20159
  })[] | undefined;
17596
20160
  removeInstructions?: string[] | undefined;
17597
20161
  message?: string | {
17598
- content: string;
17599
- transform?: boolean | undefined;
20162
+ name?: string | undefined;
20163
+ content?: string | undefined;
20164
+ context?: any;
20165
+ scheduled?: string | undefined;
20166
+ intent?: string | null | undefined;
20167
+ intentScore?: number | null | undefined;
20168
+ delayInSeconds?: number | null | undefined;
20169
+ ignoreTransform?: boolean | undefined;
20170
+ mediaUrls?: string[] | null | undefined;
17600
20171
  } | undefined;
17601
20172
  secondsDelay?: number | undefined;
17602
20173
  scheduled?: number | undefined;
@@ -17648,8 +20219,15 @@ declare module '@scout9/app/schemas' {
17648
20219
  })[] | undefined;
17649
20220
  removeInstructions?: string[] | undefined;
17650
20221
  message?: string | {
17651
- content: string;
17652
- transform?: boolean | undefined;
20222
+ name?: string | undefined;
20223
+ content?: string | undefined;
20224
+ context?: any;
20225
+ scheduled?: string | undefined;
20226
+ intent?: string | null | undefined;
20227
+ intentScore?: number | null | undefined;
20228
+ delayInSeconds?: number | null | undefined;
20229
+ ignoreTransform?: boolean | undefined;
20230
+ mediaUrls?: string[] | null | undefined;
17653
20231
  } | undefined;
17654
20232
  secondsDelay?: number | undefined;
17655
20233
  scheduled?: number | undefined;
@@ -17686,8 +20264,15 @@ declare module '@scout9/app/schemas' {
17686
20264
  } | {
17687
20265
  keywords: string[];
17688
20266
  message?: string | {
17689
- content: string;
17690
- transform?: boolean | undefined;
20267
+ name?: string | undefined;
20268
+ content?: string | undefined;
20269
+ context?: any;
20270
+ scheduled?: string | undefined;
20271
+ intent?: string | null | undefined;
20272
+ intentScore?: number | null | undefined;
20273
+ delayInSeconds?: number | null | undefined;
20274
+ ignoreTransform?: boolean | undefined;
20275
+ mediaUrls?: string[] | null | undefined;
17691
20276
  } | undefined;
17692
20277
  forward?: string | boolean | {
17693
20278
  to?: string | undefined;
@@ -17737,6 +20322,16 @@ declare module '@scout9/app/schemas' {
17737
20322
  overrideLock?: boolean | undefined;
17738
20323
  } | undefined;
17739
20324
  }[] | undefined;
20325
+ entityContextUpsert?: ({
20326
+ method: "delete";
20327
+ entityType: string;
20328
+ entityRecordId: string;
20329
+ } | {
20330
+ method: "mutate";
20331
+ entityType: string;
20332
+ entityRecordId: string;
20333
+ fields: Record<string, string | number | boolean | null>;
20334
+ })[] | undefined;
17740
20335
  }>, "many">]>]>>;
17741
20336
  }
17742
20337