@webitel/ui-sdk 26.4.10 → 26.4.13

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.
Files changed (74) hide show
  1. package/dist/{index-DqcvyASC.js → index-DPKOjAyb.js} +1 -1
  2. package/dist/{index-CT13Z6ni.js → index-FkBiYj5f.js} +1 -1
  3. package/dist/{install-XjapqzsF.js → install-8uEG1mu1.js} +34 -34
  4. package/dist/{isObject-CKzhaz4R.js → isObject-CWPYJsLM.js} +1 -1
  5. package/dist/ui-sdk.js +1 -1
  6. package/dist/ui-sdk.umd.cjs +20 -22
  7. package/dist/{useVidstackSrc-D5V7vOBS.js → useVidstackSrc-OdOwKZst.js} +1 -1
  8. package/dist/{vidstack-Bq6c3Bam-CHCnztV2.js → vidstack-Bq6c3Bam-C0Y8KfGE.js} +3 -3
  9. package/dist/{vidstack-D2pY00kU-DMKPW2Jt.js → vidstack-D2pY00kU-wo77autF.js} +3 -3
  10. package/dist/{vidstack-DDXt6fpN-Dftvb5PW.js → vidstack-DDXt6fpN-hUEQbl0z.js} +2 -2
  11. package/dist/{vidstack-D_-9AA6_-DZ5A3Xqp.js → vidstack-D_-9AA6_-VqF4Fw2w.js} +2 -2
  12. package/dist/{vidstack-DqAw8m9J-DkMf3Rup.js → vidstack-DqAw8m9J-CSQW_3G9.js} +1 -1
  13. package/dist/{vidstack-audio-CNuC4VGA.js → vidstack-audio-CRSp0x4L.js} +2 -2
  14. package/dist/{vidstack-dash-BQ5iR1KW.js → vidstack-dash-QFOAqsRs.js} +4 -4
  15. package/dist/{vidstack-google-cast-DX3S6t6H.js → vidstack-google-cast-B47Bj-mr.js} +4 -4
  16. package/dist/{vidstack-hls-BDFoc1Em.js → vidstack-hls-gp9iMUZi.js} +4 -4
  17. package/dist/{vidstack-video-DKNKKrsv.js → vidstack-video-B_sQjnen.js} +3 -3
  18. package/dist/{vidstack-vimeo-B-Gbe7JI.js → vidstack-vimeo-BmFBd0ad.js} +4 -4
  19. package/dist/{vidstack-youtube-h8GBNlUy.js → vidstack-youtube-CexgHUhD.js} +3 -3
  20. package/dist/{wt-action-bar-B_Ub3cd2.js → wt-action-bar-CSPPVkh_.js} +1 -1
  21. package/dist/{wt-button-select-YMKpLOyz.js → wt-button-select-C_ojXiFD.js} +1 -1
  22. package/dist/{wt-chat-emoji-OODP5Ny9.js → wt-chat-emoji-BePqfsdM.js} +2 -2
  23. package/dist/{wt-confirm-dialog-D1PkUxs2.js → wt-confirm-dialog-BQwh1QIU.js} +1 -1
  24. package/dist/{wt-context-menu-BGuxTQ8a.js → wt-context-menu-ClJdbd6p.js} +1 -1
  25. package/dist/{wt-copy-action-UR05zHjH.js → wt-copy-action-6WpVqRuQ.js} +1 -1
  26. package/dist/{wt-datepicker-atFZS0sH.js → wt-datepicker-DKVc5hNi.js} +1 -1
  27. package/dist/{wt-display-chip-items-RkYhUE7q.js → wt-display-chip-items-Cfcw_fge.js} +1 -1
  28. package/dist/{wt-dual-panel-B-botw5O.js → wt-dual-panel-DfM3sLeG.js} +1 -1
  29. package/dist/{wt-dummy-DrQnqKGB.js → wt-dummy-4Pmt_Xta.js} +1 -1
  30. package/dist/{wt-error-page-DE-hq7IR.js → wt-error-page-CfLI-j6l.js} +1 -1
  31. package/dist/{wt-expansion-card-DbpPHxqv.js → wt-expansion-card-BwxO2-dY.js} +1 -1
  32. package/dist/{wt-expansion-panel-DG_KW1Hq.js → wt-expansion-panel-p57CwHUv.js} +1 -1
  33. package/dist/{wt-filters-panel-wrapper-ykMTxGYw.js → wt-filters-panel-wrapper-Du5pFGLW.js} +1 -1
  34. package/dist/{wt-galleria-Dh2s1W55.js → wt-galleria-Ck5q4UPI.js} +1 -1
  35. package/dist/{wt-navigation-menu-D0FVeLzV.js → wt-navigation-menu-BKLQREVP.js} +1 -1
  36. package/dist/{wt-notifications-bar-WwpFCz1N.js → wt-notifications-bar-vDzlyG9e.js} +2 -2
  37. package/dist/{wt-pagination-DD0oWLTi.js → wt-pagination-Ci1gc_Wn.js} +1 -1
  38. package/dist/{wt-player-BzBd7We3.js → wt-player-B5t_JGLZ.js} +2 -2
  39. package/dist/{wt-search-bar-CKY4QFxP.js → wt-search-bar-BfQmLIU7.js} +1 -1
  40. package/dist/{wt-selection-popup-Dv0bJjb1.js → wt-selection-popup-KeRC1klr.js} +1 -1
  41. package/dist/{wt-start-page-Dv8hs50H.js → wt-start-page-CsVd6feA.js} +1 -1
  42. package/dist/{wt-status-select-DBd-L0qb.js → wt-status-select-CXuPXcMX.js} +1 -1
  43. package/dist/{wt-stepper-aq3gETOR.js → wt-stepper-BLfjRHm6.js} +1 -1
  44. package/dist/{wt-table-D2pBS2x1.js → wt-table-Bo0i7mca.js} +1 -1
  45. package/dist/{wt-table-actions-ChVWwJ1s.js → wt-table-actions-ToWYuT9p.js} +1 -1
  46. package/dist/{wt-table-column-select-yqxqJjJp.js → wt-table-column-select-CHcs9ywF.js} +2 -2
  47. package/dist/{wt-tabs-B2FvVOU_.js → wt-tabs-BK4YSuAw.js} +1 -1
  48. package/dist/{wt-tags-input-C7RGQUEb.js → wt-tags-input-UGencfGH.js} +2 -2
  49. package/dist/{wt-timepicker-DrUpMiPH.js → wt-timepicker-DyFUn5n-.js} +1 -1
  50. package/dist/{wt-tree-BBJ6EqSw.js → wt-tree-DJa9Wmi0.js} +2 -2
  51. package/dist/{wt-tree-table-Cxmrmfgz.js → wt-tree-table-lGtzrWvU.js} +1 -1
  52. package/dist/{wt-type-extension-value-input-ZY0S7nv5.js → wt-type-extension-value-input-ad-5FmGC.js} +156 -131
  53. package/dist/{wt-vidstack-player-Cd8Uj1mU.js → wt-vidstack-player-DkvT3cv4.js} +10 -10
  54. package/package.json +2 -2
  55. package/src/locale/en/en.js +1 -0
  56. package/src/locale/es/es.js +2 -0
  57. package/src/locale/kz/kz.js +1 -0
  58. package/src/locale/pl/pl.js +2 -0
  59. package/src/locale/ro/ro.js +2 -0
  60. package/src/locale/ru/ru.js +2 -0
  61. package/src/locale/uk/uk.js +2 -0
  62. package/src/locale/uz/uz.js +2 -0
  63. package/src/locale/vi/vi.js +1 -0
  64. package/types/locale/en/en.d.ts +1 -0
  65. package/types/locale/es/es.d.ts +1 -0
  66. package/types/locale/i18n.d.ts +9 -0
  67. package/types/locale/index.d.ts +9 -0
  68. package/types/locale/kz/kz.d.ts +1 -0
  69. package/types/locale/pl/pl.d.ts +1 -0
  70. package/types/locale/ro/ro.d.ts +1 -0
  71. package/types/locale/ru/ru.d.ts +1 -0
  72. package/types/locale/uk/uk.d.ts +1 -0
  73. package/types/locale/uz/uz.d.ts +1 -0
  74. package/types/locale/vi/vi.d.ts +1 -0
