@webitel/ui-sdk 26.8.152 → 26.8.153

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.
@@ -1,7 +1,7 @@
1
1
  import { c as e } from "./dist-EXdgfpvN.js";
2
2
  import { a as t, i as n, n as r, t as i } from "./genClient-CvWlQ0TZ.js";
3
3
  import { i as a, r as o } from "./caseConverters-DGri4uJo.js";
4
- import { E as s, w as c } from "./components-DFU2gMZC.js";
4
+ import { E as s, w as c } from "./components-D2-r7suP.js";
5
5
  import { a as l, c as u, r as d, u as f } from "./convertDuration-CIPonKKW.js";
6
6
  import { S as p, T as m, v as ee } from "./enums-CKer6GJR.js";
7
7
  import { t as te } from "./deep-copy-BJdHBMNZ.js";
@@ -10860,7 +10860,7 @@ v.array(ve), v.object({
10860
10860
  }).optional()
10861
10861
  }), v.object({ contact_id: v.string().describe("Contact ID associated with.") }), v.object({
10862
10862
  fields: v.array(v.string()).optional().describe("Fields to be retrieved as a result."),
10863
- etag: v.array(v.string()).describe("Set of unique ID(s) to remove.")
10863
+ etag: v.array(v.string()).min(1).describe("Set of unique ID(s) to remove.")
10864
10864
  }), v.object({
10865
10865
  data: v.array(v.object({
10866
10866
  created_at: v.string().optional().describe("The user who created this Field."),
@@ -11251,6 +11251,7 @@ v.object({
11251
11251
  etag: v.string().optional().describe("Unique ID of the latest version of the update.\nThis ID changes after any update to the underlying value(s)."),
11252
11252
  external_id: v.string().optional().describe("External user id."),
11253
11253
  id: v.string().optional().describe("The unique ID of the association. Never changes."),
11254
+ im_contact_id: v.string().optional().describe("IM-stack contact ID (UUID) from the im-contact-service.\nMutually exclusive with .user: a link has either a legacy\nchat client (.user) or an IM-stack contact, never both."),
11254
11255
  protocol: v.string().optional().describe("Protocol used to connect the IM client."),
11255
11256
  updated_at: v.string().optional().describe("Timestamp(milli) of the last Field update.\nTake part in Etag generation."),
11256
11257
  updated_by: v.object({
@@ -11486,6 +11487,7 @@ var Se = v.object({
11486
11487
  created_by: v.string().optional().describe("Id of Agent created this IM client."),
11487
11488
  external_user: v.string().optional(),
11488
11489
  gateway_id: v.string().optional().describe("App (Text-Gateway) used to connect the IM client."),
11490
+ im_contact_id: v.string().optional().describe("IM-stack contact ID (UUID) from the im-contact-service.\nExactly one of .external_user or .im_contact_id must be set."),
11489
11491
  protocol: v.string().optional(),
11490
11492
  via: v.string().optional().describe("[Via] App(-specific) peer(-id) to connect[from] the IM client.")
11491
11493
  }).describe("Input of the contact IM client.")).optional().describe("The contact's [I]nstant[M]essaging clients."),
@@ -11654,6 +11656,7 @@ v.object({
11654
11656
  etag: v.string().optional().describe("Unique ID of the latest version of the update.\nThis ID changes after any update to the underlying value(s)."),
11655
11657
  external_id: v.string().optional().describe("External user id."),
11656
11658
  id: v.string().optional().describe("The unique ID of the association. Never changes."),
11659
+ im_contact_id: v.string().optional().describe("IM-stack contact ID (UUID) from the im-contact-service.\nMutually exclusive with .user: a link has either a legacy\nchat client (.user) or an IM-stack contact, never both."),
11657
11660
  protocol: v.string().optional().describe("Protocol used to connect the IM client."),
11658
11661
  updated_at: v.string().optional().describe("Timestamp(milli) of the last Field update.\nTake part in Etag generation."),
11659
11662
  updated_by: v.object({
@@ -11886,6 +11889,7 @@ var Ce = v.object({
11886
11889
  created_by: v.string().optional().describe("Id of Agent created this IM client."),
11887
11890
  external_user: v.string().optional(),
11888
11891
  gateway_id: v.string().optional().describe("App (Text-Gateway) used to connect the IM client."),
11892
+ im_contact_id: v.string().optional().describe("IM-stack contact ID (UUID) from the im-contact-service.\nExactly one of .external_user or .im_contact_id must be set."),
11889
11893
  protocol: v.string().optional(),
11890
11894
  via: v.string().optional().describe("[Via] App(-specific) peer(-id) to connect[from] the IM client.")
11891
11895
  }).describe("Input of the contact IM client.")).optional().describe("The contact's [I]nstant[M]essaging clients."),
@@ -12055,6 +12059,7 @@ v.array(Ce), v.object({
12055
12059
  etag: v.string().optional().describe("Unique ID of the latest version of the update.\nThis ID changes after any update to the underlying value(s)."),
12056
12060
  external_id: v.string().optional().describe("External user id."),
12057
12061
  id: v.string().optional().describe("The unique ID of the association. Never changes."),
12062
+ im_contact_id: v.string().optional().describe("IM-stack contact ID (UUID) from the im-contact-service.\nMutually exclusive with .user: a link has either a legacy\nchat client (.user) or an IM-stack contact, never both."),
12058
12063
  protocol: v.string().optional().describe("Protocol used to connect the IM client."),
12059
12064
  updated_at: v.string().optional().describe("Timestamp(milli) of the last Field update.\nTake part in Etag generation."),
12060
12065
  updated_by: v.object({
@@ -12294,6 +12299,7 @@ v.array(Ce), v.object({
12294
12299
  created_by: v.string().optional().describe("Id of Agent created this IM client."),
12295
12300
  external_user: v.string().optional(),
12296
12301
  gateway_id: v.string().optional().describe("App (Text-Gateway) used to connect the IM client."),
12302
+ im_contact_id: v.string().optional().describe("IM-stack contact ID (UUID) from the im-contact-service.\nExactly one of .external_user or .im_contact_id must be set."),
12297
12303
  protocol: v.string().optional(),
12298
12304
  via: v.string().optional().describe("[Via] App(-specific) peer(-id) to connect[from] the IM client.")
12299
12305
  }).describe("Input of the contact IM client.")).optional().describe("The contact's [I]nstant[M]essaging clients."),
@@ -12469,6 +12475,7 @@ v.array(Ce), v.object({
12469
12475
  etag: v.string().optional().describe("Unique ID of the latest version of the update.\nThis ID changes after any update to the underlying value(s)."),
12470
12476
  external_id: v.string().optional().describe("External user id."),
12471
12477
  id: v.string().optional().describe("The unique ID of the association. Never changes."),
12478
+ im_contact_id: v.string().optional().describe("IM-stack contact ID (UUID) from the im-contact-service.\nMutually exclusive with .user: a link has either a legacy\nchat client (.user) or an IM-stack contact, never both."),
12472
12479
  protocol: v.string().optional().describe("Protocol used to connect the IM client."),
12473
12480
  updated_at: v.string().optional().describe("Timestamp(milli) of the last Field update.\nTake part in Etag generation."),
12474
12481
  updated_by: v.object({
@@ -12785,6 +12792,7 @@ v.array(Ce), v.object({
12785
12792
  etag: v.string().optional().describe("Unique ID of the latest version of the update.\nThis ID changes after any update to the underlying value(s)."),
12786
12793
  external_id: v.string().optional().describe("External user id."),
12787
12794
  id: v.string().optional().describe("The unique ID of the association. Never changes."),
12795
+ im_contact_id: v.string().optional().describe("IM-stack contact ID (UUID) from the im-contact-service.\nMutually exclusive with .user: a link has either a legacy\nchat client (.user) or an IM-stack contact, never both."),
12788
12796
  protocol: v.string().optional().describe("Protocol used to connect the IM client."),
12789
12797
  updated_at: v.string().optional().describe("Timestamp(milli) of the last Field update.\nTake part in Etag generation."),
12790
12798
  updated_by: v.object({
@@ -13016,6 +13024,7 @@ var we = v.object({
13016
13024
  created_by: v.string().optional().describe("Id of Agent created this IM client."),
13017
13025
  external_user: v.string().optional(),
13018
13026
  gateway_id: v.string().optional().describe("App (Text-Gateway) used to connect the IM client."),
13027
+ im_contact_id: v.string().optional().describe("IM-stack contact ID (UUID) from the im-contact-service.\nExactly one of .external_user or .im_contact_id must be set."),
13019
13028
  protocol: v.string().optional(),
13020
13029
  via: v.string().optional().describe("[Via] App(-specific) peer(-id) to connect[from] the IM client.")
13021
13030
  }).describe("Input of the contact IM client.")).optional().describe("The contact's [I]nstant[M]essaging clients."),
@@ -13184,6 +13193,7 @@ v.object({
13184
13193
  etag: v.string().optional().describe("Unique ID of the latest version of the update.\nThis ID changes after any update to the underlying value(s)."),
13185
13194
  external_id: v.string().optional().describe("External user id."),
13186
13195
  id: v.string().optional().describe("The unique ID of the association. Never changes."),
13196
+ im_contact_id: v.string().optional().describe("IM-stack contact ID (UUID) from the im-contact-service.\nMutually exclusive with .user: a link has either a legacy\nchat client (.user) or an IM-stack contact, never both."),
13187
13197
  protocol: v.string().optional().describe("Protocol used to connect the IM client."),
13188
13198
  updated_at: v.string().optional().describe("Timestamp(milli) of the last Field update.\nTake part in Etag generation."),
13189
13199
  updated_by: v.object({
@@ -17145,7 +17155,7 @@ v.object({
17145
17155
  redirect_url: v.string().optional()
17146
17156
  }), v.object({ id: v.int() }), v.looseObject({}), v.object({ id: v.int() }), v.object({ error: v.string().optional() }), v.object({ contact_id: v.string().describe("Contact ID associated with.") }), v.object({
17147
17157
  fields: v.array(v.string()).optional().describe("Fields to be retrieved as a result."),
17148
- etag: v.array(v.string().regex(/^.+$/)).describe("Set of unique ID(s) to remove.")
17158
+ etag: v.array(v.string().regex(/^.+$/)).min(1).describe("Set of unique ID(s) to remove.")
17149
17159
  }), v.object({
17150
17160
  data: v.array(v.object({
17151
17161
  created_at: v.string().optional().describe("The user who created this Field."),
@@ -19734,6 +19744,7 @@ v.object({
19734
19744
  etag: v.string().optional().describe("Unique ID of the latest version of the update.\nThis ID changes after any update to the underlying value(s)."),
19735
19745
  external_id: v.string().optional().describe("External user id."),
19736
19746
  id: v.string().optional().describe("The unique ID of the association. Never changes."),
19747
+ im_contact_id: v.string().optional().describe("IM-stack contact ID (UUID) from the im-contact-service.\nMutually exclusive with .user: a link has either a legacy\nchat client (.user) or an IM-stack contact, never both."),
19737
19748
  protocol: v.string().optional().describe("Protocol used to connect the IM client."),
19738
19749
  updated_at: v.string().optional().describe("Timestamp(milli) of the last Field update.\nTake part in Etag generation."),
19739
19750
  updated_by: v.object({
@@ -20047,6 +20058,7 @@ v.object({
20047
20058
  etag: v.string().optional().describe("Unique ID of the latest version of the update.\nThis ID changes after any update to the underlying value(s)."),
20048
20059
  external_id: v.string().optional().describe("External user id."),
20049
20060
  id: v.string().optional().describe("The unique ID of the association. Never changes."),
20061
+ im_contact_id: v.string().optional().describe("IM-stack contact ID (UUID) from the im-contact-service.\nMutually exclusive with .user: a link has either a legacy\nchat client (.user) or an IM-stack contact, never both."),
20050
20062
  protocol: v.string().optional().describe("Protocol used to connect the IM client."),
20051
20063
  updated_at: v.string().optional().describe("Timestamp(milli) of the last Field update.\nTake part in Etag generation."),
20052
20064
  updated_by: v.object({
@@ -20508,6 +20520,7 @@ v.object({
20508
20520
  etag: v.string().optional().describe("Unique ID of the latest version of the update.\nThis ID changes after any update to the underlying value(s)."),
20509
20521
  external_id: v.string().optional().describe("External user id."),
20510
20522
  id: v.string().optional().describe("The unique ID of the association. Never changes."),
20523
+ im_contact_id: v.string().optional().describe("IM-stack contact ID (UUID) from the im-contact-service.\nMutually exclusive with .user: a link has either a legacy\nchat client (.user) or an IM-stack contact, never both."),
20511
20524
  protocol: v.string().optional().describe("Protocol used to connect the IM client."),
20512
20525
  updated_at: v.string().optional().describe("Timestamp(milli) of the last Field update.\nTake part in Etag generation."),
20513
20526
  updated_by: v.object({
@@ -20525,7 +20538,42 @@ v.object({
20525
20538
  }).describe("A contact's [I]nstant[M]essaging client.")).optional().describe("IMClient dataset page."),
20526
20539
  next: v.boolean().optional(),
20527
20540
  page: v.int().optional().describe("The page number of the partial result.")
20541
+ }), v.object({ contact_id: v.string().describe("Link contact ID (or etag).") }), v.object({
20542
+ gateway_id: v.string().optional().describe("App (gateway) the IM contact is connected through. Optional."),
20543
+ im_contact_id: v.string().optional().describe("IM-stack contact ID (UUID) from the im-contact-service. Required."),
20544
+ protocol: v.string().optional().describe("Protocol (provider type) of the IM conversation, e.g. \"telegram\". Required."),
20545
+ via: v.string().optional().describe("[Via] App(-specific) peer(-id) to connect[from] the IM contact. Optional.")
20528
20546
  }), v.object({
20547
+ app: v.object({
20548
+ id: v.string().optional().describe("Reference Object unique ID."),
20549
+ name: v.string().optional().describe("Reference Object display name."),
20550
+ type: v.string().optional().describe("Reference Object well-known type.")
20551
+ }).optional().describe("App (Text-Gateway) used to connect the IM client.\nId will be internal id of gateway.\nName will be name of the gateway."),
20552
+ created_at: v.string().optional().describe("The user who created this Field."),
20553
+ created_by: v.object({
20554
+ id: v.string().optional().describe("Reference Object unique ID."),
20555
+ name: v.string().optional().describe("Reference Object display name."),
20556
+ type: v.string().optional().describe("Reference Object well-known type.")
20557
+ }).optional().describe("Timestamp(milli) of the Field creation."),
20558
+ etag: v.string().optional().describe("Unique ID of the latest version of the update.\nThis ID changes after any update to the underlying value(s)."),
20559
+ external_id: v.string().optional().describe("External user id."),
20560
+ id: v.string().optional().describe("The unique ID of the association. Never changes."),
20561
+ im_contact_id: v.string().optional().describe("IM-stack contact ID (UUID) from the im-contact-service.\nMutually exclusive with .user: a link has either a legacy\nchat client (.user) or an IM-stack contact, never both."),
20562
+ protocol: v.string().optional().describe("Protocol used to connect the IM client."),
20563
+ updated_at: v.string().optional().describe("Timestamp(milli) of the last Field update.\nTake part in Etag generation."),
20564
+ updated_by: v.object({
20565
+ id: v.string().optional().describe("Reference Object unique ID."),
20566
+ name: v.string().optional().describe("Reference Object display name."),
20567
+ type: v.string().optional().describe("Reference Object well-known type.")
20568
+ }).optional().describe("The user who performed last Update."),
20569
+ user: v.object({
20570
+ id: v.string().optional().describe("Reference Object unique ID."),
20571
+ name: v.string().optional().describe("Reference Object display name."),
20572
+ type: v.string().optional().describe("Reference Object well-known type.")
20573
+ }).optional().describe("External user which contacted to us.\nId will be from external service.\nName will be from external service."),
20574
+ ver: v.int().optional().describe("Version of the latest update. Numeric sequence."),
20575
+ via: v.string().optional().describe("[Via] App(-specific) peer(-id) to connect[from] the IM client.")
20576
+ }).describe("A contact's [I]nstant[M]essaging client."), v.object({
20529
20577
  contact_id: v.string(),
20530
20578
  id: v.string()
20531
20579
  }), v.looseObject({}), v.object({
@@ -20658,7 +20706,7 @@ v.object({
20658
20706
  }).describe("Lookup reference information.\nSimplified search filter to uniquely identify related object.")).optional()
20659
20707
  }).describe("LabelTags dataset list of label's info."), v.object({ contact_id: v.string().describe("Link contact ID.") }), v.object({
20660
20708
  fields: v.array(v.string()).optional().describe("Fields to be retrieved into result."),
20661
- etag: v.array(v.string().regex(/^(\w+)(,\w+)*$/)).describe("Set of unique label(s).etag identifiers.")
20709
+ etag: v.array(v.string().regex(/^(\w+)(,\w+)*$/)).min(1).describe("Set of unique label(s).etag identifiers.")
20662
20710
  }), v.object({
20663
20711
  data: v.array(v.object({
20664
20712
  created_at: v.string().optional().describe("The user who created this Field."),
@@ -20762,7 +20810,7 @@ v.array(Ne), v.object({
20762
20810
  page: v.int().optional().describe("Page number of partial result.")
20763
20811
  }).describe("LabelList dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactLabels.data are always subordinate to some contact.id."), v.object({ contact_id: v.string().describe("Link contact ID.") }), v.object({
20764
20812
  fields: v.array(v.string()).optional().describe("Fields to be retrieved as a result."),
20765
- etag: v.array(v.string()).describe("Set of unique language{etag} association(s) to remove.")
20813
+ etag: v.array(v.string()).min(1).describe("Set of unique language{etag} association(s) to remove.")
20766
20814
  }), v.object({
20767
20815
  data: v.array(v.object({
20768
20816
  code: v.string().optional(),
@@ -22706,7 +22754,7 @@ v.array(Fe), v.object({
22706
22754
  page: v.int().optional()
22707
22755
  }), v.object({ contact_id: v.string().describe("Contact ID associated with.") }), v.object({
22708
22756
  fields: v.array(v.string()).optional().describe("Fields to be retrieved as a result."),
22709
- etag: v.array(v.string()).describe("Set of unique ID(s) to remove.")
22757
+ etag: v.array(v.string()).min(1).describe("Set of unique ID(s) to remove.")
22710
22758
  });
22711
22759
  var Ie = v.object({
22712
22760
  created_at: v.string().optional().describe("The user who created this Field."),
@@ -26105,7 +26153,7 @@ v.object({
26105
26153
  size: v.int().optional()
26106
26154
  }), v.object({ contact_id: v.string().describe("The Contact ID associated with.") }), v.object({
26107
26155
  fields: v.array(v.string()).optional().describe("Fields to be retrieved into result."),
26108
- etag: v.array(v.string()).describe("Set of linked ID(s) to be removed.")
26156
+ etag: v.array(v.string()).min(1).describe("Set of linked ID(s) to be removed.")
26109
26157
  }), v.object({
26110
26158
  data: v.array(v.object({
26111
26159
  created_at: v.string().optional().describe("The user who created this Field."),
@@ -26392,7 +26440,7 @@ v.object({
26392
26440
  page: v.int().optional().describe("The page number of the partial result.")
26393
26441
  }).describe("PhoneNumber dataset."), v.object({ contact_id: v.string().describe("Link(s) contact ID.") }), v.object({
26394
26442
  fields: v.array(v.string()).optional().describe("Fields to be retrieved into result of changes."),
26395
- etag: v.array(v.string()).describe("Set of linked ID(s) to be removed.")
26443
+ etag: v.array(v.string()).min(1).describe("Set of linked ID(s) to be removed.")
26396
26444
  }), v.object({
26397
26445
  data: v.array(v.object({
26398
26446
  created_at: v.string().optional().describe("The user who created this Field."),
@@ -26621,7 +26669,7 @@ v.array(We), v.object({
26621
26669
  id: v.string().optional().describe("[required] tuple unique id; <track>"),
26622
26670
  note: v.string().optional(),
26623
26671
  open: v.int().optional(),
26624
- presence: v.array(v.unknown()).optional().describe("// FIXME: well-known types ?\r\n repeated Dialog call = 9;\r\n repeated Sipreg sip = 9;\r\n repeated Websock wss = 9;"),
26672
+ presence: v.array(v.unknown()).optional().describe("// FIXME: well-known types ?\n repeated Dialog call = 9;\n repeated Sipreg sip = 9;\n repeated Websock wss = 9;"),
26625
26673
  priority: v.int().optional(),
26626
26674
  sequence: v.string().optional(),
26627
26675
  status: v.string().optional(),
@@ -26643,7 +26691,7 @@ v.array(We), v.object({
26643
26691
  id: v.string().optional().describe("[required] tuple unique id; <track>"),
26644
26692
  note: v.string().optional(),
26645
26693
  open: v.int().optional(),
26646
- presence: v.array(v.unknown()).optional().describe("// FIXME: well-known types ?\r\n repeated Dialog call = 9;\r\n repeated Sipreg sip = 9;\r\n repeated Websock wss = 9;"),
26694
+ presence: v.array(v.unknown()).optional().describe("// FIXME: well-known types ?\n repeated Dialog call = 9;\n repeated Sipreg sip = 9;\n repeated Websock wss = 9;"),
26647
26695
  priority: v.int().optional(),
26648
26696
  sequence: v.string().optional(),
26649
26697
  status: v.string().optional(),
@@ -32125,7 +32173,7 @@ v.object({
32125
32173
  })).optional()
32126
32174
  }), v.object({ contact_id: v.string().describe("Contact ID associated with.") }), v.object({
32127
32175
  fields: v.array(v.string()).optional().describe("Fields to be retrieved as a result."),
32128
- etag: v.array(v.string()).describe("Set of unique ID(s) to remove.")
32176
+ etag: v.array(v.string()).min(1).describe("Set of unique ID(s) to remove.")
32129
32177
  }), v.object({
32130
32178
  data: v.array(v.object({
32131
32179
  created_at: v.string().optional().describe("The user who created this Field."),
@@ -34345,7 +34393,7 @@ v.array(Qe), v.object({ deleted: v.array(v.object({
34345
34393
  username: v.string().optional()
34346
34394
  }).describe("User profile."), v.object({ id: v.string().describe("ONE /users/{id}/logout") }), v.object({ selection: v.array(v.string()).optional() }), v.looseObject({}), v.object({ contact_id: v.string().describe("Contact ID associated with.") }), v.object({
34347
34395
  fields: v.array(v.string()).optional().describe("Fields to be retrieved as a result."),
34348
- etag: v.array(v.string().regex(/^.+$/)).describe("Set of unique ID(s) to remove.")
34396
+ etag: v.array(v.string().regex(/^.+$/)).min(1).describe("Set of unique ID(s) to remove.")
34349
34397
  }), v.object({
34350
34398
  data: v.array(v.object({
34351
34399
  created_at: v.string().optional().describe("The user who created this Field."),
@@ -34959,11 +35007,13 @@ v.object({
34959
35007
  q: v.string().optional().describe("Full-text search query (matches against name or username)."),
34960
35008
  type: v.array(v.string()).optional().describe("Filter by channel types (e.g., [\"telegram\", \"viber\"])."),
34961
35009
  subjects: v.array(v.string()).optional().describe("Filter by internal system subjects/user IDs."),
34962
- only_bots: v.boolean().optional()
35010
+ only_bots: v.boolean().optional(),
35011
+ ids: v.array(v.string()).optional().describe("Filter by contact IDs.")
34963
35012
  }), v.object({
34964
35013
  items: v.array(v.object({
34965
35014
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
34966
35015
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
35016
+ id: v.string().optional().describe("Unique contact identifier."),
34967
35017
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
34968
35018
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
34969
35019
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -35449,6 +35499,7 @@ v.object({
35449
35499
  contact: v.object({
35450
35500
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
35451
35501
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
35502
+ id: v.string().optional().describe("Unique contact identifier."),
35452
35503
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
35453
35504
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
35454
35505
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -35508,6 +35559,7 @@ v.object({
35508
35559
  contact: v.object({
35509
35560
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
35510
35561
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
35562
+ id: v.string().optional().describe("Unique contact identifier."),
35511
35563
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
35512
35564
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
35513
35565
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -35637,6 +35689,7 @@ v.object({
35637
35689
  contact: v.object({
35638
35690
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
35639
35691
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
35692
+ id: v.string().optional().describe("Unique contact identifier."),
35640
35693
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
35641
35694
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
35642
35695
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -35697,6 +35750,7 @@ v.object({
35697
35750
  contact: v.object({
35698
35751
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
35699
35752
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
35753
+ id: v.string().optional().describe("Unique contact identifier."),
35700
35754
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
35701
35755
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
35702
35756
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -35744,6 +35798,7 @@ v.object({
35744
35798
  contact: v.object({
35745
35799
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
35746
35800
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
35801
+ id: v.string().optional().describe("Unique contact identifier."),
35747
35802
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
35748
35803
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
35749
35804
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -35808,6 +35863,7 @@ v.object({
35808
35863
  contact: v.object({
35809
35864
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
35810
35865
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
35866
+ id: v.string().optional().describe("Unique contact identifier."),
35811
35867
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
35812
35868
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
35813
35869
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -35873,6 +35929,7 @@ v.object({
35873
35929
  contact: v.object({
35874
35930
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
35875
35931
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
35932
+ id: v.string().optional().describe("Unique contact identifier."),
35876
35933
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
35877
35934
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
35878
35935
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -35932,6 +35989,7 @@ v.object({
35932
35989
  contact: v.object({
35933
35990
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
35934
35991
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
35992
+ id: v.string().optional().describe("Unique contact identifier."),
35935
35993
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
35936
35994
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
35937
35995
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -36061,6 +36119,7 @@ v.object({
36061
36119
  contact: v.object({
36062
36120
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
36063
36121
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
36122
+ id: v.string().optional().describe("Unique contact identifier."),
36064
36123
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
36065
36124
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
36066
36125
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -36121,6 +36180,7 @@ v.object({
36121
36180
  contact: v.object({
36122
36181
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
36123
36182
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
36183
+ id: v.string().optional().describe("Unique contact identifier."),
36124
36184
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
36125
36185
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
36126
36186
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -36168,6 +36228,7 @@ v.object({
36168
36228
  contact: v.object({
36169
36229
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
36170
36230
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
36231
+ id: v.string().optional().describe("Unique contact identifier."),
36171
36232
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
36172
36233
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
36173
36234
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -36243,6 +36304,7 @@ v.object({
36243
36304
  contact: v.object({
36244
36305
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
36245
36306
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
36307
+ id: v.string().optional().describe("Unique contact identifier."),
36246
36308
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
36247
36309
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
36248
36310
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -36302,6 +36364,7 @@ v.object({
36302
36364
  contact: v.object({
36303
36365
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
36304
36366
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
36367
+ id: v.string().optional().describe("Unique contact identifier."),
36305
36368
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
36306
36369
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
36307
36370
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -36431,6 +36494,7 @@ v.object({
36431
36494
  contact: v.object({
36432
36495
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
36433
36496
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
36497
+ id: v.string().optional().describe("Unique contact identifier."),
36434
36498
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
36435
36499
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
36436
36500
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -36491,6 +36555,7 @@ v.object({
36491
36555
  contact: v.object({
36492
36556
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
36493
36557
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
36558
+ id: v.string().optional().describe("Unique contact identifier."),
36494
36559
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
36495
36560
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
36496
36561
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -36538,6 +36603,7 @@ v.object({
36538
36603
  contact: v.object({
36539
36604
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
36540
36605
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
36606
+ id: v.string().optional().describe("Unique contact identifier."),
36541
36607
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
36542
36608
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
36543
36609
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -36603,10 +36669,19 @@ v.object({
36603
36669
  sort: v.string().optional().describe("Sorting field.\nOptional \"+\" or \"-\" prefix indicates ascending or descending order.\nExample: \"-created_at\", \"subject\""),
36604
36670
  page: v.int().optional().describe("Page number (1-based)."),
36605
36671
  contact_ids: v.array(v.string()).optional().describe("Filter threads by participant contact IDs."),
36606
- unread: v.boolean().optional().describe("Return only threads where the caller has at least one unread message.\nIgnored when false.")
36672
+ unread: v.boolean().optional().describe("Return only threads where the caller has at least one unread message.\nIgnored when false."),
36673
+ tags: v.array(v.string()).optional().describe("Return only threads the caller has tagged with every one of these tags (AND semantics).\nIgnored when empty."),
36674
+ exclude_tags: v.array(v.string()).optional().describe("Exclude threads the caller has tagged with any of these tags.\nIgnored when empty.")
36607
36675
  }), v.object({
36608
36676
  items: v.array(v.object({
36677
+ tags: v.array(v.object({
36678
+ created_at: v.string().optional(),
36679
+ id: v.string().optional(),
36680
+ tag: v.string().optional(),
36681
+ thread_id: v.string().optional()
36682
+ })).optional().describe("The caller's own tags on this thread. Empty if the caller hasn't tagged it."),
36609
36683
  created_at: v.string().optional().describe("Thread creation timestamp (Unix time, milliseconds)."),
36684
+ crm_contact_id: v.string().optional().describe("Webitel CRM contact selected by an operator for this thread.\nEmpty if no CRM contact has been selected."),
36610
36685
  description: v.string().optional().describe("Optional thread description."),
36611
36686
  id: v.string().optional().describe("Unique thread identifier."),
36612
36687
  last_msg: v.object({
@@ -36623,6 +36698,7 @@ v.object({
36623
36698
  contact: v.object({
36624
36699
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
36625
36700
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
36701
+ id: v.string().optional().describe("Unique contact identifier."),
36626
36702
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
36627
36703
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
36628
36704
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -36682,6 +36758,7 @@ v.object({
36682
36758
  contact: v.object({
36683
36759
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
36684
36760
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
36761
+ id: v.string().optional().describe("Unique contact identifier."),
36685
36762
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
36686
36763
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
36687
36764
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -36811,6 +36888,7 @@ v.object({
36811
36888
  contact: v.object({
36812
36889
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
36813
36890
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
36891
+ id: v.string().optional().describe("Unique contact identifier."),
36814
36892
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
36815
36893
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
36816
36894
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -36871,6 +36949,7 @@ v.object({
36871
36949
  contact: v.object({
36872
36950
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
36873
36951
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
36952
+ id: v.string().optional().describe("Unique contact identifier."),
36874
36953
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
36875
36954
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
36876
36955
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -36918,6 +36997,7 @@ v.object({
36918
36997
  contact: v.object({
36919
36998
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
36920
36999
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
37000
+ id: v.string().optional().describe("Unique contact identifier."),
36921
37001
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
36922
37002
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
36923
37003
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -36970,6 +37050,7 @@ v.object({
36970
37050
  contact: v.object({
36971
37051
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
36972
37052
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
37053
+ id: v.string().optional().describe("Unique contact identifier."),
36973
37054
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
36974
37055
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
36975
37056
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -37015,6 +37096,7 @@ v.object({
37015
37096
  contact: v.object({
37016
37097
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
37017
37098
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
37099
+ id: v.string().optional().describe("Unique contact identifier."),
37018
37100
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
37019
37101
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
37020
37102
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -37081,6 +37163,7 @@ v.object({
37081
37163
  set_by: v.object({
37082
37164
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
37083
37165
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
37166
+ id: v.string().optional().describe("Unique contact identifier."),
37084
37167
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
37085
37168
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
37086
37169
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -37111,7 +37194,14 @@ v.object({
37111
37194
  sub: v.string().optional(),
37112
37195
  via: v.string().optional()
37113
37196
  }).optional().describe("IM contact that will be added to the created thread as second member.") }).optional().describe("DirectConfig defines settings required to establish a 1:1 thread.") }).describe("ThreadManagementCreateRequest defines parameters for creating a specific thread type."), v.object({ thread: v.object({
37197
+ tags: v.array(v.object({
37198
+ created_at: v.string().optional(),
37199
+ id: v.string().optional(),
37200
+ tag: v.string().optional(),
37201
+ thread_id: v.string().optional()
37202
+ })).optional().describe("The caller's own tags on this thread. Empty if the caller hasn't tagged it."),
37114
37203
  created_at: v.string().optional().describe("Thread creation timestamp (Unix time, milliseconds)."),
37204
+ crm_contact_id: v.string().optional().describe("Webitel CRM contact selected by an operator for this thread.\nEmpty if no CRM contact has been selected."),
37115
37205
  description: v.string().optional().describe("Optional thread description."),
37116
37206
  id: v.string().optional().describe("Unique thread identifier."),
37117
37207
  last_msg: v.object({
@@ -37128,6 +37218,7 @@ v.object({
37128
37218
  contact: v.object({
37129
37219
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
37130
37220
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
37221
+ id: v.string().optional().describe("Unique contact identifier."),
37131
37222
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
37132
37223
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
37133
37224
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -37187,6 +37278,7 @@ v.object({
37187
37278
  contact: v.object({
37188
37279
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
37189
37280
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
37281
+ id: v.string().optional().describe("Unique contact identifier."),
37190
37282
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
37191
37283
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
37192
37284
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -37316,6 +37408,7 @@ v.object({
37316
37408
  contact: v.object({
37317
37409
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
37318
37410
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
37411
+ id: v.string().optional().describe("Unique contact identifier."),
37319
37412
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
37320
37413
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
37321
37414
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -37376,6 +37469,7 @@ v.object({
37376
37469
  contact: v.object({
37377
37470
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
37378
37471
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
37472
+ id: v.string().optional().describe("Unique contact identifier."),
37379
37473
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
37380
37474
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
37381
37475
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -37423,6 +37517,7 @@ v.object({
37423
37517
  contact: v.object({
37424
37518
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
37425
37519
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
37520
+ id: v.string().optional().describe("Unique contact identifier."),
37426
37521
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
37427
37522
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
37428
37523
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -37475,6 +37570,7 @@ v.object({
37475
37570
  contact: v.object({
37476
37571
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
37477
37572
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
37573
+ id: v.string().optional().describe("Unique contact identifier."),
37478
37574
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
37479
37575
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
37480
37576
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -37520,6 +37616,7 @@ v.object({
37520
37616
  contact: v.object({
37521
37617
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
37522
37618
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
37619
+ id: v.string().optional().describe("Unique contact identifier."),
37523
37620
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
37524
37621
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
37525
37622
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -37586,6 +37683,7 @@ v.object({
37586
37683
  set_by: v.object({
37587
37684
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
37588
37685
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
37686
+ id: v.string().optional().describe("Unique contact identifier."),
37589
37687
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
37590
37688
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
37591
37689
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -37620,7 +37718,14 @@ v.object({
37620
37718
  page: v.int().optional().describe("Page number (1-based).")
37621
37719
  }), v.object({
37622
37720
  items: v.array(v.object({
37721
+ tags: v.array(v.object({
37722
+ created_at: v.string().optional(),
37723
+ id: v.string().optional(),
37724
+ tag: v.string().optional(),
37725
+ thread_id: v.string().optional()
37726
+ })).optional().describe("The caller's own tags on this thread. Empty if the caller hasn't tagged it."),
37623
37727
  created_at: v.string().optional().describe("Thread creation timestamp (Unix time, milliseconds)."),
37728
+ crm_contact_id: v.string().optional().describe("Webitel CRM contact selected by an operator for this thread.\nEmpty if no CRM contact has been selected."),
37624
37729
  description: v.string().optional().describe("Optional thread description."),
37625
37730
  id: v.string().optional().describe("Unique thread identifier."),
37626
37731
  last_msg: v.object({
@@ -37637,6 +37742,7 @@ v.object({
37637
37742
  contact: v.object({
37638
37743
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
37639
37744
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
37745
+ id: v.string().optional().describe("Unique contact identifier."),
37640
37746
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
37641
37747
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
37642
37748
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -37696,6 +37802,7 @@ v.object({
37696
37802
  contact: v.object({
37697
37803
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
37698
37804
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
37805
+ id: v.string().optional().describe("Unique contact identifier."),
37699
37806
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
37700
37807
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
37701
37808
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -37825,6 +37932,7 @@ v.object({
37825
37932
  contact: v.object({
37826
37933
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
37827
37934
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
37935
+ id: v.string().optional().describe("Unique contact identifier."),
37828
37936
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
37829
37937
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
37830
37938
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -37885,6 +37993,7 @@ v.object({
37885
37993
  contact: v.object({
37886
37994
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
37887
37995
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
37996
+ id: v.string().optional().describe("Unique contact identifier."),
37888
37997
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
37889
37998
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
37890
37999
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -37932,6 +38041,7 @@ v.object({
37932
38041
  contact: v.object({
37933
38042
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
37934
38043
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38044
+ id: v.string().optional().describe("Unique contact identifier."),
37935
38045
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
37936
38046
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
37937
38047
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -37984,6 +38094,7 @@ v.object({
37984
38094
  contact: v.object({
37985
38095
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
37986
38096
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38097
+ id: v.string().optional().describe("Unique contact identifier."),
37987
38098
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
37988
38099
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
37989
38100
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38029,6 +38140,7 @@ v.object({
38029
38140
  contact: v.object({
38030
38141
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38031
38142
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38143
+ id: v.string().optional().describe("Unique contact identifier."),
38032
38144
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38033
38145
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38034
38146
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38095,6 +38207,7 @@ v.object({
38095
38207
  set_by: v.object({
38096
38208
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38097
38209
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38210
+ id: v.string().optional().describe("Unique contact identifier."),
38098
38211
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38099
38212
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38100
38213
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38122,7 +38235,14 @@ v.object({
38122
38235
  unread_chats: v.int().optional().describe("Number of chats (threads) that have at least one unread message."),
38123
38236
  unread_messages: v.string().optional().describe("Total number of unread messages across all chats.")
38124
38237
  }).describe("GetUnreadSummaryResponse carries the caller's unread totals."), v.object({ id: v.string().describe("Unique thread identifier.") }), v.object({ fields: v.array(v.string()).optional().describe("List of fields to include in the response.") }), v.object({
38238
+ tags: v.array(v.object({
38239
+ created_at: v.string().optional(),
38240
+ id: v.string().optional(),
38241
+ tag: v.string().optional(),
38242
+ thread_id: v.string().optional()
38243
+ })).optional().describe("The caller's own tags on this thread. Empty if the caller hasn't tagged it."),
38125
38244
  created_at: v.string().optional().describe("Thread creation timestamp (Unix time, milliseconds)."),
38245
+ crm_contact_id: v.string().optional().describe("Webitel CRM contact selected by an operator for this thread.\nEmpty if no CRM contact has been selected."),
38126
38246
  description: v.string().optional().describe("Optional thread description."),
38127
38247
  id: v.string().optional().describe("Unique thread identifier."),
38128
38248
  last_msg: v.object({
@@ -38139,6 +38259,7 @@ v.object({
38139
38259
  contact: v.object({
38140
38260
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38141
38261
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38262
+ id: v.string().optional().describe("Unique contact identifier."),
38142
38263
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38143
38264
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38144
38265
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38198,6 +38319,7 @@ v.object({
38198
38319
  contact: v.object({
38199
38320
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38200
38321
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38322
+ id: v.string().optional().describe("Unique contact identifier."),
38201
38323
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38202
38324
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38203
38325
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38327,6 +38449,7 @@ v.object({
38327
38449
  contact: v.object({
38328
38450
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38329
38451
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38452
+ id: v.string().optional().describe("Unique contact identifier."),
38330
38453
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38331
38454
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38332
38455
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38387,6 +38510,7 @@ v.object({
38387
38510
  contact: v.object({
38388
38511
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38389
38512
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38513
+ id: v.string().optional().describe("Unique contact identifier."),
38390
38514
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38391
38515
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38392
38516
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38434,6 +38558,7 @@ v.object({
38434
38558
  contact: v.object({
38435
38559
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38436
38560
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38561
+ id: v.string().optional().describe("Unique contact identifier."),
38437
38562
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38438
38563
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38439
38564
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38486,6 +38611,7 @@ v.object({
38486
38611
  contact: v.object({
38487
38612
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38488
38613
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38614
+ id: v.string().optional().describe("Unique contact identifier."),
38489
38615
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38490
38616
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38491
38617
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38531,6 +38657,7 @@ v.object({
38531
38657
  contact: v.object({
38532
38658
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38533
38659
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38660
+ id: v.string().optional().describe("Unique contact identifier."),
38534
38661
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38535
38662
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38536
38663
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38597,6 +38724,7 @@ v.object({
38597
38724
  set_by: v.object({
38598
38725
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38599
38726
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38727
+ id: v.string().optional().describe("Unique contact identifier."),
38600
38728
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38601
38729
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38602
38730
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38618,7 +38746,7 @@ v.object({
38618
38746
  value: v.unknown().optional().describe("Arbitrary structured value of the variable.\nSupports dynamic JSON-like content.")
38619
38747
  }).describe("VariableEntry represents a single variable value\nalong with metadata about who and when it was set.")).optional().describe("Key-value map of variables.\nKey is the variable name, value contains data and metadata.")
38620
38748
  }).optional().describe("Optional variables associated with the thread.")
38621
- }).describe("Thread represents a thread (aka chat or conversation) entity."), v.object({ thread_id: v.string() }), v.looseObject({}), v.looseObject({}), v.object({ thread_id: v.string() }), v.looseObject({}), v.looseObject({}), v.object({ thread_id: v.string() }), v.object({
38749
+ }).describe("Thread represents a thread (aka chat or conversation) entity."), v.object({ thread_id: v.string() }), v.looseObject({}), v.looseObject({}), v.object({ thread_id: v.string() }), v.looseObject({}), v.looseObject({}), v.object({ thread_id: v.string() }), v.object({ crm_contact_id: v.string().optional().describe("Webitel CRM contact id. Empty string clears the selection.") }), v.object({ crm_contact_id: v.string().optional() }), v.object({ thread_id: v.string() }), v.object({
38622
38750
  contact: v.object({
38623
38751
  chat_name: v.string().optional().describe("chat_name is the name external clients see instead of the real one."),
38624
38752
  iss: v.string().optional(),
@@ -38636,6 +38764,7 @@ v.object({
38636
38764
  contact: v.object({
38637
38765
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38638
38766
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38767
+ id: v.string().optional().describe("Unique contact identifier."),
38639
38768
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38640
38769
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38641
38770
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38701,6 +38830,7 @@ v.object({
38701
38830
  contact: v.object({
38702
38831
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38703
38832
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38833
+ id: v.string().optional().describe("Unique contact identifier."),
38704
38834
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38705
38835
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38706
38836
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38746,6 +38876,7 @@ v.object({
38746
38876
  set_by: v.object({
38747
38877
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38748
38878
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38879
+ id: v.string().optional().describe("Unique contact identifier."),
38749
38880
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38750
38881
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38751
38882
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38776,6 +38907,7 @@ v.object({
38776
38907
  set_by: v.object({
38777
38908
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38778
38909
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38910
+ id: v.string().optional().describe("Unique contact identifier."),
38779
38911
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38780
38912
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38781
38913
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38803,6 +38935,7 @@ v.object({
38803
38935
  set_by: v.object({
38804
38936
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38805
38937
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38938
+ id: v.string().optional().describe("Unique contact identifier."),
38806
38939
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38807
38940
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38808
38941
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38836,6 +38969,7 @@ v.object({
38836
38969
  set_by: v.object({
38837
38970
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38838
38971
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
38972
+ id: v.string().optional().describe("Unique contact identifier."),
38839
38973
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38840
38974
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38841
38975
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38905,6 +39039,7 @@ v.object({
38905
39039
  contact: v.object({
38906
39040
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38907
39041
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
39042
+ id: v.string().optional().describe("Unique contact identifier."),
38908
39043
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38909
39044
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38910
39045
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38929,6 +39064,7 @@ v.object({
38929
39064
  initiator: v.object({
38930
39065
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38931
39066
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
39067
+ id: v.string().optional().describe("Unique contact identifier."),
38932
39068
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38933
39069
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38934
39070
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -38971,6 +39107,7 @@ v.object({
38971
39107
  contact: v.object({
38972
39108
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
38973
39109
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
39110
+ id: v.string().optional().describe("Unique contact identifier."),
38974
39111
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
38975
39112
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
38976
39113
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -39015,18 +39152,82 @@ v.object({
39015
39152
  }), v.object({
39016
39153
  tags: v.array(v.string()).optional(),
39017
39154
  next: v.boolean().optional()
39018
- }), v.object({ id: v.string() }), v.looseObject({}), v.object({ thread_id: v.string() }), v.object({ tag: v.string().optional() }), v.object({
39155
+ }), v.object({ id: v.string() }), v.looseObject({}), v.object({ thread_id: v.string() }), v.looseObject({}), v.object({ thread_id: v.string() }), v.object({
39019
39156
  created_at: v.string().optional(),
39020
39157
  id: v.string().optional(),
39021
39158
  tag: v.string().optional(),
39022
39159
  thread_id: v.string().optional()
39023
- }), v.object({ cursor: v.string().optional().describe("From the previous response; empty on the first sync.") }), v.object({
39160
+ }), v.object({ thread_id: v.string() }), v.object({ tag: v.string().optional() }), v.object({
39161
+ created_at: v.string().optional(),
39162
+ id: v.string().optional(),
39163
+ tag: v.string().optional(),
39164
+ thread_id: v.string().optional()
39165
+ }), v.object({
39166
+ thread_id: v.string(),
39167
+ tag: v.string()
39168
+ }), v.looseObject({}), v.object({ cursor: v.string().optional().describe("From the previous response; empty on the first sync.") }), v.object({
39024
39169
  cursor: v.string().optional().describe("Pass back as cursor on the next call."),
39025
39170
  resync: v.boolean().optional().describe("Empty cursor, unusable cursor or more than 1000 changes: reload the thread list,\nthen continue from cursor."),
39026
39171
  threads: v.array(v.object({
39027
- deleted_message_ids: v.array(v.string()).optional(),
39172
+ tags: v.object({ items: v.array(v.string()).optional() }).optional().describe("The caller's current tags on the thread, set only when they changed since cursor; replace the\ncached ones. Absent means unchanged, empty items means every tag was removed."),
39173
+ deleted_message_ids: v.array(v.string()).optional().describe("Ids of deleted_messages, kept for older clients; prefer deleted_messages."),
39174
+ deleted_messages: v.array(v.object({
39175
+ deleted_at: v.string().optional().describe("Unix time in milliseconds when the message was deleted."),
39176
+ deleted_by: v.object({
39177
+ contact: v.object({
39178
+ app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
39179
+ created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
39180
+ id: v.string().optional().describe("Unique contact identifier."),
39181
+ is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
39182
+ iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
39183
+ metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
39184
+ name: v.string().optional().describe("Display name of the contact."),
39185
+ sub: v.string().optional().describe("Associated internal system subject/identifier."),
39186
+ type: v.string().optional().describe("Channel type (e.g., 'webchat', 'telegram')."),
39187
+ updated_at: v.string().optional().describe("Last record update timestamp (Unix Epoch in milliseconds)."),
39188
+ username: v.string().optional().describe("Technical username or handle."),
39189
+ vias: v.array(v.object({
39190
+ contact_id: v.string().optional(),
39191
+ created_at: v.string().optional(),
39192
+ disable: v.boolean().optional(),
39193
+ disable_reason: v.string().optional(),
39194
+ metadata: v.looseObject({}).optional(),
39195
+ updated_at: v.string().optional(),
39196
+ via: v.string().optional()
39197
+ })).optional()
39198
+ }).optional().describe("Contact represents an external messaging identity."),
39199
+ id: v.string().optional(),
39200
+ permissions: v.object({
39201
+ can_add_members: v.boolean().optional(),
39202
+ can_change_members_permissions: v.boolean().optional(),
39203
+ can_change_thread_info: v.boolean().optional(),
39204
+ can_delete_messages: v.boolean().optional(),
39205
+ can_remove_members: v.boolean().optional(),
39206
+ can_send_messages: v.boolean().optional(),
39207
+ created_at: v.string().optional(),
39208
+ id: v.string().optional(),
39209
+ member_id: v.string().optional(),
39210
+ updated_at: v.string().optional()
39211
+ }).optional(),
39212
+ role: v.enum([
39213
+ "ROLE_UNSPECIFIED",
39214
+ "ROLE_MEMBER",
39215
+ "ROLE_ADMIN",
39216
+ "ROLE_OWNER",
39217
+ "ROLE_SUPERVISOR"
39218
+ ]).default("ROLE_UNSPECIFIED")
39219
+ }).optional().describe("Member who deleted the message, in the same shape as a message's sender."),
39220
+ id: v.string().optional()
39221
+ }).describe("DeletedMessage is a message deleted since cursor.")).optional().describe("Messages deleted since cursor, with when and who deleted them; drop them by id."),
39028
39222
  dialog: v.object({
39223
+ tags: v.array(v.object({
39224
+ created_at: v.string().optional(),
39225
+ id: v.string().optional(),
39226
+ tag: v.string().optional(),
39227
+ thread_id: v.string().optional()
39228
+ })).optional().describe("The caller's own tags on this thread. Empty if the caller hasn't tagged it."),
39029
39229
  created_at: v.string().optional().describe("Thread creation timestamp (Unix time, milliseconds)."),
39230
+ crm_contact_id: v.string().optional().describe("Webitel CRM contact selected by an operator for this thread.\nEmpty if no CRM contact has been selected."),
39030
39231
  description: v.string().optional().describe("Optional thread description."),
39031
39232
  id: v.string().optional().describe("Unique thread identifier."),
39032
39233
  last_msg: v.object({
@@ -39043,6 +39244,7 @@ v.object({
39043
39244
  contact: v.object({
39044
39245
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
39045
39246
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
39247
+ id: v.string().optional().describe("Unique contact identifier."),
39046
39248
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
39047
39249
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
39048
39250
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -39102,6 +39304,7 @@ v.object({
39102
39304
  contact: v.object({
39103
39305
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
39104
39306
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
39307
+ id: v.string().optional().describe("Unique contact identifier."),
39105
39308
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
39106
39309
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
39107
39310
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -39231,6 +39434,7 @@ v.object({
39231
39434
  contact: v.object({
39232
39435
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
39233
39436
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
39437
+ id: v.string().optional().describe("Unique contact identifier."),
39234
39438
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
39235
39439
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
39236
39440
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -39291,6 +39495,7 @@ v.object({
39291
39495
  contact: v.object({
39292
39496
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
39293
39497
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
39498
+ id: v.string().optional().describe("Unique contact identifier."),
39294
39499
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
39295
39500
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
39296
39501
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -39338,6 +39543,7 @@ v.object({
39338
39543
  contact: v.object({
39339
39544
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
39340
39545
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
39546
+ id: v.string().optional().describe("Unique contact identifier."),
39341
39547
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
39342
39548
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
39343
39549
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -39390,6 +39596,7 @@ v.object({
39390
39596
  contact: v.object({
39391
39597
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
39392
39598
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
39599
+ id: v.string().optional().describe("Unique contact identifier."),
39393
39600
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
39394
39601
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
39395
39602
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -39435,6 +39642,7 @@ v.object({
39435
39642
  contact: v.object({
39436
39643
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
39437
39644
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
39645
+ id: v.string().optional().describe("Unique contact identifier."),
39438
39646
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
39439
39647
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
39440
39648
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -39501,6 +39709,7 @@ v.object({
39501
39709
  set_by: v.object({
39502
39710
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
39503
39711
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
39712
+ id: v.string().optional().describe("Unique contact identifier."),
39504
39713
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
39505
39714
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
39506
39715
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -39522,7 +39731,7 @@ v.object({
39522
39731
  value: v.unknown().optional().describe("Arbitrary structured value of the variable.\nSupports dynamic JSON-like content.")
39523
39732
  }).describe("VariableEntry represents a single variable value\nalong with metadata about who and when it was set.")).optional().describe("Key-value map of variables.\nKey is the variable name, value contains data and metadata.")
39524
39733
  }).optional().describe("Optional variables associated with the thread.")
39525
- }).optional().describe("The thread itself, set when it is new to the caller (created or joined since cursor).\nSame model as the thread list, except last_msg and updates_cursor are never set here."),
39734
+ }).optional().describe("The thread itself, set when it is new to the caller (created or joined since cursor)\nor when its attributes changed since cursor (e.g. crm_contact_id); replace the cached thread.\nSame model as the thread list, except last_msg and updates_cursor are never set here."),
39526
39735
  left: v.boolean().optional().describe("The caller is no longer a member: drop the thread."),
39527
39736
  member_changes: v.array(v.object({
39528
39737
  action: v.enum([
@@ -39534,6 +39743,7 @@ v.object({
39534
39743
  contact: v.object({
39535
39744
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
39536
39745
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
39746
+ id: v.string().optional().describe("Unique contact identifier."),
39537
39747
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
39538
39748
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
39539
39749
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -39577,6 +39787,7 @@ v.object({
39577
39787
  contact: v.object({
39578
39788
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
39579
39789
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
39790
+ id: v.string().optional().describe("Unique contact identifier."),
39580
39791
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
39581
39792
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
39582
39793
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -39645,6 +39856,7 @@ v.object({
39645
39856
  contact: v.object({
39646
39857
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
39647
39858
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
39859
+ id: v.string().optional().describe("Unique contact identifier."),
39648
39860
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
39649
39861
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
39650
39862
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -39785,6 +39997,7 @@ v.object({
39785
39997
  contact: v.object({
39786
39998
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
39787
39999
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
40000
+ id: v.string().optional().describe("Unique contact identifier."),
39788
40001
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
39789
40002
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
39790
40003
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -39831,6 +40044,7 @@ v.object({
39831
40044
  contact: v.object({
39832
40045
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
39833
40046
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
40047
+ id: v.string().optional().describe("Unique contact identifier."),
39834
40048
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
39835
40049
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
39836
40050
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -39884,6 +40098,7 @@ v.object({
39884
40098
  contact: v.object({
39885
40099
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
39886
40100
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
40101
+ id: v.string().optional().describe("Unique contact identifier."),
39887
40102
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
39888
40103
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
39889
40104
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -39955,6 +40170,7 @@ v.object({
39955
40170
  contact: v.object({
39956
40171
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
39957
40172
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
40173
+ id: v.string().optional().describe("Unique contact identifier."),
39958
40174
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
39959
40175
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
39960
40176
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -40095,6 +40311,7 @@ v.object({
40095
40311
  contact: v.object({
40096
40312
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
40097
40313
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
40314
+ id: v.string().optional().describe("Unique contact identifier."),
40098
40315
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
40099
40316
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
40100
40317
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),
@@ -40141,6 +40358,7 @@ v.object({
40141
40358
  contact: v.object({
40142
40359
  app_id: v.string().optional().describe("Identifier of the specific integration app or bot."),
40143
40360
  created_at: v.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),
40361
+ id: v.string().optional().describe("Unique contact identifier."),
40144
40362
  is_bot: v.boolean().optional().describe("Represents if usere is real person or automatic script."),
40145
40363
  iss: v.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),
40146
40364
  metadata: v.record(v.string(), v.string()).optional().describe("Additional dynamic attributes provided by the messenger."),