@@ -7011,7 +7011,7 @@ new access tokens using the same authorization grant.`),state:e.string().optiona
7011
7011
  otherwise, REQUIRED. The scope of the access token.
7012
7012
  repeated string scope = 5 [ json_name = "scope" ];
7013
7013
  REQUIRED if the "state" parameter was present in the client
7014
- authorization request. The exact value received from the client.`),tokenType:e.string().optional().describe("REQUIRED. The type of the token issued. Value is case insensitive.")}).optional(),warnings:e.array(e.object({detail:e.string().optional(),id:e.string().optional(),warningData:e.object({passwordExpiry:e.object({daysRemaining:e.string().optional(),expiresAt:e.string().optional()}).optional()}).optional()})).optional()}),e.object({accessToken:e.string().optional().describe("string id_token = 2;")}),e.object({dc:e.string().optional(),domain:e.string().optional(),expiresAt:e.string().optional(),extension:e.string().optional(),license:e.array(e.object({expiresAt:e.string().optional(),id:e.string().optional(),issuedAt:e.string().optional(),prod:e.string().optional(),scope:e.array(e.string()).optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),name:e.string().optional(),permissions:e.array(e.object({id:e.string().optional().describe("[required] e.g.: 'read', 'playback_record_file', ..."),name:e.string().optional(),usage:e.string().optional()})).optional(),preferredUsername:e.string().optional(),roles:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),scope:e.array(e.object({abac:e.boolean().optional().describe("[A]ttribute-[b]ased; not implemented; next releases ..."),access:e.string().optional().describe("flags: [ CREATE | SELECT | UPDATE | DELETE ]"),class:e.string().optional(),id:e.string().optional().describe("class: object id"),name:e.string().optional(),obac:e.boolean().optional(),rbac:e.boolean().optional()})).optional(),updatedAt:e.string().optional(),userId:e.string().optional(),username:e.string().optional()}),e.object({accessToken:e.string().optional().describe("string id_token = 2;")}),e.object({dc:e.string().optional(),domain:e.string().optional(),expiresAt:e.string().optional(),extension:e.string().optional(),license:e.array(e.object({expiresAt:e.string().optional(),id:e.string().optional(),issuedAt:e.string().optional(),prod:e.string().optional(),scope:e.array(e.string()).optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),name:e.string().optional(),permissions:e.array(e.object({id:e.string().optional().describe("[required] e.g.: 'read', 'playback_record_file', ..."),name:e.string().optional(),usage:e.string().optional()})).optional(),preferredUsername:e.string().optional(),roles:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),scope:e.array(e.object({abac:e.boolean().optional().describe("[A]ttribute-[b]ased; not implemented; next releases ..."),access:e.string().optional().describe("flags: [ CREATE | SELECT | UPDATE | DELETE ]"),class:e.string().optional(),id:e.string().optional().describe("class: object id"),name:e.string().optional(),obac:e.boolean().optional(),rbac:e.boolean().optional()})).optional(),updatedAt:e.string().optional(),userId:e.string().optional(),username:e.string().optional()}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional(),id:e.array(e.number()).optional()}),e.object({items:e.array(e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),dataCount:e.string().optional(),dataSize:e.string().optional(),description:e.string().optional(),disabled:e.boolean().optional(),expireDays:e.number().optional(),id:e.string().optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional(),type:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),next:e.boolean().optional()}),e.object({description:e.string().optional(),disabled:e.boolean().optional(),domainId:e.string().optional(),expireDays:e.number().optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional(),type:e.string().optional()}),e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),dataCount:e.string().optional(),dataSize:e.string().optional(),description:e.string().optional(),disabled:e.boolean().optional(),expireDays:e.number().optional(),id:e.string().optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional(),type:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({id:e.string()}),e.object({domainId:e.string().optional()}),e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),dataCount:e.string().optional(),dataSize:e.string().optional(),description:e.string().optional(),disabled:e.boolean().optional(),expireDays:e.number().optional(),id:e.string().optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional(),type:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({id:e.string()}),e.object({domainId:e.string().optional()}),e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),dataCount:e.string().optional(),dataSize:e.string().optional(),description:e.string().optional(),disabled:e.boolean().optional(),expireDays:e.number().optional(),id:e.string().optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional(),type:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({id:e.string()}),e.object({description:e.string().optional(),disabled:e.boolean().optional(),domainId:e.string().optional(),expireDays:e.number().optional(),fields:e.array(e.string()).optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional()}),e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),dataCount:e.string().optional(),dataSize:e.string().optional(),description:e.string().optional(),disabled:e.boolean().optional(),expireDays:e.number().optional(),id:e.string().optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional(),type:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({id:e.string()}),e.object({description:e.string().optional(),disabled:e.boolean().optional(),domainId:e.string().optional(),expireDays:e.number().optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional()}),e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),dataCount:e.string().optional(),dataSize:e.string().optional(),description:e.string().optional(),disabled:e.boolean().optional(),expireDays:e.number().optional(),id:e.string().optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional(),type:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional(),id:e.array(e.number()).optional()}),e.object({items:e.array(e.object({description:e.string().optional(),id:e.string().optional(),name:e.string().optional()})).optional(),next:e.boolean().optional()}),e.object({description:e.string().optional(),domainId:e.string().optional(),name:e.string().optional()}),e.object({description:e.string().optional(),id:e.string().optional(),name:e.string().optional()}),e.object({id:e.string()}),e.object({domainId:e.string().optional()}),e.object({description:e.string().optional(),id:e.string().optional(),name:e.string().optional()}),e.object({id:e.string()}),e.object({domainId:e.string().optional()}),e.object({description:e.string().optional(),id:e.string().optional(),name:e.string().optional()}),e.object({id:e.string()}),e.object({description:e.string().optional(),domainId:e.string().optional(),name:e.string().optional()}),e.object({description:e.string().optional(),id:e.string().optional(),name:e.string().optional()}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional(),id:e.array(e.number()).optional()}),e.object({items:e.array(e.object({accepts:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),description:e.string().optional(),domainId:e.string().optional(),endAt:e.string().optional(),excepts:e.array(e.object({date:e.string().optional(),disabled:e.boolean().optional(),name:e.string().optional(),repeat:e.boolean().optional(),workStart:e.number().optional(),workStop:e.number().optional(),working:e.boolean().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),specials:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),startAt:e.string().optional(),timezone:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),next:e.boolean().optional()}),e.object({accepts:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),description:e.string().optional(),domainId:e.string().optional(),endAt:e.string().optional(),excepts:e.array(e.object({date:e.string().optional(),disabled:e.boolean().optional(),name:e.string().optional(),repeat:e.boolean().optional(),workStart:e.number().optional(),workStop:e.number().optional(),working:e.boolean().optional()})).optional(),name:e.string().optional(),specials:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),startAt:e.string().optional(),timezone:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({accepts:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),description:e.string().optional(),domainId:e.string().optional(),endAt:e.string().optional(),excepts:e.array(e.object({date:e.string().optional(),disabled:e.boolean().optional(),name:e.string().optional(),repeat:e.boolean().optional(),workStart:e.number().optional(),workStop:e.number().optional(),working:e.boolean().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),specials:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),startAt:e.string().optional(),timezone:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional(),id:e.array(e.number()).optional()}),e.object({items:e.array(e.object({id:e.string().optional(),name:e.string().optional(),offset:e.string().optional()})).optional(),next:e.boolean().optional()}),e.object({id:e.string()}),e.object({domainId:e.string().optional()}),e.object({accepts:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),description:e.string().optional(),domainId:e.string().optional(),endAt:e.string().optional(),excepts:e.array(e.object({date:e.string().optional(),disabled:e.boolean().optional(),name:e.string().optional(),repeat:e.boolean().optional(),workStart:e.number().optional(),workStop:e.number().optional(),working:e.boolean().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),specials:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),startAt:e.string().optional(),timezone:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({id:e.string()}),e.object({domainId:e.string().optional()}),e.object({accepts:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),description:e.string().optional(),domainId:e.string().optional(),endAt:e.string().optional(),excepts:e.array(e.object({date:e.string().optional(),disabled:e.boolean().optional(),name:e.string().optional(),repeat:e.boolean().optional(),workStart:e.number().optional(),workStop:e.number().optional(),working:e.boolean().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),specials:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),startAt:e.string().optional(),timezone:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({id:e.string()}),e.object({accepts:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),description:e.string().optional(),domainId:e.string().optional(),endAt:e.string().optional(),excepts:e.array(e.object({date:e.string().optional(),disabled:e.boolean().optional(),name:e.string().optional(),repeat:e.boolean().optional(),workStart:e.number().optional(),workStop:e.number().optional(),working:e.boolean().optional()})).optional(),name:e.string().optional(),specials:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),startAt:e.string().optional(),timezone:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({accepts:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),description:e.string().optional(),domainId:e.string().optional(),endAt:e.string().optional(),excepts:e.array(e.object({date:e.string().optional(),disabled:e.boolean().optional(),name:e.string().optional(),repeat:e.boolean().optional(),workStart:e.number().optional(),workStop:e.number().optional(),working:e.boolean().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),specials:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),startAt:e.string().optional(),timezone:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({destination:e.string().optional(),domainId:e.string().optional(),from:e.object({appId:e.string().optional(),extension:e.string().optional(),id:e.string().optional(),type:e.string().optional()}).optional(),params:e.object({cancelDistribute:e.boolean().optional(),contactId:e.string().optional(),disableAutoAnswer:e.boolean().optional(),disableStun:e.boolean().optional(),display:e.string().optional(),hideNumber:e.boolean().optional(),isOnline:e.boolean().optional(),timeout:e.number().optional(),variables:e.record(e.string(),e.string()).optional()}).optional(),to:e.object({appId:e.string().optional(),extension:e.string().optional(),id:e.string().optional(),type:e.string().optional()}).optional()}),e.object({id:e.string().optional()}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional(),createdAtFrom:e.string().optional(),createdAtTo:e.string().optional(),userId:e.array(e.string()).optional(),agentId:e.array(e.string()).optional(),queueId:e.array(e.string()).optional(),teamId:e.array(e.string()).optional(),memberId:e.array(e.string()).optional(),gatewayId:e.array(e.string()).optional(),durationFrom:e.string().optional(),durationTo:e.string().optional(),skipParent:e.boolean().optional(),parentId:e.string().optional(),cause:e.array(e.string()).optional(),existsFile:e.boolean().optional(),domainId:e.string().optional(),number:e.string().optional(),direction:e.array(e.string()).optional(),answeredAtFrom:e.string().optional(),answeredAtTo:e.string().optional(),missed:e.boolean().optional(),storedAtFrom:e.string().optional(),storedAtTo:e.string().optional(),supervisorId:e.array(e.string()).optional(),state:e.array(e.string()).optional()}),e.object({items:e.array(e.object({agent:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),answeredAt:e.string().optional(),appId:e.string().optional(),billSec:e.number().optional(),blindTransfer:e.string().optional(),bridgedAt:e.string().optional(),bridgedId:e.string().optional(),createdAt:e.string().optional(),destination:e.string().optional(),direction:e.string().optional(),display:e.string().optional(),duration:e.number().optional(),extension:e.string().optional(),from:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),gateway:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),holdSec:e.number().optional(),id:e.string().optional(),joinedAt:e.string().optional(),leavingAt:e.string().optional(),member:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),parentId:e.string().optional(),queue:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),queueBridgedAt:e.string().optional(),queueDurationSec:e.number().optional(),queueWaitSec:e.number().optional(),reportingAt:e.string().optional(),reportingSec:e.number().optional(),state:e.string().optional(),supervisor:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),timestamp:e.string().optional(),to:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),type:e.string().optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),variables:e.record(e.string(),e.string()).optional(),waitSec:e.number().optional()})).optional(),next:e.boolean().optional()}),e.object({id:e.string()}),e.object({appId:e.string().optional(),cause:e.string().optional(),domainId:e.string().optional()}),e.looseObject({}),e.object({id:e.string()}),e.object({domainId:e.string().optional()}),e.object({agent:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),answeredAt:e.string().optional(),appId:e.string().optional(),billSec:e.number().optional(),blindTransfer:e.string().optional(),bridgedAt:e.string().optional(),bridgedId:e.string().optional(),createdAt:e.string().optional(),destination:e.string().optional(),direction:e.string().optional(),display:e.string().optional(),duration:e.number().optional(),extension:e.string().optional(),from:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),gateway:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),holdSec:e.number().optional(),id:e.string().optional(),joinedAt:e.string().optional(),leavingAt:e.string().optional(),member:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),parentId:e.string().optional(),queue:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),queueBridgedAt:e.string().optional(),queueDurationSec:e.number().optional(),queueWaitSec:e.number().optional(),reportingAt:e.string().optional(),reportingSec:e.number().optional(),state:e.string().optional(),supervisor:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),timestamp:e.string().optional(),to:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),type:e.string().optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),variables:e.record(e.string(),e.string()).optional(),waitSec:e.number().optional()}),e.object({id:e.string()}),e.looseObject({}),e.object({id:e.string()}),e.object({appId:e.string().optional(),digit:e.string().optional(),domainId:e.string().optional()}),e.looseObject({}),e.object({id:e.string()}),e.object({appId:e.string().optional(),control:e.boolean().optional(),from:e.object({appId:e.string().optional(),extension:e.string().optional(),id:e.string().optional(),type:e.string().optional()}).optional(),listenA:e.boolean().optional(),listenB:e.boolean().optional(),whisperA:e.boolean().optional(),whisperB:e.boolean().optional()}),e.object({id:e.string().optional()}),e.object({id:e.string()}),e.object({appId:e.string().optional(),domainId:e.string().optional()}),e.object({state:e.string().optional()}),e.object({id:e.string()}),e.object({appId:e.string().optional(),destination:e.string().optional(),domainId:e.string().optional()}),e.looseObject({}),e.object({id:e.string()}),e.object({appId:e.string().optional(),domainId:e.string().optional()}),e.object({state:e.string().optional()}),e.object({id:e.string()}),e.object({variables:e.record(e.string(),e.string()).optional()}),e.looseObject({}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional(),createdAtFrom:e.string().optional(),createdAtTo:e.string().optional(),userId:e.array(e.string()).optional(),agentId:e.array(e.string()).optional(),queueId:e.array(e.string()).optional(),teamId:e.array(e.string()).optional(),memberId:e.array(e.string()).optional(),gatewayId:e.array(e.string()).optional(),durationFrom:e.string().optional(),durationTo:e.string().optional(),skipParent:e.boolean().optional(),parentId:e.string().optional(),cause:e.array(e.string()).optional(),hasFile:e.boolean().optional(),domainId:e.string().optional(),number:e.string().optional(),direction:e.string().optional(),answeredAtFrom:e.string().optional(),answeredAtTo:e.string().optional(),missed:e.boolean().optional(),storedAtFrom:e.string().optional(),storedAtTo:e.string().optional(),id:e.array(e.string()).optional(),transferFrom:e.array(e.string()).optional(),transferTo:e.array(e.string()).optional(),dependencyId:e.string().optional(),tags:e.array(e.string()).optional(),variablesString:e.string().optional().describe('This is a request variable of the map type. The query format is "map_name[key]=value", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age["bob"]=18'),amdResult:e.array(e.string()).optional(),fts:e.string().optional(),directions:e.array(e.string()).optional(),hasTranscript:e.boolean().optional(),agentDescription:e.string().optional(),ownerId:e.array(e.string()).optional(),granteeId:e.array(e.string()).optional(),amdAiResult:e.array(e.string()).optional(),talkFrom:e.string().optional(),talkTo:e.string().optional(),rated:e.boolean().optional(),ratedBy:e.array(e.string()).optional(),scoreRequiredFrom:e.string().optional(),scoreRequiredTo:e.string().optional(),scoreOptionalFrom:e.string().optional(),scoreOptionalTo:e.string().optional(),ratedUser:e.array(e.string()).optional(),contactId:e.array(e.string()).optional(),schemaId:e.array(e.number()).optional(),hasTransfer:e.boolean().optional(),timeline:e.boolean().optional()}),e.object({items:e.array(e.object({tags:e.array(e.string()).optional(),agent:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),agentDescription:e.string().optional(),allowEvaluation:e.boolean().optional(),amdAiLogs:e.array(e.string()).optional(),amdAiResult:e.string().optional(),amdResult:e.string().optional(),annotations:e.array(e.object({callId:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),endSec:e.number().optional(),id:e.string().optional(),note:e.string().optional(),startSec:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),answeredAt:e.string().optional(),appId:e.string().optional(),attemptId:e.string().optional(),billSec:e.number().optional(),blindTransfer:e.string().optional(),blindTransfers:e.array(e.object({number:e.string().optional(),time:e.string().optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),bridgedAt:e.string().optional(),bridgedId:e.string().optional(),cause:e.string().optional(),contact:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),conversationId:e.string().optional(),createdAt:e.string().optional(),destination:e.string().optional(),destinationName:e.string().optional(),direction:e.string().optional(),display:e.string().optional(),duration:e.number().optional(),extension:e.string().optional(),files:e.array(e.object({channel:e.string().optional(),id:e.string().optional(),mimeType:e.string().optional(),name:e.string().optional(),size:e.string().optional(),startAt:e.string().optional(),startRecord:e.string().optional(),stopAt:e.string().optional(),type:e.enum(["file_type_empty","file_type_screenshot","file_type_screensharing","file_type_audio","file_type_video","file_type_pdf"]).default("file_type_empty")})).optional(),filesJob:e.array(e.object({action:e.enum(["undefined","STT","delete"]).default("undefined"),createdAt:e.string().optional(),errorDetail:e.string().optional(),fileId:e.string().optional(),id:e.string().optional(),state:e.enum(["idle","active","finished","error"]).default("idle")})).optional(),forms:e.array(e.object({agent:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),reportingAt:e.string().optional()})).optional(),from:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),fromNumber:e.string().optional(),gateway:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),grantee:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),hangupAt:e.string().optional(),hangupBy:e.string().optional(),hangupDisposition:e.string().optional(),hangupPhrase:e.string().optional(),hasChildren:e.boolean().optional(),hold:e.array(e.object({sec:e.number().optional(),start:e.string().optional(),stop:e.string().optional()})).optional(),holdSec:e.number().optional(),id:e.string().optional(),joinedAt:e.string().optional(),leavingAt:e.string().optional(),meetingId:e.string().optional(),member:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),memberId:e.string().optional(),parentId:e.string().optional(),queue:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),queueBridgedAt:e.string().optional(),queueDurationSec:e.number().optional(),queueWaitSec:e.number().optional(),rateId:e.string().optional(),ratedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),ratedUser:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),reportingAt:e.string().optional(),reportingSec:e.number().optional(),result:e.string().optional(),schemas:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),scoreOptional:e.number().optional(),scoreRequired:e.number().optional(),sipCode:e.number().optional(),storedAt:e.string().optional(),talkSec:e.number().optional(),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),to:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),toNumber:e.string().optional(),transcripts:e.array(e.object({file:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),fileId:e.string().optional(),id:e.string().optional(),locale:e.string().optional()})).optional(),transferFrom:e.string().optional(),transferTo:e.string().optional(),type:e.string().optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),variables:e.record(e.string(),e.string()).optional(),waitSec:e.number().optional()})).optional(),next:e.boolean().optional()}),e.object({tags:e.array(e.string()).optional(),agentDescription:e.string().optional(),agentId:e.array(e.string()).optional(),amdAiResult:e.array(e.string()).optional(),amdResult:e.array(e.string()).optional(),answeredAt:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),cause:e.array(e.string()).optional(),contactId:e.array(e.string()).optional(),createdAt:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),dependencyId:e.string().optional(),direction:e.string().optional(),directions:e.array(e.string()).optional(),domainId:e.string().optional(),duration:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),fields:e.array(e.string()).optional(),fts:e.string().optional(),gatewayId:e.array(e.string()).optional(),granteeId:e.array(e.string()).optional(),hasFile:e.boolean().optional(),hasTranscript:e.boolean().optional(),hasTransfer:e.boolean().optional(),id:e.array(e.string()).optional(),memberId:e.array(e.string()).optional(),missed:e.boolean().optional(),number:e.string().optional(),ownerId:e.array(e.string()).optional(),page:e.number().optional(),parentId:e.string().optional(),q:e.string().optional(),queueId:e.array(e.string()).optional(),rated:e.boolean().optional(),ratedBy:e.array(e.string()).optional(),ratedUser:e.array(e.string()).optional(),schemaId:e.array(e.number()).optional(),scoreOptional:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),scoreRequired:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),size:e.number().optional(),skipParent:e.boolean().optional(),sort:e.string().optional(),storedAt:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),talk:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),teamId:e.array(e.string()).optional(),timeline:e.boolean().optional(),transferFrom:e.array(e.string()).optional(),transferTo:e.array(e.string()).optional(),userId:e.array(e.string()).optional(),variablesString:e.record(e.string(),e.string()).optional()}),e.object({items:e.array(e.object({tags:e.array(e.string()).optional(),agent:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),agentDescription:e.string().optional(),allowEvaluation:e.boolean().optional(),amdAiLogs:e.array(e.string()).optional(),amdAiResult:e.string().optional(),amdResult:e.string().optional(),annotations:e.array(e.object({callId:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),endSec:e.number().optional(),id:e.string().optional(),note:e.string().optional(),startSec:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),answeredAt:e.string().optional(),appId:e.string().optional(),attemptId:e.string().optional(),billSec:e.number().optional(),blindTransfer:e.string().optional(),blindTransfers:e.array(e.object({number:e.string().optional(),time:e.string().optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),bridgedAt:e.string().optional(),bridgedId:e.string().optional(),cause:e.string().optional(),contact:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),conversationId:e.string().optional(),createdAt:e.string().optional(),destination:e.string().optional(),destinationName:e.string().optional(),direction:e.string().optional(),display:e.string().optional(),duration:e.number().optional(),extension:e.string().optional(),files:e.array(e.object({channel:e.string().optional(),id:e.string().optional(),mimeType:e.string().optional(),name:e.string().optional(),size:e.string().optional(),startAt:e.string().optional(),startRecord:e.string().optional(),stopAt:e.string().optional(),type:e.enum(["file_type_empty","file_type_screenshot","file_type_screensharing","file_type_audio","file_type_video","file_type_pdf"]).default("file_type_empty")})).optional(),filesJob:e.array(e.object({action:e.enum(["undefined","STT","delete"]).default("undefined"),createdAt:e.string().optional(),errorDetail:e.string().optional(),fileId:e.string().optional(),id:e.string().optional(),state:e.enum(["idle","active","finished","error"]).default("idle")})).optional(),forms:e.array(e.object({agent:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),reportingAt:e.string().optional()})).optional(),from:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),fromNumber:e.string().optional(),gateway:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),grantee:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),hangupAt:e.string().optional(),hangupBy:e.string().optional(),hangupDisposition:e.string().optional(),hangupPhrase:e.string().optional(),hasChildren:e.boolean().optional(),hold:e.array(e.object({sec:e.number().optional(),start:e.string().optional(),stop:e.string().optional()})).optional(),holdSec:e.number().optional(),id:e.string().optional(),joinedAt:e.string().optional(),leavingAt:e.string().optional(),meetingId:e.string().optional(),member:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),memberId:e.string().optional(),parentId:e.string().optional(),queue:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),queueBridgedAt:e.string().optional(),queueDurationSec:e.number().optional(),queueWaitSec:e.number().optional(),rateId:e.string().optional(),ratedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),ratedUser:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),reportingAt:e.string().optional(),reportingSec:e.number().optional(),result:e.string().optional(),schemas:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),scoreOptional:e.number().optional(),scoreRequired:e.number().optional(),sipCode:e.number().optional(),storedAt:e.string().optional(),talkSec:e.number().optional(),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),to:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),toNumber:e.string().optional(),transcripts:e.array(e.object({file:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),fileId:e.string().optional(),id:e.string().optional(),locale:e.string().optional()})).optional(),transferFrom:e.string().optional(),transferTo:e.string().optional(),type:e.string().optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),variables:e.record(e.string(),e.string()).optional(),waitSec:e.number().optional()})).optional(),next:e.boolean().optional()}),e.object({tags:e.array(e.string()).optional(),agentDescription:e.string().optional(),agentId:e.array(e.string()).optional(),aggs:e.array(e.object({avg:e.array(e.string()).optional(),count:e.array(e.string()).optional(),group:e.array(e.object({aggregate:e.string().optional(),desc:e.boolean().optional(),field:e.string().optional(),id:e.string().optional(),interval:e.string().optional(),top:e.number().optional()})).optional(),limit:e.number().optional(),max:e.array(e.string()).optional(),min:e.array(e.string()).optional(),name:e.string().optional(),sort:e.array(e.string()).optional(),sum:e.array(e.string()).optional()})).optional(),amdResult:e.array(e.string()).optional(),answeredAt:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),cause:e.array(e.string()).optional(),contactId:e.array(e.string()).optional(),createdAt:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),dependencyId:e.string().optional(),direction:e.string().optional(),directions:e.array(e.string()).optional(),domainId:e.string().optional(),duration:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),fts:e.string().optional(),gatewayId:e.array(e.string()).optional(),hasFile:e.boolean().optional(),hasTranscript:e.boolean().optional(),id:e.array(e.string()).optional(),memberId:e.array(e.string()).optional(),missed:e.boolean().optional(),number:e.string().optional(),page:e.number().optional(),parentId:e.string().optional(),q:e.string().optional(),queueId:e.array(e.string()).optional(),size:e.number().optional(),skipParent:e.boolean().optional(),storedAt:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),teamId:e.array(e.string()).optional(),transferFrom:e.array(e.string()).optional(),transferTo:e.array(e.string()).optional(),userId:e.array(e.string()).optional(),variables:e.record(e.string(),e.string()).optional()}),e.object({items:e.array(e.object({name:e.string().optional()})).optional()}),e.object({call_id:e.string()}),e.object({endSec:e.number().optional(),note:e.string().optional(),startSec:e.number().optional()}),e.object({callId:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),endSec:e.number().optional(),id:e.string().optional(),note:e.string().optional(),startSec:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({call_id:e.string(),id:e.string()}),e.object({callId:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),endSec:e.number().optional(),id:e.string().optional(),note:e.string().optional(),startSec:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({call_id:e.string(),id:e.string()}),e.object({endSec:e.number().optional(),note:e.string().optional(),startSec:e.number().optional()}),e.object({callId:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),endSec:e.number().optional(),id:e.string().optional(),note:e.string().optional(),startSec:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({call_id:e.string()}),e.looseObject({}),e.object({id:e.string().optional()}),e.object({id:e.string()}),e.object({hideMissed:e.boolean().optional(),variables:e.record(e.string(),e.string()).optional()}),e.object({tags:e.array(e.string()).optional(),agent:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),agentDescription:e.string().optional(),allowEvaluation:e.boolean().optional(),amdAiLogs:e.array(e.string()).optional(),amdAiResult:e.string().optional(),amdResult:e.string().optional(),annotations:e.array(e.object({callId:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),endSec:e.number().optional(),id:e.string().optional(),note:e.string().optional(),startSec:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),answeredAt:e.string().optional(),appId:e.string().optional(),attemptId:e.string().optional(),billSec:e.number().optional(),blindTransfer:e.string().optional(),blindTransfers:e.array(e.object({number:e.string().optional(),time:e.string().optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),bridgedAt:e.string().optional(),bridgedId:e.string().optional(),cause:e.string().optional(),contact:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),conversationId:e.string().optional(),createdAt:e.string().optional(),destination:e.string().optional(),destinationName:e.string().optional(),direction:e.string().optional(),display:e.string().optional(),duration:e.number().optional(),extension:e.string().optional(),files:e.array(e.object({channel:e.string().optional(),id:e.string().optional(),mimeType:e.string().optional(),name:e.string().optional(),size:e.string().optional(),startAt:e.string().optional(),startRecord:e.string().optional(),stopAt:e.string().optional(),type:e.enum(["file_type_empty","file_type_screenshot","file_type_screensharing","file_type_audio","file_type_video","file_type_pdf"]).default("file_type_empty")})).optional(),filesJob:e.array(e.object({action:e.enum(["undefined","STT","delete"]).default("undefined"),createdAt:e.string().optional(),errorDetail:e.string().optional(),fileId:e.string().optional(),id:e.string().optional(),state:e.enum(["idle","active","finished","error"]).default("idle")})).optional(),forms:e.array(e.object({agent:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),reportingAt:e.string().optional()})).optional(),from:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),fromNumber:e.string().optional(),gateway:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),grantee:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),hangupAt:e.string().optional(),hangupBy:e.string().optional(),hangupDisposition:e.string().optional(),hangupPhrase:e.string().optional(),hasChildren:e.boolean().optional(),hold:e.array(e.object({sec:e.number().optional(),start:e.string().optional(),stop:e.string().optional()})).optional(),holdSec:e.number().optional(),id:e.string().optional(),joinedAt:e.string().optional(),leavingAt:e.string().optional(),meetingId:e.string().optional(),member:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),memberId:e.string().optional(),parentId:e.string().optional(),queue:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),queueBridgedAt:e.string().optional(),queueDurationSec:e.number().optional(),queueWaitSec:e.number().optional(),rateId:e.string().optional(),ratedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),ratedUser:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),reportingAt:e.string().optional(),reportingSec:e.number().optional(),result:e.string().optional(),schemas:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),scoreOptional:e.number().optional(),scoreRequired:e.number().optional(),sipCode:e.number().optional(),storedAt:e.string().optional(),talkSec:e.number().optional(),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),to:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),toNumber:e.string().optional(),transcripts:e.array(e.object({file:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),fileId:e.string().optional(),id:e.string().optional(),locale:e.string().optional()})).optional(),transferFrom:e.string().optional(),transferTo:e.string().optional(),type:e.string().optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),variables:e.record(e.string(),e.string()).optional(),waitSec:e.number().optional()}),e.object({etag:e.string().describe("Identifier of the comment to delete.")}),e.object({fields:e.array(e.string()).optional().describe("Fields to return after deletion.")}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Contact-author of the comment."),canEdit:e.boolean().optional().describe("Indicates if the comment can be edited by current user."),caseId:e.string().optional().describe("Optional relation to the associated case."),createdAt:e.string().optional().describe("Timestamp (in milliseconds) of when the comment was created."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who created the comment."),edited:e.boolean().optional().describe("Indicates if the comment was edited; true if created_at < updated_at."),etag:e.string().optional(),id:e.string().optional().describe("Main identifier for read, update, and delete operations."),roleIds:e.array(e.string()).optional(),text:e.string().optional().describe("The content of the comment."),updatedAt:e.string().optional().describe("Timestamp (in milliseconds) of the last update."),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who last updated the comment."),ver:e.number().optional().describe("Version number of the comment, used for concurrency control.")}).describe("Represents a comment associated with a case."),e.object({etag:e.string().describe("Identifier of the comment to retrieve.")}),e.object({fields:e.array(e.string()).optional().describe("Specific fields to return for the comment.")}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Contact-author of the comment."),canEdit:e.boolean().optional().describe("Indicates if the comment can be edited by current user."),caseId:e.string().optional().describe("Optional relation to the associated case."),createdAt:e.string().optional().describe("Timestamp (in milliseconds) of when the comment was created."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who created the comment."),edited:e.boolean().optional().describe("Indicates if the comment was edited; true if created_at < updated_at."),etag:e.string().optional(),id:e.string().optional().describe("Main identifier for read, update, and delete operations."),roleIds:e.array(e.string()).optional(),text:e.string().optional().describe("The content of the comment."),updatedAt:e.string().optional().describe("Timestamp (in milliseconds) of the last update."),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who last updated the comment."),ver:e.number().optional().describe("Version number of the comment, used for concurrency control.")}).describe("Represents a comment associated with a case."),e.object({"input.etag":e.string().describe("Identifier for the comment.")}),e.object({fields:e.array(e.string()).optional().describe("Fields to include in the response."),updatedAt:e.string().optional().describe("Optional updating timestamp. If not set, will be set default(current) time.")}),e.object({text:e.string().optional().describe("Content of the comment."),userId:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Optional creator / updater ID. Use this to explicitly set the case creator / updater instead of deriving it from the auth token.")}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Contact-author of the comment."),canEdit:e.boolean().optional().describe("Indicates if the comment can be edited by current user."),caseId:e.string().optional().describe("Optional relation to the associated case."),createdAt:e.string().optional().describe("Timestamp (in milliseconds) of when the comment was created."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who created the comment."),edited:e.boolean().optional().describe("Indicates if the comment was edited; true if created_at < updated_at."),etag:e.string().optional(),id:e.string().optional().describe("Main identifier for read, update, and delete operations."),roleIds:e.array(e.string()).optional(),text:e.string().optional().describe("The content of the comment."),updatedAt:e.string().optional().describe("Timestamp (in milliseconds) of the last update."),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who last updated the comment."),ver:e.number().optional().describe("Version number of the comment, used for concurrency control.")}).describe("Represents a comment associated with a case."),e.object({"input.etag":e.string().describe("Identifier for the comment.")}),e.object({fields:e.array(e.string()).optional().describe("Fields to include in the response."),updatedAt:e.string().optional().describe("Optional updating timestamp. If not set, will be set default(current) time.")}),e.object({text:e.string().optional().describe("Content of the comment."),userId:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Optional creator / updater ID. Use this to explicitly set the case creator / updater instead of deriving it from the auth token.")}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Contact-author of the comment."),canEdit:e.boolean().optional().describe("Indicates if the comment can be edited by current user."),caseId:e.string().optional().describe("Optional relation to the associated case."),createdAt:e.string().optional().describe("Timestamp (in milliseconds) of when the comment was created."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who created the comment."),edited:e.boolean().optional().describe("Indicates if the comment was edited; true if created_at < updated_at."),etag:e.string().optional(),id:e.string().optional().describe("Main identifier for read, update, and delete operations."),roleIds:e.array(e.string()).optional(),text:e.string().optional().describe("The content of the comment."),updatedAt:e.string().optional().describe("Timestamp (in milliseconds) of the last update."),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who last updated the comment."),ver:e.number().optional().describe("Version number of the comment, used for concurrency control.")}).describe("Represents a comment associated with a case."),e.object({case_etag:e.string().describe("Etag or ID of the case for which comments are requested.")}),e.object({page:e.number().optional().describe("Page number for pagination."),size:e.number().optional().describe("Number of comments per page."),q:e.string().optional().describe("Query string for search."),ids:e.array(e.string()).optional().describe("Array of requested id."),sort:e.string().optional().describe("Sorting order."),fields:e.array(e.string()).optional().describe("Fields to return for each comment.")}),e.object({items:e.array(e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Contact-author of the comment."),canEdit:e.boolean().optional().describe("Indicates if the comment can be edited by current user."),caseId:e.string().optional().describe("Optional relation to the associated case."),createdAt:e.string().optional().describe("Timestamp (in milliseconds) of when the comment was created."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who created the comment."),edited:e.boolean().optional().describe("Indicates if the comment was edited; true if created_at < updated_at."),etag:e.string().optional(),id:e.string().optional().describe("Main identifier for read, update, and delete operations."),roleIds:e.array(e.string()).optional(),text:e.string().optional().describe("The content of the comment."),updatedAt:e.string().optional().describe("Timestamp (in milliseconds) of the last update."),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who last updated the comment."),ver:e.number().optional().describe("Version number of the comment, used for concurrency control.")}).describe("Represents a comment associated with a case.")).optional().describe("List of comments on the current page."),next:e.boolean().optional().describe("Flag to indicate if more pages are available."),page:e.string().optional().describe("Current page number.")}).describe("Contains a paginated list of comments."),e.object({case_etag:e.string().describe("Etag or ID of the case to which comments belong.")}),e.object({fields:e.array(e.string()).optional().describe("Result fields to include in the response."),createdAt:e.string().optional().describe("Optional creation timestamp. If not set, will be set default(current) time.")}),e.object({etag:e.string().optional().describe("Identifier for the comment."),text:e.string().optional().describe("Content of the comment."),userId:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Optional creator / updater ID. Use this to explicitly set the case creator / updater instead of deriving it from the auth token.")}).describe("Input structure for creating or updating a case comment."),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Contact-author of the comment."),canEdit:e.boolean().optional().describe("Indicates if the comment can be edited by current user."),caseId:e.string().optional().describe("Optional relation to the associated case."),createdAt:e.string().optional().describe("Timestamp (in milliseconds) of when the comment was created."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who created the comment."),edited:e.boolean().optional().describe("Indicates if the comment was edited; true if created_at < updated_at."),etag:e.string().optional(),id:e.string().optional().describe("Main identifier for read, update, and delete operations."),roleIds:e.array(e.string()).optional(),text:e.string().optional().describe("The content of the comment."),updatedAt:e.string().optional().describe("Timestamp (in milliseconds) of the last update."),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who last updated the comment."),ver:e.number().optional().describe("Version number of the comment, used for concurrency control.")}).describe("Represents a comment associated with a case."),e.object({case_etag:e.string().describe("Case identifier.")}),e.object({fields:e.array(e.string()).optional().describe("List of fields to include in the response."),q:e.string().optional().describe("Query string for filtering results."),size:e.number().optional().describe("Number of records per page."),page:e.number().optional().describe("Page number for pagination."),sort:e.string().optional().describe("Sorting order.")}),e.object({data:e.array(e.object({communicationId:e.string().optional().describe("External communication ID."),communicationType:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Type of the communication (e.g., Chat, Call)."),etag:e.string().optional().describe("Version of the communication record."),id:e.string().optional().describe("Database ID of the communication."),ver:e.number().optional().describe("Version of the communication record.")}).describe("Represents a single case communication.")).optional().describe("List of communications."),next:e.boolean().optional(),page:e.number().optional().describe("Current page number.")}).describe("Response message for listing communications linked to a case."),e.object({case_etag:e.string().describe("Case identifier.")}),e.object({fields:e.array(e.string()).optional().describe("List of fields to include in the response.")}),e.object({communicationId:e.string().optional().describe("External communication ID."),communicationType:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Type of the communication.")}).describe("Represents input data for creating or linking a communication."),e.object({data:e.array(e.object({communicationId:e.string().optional().describe("External communication ID."),communicationType:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Type of the communication (e.g., Chat, Call)."),etag:e.string().optional().describe("Version of the communication record."),id:e.string().optional().describe("Database ID of the communication."),ver:e.number().optional().describe("Version of the communication record.")}).describe("Represents a single case communication.")).optional().describe("List of linked communications.")}).describe("Response message after linking communications to a case."),e.object({case_etag:e.string(),id:e.string().describe("Communication identifier.")}),e.object({fields:e.array(e.string()).optional().describe("List of fields to include in the response.")}),e.object({affected:e.string().optional().describe("Affected rows.")}).describe("Response message after unlinking a communication from a case."),e.object({case_etag:e.string().describe("ID of the case to fetch files for (required).")}),e.object({page:e.number().optional().describe("The page number to retrieve."),size:e.number().optional().describe("Number of items per page."),q:e.string().optional().describe("Search term."),fields:e.array(e.string()).optional().describe("Fields to include in the response."),ids:e.array(e.string()).optional().describe("Array of requested id."),sort:e.string().optional().describe("Sorting")}),e.object({items:e.array(e.object({createdAt:e.string().optional().describe("Creation timestamp in Unix milliseconds."),createdBy:e.object({id:e.string().optional(),name:e.string().optional(),type:e.string().optional()}).optional().describe("Creator of the file."),id:e.string().optional().describe("Storage file ID."),mime:e.string().optional().describe("MIME type of the file."),name:e.string().optional().describe("File name."),size:e.string().optional().describe("File size in bytes."),source:e.string().optional(),url:e.string().optional()}).describe("Metadata for a file associated with a case.")).optional().describe("List of case files."),next:e.boolean().optional().describe("Indicator if there is a next page."),page:e.string().optional().describe("Current page number.")}).describe("Contains a list of case files with pagination."),e.object({case_etag:e.string(),id:e.string().describe("The unique ID of the file to delete.")}),e.object({createdAt:e.string().optional().describe("Creation timestamp in Unix milliseconds."),createdBy:e.object({id:e.string().optional(),name:e.string().optional(),type:e.string().optional()}).optional().describe("Creator of the file."),id:e.string().optional().describe("Storage file ID."),mime:e.string().optional().describe("MIME type of the file."),name:e.string().optional().describe("File name."),size:e.string().optional().describe("File size in bytes."),source:e.string().optional(),url:e.string().optional()}).describe("Metadata for a file associated with a case."),e.object({case_etag:e.string()}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),ids:e.array(e.string()).optional(),sort:e.string().optional(),fields:e.array(e.string()).optional()}),e.object({items:e.array(e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),url:e.string().optional(),ver:e.number().optional()})).optional(),next:e.boolean().optional(),page:e.string().optional()}),e.object({case_etag:e.string().describe("new comment link")}),e.object({fields:e.array(e.string()).optional().describe("result fields needed on the front-end for each comment"),inputEtag:e.string().optional(),inputUrl:e.string().optional(),inputName:e.string().optional(),inputUserIdId:e.string().optional(),inputUserIdName:e.string().optional()}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),url:e.string().optional(),ver:e.number().optional()}),e.object({case_etag:e.string(),etag:e.string()}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),url:e.string().optional(),ver:e.number().optional()}),e.object({case_etag:e.string(),etag:e.string().describe("(id allowed)")}),e.object({fields:e.array(e.string()).optional()}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),url:e.string().optional(),ver:e.number().optional()}),e.object({case_etag:e.string(),"input.etag":e.string()}),e.object({fields:e.array(e.string()).optional().describe("on return")}),e.object({name:e.string().optional(),url:e.string().optional(),userId:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Optional creator / updater ID. Use this to explicitly set the case creator / updater instead of deriving it from the auth token.")}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),url:e.string().optional(),ver:e.number().optional()}),e.object({case_etag:e.string(),"input.etag":e.string()}),e.object({fields:e.array(e.string()).optional().describe("on return")}),e.object({name:e.string().optional(),url:e.string().optional(),userId:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Optional creator / updater ID. Use this to explicitly set the case creator / updater instead of deriving it from the auth token.")}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),url:e.string().optional(),ver:e.number().optional()}),e.object({case_id:e.string()}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional(),ids:e.array(e.string()).optional(),dateFrom:e.string().optional(),dateTo:e.string().optional(),type:e.array(e.enum(["chat","call","email"])).optional()}),e.object({days:e.array(e.object({callsCount:e.string().optional(),chatsCount:e.string().optional(),dayTimestamp:e.string().optional(),emailsCount:e.string().optional(),items:e.array(e.object({call:e.object({closedAt:e.string().optional(),duration:e.string().optional(),files:e.array(e.object({id:e.string().optional(),mimeType:e.string().optional(),name:e.string().optional(),size:e.string().optional(),startAt:e.string().optional(),stopAt:e.string().optional()})).optional(),flowScheme:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),gateway:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),id:e.string().optional(),isDetailed:e.boolean().optional(),isInbound:e.boolean().optional(),isMissed:e.boolean().optional(),participants:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),queue:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),totalDuration:e.string().optional(),transcripts:e.array(e.object({file:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),id:e.string().optional(),locale:e.string().optional()})).optional()}).optional(),chat:e.object({closedAt:e.string().optional(),duration:e.string().optional(),flowScheme:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),gateway:e.object({id:e.string().optional(),name:e.string().optional(),type:e.string().optional()}).optional(),id:e.string().optional(),isDetailed:e.boolean().optional(),isInbound:e.boolean().optional(),isMissed:e.boolean().optional(),participants:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),queue:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional(),createdAt:e.string().optional(),email:e.object({attachments:e.array(e.object({id:e.string().optional(),mime:e.string().optional(),name:e.string().optional(),size:e.string().optional(),url:e.string().optional()})).optional(),body:e.string().optional(),cc:e.array(e.string()).optional(),from:e.array(e.string()).optional(),html:e.string().optional(),id:e.string().optional(),isDetailed:e.boolean().optional(),isInbound:e.boolean().optional(),owner:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),profile:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),sender:e.array(e.string()).optional(),subject:e.string().optional(),to:e.array(e.string()).optional()}).optional(),type:e.enum(["chat","call","email"]).default("chat")})).optional()})).optional(),next:e.boolean().optional(),page:e.number().optional()}),e.object({case_id:e.string()}),e.object({callsCount:e.string().optional(),chatsCount:e.string().optional(),dateFrom:e.string().optional(),dateTo:e.string().optional(),emailsCount:e.string().optional()}),e.object({page:e.number().optional().describe("Page number for pagination."),size:e.number().optional().describe("Number of results per page."),q:e.string().optional().describe("General query string."),ids:e.array(e.string()).optional().describe("List of specific case IDs to retrieve."),sort:e.string().optional().describe("Sorting criteria (e.g., field:asc)."),fields:e.array(e.string()).optional().describe("List of fields to include in the response."),filters:e.array(e.string()).optional().describe("Key-value pairs for additional filtering."),contactId:e.string().optional().describe("Contact ID for filtering cases."),qin:e.string().optional().describe("Specify which fields to apply 'q' to."),filtersV1:e.string().optional().describe("Updated filters with CEL syntax.")}),e.object({items:e.array(e.object({assignee:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Assignee responsible for resolving the case."),author:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Author or reporter of the case."),closeReason:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),closeReasonGroup:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Close reason group, immutable once set."),closeResult:e.string().optional(),comments:e.object({items:e.array(e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Contact-author of the comment."),canEdit:e.boolean().optional().describe("Indicates if the comment can be edited by current user."),caseId:e.string().optional().describe("Optional relation to the associated case."),createdAt:e.string().optional().describe("Timestamp (in milliseconds) of when the comment was created."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who created the comment."),edited:e.boolean().optional().describe("Indicates if the comment was edited; true if created_at < updated_at."),etag:e.string().optional(),id:e.string().optional().describe("Main identifier for read, update, and delete operations."),roleIds:e.array(e.string()).optional(),text:e.string().optional().describe("The content of the comment."),updatedAt:e.string().optional().describe("Timestamp (in milliseconds) of the last update."),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who last updated the comment."),ver:e.number().optional().describe("Version number of the comment, used for concurrency control.")}).describe("Represents a comment associated with a case.")).optional().describe("List of comments on the current page."),next:e.boolean().optional().describe("Flag to indicate if more pages are available."),page:e.string().optional().describe("Current page number.")}).optional().describe("List of comments on the case."),contactInfo:e.string().optional().describe("Contact information for the case."),createdAt:e.string().optional().describe("Creation timestamp (in milliseconds since Unix epoch)."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Creator of the case."),custom:e.looseObject({}).optional().describe("Custom data extension fields .."),dc:e.string().optional(),description:e.string().optional().describe("Detailed description of the case."),differenceInReaction:e.string().optional(),differenceInResolve:e.string().optional(),etag:e.string().optional().describe("Unique etag identifier."),files:e.object({items:e.array(e.object({createdAt:e.string().optional().describe("Creation timestamp in Unix milliseconds."),createdBy:e.object({id:e.string().optional(),name:e.string().optional(),type:e.string().optional()}).optional().describe("Creator of the file."),id:e.string().optional().describe("Storage file ID."),mime:e.string().optional().describe("MIME type of the file."),name:e.string().optional().describe("File name."),size:e.string().optional().describe("File size in bytes."),source:e.string().optional(),url:e.string().optional()}).describe("Metadata for a file associated with a case.")).optional().describe("List of case files."),next:e.boolean().optional().describe("Indicator if there is a next page."),page:e.string().optional().describe("Current page number.")}).optional().describe("List of attached files."),group:e.object({id:e.string().optional(),name:e.string().optional(),type:e.string().optional()}).optional().describe("Group associated with the case."),id:e.string().optional().describe("Unique case ID."),impacted:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Impacted contact (defaults to reporter if null)."),links:e.object({items:e.array(e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),url:e.string().optional(),ver:e.number().optional()})).optional(),next:e.boolean().optional(),page:e.string().optional()}).optional().describe("List of attached links."),name:e.string().optional().describe("Name of the case (may serve as an ID in docs)."),plannedReactionAt:e.string().optional().describe("Planned reaction time (in milliseconds)."),plannedResolveAt:e.string().optional().describe("Planned resolution time (in milliseconds)."),priority:e.object({color:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),description:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional().describe("Priority level of the case."),rating:e.string().optional(),ratingComment:e.string().optional(),reactedAt:e.string().optional(),related:e.object({data:e.array(e.object({createdAt:e.string().optional().describe("Timestamp (in milliseconds) of when the relation was created."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who created the relation."),etag:e.string().optional().describe("Etag for the related case entity."),id:e.string().optional().describe("Unique identifier for the related case."),primaryCase:e.object({color:e.string().optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),subject:e.string().optional(),ver:e.number().optional()}).optional().describe("Primary case details."),relatedCase:e.object({color:e.string().optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),subject:e.string().optional(),ver:e.number().optional()}).optional().describe("Related case details."),relationType:e.enum(["RELATION_TYPE_UNSPECIFIED","DUPLICATES","IS_DUPLICATED_BY","BLOCKS","IS_BLOCKED_BY","CAUSES","IS_CAUSED_BY","IS_CHILD_OF","IS_PARENT_OF","RELATES_TO"]).default("RELATION_TYPE_UNSPECIFIED").describe("Relation type between cases."),updatedAt:e.string().optional().describe("Timestamp (in milliseconds) of the last update."),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who last updated the relation."),ver:e.number().optional().describe("Version number of the related case, used for concurrency control.")}).describe("Represents a related case with its relationship details.")).optional().describe("List of related cases on the current page."),next:e.boolean().optional().describe("Flag to indicate if more pages are available."),page:e.string().optional().describe("Current page number.")}).optional().describe("List of related cases."),reporter:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Reporter of the issue (null if anonymous)."),resolvedAt:e.string().optional(),roleIds:e.array(e.string()).optional(),service:e.object({assignee:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),catalogId:e.string().optional(),code:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),defaultPriority:e.object({color:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),description:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional(),description:e.string().optional(),group:e.object({id:e.string().optional(),name:e.string().optional(),type:e.string().optional()}).optional(),id:e.string().optional(),name:e.string().optional(),rootId:e.string().optional(),searched:e.boolean().optional(),service:e.array(e.unknown()).optional(),sla:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),state:e.boolean().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional().describe("Service associated with the case."),sla:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("SLA associated with the case."),slaCondition:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("List of SLA conditions."),source:e.object({id:e.string().optional(),name:e.string().optional(),type:e.enum(["TYPE_UNSPECIFIED","CALL","CHAT","SOCIAL_MEDIA","EMAIL","API","MANUAL"]).default("TYPE_UNSPECIFIED").describe(`Represents a source type for the source entity.
7014
+ authorization request. The exact value received from the client.`),tokenType:e.string().optional().describe("REQUIRED. The type of the token issued. Value is case insensitive.")}).optional()}),e.object({accessToken:e.string().optional().describe("string id_token = 2;")}),e.object({dc:e.string().optional(),domain:e.string().optional(),expiresAt:e.string().optional(),extension:e.string().optional(),license:e.array(e.object({expiresAt:e.string().optional(),id:e.string().optional(),issuedAt:e.string().optional(),prod:e.string().optional(),scope:e.array(e.string()).optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),name:e.string().optional(),permissions:e.array(e.object({id:e.string().optional().describe("[required] e.g.: 'read', 'playback_record_file', ..."),name:e.string().optional(),usage:e.string().optional()})).optional(),preferredUsername:e.string().optional(),roles:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),scope:e.array(e.object({abac:e.boolean().optional().describe("[A]ttribute-[b]ased; not implemented; next releases ..."),access:e.string().optional().describe("flags: [ CREATE | SELECT | UPDATE | DELETE ]"),class:e.string().optional(),id:e.string().optional().describe("class: object id"),name:e.string().optional(),obac:e.boolean().optional(),rbac:e.boolean().optional()})).optional(),updatedAt:e.string().optional(),userId:e.string().optional(),username:e.string().optional()}),e.object({accessToken:e.string().optional().describe("string id_token = 2;")}),e.object({dc:e.string().optional(),domain:e.string().optional(),expiresAt:e.string().optional(),extension:e.string().optional(),license:e.array(e.object({expiresAt:e.string().optional(),id:e.string().optional(),issuedAt:e.string().optional(),prod:e.string().optional(),scope:e.array(e.string()).optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),name:e.string().optional(),permissions:e.array(e.object({id:e.string().optional().describe("[required] e.g.: 'read', 'playback_record_file', ..."),name:e.string().optional(),usage:e.string().optional()})).optional(),preferredUsername:e.string().optional(),roles:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),scope:e.array(e.object({abac:e.boolean().optional().describe("[A]ttribute-[b]ased; not implemented; next releases ..."),access:e.string().optional().describe("flags: [ CREATE | SELECT | UPDATE | DELETE ]"),class:e.string().optional(),id:e.string().optional().describe("class: object id"),name:e.string().optional(),obac:e.boolean().optional(),rbac:e.boolean().optional()})).optional(),updatedAt:e.string().optional(),userId:e.string().optional(),username:e.string().optional()}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional(),id:e.array(e.number()).optional()}),e.object({items:e.array(e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),dataCount:e.string().optional(),dataSize:e.string().optional(),description:e.string().optional(),disabled:e.boolean().optional(),expireDays:e.number().optional(),id:e.string().optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional(),type:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),next:e.boolean().optional()}),e.object({description:e.string().optional(),disabled:e.boolean().optional(),domainId:e.string().optional(),expireDays:e.number().optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional(),type:e.string().optional()}),e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),dataCount:e.string().optional(),dataSize:e.string().optional(),description:e.string().optional(),disabled:e.boolean().optional(),expireDays:e.number().optional(),id:e.string().optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional(),type:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({id:e.string()}),e.object({domainId:e.string().optional()}),e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),dataCount:e.string().optional(),dataSize:e.string().optional(),description:e.string().optional(),disabled:e.boolean().optional(),expireDays:e.number().optional(),id:e.string().optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional(),type:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({id:e.string()}),e.object({domainId:e.string().optional()}),e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),dataCount:e.string().optional(),dataSize:e.string().optional(),description:e.string().optional(),disabled:e.boolean().optional(),expireDays:e.number().optional(),id:e.string().optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional(),type:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({id:e.string()}),e.object({description:e.string().optional(),disabled:e.boolean().optional(),domainId:e.string().optional(),expireDays:e.number().optional(),fields:e.array(e.string()).optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional()}),e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),dataCount:e.string().optional(),dataSize:e.string().optional(),description:e.string().optional(),disabled:e.boolean().optional(),expireDays:e.number().optional(),id:e.string().optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional(),type:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({id:e.string()}),e.object({description:e.string().optional(),disabled:e.boolean().optional(),domainId:e.string().optional(),expireDays:e.number().optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional()}),e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),dataCount:e.string().optional(),dataSize:e.string().optional(),description:e.string().optional(),disabled:e.boolean().optional(),expireDays:e.number().optional(),id:e.string().optional(),maxSize:e.string().optional(),name:e.string().optional(),priority:e.number().optional(),properties:e.record(e.string(),e.string()).optional(),type:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional(),id:e.array(e.number()).optional()}),e.object({items:e.array(e.object({description:e.string().optional(),id:e.string().optional(),name:e.string().optional()})).optional(),next:e.boolean().optional()}),e.object({description:e.string().optional(),domainId:e.string().optional(),name:e.string().optional()}),e.object({description:e.string().optional(),id:e.string().optional(),name:e.string().optional()}),e.object({id:e.string()}),e.object({domainId:e.string().optional()}),e.object({description:e.string().optional(),id:e.string().optional(),name:e.string().optional()}),e.object({id:e.string()}),e.object({domainId:e.string().optional()}),e.object({description:e.string().optional(),id:e.string().optional(),name:e.string().optional()}),e.object({id:e.string()}),e.object({description:e.string().optional(),domainId:e.string().optional(),name:e.string().optional()}),e.object({description:e.string().optional(),id:e.string().optional(),name:e.string().optional()}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional(),id:e.array(e.number()).optional()}),e.object({items:e.array(e.object({accepts:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),description:e.string().optional(),domainId:e.string().optional(),endAt:e.string().optional(),excepts:e.array(e.object({date:e.string().optional(),disabled:e.boolean().optional(),name:e.string().optional(),repeat:e.boolean().optional(),workStart:e.number().optional(),workStop:e.number().optional(),working:e.boolean().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),specials:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),startAt:e.string().optional(),timezone:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),next:e.boolean().optional()}),e.object({accepts:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),description:e.string().optional(),domainId:e.string().optional(),endAt:e.string().optional(),excepts:e.array(e.object({date:e.string().optional(),disabled:e.boolean().optional(),name:e.string().optional(),repeat:e.boolean().optional(),workStart:e.number().optional(),workStop:e.number().optional(),working:e.boolean().optional()})).optional(),name:e.string().optional(),specials:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),startAt:e.string().optional(),timezone:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({accepts:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),description:e.string().optional(),domainId:e.string().optional(),endAt:e.string().optional(),excepts:e.array(e.object({date:e.string().optional(),disabled:e.boolean().optional(),name:e.string().optional(),repeat:e.boolean().optional(),workStart:e.number().optional(),workStop:e.number().optional(),working:e.boolean().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),specials:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),startAt:e.string().optional(),timezone:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional(),id:e.array(e.number()).optional()}),e.object({items:e.array(e.object({id:e.string().optional(),name:e.string().optional(),offset:e.string().optional()})).optional(),next:e.boolean().optional()}),e.object({id:e.string()}),e.object({domainId:e.string().optional()}),e.object({accepts:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),description:e.string().optional(),domainId:e.string().optional(),endAt:e.string().optional(),excepts:e.array(e.object({date:e.string().optional(),disabled:e.boolean().optional(),name:e.string().optional(),repeat:e.boolean().optional(),workStart:e.number().optional(),workStop:e.number().optional(),working:e.boolean().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),specials:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),startAt:e.string().optional(),timezone:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({id:e.string()}),e.object({domainId:e.string().optional()}),e.object({accepts:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),description:e.string().optional(),domainId:e.string().optional(),endAt:e.string().optional(),excepts:e.array(e.object({date:e.string().optional(),disabled:e.boolean().optional(),name:e.string().optional(),repeat:e.boolean().optional(),workStart:e.number().optional(),workStop:e.number().optional(),working:e.boolean().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),specials:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),startAt:e.string().optional(),timezone:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({id:e.string()}),e.object({accepts:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),description:e.string().optional(),domainId:e.string().optional(),endAt:e.string().optional(),excepts:e.array(e.object({date:e.string().optional(),disabled:e.boolean().optional(),name:e.string().optional(),repeat:e.boolean().optional(),workStart:e.number().optional(),workStop:e.number().optional(),working:e.boolean().optional()})).optional(),name:e.string().optional(),specials:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),startAt:e.string().optional(),timezone:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({accepts:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),description:e.string().optional(),domainId:e.string().optional(),endAt:e.string().optional(),excepts:e.array(e.object({date:e.string().optional(),disabled:e.boolean().optional(),name:e.string().optional(),repeat:e.boolean().optional(),workStart:e.number().optional(),workStop:e.number().optional(),working:e.boolean().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),specials:e.array(e.object({day:e.number().optional(),disabled:e.boolean().optional(),endTimeOfDay:e.number().optional(),startTimeOfDay:e.number().optional()})).optional(),startAt:e.string().optional(),timezone:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({destination:e.string().optional(),domainId:e.string().optional(),from:e.object({appId:e.string().optional(),extension:e.string().optional(),id:e.string().optional(),type:e.string().optional()}).optional(),params:e.object({cancelDistribute:e.boolean().optional(),contactId:e.string().optional(),disableAutoAnswer:e.boolean().optional(),disableStun:e.boolean().optional(),display:e.string().optional(),hideNumber:e.boolean().optional(),isOnline:e.boolean().optional(),timeout:e.number().optional(),variables:e.record(e.string(),e.string()).optional()}).optional(),to:e.object({appId:e.string().optional(),extension:e.string().optional(),id:e.string().optional(),type:e.string().optional()}).optional()}),e.object({id:e.string().optional()}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional(),createdAtFrom:e.string().optional(),createdAtTo:e.string().optional(),userId:e.array(e.string()).optional(),agentId:e.array(e.string()).optional(),queueId:e.array(e.string()).optional(),teamId:e.array(e.string()).optional(),memberId:e.array(e.string()).optional(),gatewayId:e.array(e.string()).optional(),durationFrom:e.string().optional(),durationTo:e.string().optional(),skipParent:e.boolean().optional(),parentId:e.string().optional(),cause:e.array(e.string()).optional(),existsFile:e.boolean().optional(),domainId:e.string().optional(),number:e.string().optional(),direction:e.array(e.string()).optional(),answeredAtFrom:e.string().optional(),answeredAtTo:e.string().optional(),missed:e.boolean().optional(),storedAtFrom:e.string().optional(),storedAtTo:e.string().optional(),supervisorId:e.array(e.string()).optional(),state:e.array(e.string()).optional()}),e.object({items:e.array(e.object({agent:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),answeredAt:e.string().optional(),appId:e.string().optional(),billSec:e.number().optional(),blindTransfer:e.string().optional(),bridgedAt:e.string().optional(),bridgedId:e.string().optional(),createdAt:e.string().optional(),destination:e.string().optional(),direction:e.string().optional(),display:e.string().optional(),duration:e.number().optional(),extension:e.string().optional(),from:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),gateway:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),holdSec:e.number().optional(),id:e.string().optional(),joinedAt:e.string().optional(),leavingAt:e.string().optional(),member:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),parentId:e.string().optional(),queue:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),queueBridgedAt:e.string().optional(),queueDurationSec:e.number().optional(),queueWaitSec:e.number().optional(),reportingAt:e.string().optional(),reportingSec:e.number().optional(),state:e.string().optional(),supervisor:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),timestamp:e.string().optional(),to:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),type:e.string().optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),variables:e.record(e.string(),e.string()).optional(),waitSec:e.number().optional()})).optional(),next:e.boolean().optional()}),e.object({id:e.string()}),e.object({appId:e.string().optional(),cause:e.string().optional(),domainId:e.string().optional()}),e.looseObject({}),e.object({id:e.string()}),e.object({domainId:e.string().optional()}),e.object({agent:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),answeredAt:e.string().optional(),appId:e.string().optional(),billSec:e.number().optional(),blindTransfer:e.string().optional(),bridgedAt:e.string().optional(),bridgedId:e.string().optional(),createdAt:e.string().optional(),destination:e.string().optional(),direction:e.string().optional(),display:e.string().optional(),duration:e.number().optional(),extension:e.string().optional(),from:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),gateway:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),holdSec:e.number().optional(),id:e.string().optional(),joinedAt:e.string().optional(),leavingAt:e.string().optional(),member:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),parentId:e.string().optional(),queue:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),queueBridgedAt:e.string().optional(),queueDurationSec:e.number().optional(),queueWaitSec:e.number().optional(),reportingAt:e.string().optional(),reportingSec:e.number().optional(),state:e.string().optional(),supervisor:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),timestamp:e.string().optional(),to:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),type:e.string().optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),variables:e.record(e.string(),e.string()).optional(),waitSec:e.number().optional()}),e.object({id:e.string()}),e.looseObject({}),e.object({id:e.string()}),e.object({appId:e.string().optional(),digit:e.string().optional(),domainId:e.string().optional()}),e.looseObject({}),e.object({id:e.string()}),e.object({appId:e.string().optional(),control:e.boolean().optional(),from:e.object({appId:e.string().optional(),extension:e.string().optional(),id:e.string().optional(),type:e.string().optional()}).optional(),listenA:e.boolean().optional(),listenB:e.boolean().optional(),whisperA:e.boolean().optional(),whisperB:e.boolean().optional()}),e.object({id:e.string().optional()}),e.object({id:e.string()}),e.object({appId:e.string().optional(),domainId:e.string().optional()}),e.object({state:e.string().optional()}),e.object({id:e.string()}),e.object({appId:e.string().optional(),destination:e.string().optional(),domainId:e.string().optional()}),e.looseObject({}),e.object({id:e.string()}),e.object({appId:e.string().optional(),domainId:e.string().optional()}),e.object({state:e.string().optional()}),e.object({id:e.string()}),e.object({variables:e.record(e.string(),e.string()).optional()}),e.looseObject({}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional(),createdAtFrom:e.string().optional(),createdAtTo:e.string().optional(),userId:e.array(e.string()).optional(),agentId:e.array(e.string()).optional(),queueId:e.array(e.string()).optional(),teamId:e.array(e.string()).optional(),memberId:e.array(e.string()).optional(),gatewayId:e.array(e.string()).optional(),durationFrom:e.string().optional(),durationTo:e.string().optional(),skipParent:e.boolean().optional(),parentId:e.string().optional(),cause:e.array(e.string()).optional(),hasFile:e.boolean().optional(),domainId:e.string().optional(),number:e.string().optional(),direction:e.string().optional(),answeredAtFrom:e.string().optional(),answeredAtTo:e.string().optional(),missed:e.boolean().optional(),storedAtFrom:e.string().optional(),storedAtTo:e.string().optional(),id:e.array(e.string()).optional(),transferFrom:e.array(e.string()).optional(),transferTo:e.array(e.string()).optional(),dependencyId:e.string().optional(),tags:e.array(e.string()).optional(),variablesString:e.string().optional().describe('This is a request variable of the map type. The query format is "map_name[key]=value", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age["bob"]=18'),amdResult:e.array(e.string()).optional(),fts:e.string().optional(),directions:e.array(e.string()).optional(),hasTranscript:e.boolean().optional(),agentDescription:e.string().optional(),ownerId:e.array(e.string()).optional(),granteeId:e.array(e.string()).optional(),amdAiResult:e.array(e.string()).optional(),talkFrom:e.string().optional(),talkTo:e.string().optional(),rated:e.boolean().optional(),ratedBy:e.array(e.string()).optional(),scoreRequiredFrom:e.string().optional(),scoreRequiredTo:e.string().optional(),scoreOptionalFrom:e.string().optional(),scoreOptionalTo:e.string().optional(),ratedUser:e.array(e.string()).optional(),contactId:e.array(e.string()).optional(),schemaId:e.array(e.number()).optional(),hasTransfer:e.boolean().optional(),timeline:e.boolean().optional()}),e.object({items:e.array(e.object({tags:e.array(e.string()).optional(),agent:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),agentDescription:e.string().optional(),allowEvaluation:e.boolean().optional(),amdAiLogs:e.array(e.string()).optional(),amdAiResult:e.string().optional(),amdResult:e.string().optional(),annotations:e.array(e.object({callId:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),endSec:e.number().optional(),id:e.string().optional(),note:e.string().optional(),startSec:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),answeredAt:e.string().optional(),appId:e.string().optional(),attemptId:e.string().optional(),billSec:e.number().optional(),blindTransfer:e.string().optional(),blindTransfers:e.array(e.object({number:e.string().optional(),time:e.string().optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),bridgedAt:e.string().optional(),bridgedId:e.string().optional(),cause:e.string().optional(),contact:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),conversationId:e.string().optional(),createdAt:e.string().optional(),destination:e.string().optional(),destinationName:e.string().optional(),direction:e.string().optional(),display:e.string().optional(),duration:e.number().optional(),extension:e.string().optional(),files:e.array(e.object({channel:e.string().optional(),id:e.string().optional(),mimeType:e.string().optional(),name:e.string().optional(),size:e.string().optional(),startAt:e.string().optional(),startRecord:e.string().optional(),stopAt:e.string().optional(),type:e.enum(["file_type_empty","file_type_screenshot","file_type_screensharing","file_type_audio","file_type_video","file_type_pdf"]).default("file_type_empty")})).optional(),filesJob:e.array(e.object({action:e.enum(["undefined","STT","delete"]).default("undefined"),createdAt:e.string().optional(),errorDetail:e.string().optional(),fileId:e.string().optional(),id:e.string().optional(),state:e.enum(["idle","active","finished","error"]).default("idle")})).optional(),forms:e.array(e.object({agent:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),reportingAt:e.string().optional()})).optional(),from:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),fromNumber:e.string().optional(),gateway:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),grantee:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),hangupAt:e.string().optional(),hangupBy:e.string().optional(),hangupDisposition:e.string().optional(),hangupPhrase:e.string().optional(),hasChildren:e.boolean().optional(),hold:e.array(e.object({sec:e.number().optional(),start:e.string().optional(),stop:e.string().optional()})).optional(),holdSec:e.number().optional(),id:e.string().optional(),joinedAt:e.string().optional(),leavingAt:e.string().optional(),meetingId:e.string().optional(),member:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),memberId:e.string().optional(),parentId:e.string().optional(),queue:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),queueBridgedAt:e.string().optional(),queueDurationSec:e.number().optional(),queueWaitSec:e.number().optional(),rateId:e.string().optional(),ratedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),ratedUser:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),reportingAt:e.string().optional(),reportingSec:e.number().optional(),result:e.string().optional(),schemas:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),scoreOptional:e.number().optional(),scoreRequired:e.number().optional(),sipCode:e.number().optional(),storedAt:e.string().optional(),talkSec:e.number().optional(),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),to:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),toNumber:e.string().optional(),transcripts:e.array(e.object({file:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),fileId:e.string().optional(),id:e.string().optional(),locale:e.string().optional()})).optional(),transferFrom:e.string().optional(),transferTo:e.string().optional(),type:e.string().optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),variables:e.record(e.string(),e.string()).optional(),waitSec:e.number().optional()})).optional(),next:e.boolean().optional()}),e.object({tags:e.array(e.string()).optional(),agentDescription:e.string().optional(),agentId:e.array(e.string()).optional(),amdAiResult:e.array(e.string()).optional(),amdResult:e.array(e.string()).optional(),answeredAt:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),cause:e.array(e.string()).optional(),contactId:e.array(e.string()).optional(),createdAt:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),dependencyId:e.string().optional(),direction:e.string().optional(),directions:e.array(e.string()).optional(),domainId:e.string().optional(),duration:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),fields:e.array(e.string()).optional(),fts:e.string().optional(),gatewayId:e.array(e.string()).optional(),granteeId:e.array(e.string()).optional(),hasFile:e.boolean().optional(),hasTranscript:e.boolean().optional(),hasTransfer:e.boolean().optional(),id:e.array(e.string()).optional(),memberId:e.array(e.string()).optional(),missed:e.boolean().optional(),number:e.string().optional(),ownerId:e.array(e.string()).optional(),page:e.number().optional(),parentId:e.string().optional(),q:e.string().optional(),queueId:e.array(e.string()).optional(),rated:e.boolean().optional(),ratedBy:e.array(e.string()).optional(),ratedUser:e.array(e.string()).optional(),schemaId:e.array(e.number()).optional(),scoreOptional:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),scoreRequired:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),size:e.number().optional(),skipParent:e.boolean().optional(),sort:e.string().optional(),storedAt:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),talk:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),teamId:e.array(e.string()).optional(),timeline:e.boolean().optional(),transferFrom:e.array(e.string()).optional(),transferTo:e.array(e.string()).optional(),userId:e.array(e.string()).optional(),variablesString:e.record(e.string(),e.string()).optional()}),e.object({items:e.array(e.object({tags:e.array(e.string()).optional(),agent:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),agentDescription:e.string().optional(),allowEvaluation:e.boolean().optional(),amdAiLogs:e.array(e.string()).optional(),amdAiResult:e.string().optional(),amdResult:e.string().optional(),annotations:e.array(e.object({callId:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),endSec:e.number().optional(),id:e.string().optional(),note:e.string().optional(),startSec:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),answeredAt:e.string().optional(),appId:e.string().optional(),attemptId:e.string().optional(),billSec:e.number().optional(),blindTransfer:e.string().optional(),blindTransfers:e.array(e.object({number:e.string().optional(),time:e.string().optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),bridgedAt:e.string().optional(),bridgedId:e.string().optional(),cause:e.string().optional(),contact:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),conversationId:e.string().optional(),createdAt:e.string().optional(),destination:e.string().optional(),destinationName:e.string().optional(),direction:e.string().optional(),display:e.string().optional(),duration:e.number().optional(),extension:e.string().optional(),files:e.array(e.object({channel:e.string().optional(),id:e.string().optional(),mimeType:e.string().optional(),name:e.string().optional(),size:e.string().optional(),startAt:e.string().optional(),startRecord:e.string().optional(),stopAt:e.string().optional(),type:e.enum(["file_type_empty","file_type_screenshot","file_type_screensharing","file_type_audio","file_type_video","file_type_pdf"]).default("file_type_empty")})).optional(),filesJob:e.array(e.object({action:e.enum(["undefined","STT","delete"]).default("undefined"),createdAt:e.string().optional(),errorDetail:e.string().optional(),fileId:e.string().optional(),id:e.string().optional(),state:e.enum(["idle","active","finished","error"]).default("idle")})).optional(),forms:e.array(e.object({agent:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),reportingAt:e.string().optional()})).optional(),from:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),fromNumber:e.string().optional(),gateway:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),grantee:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),hangupAt:e.string().optional(),hangupBy:e.string().optional(),hangupDisposition:e.string().optional(),hangupPhrase:e.string().optional(),hasChildren:e.boolean().optional(),hold:e.array(e.object({sec:e.number().optional(),start:e.string().optional(),stop:e.string().optional()})).optional(),holdSec:e.number().optional(),id:e.string().optional(),joinedAt:e.string().optional(),leavingAt:e.string().optional(),meetingId:e.string().optional(),member:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),memberId:e.string().optional(),parentId:e.string().optional(),queue:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),queueBridgedAt:e.string().optional(),queueDurationSec:e.number().optional(),queueWaitSec:e.number().optional(),rateId:e.string().optional(),ratedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),ratedUser:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),reportingAt:e.string().optional(),reportingSec:e.number().optional(),result:e.string().optional(),schemas:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),scoreOptional:e.number().optional(),scoreRequired:e.number().optional(),sipCode:e.number().optional(),storedAt:e.string().optional(),talkSec:e.number().optional(),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),to:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),toNumber:e.string().optional(),transcripts:e.array(e.object({file:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),fileId:e.string().optional(),id:e.string().optional(),locale:e.string().optional()})).optional(),transferFrom:e.string().optional(),transferTo:e.string().optional(),type:e.string().optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),variables:e.record(e.string(),e.string()).optional(),waitSec:e.number().optional()})).optional(),next:e.boolean().optional()}),e.object({tags:e.array(e.string()).optional(),agentDescription:e.string().optional(),agentId:e.array(e.string()).optional(),aggs:e.array(e.object({avg:e.array(e.string()).optional(),count:e.array(e.string()).optional(),group:e.array(e.object({aggregate:e.string().optional(),desc:e.boolean().optional(),field:e.string().optional(),id:e.string().optional(),interval:e.string().optional(),top:e.number().optional()})).optional(),limit:e.number().optional(),max:e.array(e.string()).optional(),min:e.array(e.string()).optional(),name:e.string().optional(),sort:e.array(e.string()).optional(),sum:e.array(e.string()).optional()})).optional(),amdResult:e.array(e.string()).optional(),answeredAt:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),cause:e.array(e.string()).optional(),contactId:e.array(e.string()).optional(),createdAt:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),dependencyId:e.string().optional(),direction:e.string().optional(),directions:e.array(e.string()).optional(),domainId:e.string().optional(),duration:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),fts:e.string().optional(),gatewayId:e.array(e.string()).optional(),hasFile:e.boolean().optional(),hasTranscript:e.boolean().optional(),id:e.array(e.string()).optional(),memberId:e.array(e.string()).optional(),missed:e.boolean().optional(),number:e.string().optional(),page:e.number().optional(),parentId:e.string().optional(),q:e.string().optional(),queueId:e.array(e.string()).optional(),size:e.number().optional(),skipParent:e.boolean().optional(),storedAt:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),teamId:e.array(e.string()).optional(),transferFrom:e.array(e.string()).optional(),transferTo:e.array(e.string()).optional(),userId:e.array(e.string()).optional(),variables:e.record(e.string(),e.string()).optional()}),e.object({items:e.array(e.object({name:e.string().optional()})).optional()}),e.object({call_id:e.string()}),e.object({endSec:e.number().optional(),note:e.string().optional(),startSec:e.number().optional()}),e.object({callId:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),endSec:e.number().optional(),id:e.string().optional(),note:e.string().optional(),startSec:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({call_id:e.string(),id:e.string()}),e.object({callId:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),endSec:e.number().optional(),id:e.string().optional(),note:e.string().optional(),startSec:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({call_id:e.string(),id:e.string()}),e.object({endSec:e.number().optional(),note:e.string().optional(),startSec:e.number().optional()}),e.object({callId:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),endSec:e.number().optional(),id:e.string().optional(),note:e.string().optional(),startSec:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}),e.object({call_id:e.string()}),e.looseObject({}),e.object({id:e.string().optional()}),e.object({id:e.string()}),e.object({hideMissed:e.boolean().optional(),variables:e.record(e.string(),e.string()).optional()}),e.object({tags:e.array(e.string()).optional(),agent:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),agentDescription:e.string().optional(),allowEvaluation:e.boolean().optional(),amdAiLogs:e.array(e.string()).optional(),amdAiResult:e.string().optional(),amdResult:e.string().optional(),annotations:e.array(e.object({callId:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),endSec:e.number().optional(),id:e.string().optional(),note:e.string().optional(),startSec:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),answeredAt:e.string().optional(),appId:e.string().optional(),attemptId:e.string().optional(),billSec:e.number().optional(),blindTransfer:e.string().optional(),blindTransfers:e.array(e.object({number:e.string().optional(),time:e.string().optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),bridgedAt:e.string().optional(),bridgedId:e.string().optional(),cause:e.string().optional(),contact:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),conversationId:e.string().optional(),createdAt:e.string().optional(),destination:e.string().optional(),destinationName:e.string().optional(),direction:e.string().optional(),display:e.string().optional(),duration:e.number().optional(),extension:e.string().optional(),files:e.array(e.object({channel:e.string().optional(),id:e.string().optional(),mimeType:e.string().optional(),name:e.string().optional(),size:e.string().optional(),startAt:e.string().optional(),startRecord:e.string().optional(),stopAt:e.string().optional(),type:e.enum(["file_type_empty","file_type_screenshot","file_type_screensharing","file_type_audio","file_type_video","file_type_pdf"]).default("file_type_empty")})).optional(),filesJob:e.array(e.object({action:e.enum(["undefined","STT","delete"]).default("undefined"),createdAt:e.string().optional(),errorDetail:e.string().optional(),fileId:e.string().optional(),id:e.string().optional(),state:e.enum(["idle","active","finished","error"]).default("idle")})).optional(),forms:e.array(e.object({agent:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),reportingAt:e.string().optional()})).optional(),from:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),fromNumber:e.string().optional(),gateway:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),grantee:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),hangupAt:e.string().optional(),hangupBy:e.string().optional(),hangupDisposition:e.string().optional(),hangupPhrase:e.string().optional(),hasChildren:e.boolean().optional(),hold:e.array(e.object({sec:e.number().optional(),start:e.string().optional(),stop:e.string().optional()})).optional(),holdSec:e.number().optional(),id:e.string().optional(),joinedAt:e.string().optional(),leavingAt:e.string().optional(),meetingId:e.string().optional(),member:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),memberId:e.string().optional(),parentId:e.string().optional(),queue:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),queueBridgedAt:e.string().optional(),queueDurationSec:e.number().optional(),queueWaitSec:e.number().optional(),rateId:e.string().optional(),ratedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),ratedUser:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),reportingAt:e.string().optional(),reportingSec:e.number().optional(),result:e.string().optional(),schemas:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),scoreOptional:e.number().optional(),scoreRequired:e.number().optional(),sipCode:e.number().optional(),storedAt:e.string().optional(),talkSec:e.number().optional(),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),to:e.object({id:e.string().optional(),name:e.string().optional(),number:e.string().optional(),type:e.string().optional()}).optional(),toNumber:e.string().optional(),transcripts:e.array(e.object({file:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),fileId:e.string().optional(),id:e.string().optional(),locale:e.string().optional()})).optional(),transferFrom:e.string().optional(),transferTo:e.string().optional(),type:e.string().optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),variables:e.record(e.string(),e.string()).optional(),waitSec:e.number().optional()}),e.object({etag:e.string().describe("Identifier of the comment to delete.")}),e.object({fields:e.array(e.string()).optional().describe("Fields to return after deletion.")}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Contact-author of the comment."),canEdit:e.boolean().optional().describe("Indicates if the comment can be edited by current user."),caseId:e.string().optional().describe("Optional relation to the associated case."),createdAt:e.string().optional().describe("Timestamp (in milliseconds) of when the comment was created."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who created the comment."),edited:e.boolean().optional().describe("Indicates if the comment was edited; true if created_at < updated_at."),etag:e.string().optional(),id:e.string().optional().describe("Main identifier for read, update, and delete operations."),roleIds:e.array(e.string()).optional(),text:e.string().optional().describe("The content of the comment."),updatedAt:e.string().optional().describe("Timestamp (in milliseconds) of the last update."),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who last updated the comment."),ver:e.number().optional().describe("Version number of the comment, used for concurrency control.")}).describe("Represents a comment associated with a case."),e.object({etag:e.string().describe("Identifier of the comment to retrieve.")}),e.object({fields:e.array(e.string()).optional().describe("Specific fields to return for the comment.")}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Contact-author of the comment."),canEdit:e.boolean().optional().describe("Indicates if the comment can be edited by current user."),caseId:e.string().optional().describe("Optional relation to the associated case."),createdAt:e.string().optional().describe("Timestamp (in milliseconds) of when the comment was created."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who created the comment."),edited:e.boolean().optional().describe("Indicates if the comment was edited; true if created_at < updated_at."),etag:e.string().optional(),id:e.string().optional().describe("Main identifier for read, update, and delete operations."),roleIds:e.array(e.string()).optional(),text:e.string().optional().describe("The content of the comment."),updatedAt:e.string().optional().describe("Timestamp (in milliseconds) of the last update."),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who last updated the comment."),ver:e.number().optional().describe("Version number of the comment, used for concurrency control.")}).describe("Represents a comment associated with a case."),e.object({"input.etag":e.string().describe("Identifier for the comment.")}),e.object({fields:e.array(e.string()).optional().describe("Fields to include in the response."),updatedAt:e.string().optional().describe("Optional updating timestamp. If not set, will be set default(current) time.")}),e.object({text:e.string().optional().describe("Content of the comment."),userId:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Optional creator / updater ID. Use this to explicitly set the case creator / updater instead of deriving it from the auth token.")}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Contact-author of the comment."),canEdit:e.boolean().optional().describe("Indicates if the comment can be edited by current user."),caseId:e.string().optional().describe("Optional relation to the associated case."),createdAt:e.string().optional().describe("Timestamp (in milliseconds) of when the comment was created."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who created the comment."),edited:e.boolean().optional().describe("Indicates if the comment was edited; true if created_at < updated_at."),etag:e.string().optional(),id:e.string().optional().describe("Main identifier for read, update, and delete operations."),roleIds:e.array(e.string()).optional(),text:e.string().optional().describe("The content of the comment."),updatedAt:e.string().optional().describe("Timestamp (in milliseconds) of the last update."),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who last updated the comment."),ver:e.number().optional().describe("Version number of the comment, used for concurrency control.")}).describe("Represents a comment associated with a case."),e.object({"input.etag":e.string().describe("Identifier for the comment.")}),e.object({fields:e.array(e.string()).optional().describe("Fields to include in the response."),updatedAt:e.string().optional().describe("Optional updating timestamp. If not set, will be set default(current) time.")}),e.object({text:e.string().optional().describe("Content of the comment."),userId:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Optional creator / updater ID. Use this to explicitly set the case creator / updater instead of deriving it from the auth token.")}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Contact-author of the comment."),canEdit:e.boolean().optional().describe("Indicates if the comment can be edited by current user."),caseId:e.string().optional().describe("Optional relation to the associated case."),createdAt:e.string().optional().describe("Timestamp (in milliseconds) of when the comment was created."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who created the comment."),edited:e.boolean().optional().describe("Indicates if the comment was edited; true if created_at < updated_at."),etag:e.string().optional(),id:e.string().optional().describe("Main identifier for read, update, and delete operations."),roleIds:e.array(e.string()).optional(),text:e.string().optional().describe("The content of the comment."),updatedAt:e.string().optional().describe("Timestamp (in milliseconds) of the last update."),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who last updated the comment."),ver:e.number().optional().describe("Version number of the comment, used for concurrency control.")}).describe("Represents a comment associated with a case."),e.object({case_etag:e.string().describe("Etag or ID of the case for which comments are requested.")}),e.object({page:e.number().optional().describe("Page number for pagination."),size:e.number().optional().describe("Number of comments per page."),q:e.string().optional().describe("Query string for search."),ids:e.array(e.string()).optional().describe("Array of requested id."),sort:e.string().optional().describe("Sorting order."),fields:e.array(e.string()).optional().describe("Fields to return for each comment.")}),e.object({items:e.array(e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Contact-author of the comment."),canEdit:e.boolean().optional().describe("Indicates if the comment can be edited by current user."),caseId:e.string().optional().describe("Optional relation to the associated case."),createdAt:e.string().optional().describe("Timestamp (in milliseconds) of when the comment was created."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who created the comment."),edited:e.boolean().optional().describe("Indicates if the comment was edited; true if created_at < updated_at."),etag:e.string().optional(),id:e.string().optional().describe("Main identifier for read, update, and delete operations."),roleIds:e.array(e.string()).optional(),text:e.string().optional().describe("The content of the comment."),updatedAt:e.string().optional().describe("Timestamp (in milliseconds) of the last update."),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who last updated the comment."),ver:e.number().optional().describe("Version number of the comment, used for concurrency control.")}).describe("Represents a comment associated with a case.")).optional().describe("List of comments on the current page."),next:e.boolean().optional().describe("Flag to indicate if more pages are available."),page:e.string().optional().describe("Current page number.")}).describe("Contains a paginated list of comments."),e.object({case_etag:e.string().describe("Etag or ID of the case to which comments belong.")}),e.object({fields:e.array(e.string()).optional().describe("Result fields to include in the response."),createdAt:e.string().optional().describe("Optional creation timestamp. If not set, will be set default(current) time.")}),e.object({etag:e.string().optional().describe("Identifier for the comment."),text:e.string().optional().describe("Content of the comment."),userId:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Optional creator / updater ID. Use this to explicitly set the case creator / updater instead of deriving it from the auth token.")}).describe("Input structure for creating or updating a case comment."),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Contact-author of the comment."),canEdit:e.boolean().optional().describe("Indicates if the comment can be edited by current user."),caseId:e.string().optional().describe("Optional relation to the associated case."),createdAt:e.string().optional().describe("Timestamp (in milliseconds) of when the comment was created."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who created the comment."),edited:e.boolean().optional().describe("Indicates if the comment was edited; true if created_at < updated_at."),etag:e.string().optional(),id:e.string().optional().describe("Main identifier for read, update, and delete operations."),roleIds:e.array(e.string()).optional(),text:e.string().optional().describe("The content of the comment."),updatedAt:e.string().optional().describe("Timestamp (in milliseconds) of the last update."),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who last updated the comment."),ver:e.number().optional().describe("Version number of the comment, used for concurrency control.")}).describe("Represents a comment associated with a case."),e.object({case_etag:e.string().describe("Case identifier.")}),e.object({fields:e.array(e.string()).optional().describe("List of fields to include in the response."),q:e.string().optional().describe("Query string for filtering results."),size:e.number().optional().describe("Number of records per page."),page:e.number().optional().describe("Page number for pagination."),sort:e.string().optional().describe("Sorting order.")}),e.object({data:e.array(e.object({communicationId:e.string().optional().describe("External communication ID."),communicationType:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Type of the communication (e.g., Chat, Call)."),etag:e.string().optional().describe("Version of the communication record."),id:e.string().optional().describe("Database ID of the communication."),ver:e.number().optional().describe("Version of the communication record.")}).describe("Represents a single case communication.")).optional().describe("List of communications."),next:e.boolean().optional(),page:e.number().optional().describe("Current page number.")}).describe("Response message for listing communications linked to a case."),e.object({case_etag:e.string().describe("Case identifier.")}),e.object({fields:e.array(e.string()).optional().describe("List of fields to include in the response.")}),e.object({communicationId:e.string().optional().describe("External communication ID."),communicationType:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Type of the communication.")}).describe("Represents input data for creating or linking a communication."),e.object({data:e.array(e.object({communicationId:e.string().optional().describe("External communication ID."),communicationType:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Type of the communication (e.g., Chat, Call)."),etag:e.string().optional().describe("Version of the communication record."),id:e.string().optional().describe("Database ID of the communication."),ver:e.number().optional().describe("Version of the communication record.")}).describe("Represents a single case communication.")).optional().describe("List of linked communications.")}).describe("Response message after linking communications to a case."),e.object({case_etag:e.string(),id:e.string().describe("Communication identifier.")}),e.object({fields:e.array(e.string()).optional().describe("List of fields to include in the response.")}),e.object({affected:e.string().optional().describe("Affected rows.")}).describe("Response message after unlinking a communication from a case."),e.object({case_etag:e.string().describe("ID of the case to fetch files for (required).")}),e.object({page:e.number().optional().describe("The page number to retrieve."),size:e.number().optional().describe("Number of items per page."),q:e.string().optional().describe("Search term."),fields:e.array(e.string()).optional().describe("Fields to include in the response."),ids:e.array(e.string()).optional().describe("Array of requested id."),sort:e.string().optional().describe("Sorting")}),e.object({items:e.array(e.object({createdAt:e.string().optional().describe("Creation timestamp in Unix milliseconds."),createdBy:e.object({id:e.string().optional(),name:e.string().optional(),type:e.string().optional()}).optional().describe("Creator of the file."),id:e.string().optional().describe("Storage file ID."),mime:e.string().optional().describe("MIME type of the file."),name:e.string().optional().describe("File name."),size:e.string().optional().describe("File size in bytes."),source:e.string().optional(),url:e.string().optional()}).describe("Metadata for a file associated with a case.")).optional().describe("List of case files."),next:e.boolean().optional().describe("Indicator if there is a next page."),page:e.string().optional().describe("Current page number.")}).describe("Contains a list of case files with pagination."),e.object({case_etag:e.string(),id:e.string().describe("The unique ID of the file to delete.")}),e.object({createdAt:e.string().optional().describe("Creation timestamp in Unix milliseconds."),createdBy:e.object({id:e.string().optional(),name:e.string().optional(),type:e.string().optional()}).optional().describe("Creator of the file."),id:e.string().optional().describe("Storage file ID."),mime:e.string().optional().describe("MIME type of the file."),name:e.string().optional().describe("File name."),size:e.string().optional().describe("File size in bytes."),source:e.string().optional(),url:e.string().optional()}).describe("Metadata for a file associated with a case."),e.object({case_etag:e.string()}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),ids:e.array(e.string()).optional(),sort:e.string().optional(),fields:e.array(e.string()).optional()}),e.object({items:e.array(e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),url:e.string().optional(),ver:e.number().optional()})).optional(),next:e.boolean().optional(),page:e.string().optional()}),e.object({case_etag:e.string().describe("new comment link")}),e.object({fields:e.array(e.string()).optional().describe("result fields needed on the front-end for each comment"),inputEtag:e.string().optional(),inputUrl:e.string().optional(),inputName:e.string().optional(),inputUserIdId:e.string().optional(),inputUserIdName:e.string().optional()}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),url:e.string().optional(),ver:e.number().optional()}),e.object({case_etag:e.string(),etag:e.string()}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),url:e.string().optional(),ver:e.number().optional()}),e.object({case_etag:e.string(),etag:e.string().describe("(id allowed)")}),e.object({fields:e.array(e.string()).optional()}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),url:e.string().optional(),ver:e.number().optional()}),e.object({case_etag:e.string(),"input.etag":e.string()}),e.object({fields:e.array(e.string()).optional().describe("on return")}),e.object({name:e.string().optional(),url:e.string().optional(),userId:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Optional creator / updater ID. Use this to explicitly set the case creator / updater instead of deriving it from the auth token.")}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),url:e.string().optional(),ver:e.number().optional()}),e.object({case_etag:e.string(),"input.etag":e.string()}),e.object({fields:e.array(e.string()).optional().describe("on return")}),e.object({name:e.string().optional(),url:e.string().optional(),userId:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Optional creator / updater ID. Use this to explicitly set the case creator / updater instead of deriving it from the auth token.")}),e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),url:e.string().optional(),ver:e.number().optional()}),e.object({case_id:e.string()}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional(),ids:e.array(e.string()).optional(),dateFrom:e.string().optional(),dateTo:e.string().optional(),type:e.array(e.enum(["chat","call","email"])).optional()}),e.object({days:e.array(e.object({callsCount:e.string().optional(),chatsCount:e.string().optional(),dayTimestamp:e.string().optional(),emailsCount:e.string().optional(),items:e.array(e.object({call:e.object({closedAt:e.string().optional(),duration:e.string().optional(),files:e.array(e.object({id:e.string().optional(),mimeType:e.string().optional(),name:e.string().optional(),size:e.string().optional(),startAt:e.string().optional(),stopAt:e.string().optional()})).optional(),flowScheme:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),gateway:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),id:e.string().optional(),isDetailed:e.boolean().optional(),isInbound:e.boolean().optional(),isMissed:e.boolean().optional(),participants:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),queue:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),totalDuration:e.string().optional(),transcripts:e.array(e.object({file:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),id:e.string().optional(),locale:e.string().optional()})).optional()}).optional(),chat:e.object({closedAt:e.string().optional(),duration:e.string().optional(),flowScheme:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),gateway:e.object({id:e.string().optional(),name:e.string().optional(),type:e.string().optional()}).optional(),id:e.string().optional(),isDetailed:e.boolean().optional(),isInbound:e.boolean().optional(),isMissed:e.boolean().optional(),participants:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),queue:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional(),createdAt:e.string().optional(),email:e.object({attachments:e.array(e.object({id:e.string().optional(),mime:e.string().optional(),name:e.string().optional(),size:e.string().optional(),url:e.string().optional()})).optional(),body:e.string().optional(),cc:e.array(e.string()).optional(),from:e.array(e.string()).optional(),html:e.string().optional(),id:e.string().optional(),isDetailed:e.boolean().optional(),isInbound:e.boolean().optional(),owner:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),profile:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),sender:e.array(e.string()).optional(),subject:e.string().optional(),to:e.array(e.string()).optional()}).optional(),type:e.enum(["chat","call","email"]).default("chat")})).optional()})).optional(),next:e.boolean().optional(),page:e.number().optional()}),e.object({case_id:e.string()}),e.object({callsCount:e.string().optional(),chatsCount:e.string().optional(),dateFrom:e.string().optional(),dateTo:e.string().optional(),emailsCount:e.string().optional()}),e.object({page:e.number().optional().describe("Page number for pagination."),size:e.number().optional().describe("Number of results per page."),q:e.string().optional().describe("General query string."),ids:e.array(e.string()).optional().describe("List of specific case IDs to retrieve."),sort:e.string().optional().describe("Sorting criteria (e.g., field:asc)."),fields:e.array(e.string()).optional().describe("List of fields to include in the response."),filters:e.array(e.string()).optional().describe("Key-value pairs for additional filtering."),contactId:e.string().optional().describe("Contact ID for filtering cases."),qin:e.string().optional().describe("Specify which fields to apply 'q' to."),filtersV1:e.string().optional().describe("Updated filters with CEL syntax.")}),e.object({items:e.array(e.object({assignee:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Assignee responsible for resolving the case."),author:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Author or reporter of the case."),closeReason:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),closeReasonGroup:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Close reason group, immutable once set."),closeResult:e.string().optional(),comments:e.object({items:e.array(e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Contact-author of the comment."),canEdit:e.boolean().optional().describe("Indicates if the comment can be edited by current user."),caseId:e.string().optional().describe("Optional relation to the associated case."),createdAt:e.string().optional().describe("Timestamp (in milliseconds) of when the comment was created."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who created the comment."),edited:e.boolean().optional().describe("Indicates if the comment was edited; true if created_at < updated_at."),etag:e.string().optional(),id:e.string().optional().describe("Main identifier for read, update, and delete operations."),roleIds:e.array(e.string()).optional(),text:e.string().optional().describe("The content of the comment."),updatedAt:e.string().optional().describe("Timestamp (in milliseconds) of the last update."),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who last updated the comment."),ver:e.number().optional().describe("Version number of the comment, used for concurrency control.")}).describe("Represents a comment associated with a case.")).optional().describe("List of comments on the current page."),next:e.boolean().optional().describe("Flag to indicate if more pages are available."),page:e.string().optional().describe("Current page number.")}).optional().describe("List of comments on the case."),contactInfo:e.string().optional().describe("Contact information for the case."),createdAt:e.string().optional().describe("Creation timestamp (in milliseconds since Unix epoch)."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Creator of the case."),custom:e.looseObject({}).optional().describe("Custom data extension fields .."),dc:e.string().optional(),description:e.string().optional().describe("Detailed description of the case."),differenceInReaction:e.string().optional(),differenceInResolve:e.string().optional(),etag:e.string().optional().describe("Unique etag identifier."),files:e.object({items:e.array(e.object({createdAt:e.string().optional().describe("Creation timestamp in Unix milliseconds."),createdBy:e.object({id:e.string().optional(),name:e.string().optional(),type:e.string().optional()}).optional().describe("Creator of the file."),id:e.string().optional().describe("Storage file ID."),mime:e.string().optional().describe("MIME type of the file."),name:e.string().optional().describe("File name."),size:e.string().optional().describe("File size in bytes."),source:e.string().optional(),url:e.string().optional()}).describe("Metadata for a file associated with a case.")).optional().describe("List of case files."),next:e.boolean().optional().describe("Indicator if there is a next page."),page:e.string().optional().describe("Current page number.")}).optional().describe("List of attached files."),group:e.object({id:e.string().optional(),name:e.string().optional(),type:e.string().optional()}).optional().describe("Group associated with the case."),id:e.string().optional().describe("Unique case ID."),impacted:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Impacted contact (defaults to reporter if null)."),links:e.object({items:e.array(e.object({author:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),url:e.string().optional(),ver:e.number().optional()})).optional(),next:e.boolean().optional(),page:e.string().optional()}).optional().describe("List of attached links."),name:e.string().optional().describe("Name of the case (may serve as an ID in docs)."),plannedReactionAt:e.string().optional().describe("Planned reaction time (in milliseconds)."),plannedResolveAt:e.string().optional().describe("Planned resolution time (in milliseconds)."),priority:e.object({color:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),description:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional().describe("Priority level of the case."),rating:e.string().optional(),ratingComment:e.string().optional(),reactedAt:e.string().optional(),related:e.object({data:e.array(e.object({createdAt:e.string().optional().describe("Timestamp (in milliseconds) of when the relation was created."),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who created the relation."),etag:e.string().optional().describe("Etag for the related case entity."),id:e.string().optional().describe("Unique identifier for the related case."),primaryCase:e.object({color:e.string().optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),subject:e.string().optional(),ver:e.number().optional()}).optional().describe("Primary case details."),relatedCase:e.object({color:e.string().optional(),etag:e.string().optional(),id:e.string().optional(),name:e.string().optional(),subject:e.string().optional(),ver:e.number().optional()}).optional().describe("Related case details."),relationType:e.enum(["RELATION_TYPE_UNSPECIFIED","DUPLICATES","IS_DUPLICATED_BY","BLOCKS","IS_BLOCKED_BY","CAUSES","IS_CAUSED_BY","IS_CHILD_OF","IS_PARENT_OF","RELATES_TO"]).default("RELATION_TYPE_UNSPECIFIED").describe("Relation type between cases."),updatedAt:e.string().optional().describe("Timestamp (in milliseconds) of the last update."),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("User who last updated the relation."),ver:e.number().optional().describe("Version number of the related case, used for concurrency control.")}).describe("Represents a related case with its relationship details.")).optional().describe("List of related cases on the current page."),next:e.boolean().optional().describe("Flag to indicate if more pages are available."),page:e.string().optional().describe("Current page number.")}).optional().describe("List of related cases."),reporter:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("Reporter of the issue (null if anonymous)."),resolvedAt:e.string().optional(),roleIds:e.array(e.string()).optional(),service:e.object({assignee:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),catalogId:e.string().optional(),code:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),defaultPriority:e.object({color:e.string().optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),description:e.string().optional(),id:e.string().optional(),name:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional(),description:e.string().optional(),group:e.object({id:e.string().optional(),name:e.string().optional(),type:e.string().optional()}).optional(),id:e.string().optional(),name:e.string().optional(),rootId:e.string().optional(),searched:e.boolean().optional(),service:e.array(e.unknown()).optional(),sla:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),state:e.boolean().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional().describe("Service associated with the case."),sla:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("SLA associated with the case."),slaCondition:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("List of SLA conditions."),source:e.object({id:e.string().optional(),name:e.string().optional(),type:e.enum(["TYPE_UNSPECIFIED","CALL","CHAT","SOCIAL_MEDIA","EMAIL","API","MANUAL"]).default("TYPE_UNSPECIFIED").describe(`Represents a source type for the source entity.
7015
7015
 
7016
7016
  - TYPE_UNSPECIFIED: Unspecified source type.
7017
7017
  - CALL: Phone call source type.
@@ -9170,7 +9170,7 @@ For example, "chat_name" is shown when an agent connects to chats with clients.`
9170
9170
  For example, "chat_name" is shown when an agent connects to chats with clients.`),contact:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("[optional] contact connected to this user"),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("UserId lookup value."),deletedAt:e.string().optional(),deletedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("UserId lookup value."),device:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),devices:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional().describe("[editable] list of unique `regular` devices, attached to this user"),email:e.string().optional(),extension:e.string().optional(),forcePasswordChange:e.boolean().optional().describe("When set to true, the user will be required to change their password on next login."),hotdesks:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),id:e.string().optional(),license:e.array(e.object({expiresAt:e.string().optional(),id:e.string().optional(),issuedAt:e.string().optional(),prod:e.string().optional(),scope:e.array(e.string()).optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),name:e.string().optional(),password:e.string().optional(),permissions:e.array(e.object({id:e.string().optional().describe("[required] e.g.: 'read', 'playback_record_file', ..."),name:e.string().optional(),usage:e.string().optional()})).optional(),presence:e.object({expires:e.number().optional(),id:e.string().optional(),note:e.string().optional(),status:e.string().optional(),timestamp:e.string().optional()}).optional().describe(`string presence = 7; // unique set of <user> presentity <status:basic> tuples open[ed]
9171
9171
  string status = 8; // short display status (short description)`),profile:e.record(e.string(),e.string()).optional(),roles:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),totpUrl:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("UserId lookup value."),username:e.string().optional()}).optional().describe("User profile.")}),e.object({confirmPassword:e.string().optional(),domain:e.string().optional(),id:e.string().optional(),oldPassword:e.string().optional(),userPassword:e.string().optional(),username:e.string().optional()}),e.looseObject({}),e.object({password:e.string().optional(),username:e.string().optional(),domain:e.string().optional()}),e.object({settings:e.record(e.string(),e.string()).optional()}),e.object({any:e.boolean().optional().describe("filter: include 'deleted' ALSO ! (inactive)"),deleted:e.boolean().optional(),extension:e.string().optional(),fields:e.array(e.string()).optional().describe("select: output (fields,...)"),id:e.array(e.string()).optional().describe("filter: .id = any({id}...)"),name:e.string().optional(),notId:e.array(e.string()).optional(),page:e.number().optional(),presence:e.object({note:e.string().optional(),status:e.string().optional()}).optional(),q:e.string().optional().describe("filter: (.name|.username|.extension|.status) ILIKE '{q}'"),size:e.number().optional(),sort:e.array(e.string()).optional(),status:e.string().optional(),username:e.string().optional()}),e.object({items:e.array(e.object({chatName:e.string().optional().describe(`The "chat_name" field is used to store the name displayed externally on the platform.
9172
9172
  For example, "chat_name" is shown when an agent connects to chats with clients.`),contact:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("[optional] contact connected to this user"),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("UserId lookup value."),deletedAt:e.string().optional(),deletedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("UserId lookup value."),device:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),devices:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional().describe("[editable] list of unique `regular` devices, attached to this user"),email:e.string().optional(),extension:e.string().optional(),forcePasswordChange:e.boolean().optional().describe("When set to true, the user will be required to change their password on next login."),hotdesks:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),id:e.string().optional(),license:e.array(e.object({expiresAt:e.string().optional(),id:e.string().optional(),issuedAt:e.string().optional(),prod:e.string().optional(),scope:e.array(e.string()).optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),name:e.string().optional(),password:e.string().optional(),permissions:e.array(e.object({id:e.string().optional().describe("[required] e.g.: 'read', 'playback_record_file', ..."),name:e.string().optional(),usage:e.string().optional()})).optional(),presence:e.object({expires:e.number().optional(),id:e.string().optional(),note:e.string().optional(),status:e.string().optional(),timestamp:e.string().optional()}).optional().describe(`string presence = 7; // unique set of <user> presentity <status:basic> tuples open[ed]
9173
- string status = 8; // short display status (short description)`),profile:e.record(e.string(),e.string()).optional(),roles:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),totpUrl:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("UserId lookup value."),username:e.string().optional()}).describe("User profile.")).optional(),next:e.boolean().optional(),page:e.number().optional(),size:e.number().optional()}),e.object({id:e.string().describe("ONE /users/{id}")}),e.object({selection:e.array(e.string()).optional().describe("MANY /users .ids=[id,...]"),permanent:e.boolean().optional()}),e.object({deleted:e.array(e.object({chatName:e.string().optional().describe(`The "chat_name" field is used to store the name displayed externally on the platform.
9173
+ string status = 8; // short display status (short description)`),profile:e.record(e.string(),e.string()).optional(),roles:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),totpUrl:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("UserId lookup value."),username:e.string().optional()}).describe("User profile.")).optional(),next:e.boolean().optional(),page:e.number().optional(),size:e.number().optional()}),e.object({warnings:e.array(e.object({detail:e.string().optional(),id:e.string().optional(),warningData:e.object({passwordExpiry:e.object({daysRemaining:e.string().optional(),expiresAt:e.string().optional()}).optional()}).optional()})).optional()}),e.object({id:e.string().describe("ONE /users/{id}")}),e.object({selection:e.array(e.string()).optional().describe("MANY /users .ids=[id,...]"),permanent:e.boolean().optional()}),e.object({deleted:e.array(e.object({chatName:e.string().optional().describe(`The "chat_name" field is used to store the name displayed externally on the platform.
9174
9174
  For example, "chat_name" is shown when an agent connects to chats with clients.`),contact:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("[optional] contact connected to this user"),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("UserId lookup value."),deletedAt:e.string().optional(),deletedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("UserId lookup value."),device:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),devices:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional().describe("[editable] list of unique `regular` devices, attached to this user"),email:e.string().optional(),extension:e.string().optional(),forcePasswordChange:e.boolean().optional().describe("When set to true, the user will be required to change their password on next login."),hotdesks:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),id:e.string().optional(),license:e.array(e.object({expiresAt:e.string().optional(),id:e.string().optional(),issuedAt:e.string().optional(),prod:e.string().optional(),scope:e.array(e.string()).optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),name:e.string().optional(),password:e.string().optional(),permissions:e.array(e.object({id:e.string().optional().describe("[required] e.g.: 'read', 'playback_record_file', ..."),name:e.string().optional(),usage:e.string().optional()})).optional(),presence:e.object({expires:e.number().optional(),id:e.string().optional(),note:e.string().optional(),status:e.string().optional(),timestamp:e.string().optional()}).optional().describe(`string presence = 7; // unique set of <user> presentity <status:basic> tuples open[ed]
9175
9175
  string status = 8; // short display status (short description)`),profile:e.record(e.string(),e.string()).optional(),roles:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),totpUrl:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("UserId lookup value."),username:e.string().optional()}).describe("User profile.")).optional()}),e.object({id:e.string()}),e.object({fields:e.array(e.string()).optional().describe("partial output")}),e.object({user:e.object({chatName:e.string().optional().describe(`The "chat_name" field is used to store the name displayed externally on the platform.
9176
9176
  For example, "chat_name" is shown when an agent connects to chats with clients.`),contact:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("[optional] contact connected to this user"),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("UserId lookup value."),deletedAt:e.string().optional(),deletedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional().describe("UserId lookup value."),device:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),devices:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional().describe("[editable] list of unique `regular` devices, attached to this user"),email:e.string().optional(),extension:e.string().optional(),forcePasswordChange:e.boolean().optional().describe("When set to true, the user will be required to change their password on next login."),hotdesks:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),id:e.string().optional(),license:e.array(e.object({expiresAt:e.string().optional(),id:e.string().optional(),issuedAt:e.string().optional(),prod:e.string().optional(),scope:e.array(e.string()).optional(),user:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),name:e.string().optional(),password:e.string().optional(),permissions:e.array(e.object({id:e.string().optional().describe("[required] e.g.: 'read', 'playback_record_file', ..."),name:e.string().optional(),usage:e.string().optional()})).optional(),presence:e.object({expires:e.number().optional(),id:e.string().optional(),note:e.string().optional(),status:e.string().optional(),timestamp:e.string().optional()}).optional().describe(`string presence = 7; // unique set of <user> presentity <status:basic> tuples open[ed]
@@ -9314,28 +9314,23 @@ The sub value is a case sensitive string.`),updatedAt:e.string().optional(),user
9314
9314
  For example, Europe/Kyiv or America/Los_Angeles.`)}).optional(),current:e.boolean().optional(),date:e.string().optional(),device:e.object({app:e.object({bot:e.boolean().optional(),desktop:e.boolean().optional(),device:e.string().optional(),mobile:e.boolean().optional(),name:e.string().optional(),os:e.string().optional(),osVersion:e.string().optional(),string:e.string().optional(),tablet:e.boolean().optional(),version:e.string().optional()}).optional(),ip:e.string().optional(),push:e.string().optional()}).optional(),name:e.string().optional().describe("Session (device) display name."),token:e.object({accessToken:e.string().optional().describe("REQUIRED. The access token issued by the authorization server."),expiresIn:e.number().optional().describe("RECOMMENDED. The lifetime in seconds of the access token."),refreshToken:e.string().optional().describe(`OPTIONAL. The refresh token, which can be used to obtain
9315
9315
  new access tokens using the same authorization grant.`),scope:e.array(e.string()).optional().describe(`OPTIONAL, if identical to the scope requested by the client;
9316
9316
  otherwise, REQUIRED. The scope of the access token.`),state:e.string().optional().describe(`REQUIRED if the "state" parameter was present in the client
9317
- authorization request. The exact value received from the client.`),tokenType:e.string().optional().describe("REQUIRED. The type of the token issued. Value is case insensitive.")}).optional()}),e.object({metadata:e.record(e.string(),e.string()).optional(),name:e.string().optional(),schemaId:e.string().optional(),username:e.string().optional()}),e.object({id:e.string().optional(),metadata:e.record(e.string(),e.string()).optional(),name:e.string().optional(),schemaId:e.string().optional(),username:e.string().optional()}),e.object({id:e.string()}),e.object({id:e.string().optional(),metadata:e.record(e.string(),e.string()).optional(),name:e.string().optional(),schemaId:e.string().optional(),username:e.string().optional()}),e.object({id:e.string()}),e.object({fieldMask:e.string().optional(),metadata:e.record(e.string(),e.string()).optional(),name:e.string().optional(),schemaId:e.string().optional(),username:e.string().optional()}),e.object({id:e.string().optional(),metadata:e.record(e.string(),e.string()).optional(),name:e.string().optional(),schemaId:e.string().optional(),username:e.string().optional()}),e.object({page:e.number().optional().describe("Page number to retrieve (starts from 1)."),size:e.number().optional().describe("Number of items per page."),sort:e.string().optional().describe('Sorting criteria (e.g., "name" or "-created_at").'),fields:e.array(e.string()).optional().describe("List of specific fields to include in the response. If empty, all fields are returned."),q:e.string().optional().describe("Full-text search query (matches against name or username)."),type:e.array(e.string()).optional().describe('Filter by channel types (e.g., ["telegram", "viber"]).'),subjects:e.array(e.string()).optional().describe("Filter by internal system subjects/user IDs."),onlyBots:e.boolean().optional()}),e.object({items:e.array(e.object({appId:e.string().optional().describe("Identifier of the specific integration app or bot."),createdAt:e.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),isBot:e.boolean().optional(),issId:e.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),metadata:e.record(e.string(),e.string()).optional().describe("Additional dynamic attributes provided by the messenger."),name:e.string().optional().describe("Display name of the contact."),subject:e.string().optional().describe("Associated internal system subject/identifier."),type:e.string().optional().describe("Channel type (e.g., 'webchat', 'telegram')."),updatedAt:e.string().optional().describe("Last record update timestamp (Unix Epoch in milliseconds)."),username:e.string().optional().describe("Technical username or handle.")}).describe("Contact represents an external messaging identity.")).optional().describe("List of contacts found."),next:e.boolean().optional().describe("Indicates if there are more pages available."),page:e.number().optional().describe("Current page number."),size:e.number().optional().describe("Number of items returned in this batch.")}).describe("SearchList represents a paginated collection of Contact entities."),e.object({document:e.object({body:e.string().optional(),documents:e.array(e.object({fileName:e.string().optional(),id:e.string().optional(),mimeType:e.string().optional(),sizeBytes:e.string().optional(),url:e.string().optional()}).describe("Represents `Document` message with necessary fields\nto process it into frequently used `document`\nentity in messaging systems.")).optional()}).optional(),sendId:e.string().optional(),to:e.object({channelId:e.string().optional(),contact:e.object({iss:e.string().optional(),sub:e.string().optional()}).optional(),groupId:e.string().optional(),threadId:e.string().optional()}).optional().describe(`Represents a peer in the messaging system.
9317
+ authorization request. The exact value received from the client.`),tokenType:e.string().optional().describe("REQUIRED. The type of the token issued. Value is case insensitive.")}).optional()}),e.object({metadata:e.record(e.string(),e.string()).optional(),name:e.string().optional(),schemaId:e.string().optional(),username:e.string().optional()}),e.object({id:e.string().optional(),metadata:e.record(e.string(),e.string()).optional(),name:e.string().optional(),schemaId:e.string().optional(),username:e.string().optional()}),e.object({id:e.string()}),e.object({id:e.string().optional(),metadata:e.record(e.string(),e.string()).optional(),name:e.string().optional(),schemaId:e.string().optional(),username:e.string().optional()}),e.object({id:e.string()}),e.object({fieldMask:e.string().optional(),metadata:e.record(e.string(),e.string()).optional(),name:e.string().optional(),schemaId:e.string().optional(),username:e.string().optional()}),e.object({id:e.string().optional(),metadata:e.record(e.string(),e.string()).optional(),name:e.string().optional(),schemaId:e.string().optional(),username:e.string().optional()}),e.object({page:e.number().optional().describe("Page number to retrieve (starts from 1)."),size:e.number().optional().describe("Number of items per page."),sort:e.string().optional().describe('Sorting criteria (e.g., "name" or "-created_at").'),fields:e.array(e.string()).optional().describe("List of specific fields to include in the response. If empty, all fields are returned."),q:e.string().optional().describe("Full-text search query (matches against name or username)."),type:e.array(e.string()).optional().describe('Filter by channel types (e.g., ["telegram", "viber"]).'),subjects:e.array(e.string()).optional().describe("Filter by internal system subjects/user IDs."),onlyBots:e.boolean().optional()}),e.object({items:e.array(e.object({appId:e.string().optional().describe("Identifier of the specific integration app or bot."),createdAt:e.string().optional().describe("Record creation timestamp (Unix Epoch in milliseconds)."),isBot:e.boolean().optional().describe("Represents if usere is real person or automatic script."),iss:e.string().optional().describe("Provider-specific unique identifier (Issuer ID)."),metadata:e.record(e.string(),e.string()).optional().describe("Additional dynamic attributes provided by the messenger."),name:e.string().optional().describe("Display name of the contact."),sub:e.string().optional().describe("Associated internal system subject/identifier."),type:e.string().optional().describe("Channel type (e.g., 'webchat', 'telegram')."),updatedAt:e.string().optional().describe("Last record update timestamp (Unix Epoch in milliseconds)."),username:e.string().optional().describe("Technical username or handle.")}).describe("Contact represents an external messaging identity.")).optional().describe("List of contacts found."),next:e.boolean().optional().describe("Indicates if there are more pages available."),page:e.number().optional().describe("Current page number."),size:e.number().optional().describe("Number of items returned in this batch.")}).describe("SearchList represents a paginated collection of Contact entities."),e.object({document:e.object({body:e.string().optional(),documents:e.array(e.object({fileName:e.string().optional(),id:e.string().optional(),mimeType:e.string().optional(),sizeBytes:e.string().optional(),url:e.string().optional()}).describe("Represents `Document` message with necessary fields\nto process it into frequently used `document`\nentity in messaging systems.")).optional()}).optional(),sendId:e.string().optional(),to:e.object({channelId:e.string().optional(),contact:e.object({iss:e.string().optional(),sub:e.string().optional()}).optional(),groupId:e.string().optional(),threadId:e.string().optional()}).optional().describe(`Represents a peer in the messaging system.
9318
9318
  It can be a user, chat, or channel.`)}).describe("Represents a request to send a message with document."),e.object({id:e.string().optional(),to:e.object({channelId:e.string().optional(),contact:e.object({iss:e.string().optional(),sub:e.string().optional()}).optional(),groupId:e.string().optional(),threadId:e.string().optional()}).optional().describe(`Represents a peer in the messaging system.
9319
9319
  It can be a user, chat, or channel.`)}).describe("Represents a response to send message with document."),e.object({image:e.object({body:e.string().optional(),images:e.array(e.object({id:e.string().optional(),link:e.string().optional(),mimeType:e.string().optional(),name:e.string().optional()}).describe("Represents `Image` entity with \nnecessary fields.")).optional()}).optional(),sendId:e.string().optional(),to:e.object({channelId:e.string().optional(),contact:e.object({iss:e.string().optional(),sub:e.string().optional()}).optional(),groupId:e.string().optional(),threadId:e.string().optional()}).optional().describe(`Represents a peer in the messaging system.
9320
9320
  It can be a user, chat, or channel.`)}).describe("Represents a request to send an message with image."),e.object({id:e.string().optional(),to:e.object({channelId:e.string().optional(),contact:e.object({iss:e.string().optional(),sub:e.string().optional()}).optional(),groupId:e.string().optional(),threadId:e.string().optional()}).optional().describe(`Represents a peer in the messaging system.
9321
9321
  It can be a user, chat, or channel.`)}).describe("Represents a response to send message with image."),e.object({body:e.string().optional(),sendId:e.string().optional(),to:e.object({channelId:e.string().optional(),contact:e.object({iss:e.string().optional(),sub:e.string().optional()}).optional(),groupId:e.string().optional(),threadId:e.string().optional()}).optional().describe(`Represents a peer in the messaging system.
9322
9322
  It can be a user, chat, or channel.`)}).describe("Represents a request to send a text message."),e.object({id:e.string().optional(),to:e.object({channelId:e.string().optional(),contact:e.object({iss:e.string().optional(),sub:e.string().optional()}).optional(),groupId:e.string().optional(),threadId:e.string().optional()}).optional().describe(`Represents a peer in the messaging system.
9323
9323
  It can be a user, chat, or channel.`)}).describe("Represents a response to send a text message."),e.object({id:e.string()}),e.object({threadId:e.string().optional()}),e.looseObject({}),e.object({thread_id:e.string().describe("Filter by thread IDs.")}),e.object({fields:e.array(e.string()).optional().describe(`List of message fields to be returned.
9324
- Used to reduce payload size.`),ids:e.array(e.string()).optional().describe("Filter by specific message IDs."),senderIds:e.array(e.string()).optional().describe("Filter messages by sender user IDs."),types:e.array(e.number()).optional().describe("Filter messages by message types."),cursorCreatedAt:e.string().optional().describe("Message creation timestamp (Unix time, microseconds)."),cursorId:e.string().optional().describe("Unique message identifier."),cursorDirection:e.boolean().optional().describe(`Pagination direction.
9325
- true - backward (older messages).
9326
- false - forward (newer messages).`),size:e.number().optional().describe("Maximum number of messages to return.")}),e.object({from:e.array(e.object({isBot:e.boolean().optional(),issuer:e.string().optional().describe("Client issuer for the sender."),subject:e.string().optional().describe("Client-readable sender subject or display name."),type:e.string().optional().describe("Sender type."),username:e.string().optional().describe("Sender username.")}).describe(`MessageParticipant represents aggregated participant information
9327
- present in the message history response.`)).optional().describe(`List of unique message senders present
9328
- in the current response page.`),messages:e.array(e.object({body:e.string().optional().describe("Message body content."),createdAt:e.string().optional().describe("Message creation timestamp (Unix time, milliseconds)."),documents:e.array(e.object({createdAt:e.string().optional().describe("Creation timestamp (Unix time, milliseconds)."),fileId:e.string().optional().describe("File storage identifier."),id:e.string().optional().describe("Document identifier."),messageId:e.string().optional().describe("Identifier of the message this document belongs to."),mime:e.string().optional().describe("MIME type of the document."),name:e.string().optional().describe("Original file name."),size:e.string().optional().describe("File size in bytes."),url:e.string().optional().describe("Public signed URL for downloading the document.")}).describe(`Document represents a file attachment
9324
+ Used to reduce payload size.`),ids:e.array(e.string()).optional().describe("Filter by specific message IDs."),senderIds:e.array(e.string()).optional().describe("Filter messages by sender user IDs."),types:e.array(e.number()).optional().describe("Filter messages by message types."),cursorId:e.string().optional().describe(`Cursor identifier.
9325
+ Must be a valid UUID referencing an existing message.
9326
+ Defines the starting point for pagination.`),cursorBefore:e.boolean().optional().describe(`Pagination direction flag.
9327
+
9328
+ true -> fetch newer messages (back before history)
9329
+ false -> fetch older messages (back to older history)`),size:e.number().optional().describe("Maximum number of messages to return.")}),e.object({items:e.array(e.object({body:e.string().optional().describe("Message body content."),createdAt:e.string().optional().describe("Message creation timestamp (Unix time, milliseconds)."),documents:e.array(e.object({createdAt:e.string().optional().describe("Creation timestamp (Unix time, milliseconds)."),fileId:e.string().optional().describe("File storage identifier."),id:e.string().optional().describe("Document identifier."),messageId:e.string().optional().describe("Identifier of the message this document belongs to."),mime:e.string().optional().describe("MIME type of the document."),name:e.string().optional().describe("Original file name."),size:e.string().optional().describe("File size in bytes."),url:e.string().optional().describe("Public signed URL for downloading the document.")}).describe(`Document represents a file attachment
9329
9330
  associated with a message.`)).optional().describe("List of document attachments."),id:e.string().optional().describe("Unique message identifier."),images:e.array(e.object({createdAt:e.string().optional().describe("Creation timestamp (Unix time, milliseconds)."),fileId:e.string().optional().describe("File storage identifier."),height:e.number().optional().describe("Image height in pixels."),id:e.string().optional().describe("Image identifier."),messageId:e.string().optional().describe("Identifier of the message this message belongs to."),mime:e.string().optional().describe("MIME type of the image."),url:e.string().optional().describe("Public signed URL for accessing the image."),width:e.number().optional().describe("Image width in pixels.")}).describe(`Image represents an image attachment
9330
- associated with a message.`)).optional().describe("List of image attachments."),metadata:e.record(e.string(),e.object({"@type":e.string().optional()})).optional().describe(`Arbitrary message metadata.
9331
- Can contain structured data depending on message type.`),sender:e.object({isBot:e.boolean().optional(),issuer:e.string().optional().describe("Client issuer for the sender."),subject:e.string().optional().describe("Client-readable sender subject or display name."),type:e.string().optional().describe("Sender type."),username:e.string().optional().describe("Sender username.")}).optional().describe("Sender user aggregated information."),threadId:e.string().optional().describe("Identifier of the thread the message belongs to."),type:e.number().optional().describe("Message type identifier."),updatedAt:e.string().optional().describe("Message last update timestamp (Unix time, milliseconds).")}).describe(`HistoryMessage represents a single message
9332
- in thread history.`)).optional().describe("List of messages matching the search criteria."),next:e.boolean().optional().describe("Indicates whether more messages are available."),nextCursor:e.object({createdAt:e.string().optional().describe("Message creation timestamp (Unix time, microseconds)."),direction:e.boolean().optional().describe(`Pagination direction.
9333
- true - backward (older messages).
9334
- false - forward (newer messages).`),id:e.string().optional().describe("Unique message identifier.")}).optional().describe("Cursor pointing to the next page of messages."),paging:e.object({cursors:e.object({after:e.object({createdAt:e.string().optional().describe("Message creation timestamp (Unix time, microseconds)."),direction:e.boolean().optional().describe(`Pagination direction.
9335
- true - backward (older messages).
9336
- false - forward (newer messages).`),id:e.string().optional().describe("Unique message identifier.")}).optional().describe("Cursor pointing to the next page of results."),before:e.object({createdAt:e.string().optional().describe("Message creation timestamp (Unix time, microseconds)."),direction:e.boolean().optional().describe(`Pagination direction.
9337
- true - backward (older messages).
9338
- false - forward (newer messages).`),id:e.string().optional().describe("Unique message identifier.")}).optional().describe("Cursor pointing to the previous page of results.")}).optional().describe("Cursor-based pagination information.")}).optional().describe("Detailed paging metadata.")}).describe(`SearchMessageHistoryResponse contains
9331
+ associated with a message.`)).optional().describe("List of image attachments."),metadata:e.looseObject({}).optional().describe(`Arbitrary message metadata.
9332
+ Can contain structured data depending on message type.`),sender:e.object({isBot:e.boolean().optional().describe("Represents if user is automation bot or actual user of system."),iss:e.string().optional().describe("Client issuer for the sender."),name:e.string().optional().describe("Sender username."),sub:e.string().optional().describe("Client-readable sender subject or display name."),type:e.string().optional().describe("Sender type.")}).optional().describe("Sender user aggregated information."),threadId:e.string().optional().describe("Identifier of the thread the message belongs to."),type:e.number().optional().describe("Message type identifier."),updatedAt:e.string().optional().describe("Message last update timestamp (Unix time, milliseconds).")}).describe(`HistoryMessage represents a single message
9333
+ in thread history.`)).optional().describe("List of messages matching the search criteria."),nextCursor:e.object({id:e.string().optional().describe("Unique identifier last message where cursor stopped.")}).optional().describe("Cursor that represents position to get older messages (used without 'before' param)."),prevCursor:e.object({id:e.string().optional().describe("Unique identifier last message where cursor stopped.")}).optional().describe("Cursor that represents position to get newest messages (used with 'before' param).")}).describe(`SearchMessageHistoryResponse contains
9339
9334
  message history search results and pagination metadata.`),e.object({fields:e.array(e.string()).optional().describe(`List of fields that should be returned in the response.
9340
9335
  If empty, a default set of fields is returned.
9341
9336
  Used for response optimization.`),ids:e.array(e.string()).optional().describe("Filter by specific thread IDs."),kinds:e.array(e.enum(["UNKNOWN","DIRECT","GROUP","CHANNEL"])).optional().describe(`Filter threads by their kinds.
@@ -9349,12 +9344,15 @@ Must not be used in valid requests.
9349
9344
  Typically applied to subject.`),size:e.number().optional().describe(`Maximum number of threads to return per page.
9350
9345
  Must be greater than 0 and less than or equal to 100.`),sort:e.string().optional().describe(`Sorting field.
9351
9346
  Optional "+" or "-" prefix indicates ascending or descending order.
9352
- Example: "-created_at", "subject"`),page:e.number().optional().describe("Page number (1-based).")}),e.object({next:e.boolean().optional().describe("Indicates whether there is a next page available."),threads:e.array(e.object({admins:e.array(e.object({issuer:e.string().optional().describe("Client issuer for the sender."),subject:e.string().optional().describe("Client-readable participant subject or display name."),type:e.string().optional().describe("Participant type."),username:e.string().optional().describe("Participant name.")}).describe(`ExternalParticipant represents aggregated participant information
9353
- present in the thread history response.`)).optional().describe("List of users aggregated information with admin privileges."),createdAt:e.string().optional().describe("Thread creation timestamp (Unix time, milliseconds)."),description:e.string().optional().describe("Optional thread description."),id:e.string().optional().describe("Unique thread identifier."),kind:e.enum(["UNKNOWN","DIRECT","GROUP","CHANNEL"]).default("UNKNOWN").describe("Type of the thread."),memberIds:e.array(e.object({issuer:e.string().optional().describe("Client issuer for the sender."),subject:e.string().optional().describe("Client-readable participant subject or display name."),type:e.string().optional().describe("Participant type."),username:e.string().optional().describe("Participant name.")}).describe(`ExternalParticipant represents aggregated participant information
9347
+ Example: "-created_at", "subject"`),page:e.number().optional().describe("Page number (1-based).")}),e.object({items:e.array(e.object({admins:e.array(e.object({isBot:e.boolean().optional().describe("Represents if user is automation bot or actual user of system."),iss:e.string().optional().describe("Client issuer for the sender."),name:e.string().optional().describe("Participant name."),sub:e.string().optional().describe("Client-readable participant subject or display name."),type:e.string().optional().describe("Participant type.")}).describe(`ExternalParticipant represents aggregated participant information
9348
+ present in the thread history response.`)).optional().describe("List of users aggregated information with admin privileges."),createdAt:e.string().optional().describe("Thread creation timestamp (Unix time, milliseconds)."),description:e.string().optional().describe("Optional thread description."),id:e.string().optional().describe("Unique thread identifier."),kind:e.enum(["UNKNOWN","DIRECT","GROUP","CHANNEL"]).default("UNKNOWN").describe("Type of the thread."),lastMsg:e.object({body:e.string().optional().describe("Message body content."),createdAt:e.string().optional().describe("Message creation timestamp (Unix time, milliseconds)."),documents:e.array(e.object({createdAt:e.string().optional().describe("Creation timestamp (Unix time, milliseconds)."),fileId:e.string().optional().describe("File storage identifier."),id:e.string().optional().describe("Document identifier."),messageId:e.string().optional().describe("Identifier of the message this document belongs to."),mime:e.string().optional().describe("MIME type of the document."),name:e.string().optional().describe("Original file name."),size:e.string().optional().describe("File size in bytes."),url:e.string().optional().describe("Public signed URL for downloading the document.")}).describe(`Document represents a file attachment
9349
+ associated with a message.`)).optional().describe("List of document attachments."),id:e.string().optional().describe("Unique message identifier."),images:e.array(e.object({createdAt:e.string().optional().describe("Creation timestamp (Unix time, milliseconds)."),fileId:e.string().optional().describe("File storage identifier."),height:e.number().optional().describe("Image height in pixels."),id:e.string().optional().describe("Image identifier."),messageId:e.string().optional().describe("Identifier of the message this message belongs to."),mime:e.string().optional().describe("MIME type of the image."),url:e.string().optional().describe("Public signed URL for accessing the image."),width:e.number().optional().describe("Image width in pixels.")}).describe(`Image represents an image attachment
9350
+ associated with a message.`)).optional().describe("List of image attachments."),metadata:e.looseObject({}).optional().describe(`Arbitrary message metadata.
9351
+ Can contain structured data depending on message type.`),sender:e.object({isBot:e.boolean().optional().describe("Represents if user is automation bot or actual user of system."),iss:e.string().optional().describe("Client issuer for the sender."),name:e.string().optional().describe("Sender username."),sub:e.string().optional().describe("Client-readable sender subject or display name."),type:e.string().optional().describe("Sender type.")}).optional().describe("Sender user aggregated information."),threadId:e.string().optional().describe("Identifier of the thread the message belongs to."),type:e.number().optional().describe("Message type identifier."),updatedAt:e.string().optional().describe("Message last update timestamp (Unix time, milliseconds).")}).optional().describe("Last message of the linked thread."),memberIds:e.array(e.object({isBot:e.boolean().optional().describe("Represents if user is automation bot or actual user of system."),iss:e.string().optional().describe("Client issuer for the sender."),name:e.string().optional().describe("Participant name."),sub:e.string().optional().describe("Client-readable participant subject or display name."),type:e.string().optional().describe("Participant type.")}).describe(`ExternalParticipant represents aggregated participant information
9354
9352
  present in the thread history response.`)).optional().describe("List of member users aggregated information."),members:e.array(e.object({directSettings:e.object({createdAt:e.string().optional().describe("Creation timestamp (Unix time, milliseconds)."),domainId:e.number().optional().describe("Domain identifier."),id:e.string().optional().describe("Settings identifier."),title:e.string().optional().describe(`Custom title for the direct thread.
9355
9353
  Usually represents the display name of the conversation.`),updatedAt:e.string().optional().describe("Last update timestamp (Unix time, milliseconds).")}).optional().describe(`Direct thread specific settings.
9356
- Present only for DIRECT threads.`),member:e.object({issuer:e.string().optional().describe("Client issuer for the sender."),subject:e.string().optional().describe("Client-readable participant subject or display name."),type:e.string().optional().describe("Participant type."),username:e.string().optional().describe("Participant name.")}).optional().describe("User aggregated information.")}).describe(`ThreadMember represents a thread participant
9357
- with optional type-specific settings.`)).optional().describe("Detailed member information."),owner:e.object({issuer:e.string().optional().describe("Client issuer for the sender."),subject:e.string().optional().describe("Client-readable participant subject or display name."),type:e.string().optional().describe("Participant type."),username:e.string().optional().describe("Participant name.")}).optional().describe("Aggregated user information of the thread owner."),subject:e.string().optional().describe("Thread subject or title."),updatedAt:e.string().optional().describe("Last update timestamp (Unix time, milliseconds).")}).describe("Thread represents a thread (aka chat or conversation) entity.")).optional().describe("List of threads matching the search criteria.")}).describe(`SearchThreadResponse contains the list of threads
9354
+ Present only for DIRECT threads.`),member:e.object({isBot:e.boolean().optional().describe("Represents if user is automation bot or actual user of system."),iss:e.string().optional().describe("Client issuer for the sender."),name:e.string().optional().describe("Participant name."),sub:e.string().optional().describe("Client-readable participant subject or display name."),type:e.string().optional().describe("Participant type.")}).optional().describe("User aggregated information.")}).describe(`ThreadMember represents a thread participant
9355
+ with optional type-specific settings.`)).optional().describe("Detailed member information."),owner:e.object({isBot:e.boolean().optional().describe("Represents if user is automation bot or actual user of system."),iss:e.string().optional().describe("Client issuer for the sender."),name:e.string().optional().describe("Participant name."),sub:e.string().optional().describe("Client-readable participant subject or display name."),type:e.string().optional().describe("Participant type.")}).optional().describe("Aggregated user information of the thread owner."),subject:e.string().optional().describe("Thread subject or title."),updatedAt:e.string().optional().describe("Last update timestamp (Unix time, milliseconds).")}).describe("Thread represents a thread (aka chat or conversation) entity.")).optional().describe("List of threads matching the search criteria."),next:e.boolean().optional().describe("Indicates whether there is a next page available.")}).describe(`SearchThreadResponse contains the list of threads
9358
9356
  and pagination metadata.`),e.object({document:e.object({body:e.string().optional(),documents:e.array(e.object({fileName:e.string().optional(),id:e.string().optional(),mimeType:e.string().optional(),sizeBytes:e.string().optional(),url:e.string().optional()}).describe("Represents `Document` message with necessary fields\nto process it into frequently used `document`\nentity in messaging systems.")).optional()}).optional(),domainId:e.string().optional(),from:e.object({channelId:e.string().optional(),contactId:e.string().optional(),groupId:e.string().optional(),identity:e.object({issuer:e.string().optional(),name:e.string().optional()}).optional(),threadId:e.string().optional()}).optional().describe(`Represents a peer in the messaging system.
9359
9357
  It can be a user, chat, or channel.`),sendId:e.string().optional(),to:e.object({channelId:e.string().optional(),contactId:e.string().optional(),groupId:e.string().optional(),identity:e.object({issuer:e.string().optional(),name:e.string().optional()}).optional(),threadId:e.string().optional()}).optional().describe(`Represents a peer in the messaging system.
9360
9358
  It can be a user, chat, or channel.`)}).describe("Represents a request to send a message with document."),e.object({id:e.string().optional(),to:e.object({channelId:e.string().optional(),contactId:e.string().optional(),groupId:e.string().optional(),identity:e.object({issuer:e.string().optional(),name:e.string().optional()}).optional(),threadId:e.string().optional()}).optional().describe(`Represents a peer in the messaging system.
@@ -9364,7 +9362,7 @@ It can be a user, chat, or channel.`)}).describe("Represents a request to send a
9364
9362
  It can be a user, chat, or channel.`)}).describe("Represents a response to send message with image."),e.object({body:e.string().optional(),domainId:e.string().optional(),from:e.object({channelId:e.string().optional(),contactId:e.string().optional(),groupId:e.string().optional(),identity:e.object({issuer:e.string().optional(),name:e.string().optional()}).optional(),threadId:e.string().optional()}).optional().describe(`Represents a peer in the messaging system.
9365
9363
  It can be a user, chat, or channel.`),sendId:e.string().optional(),to:e.object({channelId:e.string().optional(),contactId:e.string().optional(),groupId:e.string().optional(),identity:e.object({issuer:e.string().optional(),name:e.string().optional()}).optional(),threadId:e.string().optional()}).optional().describe(`Represents a peer in the messaging system.
9366
9364
  It can be a user, chat, or channel.`)}),e.object({id:e.string().optional(),to:e.object({channelId:e.string().optional(),contactId:e.string().optional(),groupId:e.string().optional(),identity:e.object({issuer:e.string().optional(),name:e.string().optional()}).optional(),threadId:e.string().optional()}).optional().describe(`Represents a peer in the messaging system.
9367
- It can be a user, chat, or channel.`)}).describe("Represents a response to send a text message."),e.object({id_1:e.string()}),e.object({userId:e.string().optional(),threadId:e.string().optional(),domainId:e.number().optional()}),e.looseObject({}),e.object({thread_id:e.string()}),e.object({fields:e.array(e.string()).optional(),ids:e.array(e.string()).optional(),senderIds:e.array(e.string()).optional(),types:e.array(e.number()).optional(),domainId:e.number().optional(),cursorCreatedAt:e.string().optional(),cursorId:e.string().optional(),cursorDirection:e.boolean().optional(),size:e.number().optional()}),e.object({from:e.array(e.string()).optional(),messages:e.array(e.object({body:e.string().optional(),createdAt:e.string().optional(),documents:e.array(e.object({createdAt:e.string().optional(),fileId:e.string().optional(),id:e.string().optional(),messageId:e.string().optional(),mime:e.string().optional(),name:e.string().optional(),size:e.string().optional(),url:e.string().optional()})).optional(),id:e.string().optional(),images:e.array(e.object({createdAt:e.string().optional(),fileId:e.string().optional(),height:e.number().optional(),id:e.string().optional(),messageId:e.string().optional(),mime:e.string().optional(),url:e.string().optional(),width:e.number().optional()})).optional(),metadata:e.record(e.string(),e.object({"@type":e.string().optional()})).optional(),senderId:e.string().optional(),threadId:e.string().optional(),type:e.number().optional(),updatedAt:e.string().optional()})).optional(),next:e.boolean().optional(),nextCursor:e.object({createdAt:e.string().optional(),direction:e.boolean().optional(),id:e.string().optional()}).optional(),paging:e.object({cursors:e.object({after:e.object({createdAt:e.string().optional(),direction:e.boolean().optional(),id:e.string().optional()}).optional(),before:e.object({createdAt:e.string().optional(),direction:e.boolean().optional(),id:e.string().optional()}).optional()}).optional()}).optional()}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional()}),e.object({items:e.array(e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),daysOff:e.number().optional(),description:e.string().optional(),domainId:e.string().optional(),id:e.string().optional(),name:e.string().optional(),pauseDuration:e.number().optional(),pauseTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),shiftTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),sickLeaves:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),vacation:e.number().optional(),workdayHours:e.number().optional(),workdaysPerMonth:e.number().optional()})).optional(),next:e.boolean().optional()}),e.object({item:e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),daysOff:e.number().optional(),description:e.string().optional(),domainId:e.string().optional(),id:e.string().optional(),name:e.string().optional(),pauseDuration:e.number().optional(),pauseTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),shiftTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),sickLeaves:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),vacation:e.number().optional(),workdayHours:e.number().optional(),workdaysPerMonth:e.number().optional()}).optional()}),e.object({item:e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),daysOff:e.number().optional(),description:e.string().optional(),domainId:e.string().optional(),id:e.string().optional(),name:e.string().optional(),pauseDuration:e.number().optional(),pauseTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),shiftTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),sickLeaves:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),vacation:e.number().optional(),workdayHours:e.number().optional(),workdaysPerMonth:e.number().optional()}).optional()}),e.object({id:e.string()}),e.object({id:e.string().optional()}),e.object({id:e.string()}),e.object({fields:e.array(e.string()).optional()}),e.object({item:e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),daysOff:e.number().optional(),description:e.string().optional(),domainId:e.string().optional(),id:e.string().optional(),name:e.string().optional(),pauseDuration:e.number().optional(),pauseTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),shiftTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),sickLeaves:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),vacation:e.number().optional(),workdayHours:e.number().optional(),workdaysPerMonth:e.number().optional()}).optional()}),e.object({"item.id":e.string()}),e.object({item:e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),daysOff:e.number().optional(),description:e.string().optional(),domainId:e.string().optional(),name:e.string().optional(),pauseDuration:e.number().optional(),pauseTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),shiftTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),sickLeaves:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),vacation:e.number().optional(),workdayHours:e.number().optional(),workdaysPerMonth:e.number().optional()}).optional()}),e.object({item:e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),daysOff:e.number().optional(),description:e.string().optional(),domainId:e.string().optional(),id:e.string().optional(),name:e.string().optional(),pauseDuration:e.number().optional(),pauseTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),shiftTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),sickLeaves:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),vacation:e.number().optional(),workdayHours:e.number().optional(),workdaysPerMonth:e.number().optional()}).optional()}),e.object({q:e.string().optional(),page:e.number().optional(),size:e.number().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional()}),e.object({items:e.array(e.object({agents:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),blockOutsideActivity:e.boolean().optional(),calendar:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),domainId:e.string().optional(),endDateAt:e.string().optional(),endTimeAt:e.string().optional(),extraSkills:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),startDateAt:e.string().optional(),startTimeAt:e.string().optional(),state:e.enum(["WORKING_SCHEDULE_STATE_UNSPECIFIED","WORKING_SCHEDULE_STATE_ACTIVE","WORKING_SCHEDULE_STATE_PENDING","WORKING_SCHEDULE_STATE_DRAFT","WORKING_SCHEDULE_STATE_ARCHIVED"]).default("WORKING_SCHEDULE_STATE_UNSPECIFIED"),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),totalAgents:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),next:e.boolean().optional()}),e.object({item:e.object({agents:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),blockOutsideActivity:e.boolean().optional(),calendar:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),domainId:e.string().optional(),endDateAt:e.string().optional(),endTimeAt:e.string().optional(),extraSkills:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),startDateAt:e.string().optional(),startTimeAt:e.string().optional(),state:e.enum(["WORKING_SCHEDULE_STATE_UNSPECIFIED","WORKING_SCHEDULE_STATE_ACTIVE","WORKING_SCHEDULE_STATE_PENDING","WORKING_SCHEDULE_STATE_DRAFT","WORKING_SCHEDULE_STATE_ARCHIVED"]).default("WORKING_SCHEDULE_STATE_UNSPECIFIED"),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),totalAgents:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional()}),e.object({item:e.object({agents:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),blockOutsideActivity:e.boolean().optional(),calendar:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),domainId:e.string().optional(),endDateAt:e.string().optional(),endTimeAt:e.string().optional(),extraSkills:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),startDateAt:e.string().optional(),startTimeAt:e.string().optional(),state:e.enum(["WORKING_SCHEDULE_STATE_UNSPECIFIED","WORKING_SCHEDULE_STATE_ACTIVE","WORKING_SCHEDULE_STATE_PENDING","WORKING_SCHEDULE_STATE_DRAFT","WORKING_SCHEDULE_STATE_ARCHIVED"]).default("WORKING_SCHEDULE_STATE_UNSPECIFIED"),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),totalAgents:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional()}),e.object({id:e.string()}),e.object({id:e.string().optional()}),e.object({id:e.string()}),e.object({fields:e.array(e.string()).optional()}),e.object({item:e.object({agents:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),blockOutsideActivity:e.boolean().optional(),calendar:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),domainId:e.string().optional(),endDateAt:e.string().optional(),endTimeAt:e.string().optional(),extraSkills:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),startDateAt:e.string().optional(),startTimeAt:e.string().optional(),state:e.enum(["WORKING_SCHEDULE_STATE_UNSPECIFIED","WORKING_SCHEDULE_STATE_ACTIVE","WORKING_SCHEDULE_STATE_PENDING","WORKING_SCHEDULE_STATE_DRAFT","WORKING_SCHEDULE_STATE_ARCHIVED"]).default("WORKING_SCHEDULE_STATE_UNSPECIFIED"),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),totalAgents:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional()}),e.object({id:e.string()}),e.object({agents:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional()}),e.object({agents:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional()}),e.object({id:e.string(),agent_id:e.string()}),e.object({id:e.string().optional()}),e.object({id:e.string()}),e.object({dateFrom:e.string().optional(),dateTo:e.string().optional()}),e.object({items:e.record(e.string(),e.object({forecast:e.array(e.object({agents:e.string().optional(),hour:e.string().optional()})).optional()})).optional()}),e.object({"item.id":e.string()}),e.object({item:e.object({agents:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),blockOutsideActivity:e.boolean().optional(),calendar:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),domainId:e.string().optional(),endDateAt:e.string().optional(),endTimeAt:e.string().optional(),extraSkills:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),name:e.string().optional(),startDateAt:e.string().optional(),startTimeAt:e.string().optional(),state:e.enum(["WORKING_SCHEDULE_STATE_UNSPECIFIED","WORKING_SCHEDULE_STATE_ACTIVE","WORKING_SCHEDULE_STATE_PENDING","WORKING_SCHEDULE_STATE_DRAFT","WORKING_SCHEDULE_STATE_ARCHIVED"]).default("WORKING_SCHEDULE_STATE_UNSPECIFIED"),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),totalAgents:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional()}),e.object({item:e.object({agents:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),blockOutsideActivity:e.boolean().optional(),calendar:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),domainId:e.string().optional(),endDateAt:e.string().optional(),endTimeAt:e.string().optional(),extraSkills:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),startDateAt:e.string().optional(),startTimeAt:e.string().optional(),state:e.enum(["WORKING_SCHEDULE_STATE_UNSPECIFIED","WORKING_SCHEDULE_STATE_ACTIVE","WORKING_SCHEDULE_STATE_PENDING","WORKING_SCHEDULE_STATE_DRAFT","WORKING_SCHEDULE_STATE_ARCHIVED"]).default("WORKING_SCHEDULE_STATE_UNSPECIFIED"),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),totalAgents:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional()}),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),Ct(),_t(),Ct(),_t(),Ct(),_t(),{...ID("/contacts/groups")},Ct(),_t(),Ct(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),localStorage.getItem("access-token"),Xt.create({headers:{"content-type":"multipart/form-data"}}),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),{...ID("/users")};const uje=Ct(),SD=async({path:o,display:n,primary:i,...r})=>{const l=["page","size","q","sort","fields","id","ids"],s=hi(r,[G2(tD()),jD("search"),c=>({...c,q:c.search}),c=>({...c,ids:c.id}),wD(l),r9(),yD(o)]);try{const c=await uje.get(s),{data:d,items:p,next:u}=hi(c.data,[G2(eD())]);return{items:hi(d||p,[])??[],next:u}}catch(c){throw hi(c,[s9])}},gje={getList:SD,getLookup:o=>SD({...o,fields:o.fields||["id","name"]})};Ct(),_t(),Ct(),_t(),Ct(),_t();const fje=Object.freeze(Object.defineProperty({__proto__:null,default:a.defineComponent({__name:"wt-type-extension-value-input",props:a.mergeModels({field:{},required:{type:Boolean},v:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const n=a.useModel(o,"modelValue"),i=o,{t:r}=ti(),l=a.computed(()=>r(i.field?.name||"vocabulary.labels")),s=a.computed(()=>i.required||i.field.required),c=a.computed(()=>n.value),d=a.computed(()=>({label:l.value,required:s.value,v:i.v})),p=a.computed(()=>({clearable:!0,trackBy:"id",searchMethod:()=>f(i.field.lookup)})),u=a.computed(()=>({...p.value,multiple:!0})),g=y=>{n.value=y},f=({path:y,display:k,primary:w})=>C=>gje.getSysTypeRecordsLookup({...C,path:y,display:k,primary:w}),h=y=>{if(Object.values(y).length===0)return g(null);g({id:y.id,name:y.name})},m=y=>{g(y.map(k=>({id:k.id,name:k.name})))};return(y,k)=>{const w=a.resolveComponent("wt-input-text"),C=a.resolveComponent("wt-input-number");return o.field.kind===a.unref(ki).Text?(a.openBlock(),a.createBlock(w,a.mergeProps({key:0},d.value,{"model-value":c.value,"onUpdate:modelValue":g}),null,16,["model-value"])):o.field.kind===a.unref(ki).Number?(a.openBlock(),a.createBlock(C,a.mergeProps({key:1},d.value,{"model-value":c.value,"onUpdate:modelValue":g}),null,16,["model-value"])):o.field.kind===a.unref(ki).Boolean?a.renderSlot(y.$slots,a.unref(ki).Boolean,{key:2,defaultProps:{...d.value}},()=>[a.createVNode(a.unref(Jv),a.mergeProps(d.value,{"model-value":c.value,"onUpdate:modelValue":g}),null,16,["model-value"])]):o.field.kind===a.unref(ki).Select?a.renderSlot(y.$slots,a.unref(ki).Select,{key:3,defaultProps:{...d.value,...p.value,value:c.value}},()=>[a.createVNode(a.unref(rf),a.mergeProps(d.value,{value:c.value,"search-method":f(o.field.lookup),"track-by":"id",clearable:"",onInput:h}),null,16,["value","search-method"])]):o.field.kind===a.unref(ki).Multiselect?a.renderSlot(y.$slots,a.unref(ki).Multiselect,{key:4,defaultProps:{...d.value,...u.value,value:c.value}},()=>[a.createVNode(a.unref(rf),a.mergeProps({...d.value,...u.value},{value:c.value,onInput:m}),null,16,["value"])]):o.field.kind===a.unref(ki).Calendar?a.renderSlot(y.$slots,a.unref(ki).Calendar,{key:5,defaultProps:{...d.value,value:c.value}},()=>[a.createVNode(a.unref(OC),a.mergeProps(d.value,{value:c.value,mode:"datetime",onInput:g}),null,16,["value"])]):a.createCommentVNode("",!0)}}})},Symbol.toStringTag,{value:"Module"})),Yi={LoadFail:0,BadSignature:1,BadTimestamp:2,BadSettingValue:3,BadFormat:4,UnknownSetting:5};class Xi extends Error{code;line;constructor(n){super(n.reason),this.code=n.code,this.line=n.line}}const TD=/\r?\n|\r/gm;class hje{writable;readable;constructor(n){const i=new mje(n);this.writable=new WritableStream({write(r){i.transform(r)},close(){i.close()}}),this.readable=new ReadableStream({start(r){i.onLine=l=>r.enqueue(l),i.onClose=()=>r.close()}})}}class mje{a="";b;onLine;onClose;constructor(n){this.b=new TextDecoder(n)}transform(n){this.a+=this.b.decode(n,{stream:!0});const i=this.a.split(TD);this.a=i.pop()||"";for(let r=0;r<i.length;r++)this.onLine(i[r].trim())}close(){this.a&&this.onLine(this.a.trim()),this.a="",this.onClose()}}async function bje(o,n){const i=new ReadableStream({start(r){const l=o.split(TD);for(const s of l)r.enqueue(s);r.close()}});return l9(i,n)}async function l9(o,n){const i=n?.type??"vtt";let r;if(typeof i=="string")switch(i){case"srt":r=(await Promise.resolve().then(()=>uIe)).default;break;case"ssa":case"ass":r=(await Promise.resolve().then(()=>fIe)).default;break;default:r=(await Promise.resolve().then(function(){return Pje})).default}else r=i;let l;const s=o.getReader(),c=r(),d=!!n?.strict||!!n?.errors;await c.init({strict:!1,...n,errors:d,type:i,cancel(){s.cancel(),l=c.done(!0)}});let p=1;for(;;){const{value:u,done:g}=await s.read();if(g){c.parse("",p),l=c.done(!1);break}c.parse(u,p),p++}return l}async function yje(o,n){const i=await o;if(!i.ok||!i.body)return{metadata:{},cues:[],regions:[],errors:[void 0]};const r=i.headers.get("content-type")||"",l=r.match(/text\/(.*?)(?:;|$)/)?.[1],s=r.match(/charset=(.*?)(?:;|$)/)?.[1];return ED(i.body,{type:l,encoding:s,...n})}async function ED(o,{encoding:n="utf-8",...i}={}){const r=o.pipeThrough(new hje(n));return l9(r,i)}class AD extends EventTarget{id="";startTime;endTime;text;pauseOnExit=!1;constructor(n,i,r){super(),this.startTime=n,this.endTime=i,this.text=r}addEventListener(n,i,r){super.addEventListener(n,i,r)}removeEventListener(n,i,r){super.removeEventListener(n,i,r)}}const c9=typeof document>"u",vje=c9?AD:window.VTTCue;class K2 extends vje{region=null;vertical="";snapToLines=!0;line="auto";lineAlign="start";position="auto";positionAlign="auto";size=100;align="center";style}class OD{id="";width=100;lines=3;regionAnchorX=0;regionAnchorY=100;viewportAnchorX=0;viewportAnchorY=100;scroll=""}const DD=",",Cje="%";function wje(o){const n=parseInt(o,10);return Number.isNaN(n)?null:n}function Hd(o){const n=parseInt(o.replace(Cje,""),10);return!Number.isNaN(n)&&n>=0&&n<=100?n:null}function LD(o){if(!o.includes(DD))return null;const[n,i]=o.split(DD).map(Hd);return n!==null&&i!==null?[n,i]:null}function kje(o){const n=parseFloat(o);return Number.isNaN(n)?null:n}const jje="WEBVTT",RD=",",xje="%",ml=/[:=]/,Ije=/^[\s\t]*(region|vertical|line|position|size|align)[:=]/,Sje="NOTE",Tje="REGION",Eje=/^REGION:?[\s\t]+/,zd=/[\s\t]+/,Aje="-->",Oje=/[\s\t]*-->[\s\t]+/,Dje=/start|center|end|left|right/,Lje=/start|center|end/,Rje=/line-(?:left|right)|center|auto/,_je=/^(?:(\d{1,2}):)?(\d{2}):(\d{2})(?:\.(\d{1,3}))?$/;var Zd=(o=>(o[o.None=0]="None",o[o.Header=1]="Header",o[o.Cue=2]="Cue",o[o.Region=3]="Region",o[o.Note=4]="Note",o))(Zd||{});class d9{h;e=0;i={};j={};l=[];c=null;d=null;m=[];f;n="";async init(n){this.h=n,n.strict&&(this.e=1),n.errors&&(this.f=(await Promise.resolve().then(()=>lL)).ParseErrorBuilder)}parse(n,i){if(n==="")this.c?(this.l.push(this.c),this.h.onCue?.(this.c),this.c=null):this.d?(this.j[this.d.id]=this.d,this.h.onRegion?.(this.d),this.d=null):this.e===1&&(this.k(n,i),this.h.onHeaderMetadata?.(this.i)),this.e=0;else if(this.e)switch(this.e){case 1:this.k(n,i);break;case 2:if(this.c){const r=this.c.text.length>0;!r&&Ije.test(n)?this.o(n.split(zd),i):this.c.text+=(r?`
9365
+ It can be a user, chat, or channel.`)}).describe("Represents a response to send a text message."),e.object({id_1:e.string()}),e.object({userId:e.string().optional(),threadId:e.string().optional(),domainId:e.number().optional()}),e.looseObject({}),e.object({thread_id_1:e.string()}),e.object({fields:e.array(e.string()).optional(),ids:e.array(e.string()).optional(),senderIds:e.array(e.string()).optional(),types:e.array(e.number()).optional(),domainId:e.number().optional(),cursorId:e.string().optional(),cursorBefore:e.boolean().optional(),size:e.number().optional()}),e.object({from:e.array(e.string()).optional(),items:e.array(e.object({body:e.string().optional(),createdAt:e.string().optional(),documents:e.array(e.object({createdAt:e.string().optional(),fileId:e.string().optional(),id:e.string().optional(),messageId:e.string().optional(),mime:e.string().optional(),name:e.string().optional(),size:e.string().optional(),url:e.string().optional()})).optional(),id:e.string().optional(),images:e.array(e.object({createdAt:e.string().optional(),fileId:e.string().optional(),height:e.number().optional(),id:e.string().optional(),messageId:e.string().optional(),mime:e.string().optional(),url:e.string().optional(),width:e.number().optional()})).optional(),metadata:e.looseObject({}).optional(),senderId:e.string().optional(),threadId:e.string().optional(),type:e.number().optional(),updatedAt:e.string().optional()})).optional(),nextCursor:e.object({id:e.string().optional()}).optional(),prevCursor:e.object({id:e.string().optional()}).optional()}),e.object({page:e.number().optional(),size:e.number().optional(),q:e.string().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional()}),e.object({items:e.array(e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),daysOff:e.number().optional(),description:e.string().optional(),domainId:e.string().optional(),id:e.string().optional(),name:e.string().optional(),pauseDuration:e.number().optional(),pauseTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),shiftTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),sickLeaves:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),vacation:e.number().optional(),workdayHours:e.number().optional(),workdaysPerMonth:e.number().optional()})).optional(),next:e.boolean().optional()}),e.object({item:e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),daysOff:e.number().optional(),description:e.string().optional(),domainId:e.string().optional(),id:e.string().optional(),name:e.string().optional(),pauseDuration:e.number().optional(),pauseTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),shiftTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),sickLeaves:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),vacation:e.number().optional(),workdayHours:e.number().optional(),workdaysPerMonth:e.number().optional()}).optional()}),e.object({item:e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),daysOff:e.number().optional(),description:e.string().optional(),domainId:e.string().optional(),id:e.string().optional(),name:e.string().optional(),pauseDuration:e.number().optional(),pauseTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),shiftTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),sickLeaves:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),vacation:e.number().optional(),workdayHours:e.number().optional(),workdaysPerMonth:e.number().optional()}).optional()}),e.object({id:e.string()}),e.object({id:e.string().optional()}),e.object({id:e.string()}),e.object({fields:e.array(e.string()).optional()}),e.object({item:e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),daysOff:e.number().optional(),description:e.string().optional(),domainId:e.string().optional(),id:e.string().optional(),name:e.string().optional(),pauseDuration:e.number().optional(),pauseTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),shiftTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),sickLeaves:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),vacation:e.number().optional(),workdayHours:e.number().optional(),workdaysPerMonth:e.number().optional()}).optional()}),e.object({"item.id":e.string()}),e.object({item:e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),daysOff:e.number().optional(),description:e.string().optional(),domainId:e.string().optional(),name:e.string().optional(),pauseDuration:e.number().optional(),pauseTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),shiftTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),sickLeaves:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),vacation:e.number().optional(),workdayHours:e.number().optional(),workdaysPerMonth:e.number().optional()}).optional()}),e.object({item:e.object({createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),daysOff:e.number().optional(),description:e.string().optional(),domainId:e.string().optional(),id:e.string().optional(),name:e.string().optional(),pauseDuration:e.number().optional(),pauseTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),shiftTemplate:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),sickLeaves:e.number().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),vacation:e.number().optional(),workdayHours:e.number().optional(),workdaysPerMonth:e.number().optional()}).optional()}),e.object({q:e.string().optional(),page:e.number().optional(),size:e.number().optional(),sort:e.string().optional(),fields:e.array(e.string()).optional()}),e.object({items:e.array(e.object({agents:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),blockOutsideActivity:e.boolean().optional(),calendar:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),domainId:e.string().optional(),endDateAt:e.string().optional(),endTimeAt:e.string().optional(),extraSkills:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),startDateAt:e.string().optional(),startTimeAt:e.string().optional(),state:e.enum(["WORKING_SCHEDULE_STATE_UNSPECIFIED","WORKING_SCHEDULE_STATE_ACTIVE","WORKING_SCHEDULE_STATE_PENDING","WORKING_SCHEDULE_STATE_DRAFT","WORKING_SCHEDULE_STATE_ARCHIVED"]).default("WORKING_SCHEDULE_STATE_UNSPECIFIED"),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),totalAgents:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()})).optional(),next:e.boolean().optional()}),e.object({item:e.object({agents:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),blockOutsideActivity:e.boolean().optional(),calendar:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),domainId:e.string().optional(),endDateAt:e.string().optional(),endTimeAt:e.string().optional(),extraSkills:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),startDateAt:e.string().optional(),startTimeAt:e.string().optional(),state:e.enum(["WORKING_SCHEDULE_STATE_UNSPECIFIED","WORKING_SCHEDULE_STATE_ACTIVE","WORKING_SCHEDULE_STATE_PENDING","WORKING_SCHEDULE_STATE_DRAFT","WORKING_SCHEDULE_STATE_ARCHIVED"]).default("WORKING_SCHEDULE_STATE_UNSPECIFIED"),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),totalAgents:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional()}),e.object({item:e.object({agents:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),blockOutsideActivity:e.boolean().optional(),calendar:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),domainId:e.string().optional(),endDateAt:e.string().optional(),endTimeAt:e.string().optional(),extraSkills:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),startDateAt:e.string().optional(),startTimeAt:e.string().optional(),state:e.enum(["WORKING_SCHEDULE_STATE_UNSPECIFIED","WORKING_SCHEDULE_STATE_ACTIVE","WORKING_SCHEDULE_STATE_PENDING","WORKING_SCHEDULE_STATE_DRAFT","WORKING_SCHEDULE_STATE_ARCHIVED"]).default("WORKING_SCHEDULE_STATE_UNSPECIFIED"),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),totalAgents:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional()}),e.object({id:e.string()}),e.object({id:e.string().optional()}),e.object({id:e.string()}),e.object({fields:e.array(e.string()).optional()}),e.object({item:e.object({agents:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),blockOutsideActivity:e.boolean().optional(),calendar:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),domainId:e.string().optional(),endDateAt:e.string().optional(),endTimeAt:e.string().optional(),extraSkills:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),startDateAt:e.string().optional(),startTimeAt:e.string().optional(),state:e.enum(["WORKING_SCHEDULE_STATE_UNSPECIFIED","WORKING_SCHEDULE_STATE_ACTIVE","WORKING_SCHEDULE_STATE_PENDING","WORKING_SCHEDULE_STATE_DRAFT","WORKING_SCHEDULE_STATE_ARCHIVED"]).default("WORKING_SCHEDULE_STATE_UNSPECIFIED"),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),totalAgents:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional()}),e.object({id:e.string()}),e.object({agents:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional()}),e.object({agents:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional()}),e.object({id:e.string(),agent_id:e.string()}),e.object({id:e.string().optional()}),e.object({id:e.string()}),e.object({dateFrom:e.string().optional(),dateTo:e.string().optional()}),e.object({items:e.record(e.string(),e.object({forecast:e.array(e.object({agents:e.string().optional(),hour:e.string().optional()})).optional()})).optional()}),e.object({"item.id":e.string()}),e.object({item:e.object({agents:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),blockOutsideActivity:e.boolean().optional(),calendar:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),domainId:e.string().optional(),endDateAt:e.string().optional(),endTimeAt:e.string().optional(),extraSkills:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),name:e.string().optional(),startDateAt:e.string().optional(),startTimeAt:e.string().optional(),state:e.enum(["WORKING_SCHEDULE_STATE_UNSPECIFIED","WORKING_SCHEDULE_STATE_ACTIVE","WORKING_SCHEDULE_STATE_PENDING","WORKING_SCHEDULE_STATE_DRAFT","WORKING_SCHEDULE_STATE_ARCHIVED"]).default("WORKING_SCHEDULE_STATE_UNSPECIFIED"),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),totalAgents:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional()}),e.object({item:e.object({agents:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),blockOutsideActivity:e.boolean().optional(),calendar:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),createdAt:e.string().optional(),createdBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),domainId:e.string().optional(),endDateAt:e.string().optional(),endTimeAt:e.string().optional(),extraSkills:e.array(e.object({id:e.string().optional(),name:e.string().optional()})).optional(),id:e.string().optional(),name:e.string().optional(),startDateAt:e.string().optional(),startTimeAt:e.string().optional(),state:e.enum(["WORKING_SCHEDULE_STATE_UNSPECIFIED","WORKING_SCHEDULE_STATE_ACTIVE","WORKING_SCHEDULE_STATE_PENDING","WORKING_SCHEDULE_STATE_DRAFT","WORKING_SCHEDULE_STATE_ARCHIVED"]).default("WORKING_SCHEDULE_STATE_UNSPECIFIED"),team:e.object({id:e.string().optional(),name:e.string().optional()}).optional(),totalAgents:e.string().optional(),updatedAt:e.string().optional(),updatedBy:e.object({id:e.string().optional(),name:e.string().optional()}).optional()}).optional()}),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),Ct(),_t(),Ct(),_t(),Ct(),_t(),{...ID("/contacts/groups")},Ct(),_t(),Ct(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),localStorage.getItem("access-token"),Xt.create({headers:{"content-type":"multipart/form-data"}}),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),_t(),Ct(),{...ID("/users")};const uje=Ct(),SD=async({path:o,display:n,primary:i,...r})=>{const l=["page","size","q","sort","fields","id","ids"],s=hi(r,[G2(tD()),jD("search"),c=>({...c,q:c.search}),c=>({...c,ids:c.id}),wD(l),r9(),yD(o)]);try{const c=await uje.get(s),{data:d,items:p,next:u}=hi(c.data,[G2(eD())]);return{items:hi(d||p,[])??[],next:u}}catch(c){throw hi(c,[s9])}},gje={getList:SD,getLookup:o=>SD({...o,fields:o.fields||["id","name"]})};Ct(),_t(),Ct(),_t(),Ct(),_t();const fje=Object.freeze(Object.defineProperty({__proto__:null,default:a.defineComponent({__name:"wt-type-extension-value-input",props:a.mergeModels({field:{},required:{type:Boolean},v:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const n=a.useModel(o,"modelValue"),i=o,{t:r}=ti(),l=a.computed(()=>r(i.field?.name||"vocabulary.labels")),s=a.computed(()=>i.required||i.field.required),c=a.computed(()=>n.value),d=a.computed(()=>({label:l.value,required:s.value,v:i.v})),p=a.computed(()=>({clearable:!0,trackBy:"id",searchMethod:()=>f(i.field.lookup)})),u=a.computed(()=>({...p.value,multiple:!0})),g=y=>{n.value=y},f=({path:y,display:k,primary:w})=>C=>gje.getSysTypeRecordsLookup({...C,path:y,display:k,primary:w}),h=y=>{if(Object.values(y).length===0)return g(null);g({id:y.id,name:y.name})},m=y=>{g(y.map(k=>({id:k.id,name:k.name})))};return(y,k)=>{const w=a.resolveComponent("wt-input-text"),C=a.resolveComponent("wt-input-number");return o.field.kind===a.unref(ki).Text?(a.openBlock(),a.createBlock(w,a.mergeProps({key:0},d.value,{"model-value":c.value,"onUpdate:modelValue":g}),null,16,["model-value"])):o.field.kind===a.unref(ki).Number?(a.openBlock(),a.createBlock(C,a.mergeProps({key:1},d.value,{"model-value":c.value,"onUpdate:modelValue":g}),null,16,["model-value"])):o.field.kind===a.unref(ki).Boolean?a.renderSlot(y.$slots,a.unref(ki).Boolean,{key:2,defaultProps:{...d.value}},()=>[a.createVNode(a.unref(Jv),a.mergeProps(d.value,{"model-value":c.value,"onUpdate:modelValue":g}),null,16,["model-value"])]):o.field.kind===a.unref(ki).Select?a.renderSlot(y.$slots,a.unref(ki).Select,{key:3,defaultProps:{...d.value,...p.value,value:c.value}},()=>[a.createVNode(a.unref(rf),a.mergeProps(d.value,{value:c.value,"search-method":f(o.field.lookup),"track-by":"id",clearable:"",onInput:h}),null,16,["value","search-method"])]):o.field.kind===a.unref(ki).Multiselect?a.renderSlot(y.$slots,a.unref(ki).Multiselect,{key:4,defaultProps:{...d.value,...u.value,value:c.value}},()=>[a.createVNode(a.unref(rf),a.mergeProps({...d.value,...u.value},{value:c.value,onInput:m}),null,16,["value"])]):o.field.kind===a.unref(ki).Calendar?a.renderSlot(y.$slots,a.unref(ki).Calendar,{key:5,defaultProps:{...d.value,value:c.value}},()=>[a.createVNode(a.unref(OC),a.mergeProps(d.value,{value:c.value,mode:"datetime",onInput:g}),null,16,["value"])]):a.createCommentVNode("",!0)}}})},Symbol.toStringTag,{value:"Module"})),Yi={LoadFail:0,BadSignature:1,BadTimestamp:2,BadSettingValue:3,BadFormat:4,UnknownSetting:5};class Xi extends Error{code;line;constructor(n){super(n.reason),this.code=n.code,this.line=n.line}}const TD=/\r?\n|\r/gm;class hje{writable;readable;constructor(n){const i=new mje(n);this.writable=new WritableStream({write(r){i.transform(r)},close(){i.close()}}),this.readable=new ReadableStream({start(r){i.onLine=l=>r.enqueue(l),i.onClose=()=>r.close()}})}}class mje{a="";b;onLine;onClose;constructor(n){this.b=new TextDecoder(n)}transform(n){this.a+=this.b.decode(n,{stream:!0});const i=this.a.split(TD);this.a=i.pop()||"";for(let r=0;r<i.length;r++)this.onLine(i[r].trim())}close(){this.a&&this.onLine(this.a.trim()),this.a="",this.onClose()}}async function bje(o,n){const i=new ReadableStream({start(r){const l=o.split(TD);for(const s of l)r.enqueue(s);r.close()}});return l9(i,n)}async function l9(o,n){const i=n?.type??"vtt";let r;if(typeof i=="string")switch(i){case"srt":r=(await Promise.resolve().then(()=>uIe)).default;break;case"ssa":case"ass":r=(await Promise.resolve().then(()=>fIe)).default;break;default:r=(await Promise.resolve().then(function(){return Pje})).default}else r=i;let l;const s=o.getReader(),c=r(),d=!!n?.strict||!!n?.errors;await c.init({strict:!1,...n,errors:d,type:i,cancel(){s.cancel(),l=c.done(!0)}});let p=1;for(;;){const{value:u,done:g}=await s.read();if(g){c.parse("",p),l=c.done(!1);break}c.parse(u,p),p++}return l}async function yje(o,n){const i=await o;if(!i.ok||!i.body)return{metadata:{},cues:[],regions:[],errors:[void 0]};const r=i.headers.get("content-type")||"",l=r.match(/text\/(.*?)(?:;|$)/)?.[1],s=r.match(/charset=(.*?)(?:;|$)/)?.[1];return ED(i.body,{type:l,encoding:s,...n})}async function ED(o,{encoding:n="utf-8",...i}={}){const r=o.pipeThrough(new hje(n));return l9(r,i)}class AD extends EventTarget{id="";startTime;endTime;text;pauseOnExit=!1;constructor(n,i,r){super(),this.startTime=n,this.endTime=i,this.text=r}addEventListener(n,i,r){super.addEventListener(n,i,r)}removeEventListener(n,i,r){super.removeEventListener(n,i,r)}}const c9=typeof document>"u",vje=c9?AD:window.VTTCue;class K2 extends vje{region=null;vertical="";snapToLines=!0;line="auto";lineAlign="start";position="auto";positionAlign="auto";size=100;align="center";style}class OD{id="";width=100;lines=3;regionAnchorX=0;regionAnchorY=100;viewportAnchorX=0;viewportAnchorY=100;scroll=""}const DD=",",Cje="%";function wje(o){const n=parseInt(o,10);return Number.isNaN(n)?null:n}function Hd(o){const n=parseInt(o.replace(Cje,""),10);return!Number.isNaN(n)&&n>=0&&n<=100?n:null}function LD(o){if(!o.includes(DD))return null;const[n,i]=o.split(DD).map(Hd);return n!==null&&i!==null?[n,i]:null}function kje(o){const n=parseFloat(o);return Number.isNaN(n)?null:n}const jje="WEBVTT",RD=",",xje="%",ml=/[:=]/,Ije=/^[\s\t]*(region|vertical|line|position|size|align)[:=]/,Sje="NOTE",Tje="REGION",Eje=/^REGION:?[\s\t]+/,zd=/[\s\t]+/,Aje="-->",Oje=/[\s\t]*-->[\s\t]+/,Dje=/start|center|end|left|right/,Lje=/start|center|end/,Rje=/line-(?:left|right)|center|auto/,_je=/^(?:(\d{1,2}):)?(\d{2}):(\d{2})(?:\.(\d{1,3}))?$/;var Zd=(o=>(o[o.None=0]="None",o[o.Header=1]="Header",o[o.Cue=2]="Cue",o[o.Region=3]="Region",o[o.Note=4]="Note",o))(Zd||{});class d9{h;e=0;i={};j={};l=[];c=null;d=null;m=[];f;n="";async init(n){this.h=n,n.strict&&(this.e=1),n.errors&&(this.f=(await Promise.resolve().then(()=>lL)).ParseErrorBuilder)}parse(n,i){if(n==="")this.c?(this.l.push(this.c),this.h.onCue?.(this.c),this.c=null):this.d?(this.j[this.d.id]=this.d,this.h.onRegion?.(this.d),this.d=null):this.e===1&&(this.k(n,i),this.h.onHeaderMetadata?.(this.i)),this.e=0;else if(this.e)switch(this.e){case 1:this.k(n,i);break;case 2:if(this.c){const r=this.c.text.length>0;!r&&Ije.test(n)?this.o(n.split(zd),i):this.c.text+=(r?`
9368
9366
  `:"")+n}break;case 3:this.p(n.split(zd),i);break}else if(n.startsWith(Sje))this.e=4;else if(n.startsWith(Tje))this.e=3,this.d=new OD,this.p(n.replace(Eje,"").split(zd),i);else if(n.includes(Aje)){const r=this.q(n,i);r&&(this.c=new K2(r[0],r[1],""),this.c.id=this.n,this.o(r[2],i)),this.e=2}else i===1&&this.k(n,i);this.n=n}done(){return{metadata:this.i,cues:this.l,regions:Object.values(this.j),errors:this.m}}k(n,i){if(i>1){if(ml.test(n)){const[r,l]=n.split(ml);r&&(this.i[r]=(l||"").replace(zd,""))}}else n.startsWith(jje)?this.e=1:this.g(this.f?.r())}q(n,i){const[r,l=""]=n.split(Oje),[s,...c]=l.split(zd),d=cs(r),p=cs(s);if(d!==null&&p!==null&&p>d)return[d,p,c];d===null&&this.g(this.f?.s(r,i)),p===null&&this.g(this.f?.t(s,i)),d!=null&&p!==null&&p>d&&this.g(this.f?.u(d,p,i))}p(n,i){let r;for(let l=0;l<n.length;l++)if(ml.test(n[l])){r=!1;const[s,c]=n[l].split(ml);switch(s){case"id":this.d.id=c;break;case"width":const d=Hd(c);d!==null?this.d.width=d:r=!0;break;case"lines":const p=wje(c);p!==null?this.d.lines=p:r=!0;break;case"regionanchor":const u=LD(c);u!==null?(this.d.regionAnchorX=u[0],this.d.regionAnchorY=u[1]):r=!0;break;case"viewportanchor":const g=LD(c);g!==null?(this.d.viewportAnchorX=g[0],this.d.viewportAnchorY=g[1]):r=!0;break;case"scroll":c==="up"?this.d.scroll="up":r=!0;break;default:this.g(this.f?.v(s,c,i))}r&&this.g(this.f?.w(s,c,i))}}o(n,i){let r;for(let l=0;l<n.length;l++)if(r=!1,ml.test(n[l])){const[s,c]=n[l].split(ml);switch(s){case"region":const d=this.j[c];d&&(this.c.region=d);break;case"vertical":c==="lr"||c==="rl"?(this.c.vertical=c,this.c.region=null):r=!0;break;case"line":const[p,u]=c.split(RD);if(p.includes(xje)){const y=Hd(p);y!==null?(this.c.line=y,this.c.snapToLines=!1):r=!0}else{const y=kje(p);y!==null?this.c.line=y:r=!0}Lje.test(u)?this.c.lineAlign=u:u&&(r=!0),this.c.line!=="auto"&&(this.c.region=null);break;case"position":const[g,f]=c.split(RD),h=Hd(g);h!==null?this.c.position=h:r=!0,f&&Rje.test(f)?this.c.positionAlign=f:f&&(r=!0);break;case"size":const m=Hd(c);m!==null?(this.c.size=m,m<100&&(this.c.region=null)):r=!0;break;case"align":Dje.test(c)?this.c.align=c:r=!0;break;default:this.g(this.f?.x(s,c,i))}r&&this.g(this.f?.y(s,c,i))}}g(n){if(n){if(this.m.push(n),this.h.strict)throw this.h.cancel(),n;this.h.onError?.(n)}}}function cs(o){const n=o.match(_je);if(!n)return null;const i=n[1]?parseInt(n[1],10):0,r=parseInt(n[2],10),l=parseInt(n[3],10),s=n[4]?parseInt(n[4].padEnd(3,"0"),10):0,c=i*3600+r*60+l+s/1e3;return i<0||r<0||l<0||s<0||r>59||l>59?null:c}function Bje(){return new d9}var Pje=Object.freeze({__proto__:null,VTTBlock:Zd,VTTParser:d9,default:Bje,parseVTTTimestamp:cs});const $je=/[0-9]/,Mje=/[\s\t]+/,_D={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span",timestamp:"span"},Nje={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":" ","&lrm;":"‎","&rlm;":"‏"},Fje=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,qje=new Set(["white","lime","cyan","red","yellow","magenta","blue","black"]),Uje=new Set(Object.keys(_D));function BD(o){let n="",i=1,r=[],l=[],s;for(let u=0;u<o.text.length;u++){const g=o.text[u];switch(i){case 1:g==="<"?(p(),i=2):n+=g;break;case 2:switch(g){case`
9369
9367
  `:case" ":case" ":c(),i=4;break;case".":c(),i=3;break;case"/":i=5;break;case">":c(),i=1;break;default:!n&&$je.test(g)&&(i=6),n+=g;break}break;case 3:switch(g){case" ":case" ":case`
9370
9368
  `:d(),s&&s.class?.trim(),i=4;break;case".":d();break;case">":d(),s&&s.class?.trim(),i=1;break;default:n+=g}break;case 4:g===">"?(n=n.replace(Mje," "),s?.type==="v"?s.voice=p9(n):s?.type==="lang"&&(s.lang=p9(n)),n="",i=1):n+=g;break;case 5:g===">"&&(n="",s=l.pop(),i=1);break;case 6:if(g===">"){const f=cs(n);f!==null&&f>=o.startTime&&f<=o.endTime&&(n="timestamp",c(),s.time=f),n="",i=1}else n+=g;break}}function c(){if(Uje.has(n)){const u=s;s=Hje(n),u?(l[l.length-1]!==u&&l.push(u),u.children.push(s)):r.push(s)}n="",i=1}function d(){if(s&&n){const u=n.replace("bg_","");qje.has(u)?s[n.startsWith("bg_")?"bgColor":"color"]=u:s.class=s.class?s.class+" "+n:n}n=""}function p(){if(!n)return;const u={type:"text",data:p9(n)};s?s.children.push(u):r.push(u),n=""}return i===1&&p(),r}function Hje(o){return{tagName:_D[o],type:o,children:[]}}function p9(o){return o.replace(Fje,n=>Nje[n]||"'")}function no(o,n,i){o.style.setProperty(`--${n}`,i+"")}function ra(o,n,i=!0){o.setAttribute(`data-${n}`,i===!0?"":i+"")}function W2(o,n){o.setAttribute("data-part",n)}function zje(o){return parseFloat(getComputedStyle(o).lineHeight)||0}function Zje(o){if(c9)throw Error("[media-captions] called `createVTTCueTemplate` on the server - use `renderVTTCueString`");const n=document.createElement("template");return n.innerHTML=u9(o),{cue:o,content:n.content}}function u9(o,n=0){return g9(BD(o),n)}function g9(o,n=0){let i,r="";for(const l of o)if(l.type==="text")r+=l.data;else{const s=l.type==="timestamp";i={},i.class=l.class,i.title=l.type==="v"&&l.voice,i.lang=l.type==="lang"&&l.lang,i["data-part"]=l.type==="v"&&"voice",s&&(i["data-part"]="timed",i["data-time"]=l.time,i["data-future"]=l.time>n,i["data-past"]=l.time<n),i.style=`${l.color?`color: ${l.color};`:""}${l.bgColor?`background-color: ${l.bgColor};`:""}`;const c=Object.entries(i).filter(d=>d[1]).map(d=>`${d[0]}="${d[1]===!0?"":d[1]}"`).join(" ");r+=`<${l.tagName}${c?" "+c:""}>${g9(l.children)}</${l.tagName}>`}return r}function PD(o,n){if(!c9)for(const i of o.querySelectorAll('[data-part="timed"]')){const r=Number(i.getAttribute("data-time"));Number.isNaN(r)||(r>n?ra(i,"future"):i.removeAttribute("data-future"),r<n?ra(i,"past"):i.removeAttribute("data-past"))}}function Gje(o,n){let i=null,r;function l(){s(),o(...r),r=void 0}function s(){clearTimeout(i),i=null}function c(){r=[].slice.call(arguments),s(),i=setTimeout(l,n)}return c}const aa=Symbol(0);function f9(o){return o instanceof HTMLElement?{top:o.offsetTop,width:o.clientWidth,height:o.clientHeight,left:o.offsetLeft,right:o.offsetLeft+o.clientWidth,bottom:o.offsetTop+o.clientHeight}:{...o}}function Y2(o,n,i){switch(n){case"+x":o.left+=i,o.right+=i;break;case"-x":o.left-=i,o.right-=i;break;case"+y":o.top+=i,o.bottom+=i;break;case"-y":o.top-=i,o.bottom-=i;break}}function Kje(o,n){return o.left<=n.right&&o.right>=n.left&&o.top<=n.bottom&&o.bottom>=n.top}function Wje(o,n){for(let i=0;i<n.length;i++)if(Kje(o,n[i]))return n[i];return null}function $D(o,n){return n.top>=0&&n.bottom<=o.height&&n.left>=0&&n.right<=o.width}function Yje(o,n,i){switch(i){case"+x":return n.left<0;case"-x":return n.right>o.width;case"+y":return n.top<0;case"-y":return n.bottom>o.height}}function Xje(o,n){const i=Math.max(0,Math.min(o.width,n.right)-Math.max(0,n.left)),r=Math.max(0,Math.min(o.height,n.bottom)-Math.max(0,n.top));return i*r/(o.height*o.width)}function h9(o,n){return{top:n.top/o.height,left:n.left/o.width,right:(o.width-n.right)/o.width,bottom:(o.height-n.bottom)/o.height}}function MD(o,n){return n.top=n.top*o.height,n.left=n.left*o.width,n.right=o.width-n.right*o.width,n.bottom=o.height-n.bottom*o.height,n}const ND=["top","left","right","bottom"];function FD(o,n,i,r){const l=h9(n,i);for(const s of ND)no(o,`${r}-${s}`,l[s]*100+"%")}function qD(o,n,i,r){let l=1,s,c={...n};for(let d=0;d<r.length;d++){for(;Yje(o,n,r[d])||$D(o,n)&&Wje(n,i);)Y2(n,r[d],1);if($D(o,n))return n;const p=Xje(o,n);l>p&&(s={...n},l=p),n={...c}}return s||c}const Gd=Symbol(0);function Qje(o,n,i,r){let l=i.firstElementChild,s=exe(n),c,d=[];if(i[aa]||(i[aa]=Jje(o,i)),c=MD(o,{...i[aa]}),i[Gd])d=[i[Gd]==="top"?"+y":"-y","+x","-x"];else if(n.snapToLines){let p;switch(n.vertical){case"":d=["+y","-y"],p="height";break;case"rl":d=["+x","-x"],p="width";break;case"lr":d=["-x","+x"],p="width";break}let u=zje(l),g=u*Math.round(s),f=o[p]+u,h=d[0];Math.abs(g)>f&&(g=g<0?-1:1,g*=Math.ceil(f/u)*u),s<0&&(g+=n.vertical===""?o.height:o.width,d=d.reverse()),Y2(c,h,g)}else{const p=n.vertical==="",u=p?"+y":"+x",g=p?c.height:c.width;Y2(c,u,(p?o.height:o.width)*s/100),Y2(c,u,n.lineAlign==="center"?g/2:n.lineAlign==="end"?g:0),d=p?["-y","+y","-x","+x"]:["-x","+x","-y","+y"]}return c=qD(o,c,r,d),FD(i,o,c,"cue"),c}function Jje(o,n){const i=f9(n),r=Vje(n);if(n[Gd]=!1,r.top&&(i.top=r.top,i.bottom=r.top+i.height,n[Gd]="top"),r.bottom){const l=o.height-r.bottom;i.top=l-i.height,i.bottom=l,n[Gd]="bottom"}return r.left&&(i.left=r.left),r.right&&(i.right=o.width-r.right),h9(o,i)}function Vje(o){const n={};for(const i of ND)n[i]=parseFloat(o.style.getPropertyValue(`--cue-${i}`));return n}function exe(o){return o.line==="auto"?o.snapToLines?-1:100:o.line}function txe(o){if(o.position==="auto")switch(o.align){case"start":case"left":return 0;case"right":case"end":return 100;default:return 50}return o.position}function nxe(o,n){if(o.positionAlign==="auto")switch(o.align){case"start":return n==="ltr"?"line-left":"line-right";case"end":return n==="ltr"?"line-right":"line-left";case"center":return"center";default:return`line-${o.align}`}return o.positionAlign}const oxe=["-y","+y","-x","+x"];function ixe(o,n,i,r){let l=Array.from(i.querySelectorAll('[data-part="cue-display"]')),s=0,c=Math.max(0,l.length-n.lines);for(let p=l.length-1;p>=c;p--)s+=l[p].offsetHeight;no(i,"region-height",s+"px"),i[aa]||(i[aa]=h9(o,f9(i)));let d={...i[aa]};return d=MD(o,d),d.width=i.clientWidth,d.height=s,d.right=d.left+d.width,d.bottom=d.top+s,d=qD(o,d,r,oxe),FD(i,o,d,"region"),d}class rxe{overlay;z;A=0;C="ltr";B=[];D=!1;E;j=new Map;l=new Map;get dir(){return this.C}set dir(n){this.C=n,ra(this.overlay,"dir",n)}get currentTime(){return this.A}set currentTime(n){this.A=n,this.update()}constructor(n,i){this.overlay=n,this.dir=i?.dir??"ltr",n.setAttribute("translate","yes"),n.setAttribute("aria-live","off"),n.setAttribute("aria-atomic","true"),W2(n,"captions"),this.G(),this.E=new ResizeObserver(this.I.bind(this)),this.E.observe(n)}changeTrack({regions:n,cues:i}){this.reset(),this.J(n);for(const r of i)this.l.set(r,null);this.update()}addCue(n){this.l.set(n,null),this.update()}removeCue(n){this.l.delete(n),this.update()}update(n=!1){this.H(n)}reset(){this.l.clear(),this.j.clear(),this.B=[],this.overlay.textContent=""}destroy(){this.reset(),this.E.disconnect()}I(){this.D=!0,this.K()}K=Gje(()=>{this.D=!1,this.G();for(const n of this.j.values())n[aa]=null;for(const n of this.l.values())n&&(n[aa]=null);this.H(!0)},50);G(){this.z=f9(this.overlay),no(this.overlay,"overlay-width",this.z.width+"px"),no(this.overlay,"overlay-height",this.z.height+"px")}H(n=!1){if(!this.l.size||this.D)return;let i,r=[...this.l.keys()].filter(s=>this.A>=s.startTime&&this.A<=s.endTime).sort((s,c)=>s.startTime!==c.startTime?s.startTime-c.startTime:s.endTime-c.endTime),l=r.map(s=>s.region);for(let s=0;s<this.B.length;s++){if(i=this.B[s],r[s]===i)continue;if(i.region&&!l.includes(i.region)){const d=this.j.get(i.region.id);d&&(d.removeAttribute("data-active"),n=!0)}const c=this.l.get(i);c&&(c.remove(),n=!0)}for(let s=0;s<r.length;s++){i=r[s];let c=this.l.get(i);c||this.l.set(i,c=this.L(i));const d=this.F(i)&&this.j.get(i.region.id);d&&!d.hasAttribute("data-active")&&(requestAnimationFrame(()=>ra(d,"active")),n=!0),c.isConnected||((d||this.overlay).append(c),n=!0)}if(n){const s=[],c=new Set;for(let d=r.length-1;d>=0;d--){if(i=r[d],c.has(i.region||i))continue;const p=this.F(i),u=p?this.j.get(i.region.id):this.l.get(i);p?s.push(ixe(this.z,i.region,u,s)):s.push(Qje(this.z,i,u,s)),c.add(p?i.region:i)}}PD(this.overlay,this.A),this.B=r}J(n){if(n)for(const i of n){const r=this.M(i);this.j.set(i.id,r),this.overlay.append(r)}}M(n){const i=document.createElement("div");return W2(i,"region"),ra(i,"id",n.id),ra(i,"scroll",n.scroll),no(i,"region-width",n.width+"%"),no(i,"region-anchor-x",n.regionAnchorX),no(i,"region-anchor-y",n.regionAnchorY),no(i,"region-viewport-anchor-x",n.viewportAnchorX),no(i,"region-viewport-anchor-y",n.viewportAnchorY),no(i,"region-lines",n.lines),i}L(n){const i=document.createElement("div"),r=txe(n),l=nxe(n,this.C);if(W2(i,"cue-display"),n.vertical!==""&&ra(i,"vertical"),no(i,"cue-text-align",n.align),n.style)for(const c of Object.keys(n.style))i.style.setProperty(c,n.style[c]);if(this.F(n))no(i,"cue-offset",`${r-(l==="line-right"?100:l==="center"?50:0)}%`);else if(no(i,"cue-writing-mode",n.vertical===""?"horizontal-tb":n.vertical==="lr"?"vertical-lr":"vertical-rl"),!n.style?.["--cue-width"]){let c=r;l==="line-left"?c=100-r:l==="center"&&r<=50?c=r*2:l==="center"&&r>50&&(c=(100-r)*2);const d=n.size<c?n.size:c;n.vertical===""?no(i,"cue-width",d+"%"):no(i,"cue-height",d+"%")}const s=document.createElement("div");return W2(s,"cue"),n.id&&ra(s,"id",n.id),s.innerHTML=u9(n),i.append(s),i}F(n){return n.region&&n.size===100&&n.vertical===""&&n.line==="auto"}}const X2=Object.freeze(Object.defineProperty({__proto__:null,CaptionsRenderer:rxe,ParseError:Xi,ParseErrorCode:Yi,TextCue:AD,VTTCue:K2,VTTRegion:OD,createVTTCueTemplate:Zje,parseByteStream:ED,parseResponse:yje,parseText:bje,parseTextStream:l9,parseVTTTimestamp:cs,renderVTTCueString:u9,renderVTTTokensString:g9,tokenizeVTTCue:BD,updateTimedVTTCueNodes:PD},Symbol.toStringTag,{value:"Module"}));class Kd{#e;#t;constructor(n){this.#t=n}start(){Tn(this.#e)&&this.#n()}stop(){gn(this.#e)&&window.cancelAnimationFrame(this.#e),this.#e=void 0}#n(){this.#e=window.requestAnimationFrame(()=>{Tn(this.#e)||(this.#t(),this.#n())})}}let Q2=null,J2=[],V2=[];function m9(){return Q2??=new AudioContext}function axe(){const o=m9(),n=o.createGain();return n.connect(o.destination),J2.push(n),n}function sxe(o,n){const i=m9(),r=i.createMediaElementSource(o);return n&&r.connect(n),V2.push(r),r}function lxe(o){const n=J2.indexOf(o);n!==-1&&(J2.splice(n,1),o.disconnect(),UD())}function cxe(o){const n=V2.indexOf(o);n!==-1&&(V2.splice(n,1),o.disconnect(),UD())}function UD(){Q2&&J2.length===0&&V2.length===0&&Q2.close().then(()=>{Q2=null})}class dxe{#e;#t;#n=null;#o=null;get currentGain(){return this.#n?.gain?.value??null}get supported(){return!0}constructor(n,i){this.#e=n,this.#t=i}setGain(n){const i=this.currentGain;if(n!==this.currentGain){if(n===1&&i!==1){this.removeGain();return}this.#n||(this.#n=axe(),this.#o&&this.#o.connect(this.#n)),this.#o||(this.#o=sxe(this.#e,this.#n)),this.#n.gain.value=n,this.#t(n)}}removeGain(){this.#n&&(this.#o&&this.#o.connect(m9().destination),this.#r(),this.#t(null))}destroy(){this.#i(),this.#r()}#i(){if(this.#o)try{cxe(this.#o)}catch{}finally{this.#o=null}}#r(){if(this.#n)try{lxe(this.#n)}catch{}finally{this.#n=null}}}const pxe=["focus","blur","visibilitychange","pageshow","pagehide"];class uxe{#e=Ge(HD());#t=Ge(document.visibilityState);#n;connect(){const n=new xt(window),i=this.#o.bind(this);for(const r of pxe)n.add(r,i);f2&&n.add("beforeunload",r=>{this.#n=setTimeout(()=>{r.defaultPrevented||r.returnValue.length>0||(this.#e.set("hidden"),this.#t.set("hidden"))},0)})}get pageState(){return this.#e()}get visibility(){return this.#t()}#o(n){f2&&window.clearTimeout(this.#n),(n.type!=="blur"||this.#e()==="active")&&(this.#e.set(HD(n)),this.#t.set(document.visibilityState=="hidden"?"hidden":"visible"))}}function HD(o){return o?.type==="blur"||document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}class gxe{#e;#t;#n=!1;#o=!1;#i=!1;#r=new Kd(this.#p.bind(this));#a=new uxe;#l;get#s(){return this.#e.media}constructor(n,i){this.#e=n,this.#t=i,this.#l=new xt(n.media),this.#g(),this.#a.connect(),ne(this.#L.bind(this)),it(this.#c.bind(this))}#c(){this.#o=!1,this.#i=!1,this.#r.stop(),this.#l.abort(),this.#m?.clear()}#d=0;#u=-1;#p(){const n=this.#s.currentTime;!(f2&&n-this.#u<.35)&&this.#d!==n&&(this.#v(n),this.#d=n)}#g(){this.#f("loadstart",this.#k),this.#f("abort",this.#b),this.#f("emptied",this.#x),this.#f("error",this.#z),this.#f("volumechange",this.#M)}#h(){this.#o||(this.#f("loadeddata",this.#I),this.#f("loadedmetadata",this.#S),this.#f("canplay",this.#O),this.#f("canplaythrough",this.#D),this.#f("durationchange",this.#j),this.#f("play",this.#A),this.#f("progress",this.#q),this.#f("stalled",this.#E),this.#f("suspend",this.#U),this.#f("ratechange",this.#H),this.#o=!0)}#y(){this.#i||(this.#f("pause",this.#R),this.#f("playing",this.#_),this.#f("seeked",this.#N),this.#f("seeking",this.#F),this.#f("ended",this.#P),this.#f("waiting",this.#B),this.#i=!0)}#m=void 0;#w=void 0;#f(n,i){this.#l.add(n,i.bind(this))}#C(n){}#v(n,i){const r=Math.min(n,this.#t.$state.seekableEnd());this.#t.notify("time-change",r,i)}#k(n){if(this.#s.networkState===3){this.#b(n);return}this.#h(),this.#t.notify("load-start",void 0,n)}#b(n){this.#t.notify("abort",void 0,n)}#x(){this.#t.notify("emptied",void 0,event)}#I(n){this.#t.notify("loaded-data",void 0,n)}#S(n){this.#d=0,this.#u=-1,this.#y(),this.#t.notify("loaded-metadata",void 0,n),(u2||f2&&rl(this.#t.$state.source()))&&this.#t.delegate.ready(this.#T(),n)}#T(){return{provider:je(this.#t.$provider),duration:this.#s.duration,buffered:this.#s.buffered,seekable:this.#s.seekable}}#A(n){this.#t.$state.canPlay&&this.#t.notify("play",void 0,n)}#R(n){this.#s.readyState===1&&!this.#n||(this.#n=!1,this.#r.stop(),this.#t.notify("pause",void 0,n))}#O(n){this.#t.delegate.ready(this.#T(),n)}#D(n){this.#t.$state.started()||this.#t.notify("can-play-through",this.#T(),n)}#_(n){this.#s.paused||(this.#n=!1,this.#t.notify("playing",void 0,n),this.#r.start())}#E(n){this.#t.notify("stalled",void 0,n),this.#s.readyState<3&&(this.#n=!0,this.#t.notify("waiting",void 0,n))}#B(n){this.#s.readyState<3&&(this.#n=!0,this.#t.notify("waiting",void 0,n))}#P(n){this.#r.stop(),this.#v(this.#s.duration,n),this.#t.notify("end",void 0,n),this.#t.$state.loop()&&Gbe(this.#s.controls)&&(this.#s.controls=!1)}#L(){const n=this.#t.$state.paused(),i=this.#a.visibility==="hidden";(n||i)&&vt(this.#s,"timeupdate",this.#$.bind(this))}#$(n){this.#v(this.#s.currentTime,n)}#j(n){this.#t.$state.ended()&&this.#v(this.#s.duration,n),this.#t.notify("duration-change",this.#s.duration,n)}#M(n){const i={volume:this.#s.volume,muted:this.#s.muted};this.#t.notify("volume-change",i,n)}#N(n){this.#u=this.#s.currentTime,this.#v(this.#s.currentTime,n),this.#t.notify("seeked",this.#s.currentTime,n),Math.trunc(this.#s.currentTime)===Math.trunc(this.#s.duration)&&Nm(this.#s.duration)>Nm(this.#s.currentTime)&&(this.#v(this.#s.duration,n),this.#s.ended||this.#t.player.dispatch(new st("media-play-request",{trigger:n})))}#F(n){this.#t.notify("seeking",this.#s.currentTime,n)}#q(n){const i={buffered:this.#s.buffered,seekable:this.#s.seekable};this.#t.notify("progress",i,n)}#U(n){this.#t.notify("suspend",void 0,n)}#H(n){this.#t.notify("rate-change",this.#s.playbackRate,n)}#z(n){const i=this.#s.error;if(!i)return;const r={message:i.message,code:i.code,mediaError:i};this.#t.notify("error",r,n)}}class fxe{#e;#t;get#n(){return this.#e.media.audioTracks}constructor(n,i){this.#e=n,this.#t=i,this.#n.onaddtrack=this.#o.bind(this),this.#n.onremovetrack=this.#i.bind(this),this.#n.onchange=this.#r.bind(this),vt(this.#t.audioTracks,"change",this.#l.bind(this))}#o(n){const i=n.track;if(i.label==="")return;const r=i.id.toString()||`native-audio-${this.#t.audioTracks.length}`,l={id:r,label:i.label,language:i.language,kind:i.kind,selected:!1};this.#t.audioTracks[Xe.add](l,n),i.enabled&&(l.selected=!0)}#i(n){const i=this.#t.audioTracks.getById(n.track.id);i&&this.#t.audioTracks[Xe.remove](i,n)}#r(n){let i=this.#a();if(!i)return;const r=this.#t.audioTracks.getById(i.id);r&&this.#t.audioTracks[Xe.select](r,!0,n)}#a(){return Array.from(this.#n).find(n=>n.enabled)}#l(n){const{current:i}=n.detail;if(!i)return;const r=this.#n.getTrackById(i.id);if(r){const l=this.#a();l&&(l.enabled=!1),r.enabled=!0}}}class zD{constructor(n,i){this.media=n,this.ctx=i,this.audioGain=new dxe(n,r=>{this.ctx.notify("audio-gain-change",r)})}scope=Yr();currentSrc=null;audioGain;setup(){new gxe(this,this.ctx),"audioTracks"in this.media&&new fxe(this,this.ctx),it(()=>{this.audioGain.destroy(),this.media.srcObject=null,this.media.removeAttribute("src");for(const n of this.media.querySelectorAll("source"))n.remove();this.media.load()})}get type(){return""}setPlaybackRate(n){this.media.playbackRate=n}async play(){return this.media.play()}async pause(){return this.media.pause()}setMuted(n){this.media.muted=n}setVolume(n){this.media.volume=n}setCurrentTime(n){this.media.currentTime=n}setPlaysInline(n){Ae(this.media,"playsinline",n)}async loadSource({src:n,type:i},r){this.media.preload=r||"",F5e(n)?(this.removeSource(),this.media.srcObject=n):(this.media.srcObject=null,$e(n)?i!=="?"?this.appendSource({src:n,type:i}):(this.removeSource(),this.media.src=this.#e(n)):(this.removeSource(),this.media.src=window.URL.createObjectURL(n))),this.media.load(),this.currentSrc={src:n,type:i}}appendSource(n,i){const r=this.media.querySelector("source[data-vds]"),l=r??document.createElement("source");Ae(l,"src",this.#e(n.src)),Ae(l,"type",n.type!=="?"?n.type:i),Ae(l,"data-vds",""),r||this.media.append(l)}removeSource(){this.media.querySelector("source[data-vds]")?.remove()}#e(n){const{clipStartTime:i,clipEndTime:r}=this.ctx.$state,l=i(),s=r();return l>0&&s>0?`${n}#t=${l},${s}`:l>0?`${n}#t=${l}`:s>0?`${n}#t=0,${s}`:n}}class hxe{#e;#t;#n;#o=Ge(!1);get supported(){return this.#o()}constructor(n,i){this.#e=n,this.#t=i,this.#i()}#i(){!this.#e?.remote||!this.canPrompt||(this.#e.remote.watchAvailability(n=>{this.#o.set(n)}).catch(()=>{this.#o.set(!1)}),ne(this.#r.bind(this)))}#r(){if(!this.#o())return;const n=["connecting","connect","disconnect"],i=this.#a.bind(this);i(),vt(this.#e,"playing",i);const r=new xt(this.#e.remote);for(const l of n)r.add(l,i)}async prompt(){if(!this.supported)throw Error("Not supported on this platform.");return this.type==="airplay"&&this.#e.webkitShowPlaybackTargetPicker?this.#e.webkitShowPlaybackTargetPicker():this.#e.remote.prompt()}#a(n){const i=this.#e.remote.state;if(i===this.#n)return;const r={type:this.type,state:i};this.#t.notify("remote-playback-change",r,n),this.#n=i}}class ZD extends hxe{type="airplay";get canPrompt(){return"WebKitPlaybackTargetAvailabilityEvent"in window}}class mxe extends zD{$$PROVIDER_TYPE="AUDIO";get type(){return"audio"}airPlay;constructor(n,i){super(n,i),Nn(()=>{this.airPlay=new ZD(this.media,i)},this.scope)}setup(){super.setup(),this.type==="audio"&&this.ctx.notify("provider-setup",this)}get audio(){return this.media}}const bxe=Object.freeze(Object.defineProperty({__proto__:null,AudioProvider:mxe},Symbol.toStringTag,{value:"Module"}));class yxe{#e;#t;constructor(n,i){this.#e=n,this.#t=i,n.textTracks.onaddtrack=this.#n.bind(this),it(this.#o.bind(this))}#n(n){const i=n.track;if(!i||vxe(this.#e,i))return;const r=new Vr({id:i.id,kind:i.kind,label:i.label??"",language:i.language,type:"vtt"});r[nt.native]={track:i},r[nt.readyState]=2,r[nt.nativeHLS]=!0;let l=0;const s=c=>{if(i.cues)for(let d=l;d<i.cues.length;d++)r.addCue(i.cues[d],c),l++};s(n),i.oncuechange=s,this.#t.textTracks.add(r,n),r.setMode(i.mode,n)}#o(){this.#e.textTracks.onaddtrack=null;for(const n of this.#t.textTracks){const i=n[nt.native]?.track;i?.oncuechange&&(i.oncuechange=null)}}}function vxe(o,n){return Array.from(o.children).find(i=>i.track===n)}class Cxe{#e;#t;constructor(n,i){this.#e=n,this.#t=i,new xt(n).add("enterpictureinpicture",this.#n.bind(this)).add("leavepictureinpicture",this.#o.bind(this))}get active(){return document.pictureInPictureElement===this.#e}get supported(){return RI(this.#e)}async enter(){return this.#e.requestPictureInPicture()}exit(){return document.exitPictureInPicture()}#n(n){this.#i(!0,n)}#o(n){this.#i(!1,n)}#i=(n,i)=>{this.#t.notify("picture-in-picture-change",n,i)}}class wxe{#e;#t;#n="inline";get mode(){return this.#n}constructor(n,i){this.#e=n,this.#t=i,vt(n,"webkitpresentationmodechanged",this.#o.bind(this))}get supported(){return _I(this.#e)}async setPresentationMode(n){this.#n!==n&&this.#e.webkitSetPresentationMode(n)}#o(n){const i=this.#n;this.#n=this.#e.webkitPresentationMode,this.#t.player?.dispatch(new st("video-presentation-change",{detail:this.#n,trigger:n})),["fullscreen","picture-in-picture"].forEach(r=>{(this.#n===r||i===r)&&this.#t.notify(`${r}-change`,this.#n===r,n)})}}class kxe{#e;get active(){return this.#e.mode==="fullscreen"}get supported(){return this.#e.supported}constructor(n){this.#e=n}async enter(){this.#e.setPresentationMode("fullscreen")}async exit(){this.#e.setPresentationMode("inline")}}class jxe{#e;get active(){return this.#e.mode==="picture-in-picture"}get supported(){return this.#e.supported}constructor(n){this.#e=n}async enter(){this.#e.setPresentationMode("picture-in-picture")}async exit(){this.#e.setPresentationMode("inline")}}class b9 extends zD{$$PROVIDER_TYPE="VIDEO";get type(){return"video"}airPlay;fullscreen;pictureInPicture;constructor(n,i){super(n,i),Nn(()=>{if(this.airPlay=new ZD(n,i),_I(n)){const r=new wxe(n,i);this.fullscreen=new kxe(r),this.pictureInPicture=new jxe(r)}else RI(n)&&(this.pictureInPicture=new Cxe(n,i))},this.scope)}setup(){super.setup(),LI(this.video)&&new yxe(this.video,this.ctx),this.ctx.textRenderers.attachVideo(this.video),it(()=>{this.ctx.textRenderers.attachVideo(null)}),this.type==="video"&&this.ctx.notify("provider-setup",this)}get video(){return this.media}}const xxe=Object.freeze(Object.defineProperty({__proto__:null,VideoProvider:b9},Symbol.toStringTag,{value:"Module"})),Ixe=o=>l2(o);class Sxe{#e;#t;#n=null;#o=null;config={};#i=new Set;get instance(){return this.#n}constructor(n,i){this.#e=n,this.#t=i}setup(n){const{streamType:i}=this.#t.$state,r=je(i).includes("live"),l=je(i).includes("ll-");this.#n=new n({lowLatencyMode:l,backBufferLength:l?4:r?8:void 0,renderTextTracksNatively:!1,...this.config});const s=this.#s.bind(this);for(const c of Object.values(n.Events))this.#n.on(c,s);this.#n.on(n.Events.ERROR,this.#y.bind(this));for(const c of this.#i)c(this.#n);this.#t.player.dispatch("hls-instance",{detail:this.#n}),this.#n.attachMedia(this.#e),this.#n.on(n.Events.AUDIO_TRACK_SWITCHED,this.#u.bind(this)),this.#n.on(n.Events.LEVEL_SWITCHED,this.#p.bind(this)),this.#n.on(n.Events.LEVEL_LOADED,this.#h.bind(this)),this.#n.on(n.Events.LEVEL_UPDATED,this.#g.bind(this)),this.#n.on(n.Events.NON_NATIVE_TEXT_TRACKS_FOUND,this.#c.bind(this)),this.#n.on(n.Events.CUES_PARSED,this.#d.bind(this)),this.#t.qualities[An.enableAuto]=this.#w.bind(this),vt(this.#t.qualities,"change",this.#f.bind(this)),vt(this.#t.audioTracks,"change",this.#C.bind(this)),this.#o=ne(this.#a.bind(this))}#r(n,i){return new st(Ixe(n),{detail:i})}#a(){if(!this.#t.$state.live())return;const n=new Kd(this.#l.bind(this));return n.start(),n.stop.bind(n)}#l(){this.#t.$state.liveSyncPosition.set(this.#n?.liveSyncPosition??1/0)}#s(n,i){this.#t.player?.dispatch(this.#r(n,i))}#c(n,i){const r=this.#r(n,i);let l=-1;for(let s=0;s<i.tracks.length;s++){const c=i.tracks[s],d=c.subtitleTrack??c.closedCaptions,p=new Vr({id:`hls-${c.kind}-${s}`,src:d?.url,label:c.label,language:d?.lang,kind:c.kind,default:c.default});p[nt.readyState]=2,p[nt.onModeChange]=()=>{p.mode==="showing"?(this.#n.subtitleTrack=s,l=s):l===s&&(this.#n.subtitleTrack=-1,l=-1)},this.#t.textTracks.add(p,r)}}#d(n,i){const r=this.#n?.subtitleTrack,l=this.#t.textTracks.getById(`hls-${i.type}-${r}`);if(!l)return;const s=this.#r(n,i);for(const c of i.cues)c.positionAlign="auto",l.addCue(c,s)}#u(n,i){const r=this.#t.audioTracks[i.id];if(r){const l=this.#r(n,i);this.#t.audioTracks[Xe.select](r,!0,l)}}#p(n,i){const r=this.#t.qualities[i.level];if(r){const l=this.#r(n,i);this.#t.qualities[Xe.select](r,!0,l)}}#g(n,i){i.details.totalduration>0&&this.#t.$state.inferredLiveDVRWindow.set(i.details.totalduration)}#h(n,i){if(this.#t.$state.canPlay())return;const{type:r,live:l,totalduration:s,targetduration:c}=i.details,d=this.#r(n,i);this.#t.notify("stream-type-change",l?r==="EVENT"&&Number.isFinite(s)&&c>=10?"live:dvr":"live":"on-demand",d),this.#t.notify("duration-change",s,d);const p=this.#n.media;this.#n.currentLevel===-1&&this.#t.qualities[An.setAuto](!0,d);for(const u of this.#n.audioTracks){const g={id:u.id.toString(),label:u.name,language:u.lang||"",kind:"main"};this.#t.audioTracks[Xe.add](g,d)}for(const u of this.#n.levels){const g={id:u.id?.toString()??u.height+"p",width:u.width,height:u.height,codec:u.codecSet,bitrate:u.bitrate};this.#t.qualities[Xe.add](g,d)}p.dispatchEvent(new st("canplay",{trigger:d}))}#y(n,i){i.fatal&&(i.type==="mediaError"?this.#n?.recoverMediaError():this.#m(i.error))}#m(n){this.#t.notify("error",{message:n.message,code:1,error:n})}#w(){this.#n&&(this.#n.currentLevel=-1)}#f(){const{qualities:n}=this.#t;!this.#n||n.auto||(this.#n[n.switch+"Level"]=n.selectedIndex,g2&&(this.#e.currentTime=this.#e.currentTime))}#C(){const{audioTracks:n}=this.#t;this.#n&&this.#n.audioTrack!==n.selectedIndex&&(this.#n.audioTrack=n.selectedIndex)}onInstance(n){return this.#i.add(n),()=>this.#i.delete(n)}loadSource(n){$e(n.src)&&this.#n?.loadSource(n.src)}destroy(){this.#n?.destroy(),this.#n=null,this.#o?.(),this.#o=null}}class Txe{#e;#t;#n;constructor(n,i,r){this.#e=n,this.#t=i,this.#n=r,this.#o()}async#o(){const n={onLoadStart:this.#i.bind(this),onLoaded:this.#r.bind(this),onLoadError:this.#a.bind(this)};let i=await Axe(this.#e,n);if(Tn(i)&&!$e(this.#e)&&(i=await Exe(this.#e,n)),!i)return null;if(!i.isSupported()){const r="[vidstack] `hls.js` is not supported in this environment";return this.#t.player.dispatch(new st("hls-unsupported")),this.#t.notify("error",{message:r,code:4}),null}return i}#i(){this.#t.player.dispatch(new st("hls-lib-load-start"))}#r(n){this.#t.player.dispatch(new st("hls-lib-loaded",{detail:n})),this.#n(n)}#a(n){const i=kd(n);this.#t.player.dispatch(new st("hls-lib-load-error",{detail:i})),this.#t.notify("error",{message:i.message,code:4,error:i})}}async function Exe(o,n={}){if(!Tn(o)){if(n.onLoadStart?.(),o.prototype&&o.prototype!==Function)return n.onLoaded?.(o),o;try{const i=(await o())?.default;if(i&&i.isSupported)n.onLoaded?.(i);else throw Error("");return i}catch(i){n.onLoadError?.(i)}}}async function Axe(o,n={}){if($e(o)){n.onLoadStart?.();try{if(await Lm(o),!ui(window.Hls))throw Error("");const i=window.Hls;return n.onLoaded?.(i),i}catch(i){n.onLoadError?.(i)}}}const Oxe="https://cdn.jsdelivr.net";class Dxe extends b9{$$PROVIDER_TYPE="HLS";#e=null;#t=new Sxe(this.video,this.ctx);get ctor(){return this.#e}get instance(){return this.#t.instance}static supported=h2();get type(){return"hls"}get canLiveSync(){return!0}#n=`${Oxe}/npm/hls.js@^1.5.0/dist/hls.min.js`;get config(){return this.#t.config}set config(n){this.#t.config=n}get library(){return this.#n}set library(n){this.#n=n}preconnect(){$e(this.#n)&&mr(this.#n)}setup(){super.setup(),new Txe(this.#n,this.ctx,n=>{this.#e=n,this.#t.setup(n),this.ctx.notify("provider-setup",this);const i=je(this.ctx.$state.source);i&&this.loadSource(i)})}async loadSource(n,i){if(!$e(n.src)){this.removeSource();return}this.media.preload=i||"",this.appendSource(n,"application/x-mpegurl"),this.#t.loadSource(n),this.currentSrc=n}onInstance(n){const i=this.#t.instance;return i&&n(i),this.#t.onInstance(n)}destroy(){this.#t.destroy()}}const Lxe=Object.freeze(Object.defineProperty({__proto__:null,HLSProvider:Dxe},Symbol.toStringTag,{value:"Module"}));function GD(o){try{return new Intl.DisplayNames(navigator.languages,{type:"language"}).of(o)??null}catch{return null}}const Rxe=o=>`dash-${l2(o)}`;class _xe{#e;#t;#n=null;#o=new Set;#i=null;config={};get instance(){return this.#n}constructor(n,i){this.#e=n,this.#t=i}setup(n){this.#n=n().create();const i=this.#s.bind(this);for(const r of Object.values(n.events))this.#n.on(r,i);this.#n.on(n.events.ERROR,this.#m.bind(this));for(const r of this.#o)r(this.#n);this.#t.player.dispatch("dash-instance",{detail:this.#n}),this.#n.initialize(this.#e,void 0,!1),this.#n.updateSettings({streaming:{text:{defaultEnabled:!1,dispatchForManualRendering:!0},buffer:{fastSwitchEnabled:!0}},...this.config}),this.#n.on(n.events.FRAGMENT_LOADING_STARTED,this.#w.bind(this)),this.#n.on(n.events.FRAGMENT_LOADING_COMPLETED,this.#f.bind(this)),this.#n.on(n.events.MANIFEST_LOADED,this.#y.bind(this)),this.#n.on(n.events.QUALITY_CHANGE_RENDERED,this.#h.bind(this)),this.#n.on(n.events.TEXT_TRACKS_ADDED,this.#p.bind(this)),this.#n.on(n.events.TRACK_CHANGE_RENDERED,this.#g.bind(this)),this.#t.qualities[An.enableAuto]=this.#x.bind(this),vt(this.#t.qualities,"change",this.#S.bind(this)),vt(this.#t.audioTracks,"change",this.#T.bind(this)),this.#i=ne(this.#a.bind(this))}#r(n){return new st(Rxe(n.type),{detail:n})}#a(){if(!this.#t.$state.live())return;const n=new Kd(this.#l.bind(this));return n.start(),n.stop.bind(n)}#l(){if(!this.#n)return;const n=this.#n.duration()-this.#n.time();this.#t.$state.liveSyncPosition.set(isNaN(n)?1/0:n)}#s(n){this.#t.player?.dispatch(this.#r(n))}#c=null;#d={};#u(n){const i=this.#c?.[nt.native],r=(i?.track).cues;if(!i||!r)return;const l=this.#c.id,s=this.#d[l]??0,c=this.#r(n);for(let d=s;d<r.length;d++){const p=r[d];p.positionAlign||(p.positionAlign="auto"),this.#c.addCue(p,c)}this.#d[l]=r.length}#p(n){if(!this.#n)return;const i=n.tracks,r=[...this.#e.textTracks].filter(s=>"manualMode"in s),l=this.#r(n);for(let s=0;s<r.length;s++){const c=i[s],d=r[s],p=`dash-${c.kind}-${s}`,u=new Vr({id:p,label:c?.label??c.labels.find(g=>g.text)?.text??(c?.lang&&GD(c.lang))??c?.lang??void 0,language:c.lang??void 0,kind:c.kind,default:c.defaultTrack});u[nt.native]={managed:!0,track:d},u[nt.readyState]=2,u[nt.onModeChange]=()=>{this.#n&&(u.mode==="showing"?(this.#n.setTextTrack(s),this.#c=u):(this.#n.setTextTrack(-1),this.#c=null))},this.#t.textTracks.add(u,l)}}#g(n){const{mediaType:i,newMediaInfo:r}=n;if(i==="audio"){const l=this.#t.audioTracks.getById(`dash-audio-${r.index}`);if(l){const s=this.#r(n);this.#t.audioTracks[Xe.select](l,!0,s)}}}#h(n){if(n.mediaType!=="video")return;const i=this.#t.qualities[n.newQuality];if(i){const r=this.#r(n);this.#t.qualities[Xe.select](i,!0,r)}}#y(n){if(this.#t.$state.canPlay()||!this.#n)return;const{type:i,mediaPresentationDuration:r}=n.data,l=this.#r(n);this.#t.notify("stream-type-change",i!=="static"?"live":"on-demand",l),this.#t.notify("duration-change",r,l),this.#t.qualities[An.setAuto](!0,l);const s=this.#n.getVideoElement(),c=this.#n.getTracksForTypeFromManifest("video",n.data),d=[...new Set(c.map(f=>f.mimeType))].find(f=>f&&DI(s,f)),p=c.filter(f=>d===f.mimeType)[0];let u=this.#n.getTracksForTypeFromManifest("audio",n.data);const g=[...new Set(u.map(f=>f.mimeType))].find(f=>f&&OI(s,f));if(u=u.filter(f=>g===f.mimeType),p.bitrateList.forEach((f,h)=>{const m={id:f.id?.toString()??`dash-bitrate-${h}`,width:f.width??0,height:f.height??0,bitrate:f.bandwidth??0,codec:p.codec,index:h};this.#t.qualities[Xe.add](m,l)}),gn(p.index)){const f=this.#t.qualities[p.index];f&&this.#t.qualities[Xe.select](f,!0,l)}u.forEach((f,h)=>{const y=f.labels.find(w=>navigator.languages.some(C=>w.lang&&C.toLowerCase().startsWith(w.lang.toLowerCase())))||f.labels[0],k={id:`dash-audio-${f?.index}`,label:y?.text??(f.lang&&GD(f.lang))??f.lang??"",language:f.lang??"",kind:"main",mimeType:f.mimeType,codec:f.codec,index:h};this.#t.audioTracks[Xe.add](k,l)}),s.dispatchEvent(new st("canplay",{trigger:l}))}#m(n){const{type:i,error:r}=n;r.code===27?this.#v(r):this.#b(r)}#w(){this.#C>=0&&this.#k()}#f(n){n.mediaType==="text"&&requestAnimationFrame(this.#u.bind(this,n))}#C=-1;#v(n){this.#k(),this.#n?.play(),this.#C=window.setTimeout(()=>{this.#C=-1,this.#b(n)},5e3)}#k(){clearTimeout(this.#C),this.#C=-1}#b(n){this.#t.notify("error",{message:n.message??"",code:1,error:n})}#x(){this.#I("video",!0);const{qualities:n}=this.#t;this.#n?.setQualityFor("video",n.selectedIndex,!0)}#I(n,i){this.#n?.updateSettings({streaming:{abr:{autoSwitchBitrate:{[n]:i}}}})}#S(){const{qualities:n}=this.#t;!this.#n||n.auto||!n.selected||(this.#I("video",!1),this.#n.setQualityFor("video",n.selectedIndex,n.switch==="current"),g2&&(this.#e.currentTime=this.#e.currentTime))}#T(){if(!this.#n)return;const{audioTracks:n}=this.#t,i=this.#n.getTracksFor("audio").find(r=>n.selected&&n.selected.id===`dash-audio-${r.index}`);i&&this.#n.setCurrentTrack(i)}#A(){this.#k(),this.#c=null,this.#d={}}onInstance(n){return this.#o.add(n),()=>this.#o.delete(n)}loadSource(n){this.#A(),$e(n.src)&&this.#n?.attachSource(n.src)}destroy(){this.#A(),this.#n?.destroy(),this.#n=null,this.#i?.(),this.#i=null}}class Bxe{#e;#t;#n;constructor(n,i,r){this.#e=n,this.#t=i,this.#n=r,this.#o()}async#o(){const n={onLoadStart:this.#i.bind(this),onLoaded:this.#r.bind(this),onLoadError:this.#a.bind(this)};let i=await $xe(this.#e,n);if(Tn(i)&&!$e(this.#e)&&(i=await Pxe(this.#e,n)),!i)return null;if(!window.dashjs.supportsMediaSource()){const r="[vidstack] `dash.js` is not supported in this environment";return this.#t.player.dispatch(new st("dash-unsupported")),this.#t.notify("error",{message:r,code:4}),null}return i}#i(){this.#t.player.dispatch(new st("dash-lib-load-start"))}#r(n){this.#t.player.dispatch(new st("dash-lib-loaded",{detail:n})),this.#n(n)}#a(n){const i=kd(n);this.#t.player.dispatch(new st("dash-lib-load-error",{detail:i})),this.#t.notify("error",{message:i.message,code:4,error:i})}}async function Pxe(o,n={}){if(!Tn(o)){if(n.onLoadStart?.(),Mxe(o))return n.onLoaded?.(o),o;if(KD(o)){const i=o.MediaPlayer;return n.onLoaded?.(i),i}try{const i=(await o())?.default;if(KD(i))return n.onLoaded?.(i.MediaPlayer),i.MediaPlayer;if(i)n.onLoaded?.(i);else throw Error("");return i}catch(i){n.onLoadError?.(i)}}}async function $xe(o,n={}){if($e(o)){n.onLoadStart?.();try{if(await Lm(o),!ui(window.dashjs.MediaPlayer))throw Error("");const i=window.dashjs.MediaPlayer;return n.onLoaded?.(i),i}catch(i){n.onLoadError?.(i)}}}function Mxe(o){return o&&o.prototype&&o.prototype!==Function}function KD(o){return o&&"MediaPlayer"in o}const Nxe="https://cdn.jsdelivr.net";class Fxe extends b9{$$PROVIDER_TYPE="DASH";#e=null;#t=new _xe(this.video,this.ctx);get ctor(){return this.#e}get instance(){return this.#t.instance}static supported=BI();get type(){return"dash"}get canLiveSync(){return!0}#n=`${Nxe}/npm/dashjs@4.7.4/dist/dash.all.min.js`;get config(){return this.#t.config}set config(n){this.#t.config=n}get library(){return this.#n}set library(n){this.#n=n}preconnect(){$e(this.#n)&&mr(this.#n)}setup(){super.setup(),new Bxe(this.#n,this.ctx,n=>{this.#e=n,this.#t.setup(n),this.ctx.notify("provider-setup",this);const i=je(this.ctx.$state.source);i&&this.loadSource(i)})}async loadSource(n,i){if(!$e(n.src)){this.removeSource();return}this.media.preload=i||"",this.appendSource(n,"application/x-mpegurl"),this.#t.loadSource(n),this.currentSrc=n}onInstance(n){const i=this.#t.instance;return i&&n(i),this.#t.onInstance(n)}destroy(){this.#t.destroy()}}const qxe=Object.freeze(Object.defineProperty({__proto__:null,DASHProvider:Fxe},Symbol.toStringTag,{value:"Module"}));class WD{#e;src=Ge("");referrerPolicy=null;get iframe(){return this.#e}constructor(n){this.#e=n,n.setAttribute("frameBorder","0"),n.setAttribute("aria-hidden","true"),n.setAttribute("allow","autoplay; fullscreen; encrypted-media; picture-in-picture; accelerometer; gyroscope"),this.referrerPolicy!==null&&n.setAttribute("referrerpolicy",this.referrerPolicy)}setup(){vt(window,"message",this.#n.bind(this)),vt(this.#e,"load",this.onLoad.bind(this)),ne(this.#t.bind(this))}#t(){const n=this.src();if(!n.length){this.#e.setAttribute("src","");return}const i=je(()=>this.buildParams());this.#e.setAttribute("src",H5e(n,i))}postMessage(n,i){this.#e.contentWindow?.postMessage(JSON.stringify(n),i??"*")}#n(n){const i=this.getOrigin();if((n.source===null||n.source===this.#e?.contentWindow)&&(!$e(i)||i===n.origin)){try{const l=JSON.parse(n.data);l&&this.onMessage(l,n);return}catch{}n.data&&this.onMessage(n.data,n)}}}const Uxe=/(?:https:\/\/)?(?:player\.)?vimeo(?:\.com)?\/(?:video\/)?(\d+)(?:(?:\?hash=|\?h=|\/)(.*))?/,y9=new Map,e0=new Map;function YD(o){const n=o.match(Uxe);return{videoId:n?.[1],hash:n?.[2]}}async function XD(o,n,i){if(y9.has(o))return y9.get(o);if(e0.has(o))return e0.get(o);let r=`https://vimeo.com/api/oembed.json?url=https://player.vimeo.com/video/${o}`;i&&(r=r.concat(`?h=${i}`));const l=window.fetch(r,{mode:"cors",signal:n.signal}).then(s=>s.json()).then(s=>{const c=/vimeocdn.com\/video\/(.*)?_/,d=s?.thumbnail_url?.match(c)?.[1],p=d?`https://i.vimeocdn.com/video/${d}_1920x1080.webp`:"",u={title:s?.title??"",duration:s?.duration??0,poster:p,pro:s.account_type!=="basic"};return y9.set(o,u),u}).finally(()=>e0.delete(o));return e0.set(o,l),l}const Hxe=Object.freeze(Object.defineProperty({__proto__:null,getVimeoVideoInfo:XD,resolveVimeoVideoId:YD},Symbol.toStringTag,{value:"Module"})),zxe=["bufferend","bufferstart","durationchange","ended","enterpictureinpicture","error","fullscreenchange","leavepictureinpicture","loaded","playProgress","loadProgress","pause","play","playbackratechange","qualitychange","seeked","seeking","timeupdate","volumechange","waiting"];class Zxe extends WD{$$PROVIDER_TYPE="VIMEO";scope=Yr();fullscreen;#e;#t=Ge("");#n=Ge(!1);#o=null;#i=null;#r=!1;#a=new cn(0,0);#l=new Kd(this.#y.bind(this));#s=null;#c=null;#d=new Map;#u=null;constructor(n,i){super(n),this.#e=i;const r=this;this.fullscreen={get active(){return r.#r},supported:!0,enter:()=>this.#j("requestFullscreen"),exit:()=>this.#j("exitFullscreen")}}cookies=!1;title=!0;byline=!0;portrait=!0;color="00ADEF";get type(){return"vimeo"}get currentSrc(){return this.#i}get videoId(){return this.#t()}get hash(){return this.#o}get isPro(){return this.#n()}preconnect(){mr(this.getOrigin())}setup(){super.setup(),ne(this.#p.bind(this)),ne(this.#g.bind(this)),ne(this.#h.bind(this)),this.#e.notify("provider-setup",this)}destroy(){this.#M(),this.fullscreen=void 0;const n="provider destroyed";for(const i of this.#d.values())for(const{reject:r}of i)r(n);this.#d.clear(),this.#j("destroy")}async play(){return this.#j("play")}async pause(){return this.#j("pause")}setMuted(n){this.#j("setMuted",n)}setCurrentTime(n){this.#j("seekTo",n),this.#e.notify("seeking",n)}setVolume(n){this.#j("setVolume",n),this.#j("setMuted",je(this.#e.$state.muted))}setPlaybackRate(n){this.#j("setPlaybackRate",n)}async loadSource(n){if(!$e(n.src)){this.#i=null,this.#o=null,this.#t.set("");return}const{videoId:i,hash:r}=YD(n.src);this.#t.set(i??""),this.#o=r??null,this.#i=n}#p(){this.#M();const n=this.#t();if(!n){this.src.set("");return}this.src.set(`${this.getOrigin()}/video/${n}`),this.#e.notify("load-start")}#g(){const n=this.#t();if(!n)return;const i=ol(),r=new AbortController;return this.#u=i,XD(n,r,this.#o).then(l=>{i.resolve(l)}).catch(l=>{i.reject()}),()=>{i.reject(),r.abort()}}#h(){const n=this.#n(),{$state:i,qualities:r}=this.#e;if(i.canSetPlaybackRate.set(n),r[Xe.setReadonly](!n),n)return vt(r,"change",()=>{if(r.auto)return;const l=r.selected?.id;l&&this.#j("setQuality",l)})}getOrigin(){return"https://player.vimeo.com"}buildParams(){const{keyDisabled:n}=this.#e.$props,{playsInline:i,nativeControls:r}=this.#e.$state,l=r();return{title:this.title,byline:this.byline,color:this.color,portrait:this.portrait,controls:l,h:this.hash,keyboard:l&&!n(),transparent:!0,playsinline:i(),dnt:!this.cookies}}#y(){this.#j("getCurrentTime")}#m=!1;#w(n,i){if(this.#m&&n===0)return;const{realCurrentTime:r,paused:l,bufferedEnd:s,seekableEnd:c,live:d}=this.#e.$state;if(r()===n)return;const p=r();this.#e.notify("time-change",n,i),Math.abs(p-n)>1.5&&(this.#e.notify("seeking",n,i),!l()&&s()<n&&this.#e.notify("waiting",void 0,i)),!d()&&c()-n<.01&&(this.#e.notify("end",void 0,i),this.#m=!0,setTimeout(()=>{this.#m=!1},500))}#f(n,i){this.#e.notify("seeked",n,i)}#C(n){const i=this.#t();this.#u?.promise.then(r=>{if(!r)return;const{title:l,poster:s,duration:c,pro:d}=r;this.#n.set(d),this.#e.notify("title-change",l,n),this.#e.notify("poster-change",s,n),this.#e.notify("duration-change",c,n),this.#v(c,n)}).catch(()=>{i===this.#t()&&(this.#j("getVideoTitle"),this.#j("getDuration"))})}#v(n,i){const{nativeControls:r}=this.#e.$state,l=r();this.#a=new cn(0,n);const s={buffered:new cn(0,0),seekable:this.#a,duration:n};this.#e.delegate.ready(s,i),l||this.#j("_hideOverlay"),this.#j("getQualities"),this.#j("getChapters")}#k(n,i,r){switch(n){case"getVideoTitle":const l=i;this.#e.notify("title-change",l,r);break;case"getDuration":const s=i;this.#e.$state.canPlay()?this.#e.notify("duration-change",s,r):this.#v(s,r);break;case"getCurrentTime":this.#w(i,r);break;case"getBuffered":En(i)&&i.length&&this.#T(i[i.length-1][1],r);break;case"setMuted":this.#D(je(this.#e.$state.volume),i,r);break;case"getChapters":this.#_(i);break;case"getQualities":this.#B(i,r);break}this.#N(n)?.resolve()}#b(){for(const n of zxe)this.#j("addEventListener",n)}#x(n){this.#l.stop(),this.#e.notify("pause",void 0,n)}#I(n){this.#l.start(),this.#e.notify("play",void 0,n)}#S(n){const{paused:i}=this.#e.$state;!i()&&!this.#m&&this.#e.notify("playing",void 0,n)}#T(n,i){const r={buffered:new cn(0,n),seekable:this.#a};this.#e.notify("progress",r,i)}#A(n){this.#e.notify("waiting",void 0,n)}#R(n){const{paused:i}=this.#e.$state;i()||this.#e.notify("playing",void 0,n)}#O(n){const{paused:i}=this.#e.$state;i()&&this.#e.notify("play",void 0,n),this.#e.notify("waiting",void 0,n)}#D(n,i,r){const l={volume:n,muted:i};this.#e.notify("volume-change",l,r)}#_(n){if(this.#E(),!n.length)return;const i=new Vr({kind:"chapters",default:!0}),{seekableEnd:r}=this.#e.$state;for(let l=0;l<n.length;l++){const s=n[l],c=n[l+1];i.addCue(new window.VTTCue(s.startTime,c?.startTime??r(),s.title))}this.#c=i,this.#e.textTracks.add(i)}#E(){this.#c&&(this.#e.textTracks.remove(this.#c),this.#c=null)}#B(n,i){this.#e.qualities[An.enableAuto]=n.some(r=>r.id==="auto")?()=>this.#j("setQuality","auto"):void 0;for(const r of n){if(r.id==="auto")continue;const l=+r.id.slice(0,-1);isNaN(l)||this.#e.qualities[Xe.add]({id:r.id,width:l*(16/9),height:l,codec:"avc1,h.264",bitrate:-1},i)}this.#P(n.find(r=>r.active),i)}#P({id:n}={},i){if(!n)return;const r=n==="auto",l=this.#e.qualities.getById(n);r?(this.#e.qualities[An.setAuto](r,i),this.#e.qualities[Xe.select](void 0,!0,i)):this.#e.qualities[Xe.select](l??void 0,!0,i)}#L(n,i,r){switch(n){case"ready":this.#b();break;case"loaded":this.#C(r);break;case"play":this.#I(r);break;case"playProgress":this.#S(r);break;case"pause":this.#x(r);break;case"loadProgress":this.#T(i.seconds,r);break;case"waiting":this.#O(r);break;case"bufferstart":this.#A(r);break;case"bufferend":this.#R(r);break;case"volumechange":this.#D(i.volume,je(this.#e.$state.muted),r);break;case"durationchange":this.#a=new cn(0,i.duration),this.#e.notify("duration-change",i.duration,r);break;case"playbackratechange":this.#e.notify("rate-change",i.playbackRate,r);break;case"qualitychange":this.#P(i,r);break;case"fullscreenchange":this.#r=i.fullscreen,this.#e.notify("fullscreen-change",i.fullscreen,r);break;case"enterpictureinpicture":this.#e.notify("picture-in-picture-change",!0,r);break;case"leavepictureinpicture":this.#e.notify("picture-in-picture-change",!1,r);break;case"ended":this.#e.notify("end",void 0,r);break;case"error":this.#$(i,r);break;case"seek":case"seeked":this.#f(i.seconds,r);break}}#$(n,i){const{message:r,method:l}=n;l==="setPlaybackRate"&&this.#n.set(!1),l&&this.#N(l)?.reject(r)}onMessage(n,i){n.event?this.#L(n.event,n.data,i):n.method&&this.#k(n.method,n.value,i)}onLoad(){}async#j(n,i){let r=ol(),l=this.#d.get(n);return l||this.#d.set(n,l=[]),l.push(r),this.postMessage({method:n,value:i}),r.promise}#M(){this.#l.stop(),this.#a=new cn(0,0),this.#u=null,this.#s=null,this.#n.set(!1),this.#E()}#N(n){return this.#d.get(n)?.shift()}}const Gxe=Object.freeze(Object.defineProperty({__proto__:null,VimeoProvider:Zxe},Symbol.toStringTag,{value:"Module"})),Kxe=/(?:youtu\.be|youtube|youtube\.com|youtube-nocookie\.com)(?:\/shorts)?\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|)((?:\w|-){11})/,v9=new Map,t0=new Map;function QD(o){return o.match(Kxe)?.[1]}async function Wxe(o,n){if(v9.has(o))return v9.get(o);if(t0.has(o))return t0.get(o);const i=new Promise(async r=>{const l=["maxresdefault","sddefault","hqdefault"];for(const s of l)for(const c of[!0,!1]){const d=Yxe(o,s,c);if((await fetch(d,{mode:"no-cors",signal:n.signal})).status<400){v9.set(o,d),r(d);return}}}).catch(()=>"").finally(()=>t0.delete(o));return t0.set(o,i),i}function Yxe(o,n,i){return`https://i.ytimg.com/${i?"vi_webp":"vi"}/${o}/${n}.${i?"webp":"jpg"}`}const Xxe=Object.freeze(Object.defineProperty({__proto__:null,findYouTubePoster:Wxe,resolveYouTubeVideoId:QD},Symbol.toStringTag,{value:"Module"})),ds={Ended:0,Playing:1,Paused:2,Buffering:3,Cued:5};class Qxe extends WD{$$PROVIDER_TYPE="YOUTUBE";scope=Yr();#e;#t=Ge("");#n=-1;#o=null;#i=-1;#r=!1;#a=new Map;constructor(n,i){super(n),this.#e=i}language="en";color="red";cookies=!1;get currentSrc(){return this.#o}get type(){return"youtube"}get videoId(){return this.#t()}preconnect(){mr(this.getOrigin())}setup(){super.setup(),ne(this.#c.bind(this)),this.#e.notify("provider-setup",this)}destroy(){this.#f();const n="provider destroyed";for(const i of this.#a.values())for(const{reject:r}of i)r(n);this.#a.clear()}async play(){return this.#d("playVideo")}#l(n){this.#C("playVideo")?.reject(n)}async pause(){return this.#d("pauseVideo")}#s(n){this.#C("pauseVideo")?.reject(n)}setMuted(n){n?this.#d("mute"):this.#d("unMute")}setCurrentTime(n){this.#d("seekTo",n),this.#e.notify("seeking",n)}setVolume(n){this.#d("setVolume",n*100)}setPlaybackRate(n){this.#d("setPlaybackRate",n)}async loadSource(n){if(!$e(n.src)){this.#o=null,this.#t.set("");return}const i=QD(n.src);this.#t.set(i??""),this.#o=n}getOrigin(){return this.cookies?"https://www.youtube.com":"https://www.youtube-nocookie.com"}#c(){this.#f();const n=this.#t();if(!n){this.src.set("");return}this.src.set(`${this.getOrigin()}/embed/${n}`),this.#e.notify("load-start")}buildParams(){const{keyDisabled:n}=this.#e.$props,{muted:i,playsInline:r,nativeControls:l}=this.#e.$state,s=l();return{rel:0,autoplay:0,cc_lang_pref:this.language,cc_load_policy:s?1:void 0,color:this.color,controls:s?1:0,disablekb:!s||n()?1:0,enablejsapi:1,fs:1,hl:this.language,iv_load_policy:s?1:3,mute:i()?1:0,playsinline:r()?1:0}}#d(n,i){let r=ol(),l=this.#a.get(n);return l||this.#a.set(n,l=[]),l.push(r),this.postMessage({event:"command",func:n,args:i?[i]:void 0}),r.promise}onLoad(){window.setTimeout(()=>this.postMessage({event:"listening"}),100)}#u(n){this.#e.notify("loaded-metadata"),this.#e.notify("loaded-data"),this.#e.delegate.ready(void 0,n)}#p(n){this.#C("pauseVideo")?.resolve(),this.#e.notify("pause",void 0,n)}#g(n,i){const{duration:r,realCurrentTime:l}=this.#e.$state,s=this.#n===ds.Ended,c=s?r():n;this.#e.notify("time-change",c,i),!s&&Math.abs(c-l())>1&&this.#e.notify("seeking",c,i)}#h(n,i,r){const l={buffered:new cn(0,n),seekable:i};this.#e.notify("progress",l,r);const{seeking:s,realCurrentTime:c}=this.#e.$state;s()&&n>c()&&this.#y(r)}#y(n){const{paused:i,realCurrentTime:r}=this.#e.$state;window.clearTimeout(this.#i),this.#i=window.setTimeout(()=>{this.#e.notify("seeked",r(),n),this.#i=-1},i()?100:0)}#m(n){const{seeking:i}=this.#e.$state;i()&&this.#y(n),this.#e.notify("pause",void 0,n),this.#e.notify("end",void 0,n)}#w(n,i){const{paused:r,seeking:l}=this.#e.$state,s=n===ds.Playing,c=n===ds.Buffering,d=this.#v("playVideo"),p=r()&&(c||s);if(c&&this.#e.notify("waiting",void 0,i),l()&&s&&this.#y(i),this.#r&&s){this.pause(),this.#r=!1,this.setMuted(this.#e.$state.muted());return}if(!d&&p){this.#r=!0,this.setMuted(!0);return}switch(p&&(this.#C("playVideo")?.resolve(),this.#e.notify("play",void 0,i)),n){case ds.Cued:this.#u(i);break;case ds.Playing:this.#e.notify("playing",void 0,i);break;case ds.Paused:this.#p(i);break;case ds.Ended:this.#m(i);break}this.#n=n}onMessage({info:n},i){if(!n)return;const{title:r,intrinsicDuration:l,playbackRate:s}=this.#e.$state;if(pI(n.videoData)&&n.videoData.title!==r()&&this.#e.notify("title-change",n.videoData.title,i),gn(n.duration)&&n.duration!==l()){if(gn(n.videoLoadedFraction)){const c=n.progressState?.loaded??n.videoLoadedFraction*n.duration,d=new cn(0,n.duration);this.#h(c,d,i)}this.#e.notify("duration-change",n.duration,i)}if(gn(n.playbackRate)&&n.playbackRate!==s()&&this.#e.notify("rate-change",n.playbackRate,i),n.progressState){const{current:c,seekableStart:d,seekableEnd:p,loaded:u,duration:g}=n.progressState;this.#g(c,i),this.#h(u,new cn(d,p),i),g!==l()&&this.#e.notify("duration-change",g,i)}if(gn(n.volume)&&uI(n.muted)&&!this.#r){const c={muted:n.muted,volume:n.volume/100};this.#e.notify("volume-change",c,i)}gn(n.playerState)&&n.playerState!==this.#n&&this.#w(n.playerState,i)}#f(){this.#n=-1,this.#i=-1,this.#r=!1}#C(n){return this.#a.get(n)?.shift()}#v(n){return!!this.#a.get(n)?.length}}const Jxe=Object.freeze(Object.defineProperty({__proto__:null,YouTubeProvider:Qxe},Symbol.toStringTag,{value:"Module"}));function Vxe(){return"https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"}function eIe(){return!!window.cast?.framework}function tIe(){return!!window.chrome?.cast?.isAvailable}function JD(){return Wd().getCastState()===cast.framework.CastState.CONNECTED}function Wd(){return window.cast.framework.CastContext.getInstance()}function C9(){return Wd().getCurrentSession()}function w9(){return C9()?.getSessionObj().media[0]}function VD(o){return w9()?.media.contentId===o?.src}function nIe(){return{language:"en-US",autoJoinPolicy:chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,receiverApplicationId:chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,resumeSavedSession:!0,androidReceiverCompatible:!0}}function eL(o){return`Google Cast Error Code: ${o}`}function oIe(o,n){return vt(Wd(),o,n)}class iIe{name="google-cast";target;#e;get cast(){return Wd()}mediaType(){return"video"}canPlay(n){return g2&&!u2&&PI(n)}async prompt(n){let i,r,l;try{i=await this.#t(n),this.#e||(this.#e=new cast.framework.RemotePlayer,new cast.framework.RemotePlayerController(this.#e)),r=n.player.createEvent("google-cast-prompt-open",{trigger:i}),n.player.dispatchEvent(r),this.#i(n,"connecting",r),await this.#n(je(n.$props.googleCast)),n.$state.remotePlaybackInfo.set({deviceName:C9()?.getCastDevice().friendlyName}),JD()&&this.#i(n,"connected",r)}catch(s){const c=s instanceof Error?s:this.#r((s+"").toUpperCase(),"Prompt failed.");throw l=n.player.createEvent("google-cast-prompt-error",{detail:c,trigger:r??i,cancelable:!0}),n.player.dispatch(l),this.#i(n,JD()?"connected":"disconnected",l),c}finally{n.player.dispatch("google-cast-prompt-close",{trigger:l??r??i})}}async load(n){if(!this.#e)throw Error("[vidstack] google cast player was not initialized");return new(await Promise.resolve().then(()=>yIe)).GoogleCastProvider(this.#e,n)}async#t(n){if(eIe())return;const i=n.player.createEvent("google-cast-load-start");n.player.dispatch(i),await Lm(Vxe()),await customElements.whenDefined("google-cast-launcher");const r=n.player.createEvent("google-cast-loaded",{trigger:i});if(n.player.dispatch(r),!tIe())throw this.#r("CAST_NOT_AVAILABLE","Google Cast not available on this platform.");return r}async#n(n){this.#o(n);const i=await this.cast.requestSession();if(i)throw this.#r(i.toUpperCase(),eL(i))}#o(n){this.cast?.setOptions({...nIe(),...n})}#i(n,i,r){const l={type:"google-cast",state:i};n.notify("remote-playback-change",l,r)}#r(n,i){const r=Error(i);return r.code=n,r}}const rIe=Object.freeze(Object.defineProperty({__proto__:null,GoogleCastLoader:iIe},Symbol.toStringTag,{value:"Module"})),aIe=$m('<svg viewBox="0 0 32 32" fill="none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"></svg>');function sIe(o,n){const i=Mm(aIe);i.innerHTML=S5e,o.append(i);const r=document.createElement("span");r.classList.add("vds-google-cast-info"),o.append(r);const l=document.createElement("span");l.classList.add("vds-google-cast-device-name"),ne(()=>{const{remotePlaybackInfo:s}=n,c=s();return c?.deviceName&&(l.textContent=c.deviceName,r.append("Google Cast on ",l)),()=>{r.textContent=""}})}const lIe=Object.freeze(Object.defineProperty({__proto__:null,insertContent:sIe},Symbol.toStringTag,{value:"Module"})),cIe=/,/g,dIe="-->";class tL extends d9{parse(n,i){if(n==="")this.c&&(this.l.push(this.c),this.h.onCue?.(this.c),this.c=null),this.e=Zd.None;else if(this.e===Zd.Cue)this.c.text+=(this.c.text?`