@tellescope/sdk 2.0.0-beta.2 → 2.0.0-beta.3

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 (717) hide show
  1. package/lib/cjs/sdk.d.ts +6 -5
  2. package/lib/cjs/sdk.d.ts.map +1 -1
  3. package/lib/cjs/sdk.js +5 -0
  4. package/lib/cjs/sdk.js.map +1 -1
  5. package/lib/cjs/tests/api_tests/ai_conversations.test.d.ts +14 -5
  6. package/lib/cjs/tests/api_tests/ai_conversations.test.d.ts.map +1 -1
  7. package/lib/cjs/tests/api_tests/ai_conversations.test.js +163 -149
  8. package/lib/cjs/tests/api_tests/ai_conversations.test.js.map +1 -1
  9. package/lib/cjs/tests/api_tests/ai_conversations_agent_message.test.d.ts +22 -0
  10. package/lib/cjs/tests/api_tests/ai_conversations_agent_message.test.d.ts.map +1 -0
  11. package/lib/cjs/tests/api_tests/ai_conversations_agent_message.test.js +518 -0
  12. package/lib/cjs/tests/api_tests/ai_conversations_agent_message.test.js.map +1 -0
  13. package/lib/cjs/tests/api_tests/appointment_link_expiration.test.d.ts +6 -5
  14. package/lib/cjs/tests/api_tests/appointment_link_expiration.test.d.ts.map +1 -1
  15. package/lib/cjs/tests/api_tests/appointment_link_expiration.test.js +135 -73
  16. package/lib/cjs/tests/api_tests/appointment_link_expiration.test.js.map +1 -1
  17. package/lib/cjs/tests/api_tests/appointment_no_showed_trigger.test.d.ts +6 -5
  18. package/lib/cjs/tests/api_tests/appointment_no_showed_trigger.test.d.ts.map +1 -1
  19. package/lib/cjs/tests/api_tests/appointment_no_showed_trigger.test.js +240 -174
  20. package/lib/cjs/tests/api_tests/appointment_no_showed_trigger.test.js.map +1 -1
  21. package/lib/cjs/tests/api_tests/availability_block_buffer.test.d.ts +22 -0
  22. package/lib/cjs/tests/api_tests/availability_block_buffer.test.d.ts.map +1 -0
  23. package/lib/cjs/tests/api_tests/availability_block_buffer.test.js +311 -0
  24. package/lib/cjs/tests/api_tests/availability_block_buffer.test.js.map +1 -0
  25. package/lib/cjs/tests/api_tests/beluga_manual_sync.test.d.ts +6 -5
  26. package/lib/cjs/tests/api_tests/beluga_manual_sync.test.d.ts.map +1 -1
  27. package/lib/cjs/tests/api_tests/beluga_manual_sync.test.js +235 -192
  28. package/lib/cjs/tests/api_tests/beluga_manual_sync.test.js.map +1 -1
  29. package/lib/cjs/tests/api_tests/beluga_trigger_refill.test.d.ts +6 -5
  30. package/lib/cjs/tests/api_tests/beluga_trigger_refill.test.d.ts.map +1 -1
  31. package/lib/cjs/tests/api_tests/beluga_trigger_refill.test.js +351 -264
  32. package/lib/cjs/tests/api_tests/beluga_trigger_refill.test.js.map +1 -1
  33. package/lib/cjs/tests/api_tests/bulk_assignment.test.d.ts +16 -5
  34. package/lib/cjs/tests/api_tests/bulk_assignment.test.d.ts.map +1 -1
  35. package/lib/cjs/tests/api_tests/bulk_assignment.test.js +336 -243
  36. package/lib/cjs/tests/api_tests/bulk_assignment.test.js.map +1 -1
  37. package/lib/cjs/tests/api_tests/calendar_event_references_update.test.d.ts +13 -5
  38. package/lib/cjs/tests/api_tests/calendar_event_references_update.test.d.ts.map +1 -1
  39. package/lib/cjs/tests/api_tests/calendar_event_references_update.test.js +131 -108
  40. package/lib/cjs/tests/api_tests/calendar_event_references_update.test.js.map +1 -1
  41. package/lib/cjs/tests/api_tests/calendar_event_webhook_template.test.d.ts +15 -5
  42. package/lib/cjs/tests/api_tests/calendar_event_webhook_template.test.d.ts.map +1 -1
  43. package/lib/cjs/tests/api_tests/calendar_event_webhook_template.test.js +240 -252
  44. package/lib/cjs/tests/api_tests/calendar_event_webhook_template.test.js.map +1 -1
  45. package/lib/cjs/tests/api_tests/chats_analytics.test.d.ts +14 -5
  46. package/lib/cjs/tests/api_tests/chats_analytics.test.d.ts.map +1 -1
  47. package/lib/cjs/tests/api_tests/chats_analytics.test.js +190 -189
  48. package/lib/cjs/tests/api_tests/chats_analytics.test.js.map +1 -1
  49. package/lib/cjs/tests/api_tests/concurrent_build_threads.test.d.ts +23 -5
  50. package/lib/cjs/tests/api_tests/concurrent_build_threads.test.d.ts.map +1 -1
  51. package/lib/cjs/tests/api_tests/concurrent_build_threads.test.js +121 -118
  52. package/lib/cjs/tests/api_tests/concurrent_build_threads.test.js.map +1 -1
  53. package/lib/cjs/tests/api_tests/configurations_public_read.test.d.ts +21 -5
  54. package/lib/cjs/tests/api_tests/configurations_public_read.test.d.ts.map +1 -1
  55. package/lib/cjs/tests/api_tests/configurations_public_read.test.js +235 -119
  56. package/lib/cjs/tests/api_tests/configurations_public_read.test.js.map +1 -1
  57. package/lib/cjs/tests/api_tests/copied_form_response_no_enduser_sync.test.d.ts +7 -0
  58. package/lib/cjs/tests/api_tests/copied_form_response_no_enduser_sync.test.d.ts.map +1 -0
  59. package/lib/cjs/tests/api_tests/copied_form_response_no_enduser_sync.test.js +356 -0
  60. package/lib/cjs/tests/api_tests/copied_form_response_no_enduser_sync.test.js.map +1 -0
  61. package/lib/cjs/tests/api_tests/create_note_action.test.d.ts +18 -5
  62. package/lib/cjs/tests/api_tests/create_note_action.test.d.ts.map +1 -1
  63. package/lib/cjs/tests/api_tests/create_note_action.test.js +218 -173
  64. package/lib/cjs/tests/api_tests/create_note_action.test.js.map +1 -1
  65. package/lib/cjs/tests/api_tests/create_user_notifications_trigger.test.d.ts +17 -4
  66. package/lib/cjs/tests/api_tests/create_user_notifications_trigger.test.d.ts.map +1 -1
  67. package/lib/cjs/tests/api_tests/create_user_notifications_trigger.test.js +144 -205
  68. package/lib/cjs/tests/api_tests/create_user_notifications_trigger.test.js.map +1 -1
  69. package/lib/cjs/tests/api_tests/custom_aggregation.test.d.ts +15 -5
  70. package/lib/cjs/tests/api_tests/custom_aggregation.test.d.ts.map +1 -1
  71. package/lib/cjs/tests/api_tests/custom_aggregation.test.js +284 -223
  72. package/lib/cjs/tests/api_tests/custom_aggregation.test.js.map +1 -1
  73. package/lib/cjs/tests/api_tests/database_cascade_delete.test.d.ts +13 -5
  74. package/lib/cjs/tests/api_tests/database_cascade_delete.test.d.ts.map +1 -1
  75. package/lib/cjs/tests/api_tests/database_cascade_delete.test.js +218 -242
  76. package/lib/cjs/tests/api_tests/database_cascade_delete.test.js.map +1 -1
  77. package/lib/cjs/tests/api_tests/dont_sync_to_elation_form_submission.test.d.ts +21 -5
  78. package/lib/cjs/tests/api_tests/dont_sync_to_elation_form_submission.test.d.ts.map +1 -1
  79. package/lib/cjs/tests/api_tests/dont_sync_to_elation_form_submission.test.js +168 -112
  80. package/lib/cjs/tests/api_tests/dont_sync_to_elation_form_submission.test.js.map +1 -1
  81. package/lib/cjs/tests/api_tests/elation_user_id.test.d.ts +17 -5
  82. package/lib/cjs/tests/api_tests/elation_user_id.test.d.ts.map +1 -1
  83. package/lib/cjs/tests/api_tests/elation_user_id.test.js +121 -54
  84. package/lib/cjs/tests/api_tests/elation_user_id.test.js.map +1 -1
  85. package/lib/cjs/tests/api_tests/file_download_unicode_names.test.d.ts +6 -5
  86. package/lib/cjs/tests/api_tests/file_download_unicode_names.test.d.ts.map +1 -1
  87. package/lib/cjs/tests/api_tests/file_download_unicode_names.test.js +193 -143
  88. package/lib/cjs/tests/api_tests/file_download_unicode_names.test.js.map +1 -1
  89. package/lib/cjs/tests/api_tests/form_intake_email_normalization.test.d.ts +7 -0
  90. package/lib/cjs/tests/api_tests/form_intake_email_normalization.test.d.ts.map +1 -0
  91. package/lib/cjs/tests/api_tests/form_intake_email_normalization.test.js +532 -0
  92. package/lib/cjs/tests/api_tests/form_intake_email_normalization.test.js.map +1 -0
  93. package/lib/cjs/tests/api_tests/form_submitted_trigger.test.d.ts +25 -5
  94. package/lib/cjs/tests/api_tests/form_submitted_trigger.test.d.ts.map +1 -1
  95. package/lib/cjs/tests/api_tests/form_submitted_trigger.test.js +395 -366
  96. package/lib/cjs/tests/api_tests/form_submitted_trigger.test.js.map +1 -1
  97. package/lib/cjs/tests/api_tests/form_translations.test.d.ts +6 -5
  98. package/lib/cjs/tests/api_tests/form_translations.test.d.ts.map +1 -1
  99. package/lib/cjs/tests/api_tests/form_translations.test.js +269 -189
  100. package/lib/cjs/tests/api_tests/form_translations.test.js.map +1 -1
  101. package/lib/cjs/tests/api_tests/formsort_header_auth.test.d.ts +29 -5
  102. package/lib/cjs/tests/api_tests/formsort_header_auth.test.d.ts.map +1 -1
  103. package/lib/cjs/tests/api_tests/formsort_header_auth.test.js +179 -162
  104. package/lib/cjs/tests/api_tests/formsort_header_auth.test.js.map +1 -1
  105. package/lib/cjs/tests/api_tests/gcal_sync_retry.test.d.ts +12 -6
  106. package/lib/cjs/tests/api_tests/gcal_sync_retry.test.d.ts.map +1 -1
  107. package/lib/cjs/tests/api_tests/gcal_sync_retry.test.js +98 -84
  108. package/lib/cjs/tests/api_tests/gcal_sync_retry.test.js.map +1 -1
  109. package/lib/cjs/tests/api_tests/get_some_projection.test.d.ts +20 -5
  110. package/lib/cjs/tests/api_tests/get_some_projection.test.d.ts.map +1 -1
  111. package/lib/cjs/tests/api_tests/get_some_projection.test.js +342 -298
  112. package/lib/cjs/tests/api_tests/get_some_projection.test.js.map +1 -1
  113. package/lib/cjs/tests/api_tests/group_event_attendee_self_update.test.d.ts +6 -5
  114. package/lib/cjs/tests/api_tests/group_event_attendee_self_update.test.d.ts.map +1 -1
  115. package/lib/cjs/tests/api_tests/group_event_attendee_self_update.test.js +294 -223
  116. package/lib/cjs/tests/api_tests/group_event_attendee_self_update.test.js.map +1 -1
  117. package/lib/cjs/tests/api_tests/integrations_redacted.test.d.ts +6 -5
  118. package/lib/cjs/tests/api_tests/integrations_redacted.test.d.ts.map +1 -1
  119. package/lib/cjs/tests/api_tests/integrations_redacted.test.js +307 -213
  120. package/lib/cjs/tests/api_tests/integrations_redacted.test.js.map +1 -1
  121. package/lib/cjs/tests/api_tests/journey_delete_cancels_actions.test.d.ts +6 -5
  122. package/lib/cjs/tests/api_tests/journey_delete_cancels_actions.test.d.ts.map +1 -1
  123. package/lib/cjs/tests/api_tests/journey_delete_cancels_actions.test.js +179 -178
  124. package/lib/cjs/tests/api_tests/journey_delete_cancels_actions.test.js.map +1 -1
  125. package/lib/cjs/tests/api_tests/load_team_chat.test.d.ts.map +1 -1
  126. package/lib/cjs/tests/api_tests/load_team_chat.test.js +181 -124
  127. package/lib/cjs/tests/api_tests/load_team_chat.test.js.map +1 -1
  128. package/lib/cjs/tests/api_tests/load_threads_autobuild.test.d.ts +24 -5
  129. package/lib/cjs/tests/api_tests/load_threads_autobuild.test.d.ts.map +1 -1
  130. package/lib/cjs/tests/api_tests/load_threads_autobuild.test.js +261 -227
  131. package/lib/cjs/tests/api_tests/load_threads_autobuild.test.js.map +1 -1
  132. package/lib/cjs/tests/api_tests/load_threads_care_team.test.d.ts +6 -0
  133. package/lib/cjs/tests/api_tests/load_threads_care_team.test.d.ts.map +1 -1
  134. package/lib/cjs/tests/api_tests/load_threads_care_team.test.js +115 -31
  135. package/lib/cjs/tests/api_tests/load_threads_care_team.test.js.map +1 -1
  136. package/lib/cjs/tests/api_tests/managed_content_file_access.test.d.ts +15 -5
  137. package/lib/cjs/tests/api_tests/managed_content_file_access.test.d.ts.map +1 -1
  138. package/lib/cjs/tests/api_tests/managed_content_file_access.test.js +285 -311
  139. package/lib/cjs/tests/api_tests/managed_content_file_access.test.js.map +1 -1
  140. package/lib/cjs/tests/api_tests/mdb_sort.test.d.ts +20 -5
  141. package/lib/cjs/tests/api_tests/mdb_sort.test.d.ts.map +1 -1
  142. package/lib/cjs/tests/api_tests/mdb_sort.test.js +361 -305
  143. package/lib/cjs/tests/api_tests/mdb_sort.test.js.map +1 -1
  144. package/lib/cjs/tests/api_tests/mdi_manual_sync.test.d.ts +27 -0
  145. package/lib/cjs/tests/api_tests/mdi_manual_sync.test.d.ts.map +1 -0
  146. package/lib/cjs/tests/api_tests/mdi_manual_sync.test.js +395 -0
  147. package/lib/cjs/tests/api_tests/mdi_manual_sync.test.js.map +1 -0
  148. package/lib/cjs/tests/api_tests/mdi_trigger_refill.test.d.ts +6 -5
  149. package/lib/cjs/tests/api_tests/mdi_trigger_refill.test.d.ts.map +1 -1
  150. package/lib/cjs/tests/api_tests/mdi_trigger_refill.test.js +259 -209
  151. package/lib/cjs/tests/api_tests/mdi_trigger_refill.test.js.map +1 -1
  152. package/lib/cjs/tests/api_tests/mdi_webhooks.test.d.ts +12 -5
  153. package/lib/cjs/tests/api_tests/mdi_webhooks.test.d.ts.map +1 -1
  154. package/lib/cjs/tests/api_tests/mdi_webhooks.test.js +67 -61
  155. package/lib/cjs/tests/api_tests/mdi_webhooks.test.js.map +1 -1
  156. package/lib/cjs/tests/api_tests/message_assignment_trigger.test.d.ts +23 -14
  157. package/lib/cjs/tests/api_tests/message_assignment_trigger.test.d.ts.map +1 -1
  158. package/lib/cjs/tests/api_tests/message_assignment_trigger.test.js +258 -306
  159. package/lib/cjs/tests/api_tests/message_assignment_trigger.test.js.map +1 -1
  160. package/lib/cjs/tests/api_tests/metriport_push_form_response.test.d.ts +6 -5
  161. package/lib/cjs/tests/api_tests/metriport_push_form_response.test.d.ts.map +1 -1
  162. package/lib/cjs/tests/api_tests/metriport_push_form_response.test.js +301 -238
  163. package/lib/cjs/tests/api_tests/metriport_push_form_response.test.js.map +1 -1
  164. package/lib/cjs/tests/api_tests/organization_api_keys.test.d.ts.map +1 -1
  165. package/lib/cjs/tests/api_tests/organization_api_keys.test.js +226 -59
  166. package/lib/cjs/tests/api_tests/organization_api_keys.test.js.map +1 -1
  167. package/lib/cjs/tests/api_tests/organization_settings_duplicates.test.d.ts +19 -5
  168. package/lib/cjs/tests/api_tests/organization_settings_duplicates.test.d.ts.map +1 -1
  169. package/lib/cjs/tests/api_tests/organization_settings_duplicates.test.js +335 -222
  170. package/lib/cjs/tests/api_tests/organization_settings_duplicates.test.js.map +1 -1
  171. package/lib/cjs/tests/api_tests/organization_signup.test.d.ts.map +1 -1
  172. package/lib/cjs/tests/api_tests/organization_signup.test.js +218 -51
  173. package/lib/cjs/tests/api_tests/organization_signup.test.js.map +1 -1
  174. package/lib/cjs/tests/api_tests/out_of_office_endpoint.test.d.ts.map +1 -1
  175. package/lib/cjs/tests/api_tests/out_of_office_endpoint.test.js +109 -1
  176. package/lib/cjs/tests/api_tests/out_of_office_endpoint.test.js.map +1 -1
  177. package/lib/cjs/tests/api_tests/outbound_chat_sent_trigger.test.d.ts +6 -6
  178. package/lib/cjs/tests/api_tests/outbound_chat_sent_trigger.test.d.ts.map +1 -1
  179. package/lib/cjs/tests/api_tests/outbound_chat_sent_trigger.test.js +309 -361
  180. package/lib/cjs/tests/api_tests/outbound_chat_sent_trigger.test.js.map +1 -1
  181. package/lib/cjs/tests/api_tests/phone_calls_cold_transfer.test.d.ts +6 -5
  182. package/lib/cjs/tests/api_tests/phone_calls_cold_transfer.test.d.ts.map +1 -1
  183. package/lib/cjs/tests/api_tests/phone_calls_cold_transfer.test.js +246 -165
  184. package/lib/cjs/tests/api_tests/phone_calls_cold_transfer.test.js.map +1 -1
  185. package/lib/cjs/tests/api_tests/phone_calls_conference_hold.test.d.ts +15 -5
  186. package/lib/cjs/tests/api_tests/phone_calls_conference_hold.test.d.ts.map +1 -1
  187. package/lib/cjs/tests/api_tests/phone_calls_conference_hold.test.js +130 -47
  188. package/lib/cjs/tests/api_tests/phone_calls_conference_hold.test.js.map +1 -1
  189. package/lib/cjs/tests/api_tests/phone_tree_enduser_condition.test.d.ts +6 -5
  190. package/lib/cjs/tests/api_tests/phone_tree_enduser_condition.test.d.ts.map +1 -1
  191. package/lib/cjs/tests/api_tests/phone_tree_enduser_condition.test.js +180 -132
  192. package/lib/cjs/tests/api_tests/phone_tree_enduser_condition.test.js.map +1 -1
  193. package/lib/cjs/tests/api_tests/programs.test.d.ts.map +1 -1
  194. package/lib/cjs/tests/api_tests/programs.test.js +417 -50
  195. package/lib/cjs/tests/api_tests/programs.test.js.map +1 -1
  196. package/lib/cjs/tests/api_tests/security/ai-conversations-rbac.test.d.ts +10 -5
  197. package/lib/cjs/tests/api_tests/security/ai-conversations-rbac.test.d.ts.map +1 -1
  198. package/lib/cjs/tests/api_tests/security/ai-conversations-rbac.test.js +401 -282
  199. package/lib/cjs/tests/api_tests/security/ai-conversations-rbac.test.js.map +1 -1
  200. package/lib/cjs/tests/api_tests/security/automated-actions-process-gate.test.d.ts +9 -5
  201. package/lib/cjs/tests/api_tests/security/automated-actions-process-gate.test.d.ts.map +1 -1
  202. package/lib/cjs/tests/api_tests/security/automated-actions-process-gate.test.js +228 -211
  203. package/lib/cjs/tests/api_tests/security/automated-actions-process-gate.test.js.map +1 -1
  204. package/lib/cjs/tests/api_tests/security/booking-info-idor-token-mint.test.d.ts +13 -8
  205. package/lib/cjs/tests/api_tests/security/booking-info-idor-token-mint.test.d.ts.map +1 -1
  206. package/lib/cjs/tests/api_tests/security/booking-info-idor-token-mint.test.js +270 -254
  207. package/lib/cjs/tests/api_tests/security/booking-info-idor-token-mint.test.js.map +1 -1
  208. package/lib/cjs/tests/api_tests/security/cascade-role-rename-cross-tenant.test.d.ts +16 -6
  209. package/lib/cjs/tests/api_tests/security/cascade-role-rename-cross-tenant.test.d.ts.map +1 -1
  210. package/lib/cjs/tests/api_tests/security/cascade-role-rename-cross-tenant.test.js +167 -142
  211. package/lib/cjs/tests/api_tests/security/cascade-role-rename-cross-tenant.test.js.map +1 -1
  212. package/lib/cjs/tests/api_tests/security/data-sync-redaction-bypass.test.d.ts +10 -5
  213. package/lib/cjs/tests/api_tests/security/data-sync-redaction-bypass.test.d.ts.map +1 -1
  214. package/lib/cjs/tests/api_tests/security/data-sync-redaction-bypass.test.js +296 -221
  215. package/lib/cjs/tests/api_tests/security/data-sync-redaction-bypass.test.js.map +1 -1
  216. package/lib/cjs/tests/api_tests/security/develop-health-benefit-verification-rbac.test.d.ts +12 -5
  217. package/lib/cjs/tests/api_tests/security/develop-health-benefit-verification-rbac.test.d.ts.map +1 -1
  218. package/lib/cjs/tests/api_tests/security/develop-health-benefit-verification-rbac.test.js +221 -216
  219. package/lib/cjs/tests/api_tests/security/develop-health-benefit-verification-rbac.test.js.map +1 -1
  220. package/lib/cjs/tests/api_tests/security/enduser-ai-summary-trust-gate.test.d.ts +11 -5
  221. package/lib/cjs/tests/api_tests/security/enduser-ai-summary-trust-gate.test.d.ts.map +1 -1
  222. package/lib/cjs/tests/api_tests/security/enduser-ai-summary-trust-gate.test.js +300 -203
  223. package/lib/cjs/tests/api_tests/security/enduser-ai-summary-trust-gate.test.js.map +1 -1
  224. package/lib/cjs/tests/api_tests/security/enduser-cross-create.test.d.ts +11 -5
  225. package/lib/cjs/tests/api_tests/security/enduser-cross-create.test.d.ts.map +1 -1
  226. package/lib/cjs/tests/api_tests/security/enduser-cross-create.test.js +415 -275
  227. package/lib/cjs/tests/api_tests/security/enduser-cross-create.test.js.map +1 -1
  228. package/lib/cjs/tests/api_tests/security/enduser-write-restrictions.test.d.ts +11 -5
  229. package/lib/cjs/tests/api_tests/security/enduser-write-restrictions.test.d.ts.map +1 -1
  230. package/lib/cjs/tests/api_tests/security/enduser-write-restrictions.test.js +347 -228
  231. package/lib/cjs/tests/api_tests/security/enduser-write-restrictions.test.js.map +1 -1
  232. package/lib/cjs/tests/api_tests/security/globalunique-conflict-redaction.test.d.ts +18 -7
  233. package/lib/cjs/tests/api_tests/security/globalunique-conflict-redaction.test.d.ts.map +1 -1
  234. package/lib/cjs/tests/api_tests/security/globalunique-conflict-redaction.test.js +164 -75
  235. package/lib/cjs/tests/api_tests/security/globalunique-conflict-redaction.test.js.map +1 -1
  236. package/lib/cjs/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.d.ts +15 -9
  237. package/lib/cjs/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.d.ts.map +1 -1
  238. package/lib/cjs/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.js +99 -102
  239. package/lib/cjs/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.js.map +1 -1
  240. package/lib/cjs/tests/api_tests/security/load-inbox-redaction.test.d.ts +11 -5
  241. package/lib/cjs/tests/api_tests/security/load-inbox-redaction.test.d.ts.map +1 -1
  242. package/lib/cjs/tests/api_tests/security/load-inbox-redaction.test.js +132 -89
  243. package/lib/cjs/tests/api_tests/security/load-inbox-redaction.test.js.map +1 -1
  244. package/lib/cjs/tests/api_tests/security/proxy-image-unauth-ssrf.test.d.ts +12 -5
  245. package/lib/cjs/tests/api_tests/security/proxy-image-unauth-ssrf.test.d.ts.map +1 -1
  246. package/lib/cjs/tests/api_tests/security/proxy-image-unauth-ssrf.test.js +190 -138
  247. package/lib/cjs/tests/api_tests/security/proxy-image-unauth-ssrf.test.js.map +1 -1
  248. package/lib/cjs/tests/api_tests/security/register_business_id_injection.test.d.ts +18 -16
  249. package/lib/cjs/tests/api_tests/security/register_business_id_injection.test.d.ts.map +1 -1
  250. package/lib/cjs/tests/api_tests/security/register_business_id_injection.test.js +164 -124
  251. package/lib/cjs/tests/api_tests/security/register_business_id_injection.test.js.map +1 -1
  252. package/lib/cjs/tests/api_tests/security/sanitize-user-html-with-iframes.test.d.ts.map +1 -1
  253. package/lib/cjs/tests/api_tests/security/sanitize-user-html-with-iframes.test.js +122 -2
  254. package/lib/cjs/tests/api_tests/security/sanitize-user-html-with-iframes.test.js.map +1 -1
  255. package/lib/cjs/tests/api_tests/security/schema-adminonly-enforcement.test.d.ts +11 -5
  256. package/lib/cjs/tests/api_tests/security/schema-adminonly-enforcement.test.d.ts.map +1 -1
  257. package/lib/cjs/tests/api_tests/security/schema-adminonly-enforcement.test.js +288 -274
  258. package/lib/cjs/tests/api_tests/security/schema-adminonly-enforcement.test.js.map +1 -1
  259. package/lib/cjs/tests/api_tests/security/self-admin-role-assignment.test.d.ts +17 -10
  260. package/lib/cjs/tests/api_tests/security/self-admin-role-assignment.test.d.ts.map +1 -1
  261. package/lib/cjs/tests/api_tests/security/self-admin-role-assignment.test.js +173 -138
  262. package/lib/cjs/tests/api_tests/security/self-admin-role-assignment.test.js.map +1 -1
  263. package/lib/cjs/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.d.ts +6 -5
  264. package/lib/cjs/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.d.ts.map +1 -1
  265. package/lib/cjs/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.js +310 -265
  266. package/lib/cjs/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.js.map +1 -1
  267. package/lib/cjs/tests/api_tests/security/webhook-timeout.test.d.ts +9 -5
  268. package/lib/cjs/tests/api_tests/security/webhook-timeout.test.d.ts.map +1 -1
  269. package/lib/cjs/tests/api_tests/security/webhook-timeout.test.js +108 -83
  270. package/lib/cjs/tests/api_tests/security/webhook-timeout.test.js.map +1 -1
  271. package/lib/cjs/tests/api_tests/stedi_approval.test.d.ts +6 -5
  272. package/lib/cjs/tests/api_tests/stedi_approval.test.d.ts.map +1 -1
  273. package/lib/cjs/tests/api_tests/stedi_approval.test.js +206 -137
  274. package/lib/cjs/tests/api_tests/stedi_approval.test.js.map +1 -1
  275. package/lib/cjs/tests/api_tests/ticket_stage_archive.test.d.ts +7 -0
  276. package/lib/cjs/tests/api_tests/ticket_stage_archive.test.d.ts.map +1 -0
  277. package/lib/cjs/tests/api_tests/ticket_stage_archive.test.js +344 -0
  278. package/lib/cjs/tests/api_tests/ticket_stage_archive.test.js.map +1 -0
  279. package/lib/cjs/tests/api_tests/tickets_bulk_assign_care_team.test.d.ts +6 -5
  280. package/lib/cjs/tests/api_tests/tickets_bulk_assign_care_team.test.d.ts.map +1 -1
  281. package/lib/cjs/tests/api_tests/tickets_bulk_assign_care_team.test.js +165 -149
  282. package/lib/cjs/tests/api_tests/tickets_bulk_assign_care_team.test.js.map +1 -1
  283. package/lib/cjs/tests/api_tests/translations.test.d.ts +6 -5
  284. package/lib/cjs/tests/api_tests/translations.test.d.ts.map +1 -1
  285. package/lib/cjs/tests/api_tests/translations.test.js +104 -75
  286. package/lib/cjs/tests/api_tests/translations.test.js.map +1 -1
  287. package/lib/cjs/tests/api_tests/trigger_set_fields_date_difference.test.d.ts +21 -4
  288. package/lib/cjs/tests/api_tests/trigger_set_fields_date_difference.test.d.ts.map +1 -1
  289. package/lib/cjs/tests/api_tests/trigger_set_fields_date_difference.test.js +238 -370
  290. package/lib/cjs/tests/api_tests/trigger_set_fields_date_difference.test.js.map +1 -1
  291. package/lib/cjs/tests/api_tests/user_preferences.test.d.ts +30 -0
  292. package/lib/cjs/tests/api_tests/user_preferences.test.d.ts.map +1 -0
  293. package/lib/cjs/tests/api_tests/user_preferences.test.js +279 -0
  294. package/lib/cjs/tests/api_tests/user_preferences.test.js.map +1 -0
  295. package/lib/cjs/tests/api_tests/webhook_error_handling.test.d.ts +17 -5
  296. package/lib/cjs/tests/api_tests/webhook_error_handling.test.d.ts.map +1 -1
  297. package/lib/cjs/tests/api_tests/webhook_error_handling.test.js +204 -195
  298. package/lib/cjs/tests/api_tests/webhook_error_handling.test.js.map +1 -1
  299. package/lib/cjs/tests/api_tests/webhook_raw_json_number.test.d.ts +15 -5
  300. package/lib/cjs/tests/api_tests/webhook_raw_json_number.test.d.ts.map +1 -1
  301. package/lib/cjs/tests/api_tests/webhook_raw_json_number.test.js +154 -179
  302. package/lib/cjs/tests/api_tests/webhook_raw_json_number.test.js.map +1 -1
  303. package/lib/cjs/tests/api_tests/welle_partner_token.test.d.ts +6 -5
  304. package/lib/cjs/tests/api_tests/welle_partner_token.test.d.ts.map +1 -1
  305. package/lib/cjs/tests/api_tests/welle_partner_token.test.js +393 -251
  306. package/lib/cjs/tests/api_tests/welle_partner_token.test.js.map +1 -1
  307. package/lib/cjs/tests/setup_isolated.d.ts +7 -0
  308. package/lib/cjs/tests/setup_isolated.d.ts.map +1 -1
  309. package/lib/cjs/tests/setup_isolated.js.map +1 -1
  310. package/lib/cjs/tests/tests.d.ts.map +1 -1
  311. package/lib/cjs/tests/tests.js +229 -461
  312. package/lib/cjs/tests/tests.js.map +1 -1
  313. package/lib/cjs/tests/unit_tests/date_string_validation.test.d.ts +2 -0
  314. package/lib/cjs/tests/unit_tests/date_string_validation.test.d.ts.map +1 -0
  315. package/lib/cjs/tests/unit_tests/date_string_validation.test.js +112 -0
  316. package/lib/cjs/tests/unit_tests/date_string_validation.test.js.map +1 -0
  317. package/lib/cjs/tsconfig.cjs.tsbuildinfo +1 -1
  318. package/lib/esm/sdk.d.ts +6 -5
  319. package/lib/esm/sdk.d.ts.map +1 -1
  320. package/lib/esm/sdk.js +5 -0
  321. package/lib/esm/sdk.js.map +1 -1
  322. package/lib/esm/tests/api_tests/ai_conversations.test.d.ts +14 -5
  323. package/lib/esm/tests/api_tests/ai_conversations.test.d.ts.map +1 -1
  324. package/lib/esm/tests/api_tests/ai_conversations.test.js +161 -148
  325. package/lib/esm/tests/api_tests/ai_conversations.test.js.map +1 -1
  326. package/lib/esm/tests/api_tests/ai_conversations_agent_message.test.d.ts +22 -0
  327. package/lib/esm/tests/api_tests/ai_conversations_agent_message.test.d.ts.map +1 -0
  328. package/lib/esm/tests/api_tests/ai_conversations_agent_message.test.js +510 -0
  329. package/lib/esm/tests/api_tests/ai_conversations_agent_message.test.js.map +1 -0
  330. package/lib/esm/tests/api_tests/appointment_link_expiration.test.d.ts +6 -5
  331. package/lib/esm/tests/api_tests/appointment_link_expiration.test.d.ts.map +1 -1
  332. package/lib/esm/tests/api_tests/appointment_link_expiration.test.js +132 -71
  333. package/lib/esm/tests/api_tests/appointment_link_expiration.test.js.map +1 -1
  334. package/lib/esm/tests/api_tests/appointment_no_showed_trigger.test.d.ts +6 -5
  335. package/lib/esm/tests/api_tests/appointment_no_showed_trigger.test.d.ts.map +1 -1
  336. package/lib/esm/tests/api_tests/appointment_no_showed_trigger.test.js +238 -173
  337. package/lib/esm/tests/api_tests/appointment_no_showed_trigger.test.js.map +1 -1
  338. package/lib/esm/tests/api_tests/availability_block_buffer.test.d.ts +22 -0
  339. package/lib/esm/tests/api_tests/availability_block_buffer.test.d.ts.map +1 -0
  340. package/lib/esm/tests/api_tests/availability_block_buffer.test.js +306 -0
  341. package/lib/esm/tests/api_tests/availability_block_buffer.test.js.map +1 -0
  342. package/lib/esm/tests/api_tests/beluga_manual_sync.test.d.ts +6 -5
  343. package/lib/esm/tests/api_tests/beluga_manual_sync.test.d.ts.map +1 -1
  344. package/lib/esm/tests/api_tests/beluga_manual_sync.test.js +232 -190
  345. package/lib/esm/tests/api_tests/beluga_manual_sync.test.js.map +1 -1
  346. package/lib/esm/tests/api_tests/beluga_trigger_refill.test.d.ts +6 -5
  347. package/lib/esm/tests/api_tests/beluga_trigger_refill.test.d.ts.map +1 -1
  348. package/lib/esm/tests/api_tests/beluga_trigger_refill.test.js +348 -262
  349. package/lib/esm/tests/api_tests/beluga_trigger_refill.test.js.map +1 -1
  350. package/lib/esm/tests/api_tests/bulk_assignment.test.d.ts +16 -5
  351. package/lib/esm/tests/api_tests/bulk_assignment.test.d.ts.map +1 -1
  352. package/lib/esm/tests/api_tests/bulk_assignment.test.js +333 -241
  353. package/lib/esm/tests/api_tests/bulk_assignment.test.js.map +1 -1
  354. package/lib/esm/tests/api_tests/calendar_event_references_update.test.d.ts +13 -5
  355. package/lib/esm/tests/api_tests/calendar_event_references_update.test.d.ts.map +1 -1
  356. package/lib/esm/tests/api_tests/calendar_event_references_update.test.js +129 -107
  357. package/lib/esm/tests/api_tests/calendar_event_references_update.test.js.map +1 -1
  358. package/lib/esm/tests/api_tests/calendar_event_webhook_template.test.d.ts +15 -5
  359. package/lib/esm/tests/api_tests/calendar_event_webhook_template.test.d.ts.map +1 -1
  360. package/lib/esm/tests/api_tests/calendar_event_webhook_template.test.js +238 -251
  361. package/lib/esm/tests/api_tests/calendar_event_webhook_template.test.js.map +1 -1
  362. package/lib/esm/tests/api_tests/chats_analytics.test.d.ts +14 -5
  363. package/lib/esm/tests/api_tests/chats_analytics.test.d.ts.map +1 -1
  364. package/lib/esm/tests/api_tests/chats_analytics.test.js +188 -188
  365. package/lib/esm/tests/api_tests/chats_analytics.test.js.map +1 -1
  366. package/lib/esm/tests/api_tests/concurrent_build_threads.test.d.ts +23 -5
  367. package/lib/esm/tests/api_tests/concurrent_build_threads.test.d.ts.map +1 -1
  368. package/lib/esm/tests/api_tests/concurrent_build_threads.test.js +119 -117
  369. package/lib/esm/tests/api_tests/concurrent_build_threads.test.js.map +1 -1
  370. package/lib/esm/tests/api_tests/configurations_public_read.test.d.ts +21 -5
  371. package/lib/esm/tests/api_tests/configurations_public_read.test.d.ts.map +1 -1
  372. package/lib/esm/tests/api_tests/configurations_public_read.test.js +233 -118
  373. package/lib/esm/tests/api_tests/configurations_public_read.test.js.map +1 -1
  374. package/lib/esm/tests/api_tests/copied_form_response_no_enduser_sync.test.d.ts +7 -0
  375. package/lib/esm/tests/api_tests/copied_form_response_no_enduser_sync.test.d.ts.map +1 -0
  376. package/lib/esm/tests/api_tests/copied_form_response_no_enduser_sync.test.js +351 -0
  377. package/lib/esm/tests/api_tests/copied_form_response_no_enduser_sync.test.js.map +1 -0
  378. package/lib/esm/tests/api_tests/create_note_action.test.d.ts +18 -5
  379. package/lib/esm/tests/api_tests/create_note_action.test.d.ts.map +1 -1
  380. package/lib/esm/tests/api_tests/create_note_action.test.js +216 -172
  381. package/lib/esm/tests/api_tests/create_note_action.test.js.map +1 -1
  382. package/lib/esm/tests/api_tests/create_user_notifications_trigger.test.d.ts +17 -4
  383. package/lib/esm/tests/api_tests/create_user_notifications_trigger.test.d.ts.map +1 -1
  384. package/lib/esm/tests/api_tests/create_user_notifications_trigger.test.js +141 -203
  385. package/lib/esm/tests/api_tests/create_user_notifications_trigger.test.js.map +1 -1
  386. package/lib/esm/tests/api_tests/custom_aggregation.test.d.ts +15 -5
  387. package/lib/esm/tests/api_tests/custom_aggregation.test.d.ts.map +1 -1
  388. package/lib/esm/tests/api_tests/custom_aggregation.test.js +282 -222
  389. package/lib/esm/tests/api_tests/custom_aggregation.test.js.map +1 -1
  390. package/lib/esm/tests/api_tests/database_cascade_delete.test.d.ts +13 -5
  391. package/lib/esm/tests/api_tests/database_cascade_delete.test.d.ts.map +1 -1
  392. package/lib/esm/tests/api_tests/database_cascade_delete.test.js +216 -241
  393. package/lib/esm/tests/api_tests/database_cascade_delete.test.js.map +1 -1
  394. package/lib/esm/tests/api_tests/dont_sync_to_elation_form_submission.test.d.ts +21 -5
  395. package/lib/esm/tests/api_tests/dont_sync_to_elation_form_submission.test.d.ts.map +1 -1
  396. package/lib/esm/tests/api_tests/dont_sync_to_elation_form_submission.test.js +165 -110
  397. package/lib/esm/tests/api_tests/dont_sync_to_elation_form_submission.test.js.map +1 -1
  398. package/lib/esm/tests/api_tests/elation_user_id.test.d.ts +17 -5
  399. package/lib/esm/tests/api_tests/elation_user_id.test.d.ts.map +1 -1
  400. package/lib/esm/tests/api_tests/elation_user_id.test.js +119 -53
  401. package/lib/esm/tests/api_tests/elation_user_id.test.js.map +1 -1
  402. package/lib/esm/tests/api_tests/file_download_unicode_names.test.d.ts +6 -5
  403. package/lib/esm/tests/api_tests/file_download_unicode_names.test.d.ts.map +1 -1
  404. package/lib/esm/tests/api_tests/file_download_unicode_names.test.js +190 -141
  405. package/lib/esm/tests/api_tests/file_download_unicode_names.test.js.map +1 -1
  406. package/lib/esm/tests/api_tests/form_intake_email_normalization.test.d.ts +7 -0
  407. package/lib/esm/tests/api_tests/form_intake_email_normalization.test.d.ts.map +1 -0
  408. package/lib/esm/tests/api_tests/form_intake_email_normalization.test.js +527 -0
  409. package/lib/esm/tests/api_tests/form_intake_email_normalization.test.js.map +1 -0
  410. package/lib/esm/tests/api_tests/form_submitted_trigger.test.d.ts +25 -5
  411. package/lib/esm/tests/api_tests/form_submitted_trigger.test.d.ts.map +1 -1
  412. package/lib/esm/tests/api_tests/form_submitted_trigger.test.js +393 -365
  413. package/lib/esm/tests/api_tests/form_submitted_trigger.test.js.map +1 -1
  414. package/lib/esm/tests/api_tests/form_translations.test.d.ts +6 -5
  415. package/lib/esm/tests/api_tests/form_translations.test.d.ts.map +1 -1
  416. package/lib/esm/tests/api_tests/form_translations.test.js +268 -189
  417. package/lib/esm/tests/api_tests/form_translations.test.js.map +1 -1
  418. package/lib/esm/tests/api_tests/formsort_header_auth.test.d.ts +29 -5
  419. package/lib/esm/tests/api_tests/formsort_header_auth.test.d.ts.map +1 -1
  420. package/lib/esm/tests/api_tests/formsort_header_auth.test.js +177 -161
  421. package/lib/esm/tests/api_tests/formsort_header_auth.test.js.map +1 -1
  422. package/lib/esm/tests/api_tests/gcal_sync_retry.test.d.ts +12 -6
  423. package/lib/esm/tests/api_tests/gcal_sync_retry.test.d.ts.map +1 -1
  424. package/lib/esm/tests/api_tests/gcal_sync_retry.test.js +96 -83
  425. package/lib/esm/tests/api_tests/gcal_sync_retry.test.js.map +1 -1
  426. package/lib/esm/tests/api_tests/get_some_projection.test.d.ts +20 -5
  427. package/lib/esm/tests/api_tests/get_some_projection.test.d.ts.map +1 -1
  428. package/lib/esm/tests/api_tests/get_some_projection.test.js +339 -296
  429. package/lib/esm/tests/api_tests/get_some_projection.test.js.map +1 -1
  430. package/lib/esm/tests/api_tests/group_event_attendee_self_update.test.d.ts +6 -5
  431. package/lib/esm/tests/api_tests/group_event_attendee_self_update.test.d.ts.map +1 -1
  432. package/lib/esm/tests/api_tests/group_event_attendee_self_update.test.js +292 -222
  433. package/lib/esm/tests/api_tests/group_event_attendee_self_update.test.js.map +1 -1
  434. package/lib/esm/tests/api_tests/integrations_redacted.test.d.ts +6 -5
  435. package/lib/esm/tests/api_tests/integrations_redacted.test.d.ts.map +1 -1
  436. package/lib/esm/tests/api_tests/integrations_redacted.test.js +304 -211
  437. package/lib/esm/tests/api_tests/integrations_redacted.test.js.map +1 -1
  438. package/lib/esm/tests/api_tests/journey_delete_cancels_actions.test.d.ts +6 -5
  439. package/lib/esm/tests/api_tests/journey_delete_cancels_actions.test.d.ts.map +1 -1
  440. package/lib/esm/tests/api_tests/journey_delete_cancels_actions.test.js +177 -154
  441. package/lib/esm/tests/api_tests/journey_delete_cancels_actions.test.js.map +1 -1
  442. package/lib/esm/tests/api_tests/load_team_chat.test.d.ts.map +1 -1
  443. package/lib/esm/tests/api_tests/load_team_chat.test.js +181 -124
  444. package/lib/esm/tests/api_tests/load_team_chat.test.js.map +1 -1
  445. package/lib/esm/tests/api_tests/load_threads_autobuild.test.d.ts +24 -5
  446. package/lib/esm/tests/api_tests/load_threads_autobuild.test.d.ts.map +1 -1
  447. package/lib/esm/tests/api_tests/load_threads_autobuild.test.js +259 -226
  448. package/lib/esm/tests/api_tests/load_threads_autobuild.test.js.map +1 -1
  449. package/lib/esm/tests/api_tests/load_threads_care_team.test.d.ts +6 -0
  450. package/lib/esm/tests/api_tests/load_threads_care_team.test.d.ts.map +1 -1
  451. package/lib/esm/tests/api_tests/load_threads_care_team.test.js +115 -31
  452. package/lib/esm/tests/api_tests/load_threads_care_team.test.js.map +1 -1
  453. package/lib/esm/tests/api_tests/managed_content_file_access.test.d.ts +15 -5
  454. package/lib/esm/tests/api_tests/managed_content_file_access.test.d.ts.map +1 -1
  455. package/lib/esm/tests/api_tests/managed_content_file_access.test.js +283 -287
  456. package/lib/esm/tests/api_tests/managed_content_file_access.test.js.map +1 -1
  457. package/lib/esm/tests/api_tests/mdb_sort.test.d.ts +20 -5
  458. package/lib/esm/tests/api_tests/mdb_sort.test.d.ts.map +1 -1
  459. package/lib/esm/tests/api_tests/mdb_sort.test.js +358 -303
  460. package/lib/esm/tests/api_tests/mdb_sort.test.js.map +1 -1
  461. package/lib/esm/tests/api_tests/mdi_manual_sync.test.d.ts +27 -0
  462. package/lib/esm/tests/api_tests/mdi_manual_sync.test.d.ts.map +1 -0
  463. package/lib/esm/tests/api_tests/mdi_manual_sync.test.js +390 -0
  464. package/lib/esm/tests/api_tests/mdi_manual_sync.test.js.map +1 -0
  465. package/lib/esm/tests/api_tests/mdi_trigger_refill.test.d.ts +6 -5
  466. package/lib/esm/tests/api_tests/mdi_trigger_refill.test.d.ts.map +1 -1
  467. package/lib/esm/tests/api_tests/mdi_trigger_refill.test.js +257 -208
  468. package/lib/esm/tests/api_tests/mdi_trigger_refill.test.js.map +1 -1
  469. package/lib/esm/tests/api_tests/mdi_webhooks.test.d.ts +12 -5
  470. package/lib/esm/tests/api_tests/mdi_webhooks.test.d.ts.map +1 -1
  471. package/lib/esm/tests/api_tests/mdi_webhooks.test.js +65 -60
  472. package/lib/esm/tests/api_tests/mdi_webhooks.test.js.map +1 -1
  473. package/lib/esm/tests/api_tests/message_assignment_trigger.test.d.ts +23 -14
  474. package/lib/esm/tests/api_tests/message_assignment_trigger.test.d.ts.map +1 -1
  475. package/lib/esm/tests/api_tests/message_assignment_trigger.test.js +256 -305
  476. package/lib/esm/tests/api_tests/message_assignment_trigger.test.js.map +1 -1
  477. package/lib/esm/tests/api_tests/metriport_push_form_response.test.d.ts +6 -5
  478. package/lib/esm/tests/api_tests/metriport_push_form_response.test.d.ts.map +1 -1
  479. package/lib/esm/tests/api_tests/metriport_push_form_response.test.js +298 -236
  480. package/lib/esm/tests/api_tests/metriport_push_form_response.test.js.map +1 -1
  481. package/lib/esm/tests/api_tests/organization_api_keys.test.d.ts.map +1 -1
  482. package/lib/esm/tests/api_tests/organization_api_keys.test.js +226 -59
  483. package/lib/esm/tests/api_tests/organization_api_keys.test.js.map +1 -1
  484. package/lib/esm/tests/api_tests/organization_settings_duplicates.test.d.ts +19 -5
  485. package/lib/esm/tests/api_tests/organization_settings_duplicates.test.d.ts.map +1 -1
  486. package/lib/esm/tests/api_tests/organization_settings_duplicates.test.js +332 -220
  487. package/lib/esm/tests/api_tests/organization_settings_duplicates.test.js.map +1 -1
  488. package/lib/esm/tests/api_tests/organization_signup.test.d.ts.map +1 -1
  489. package/lib/esm/tests/api_tests/organization_signup.test.js +218 -51
  490. package/lib/esm/tests/api_tests/organization_signup.test.js.map +1 -1
  491. package/lib/esm/tests/api_tests/out_of_office_endpoint.test.d.ts.map +1 -1
  492. package/lib/esm/tests/api_tests/out_of_office_endpoint.test.js +109 -1
  493. package/lib/esm/tests/api_tests/out_of_office_endpoint.test.js.map +1 -1
  494. package/lib/esm/tests/api_tests/outbound_chat_sent_trigger.test.d.ts +6 -6
  495. package/lib/esm/tests/api_tests/outbound_chat_sent_trigger.test.d.ts.map +1 -1
  496. package/lib/esm/tests/api_tests/outbound_chat_sent_trigger.test.js +308 -361
  497. package/lib/esm/tests/api_tests/outbound_chat_sent_trigger.test.js.map +1 -1
  498. package/lib/esm/tests/api_tests/phone_calls_cold_transfer.test.d.ts +6 -5
  499. package/lib/esm/tests/api_tests/phone_calls_cold_transfer.test.d.ts.map +1 -1
  500. package/lib/esm/tests/api_tests/phone_calls_cold_transfer.test.js +243 -163
  501. package/lib/esm/tests/api_tests/phone_calls_cold_transfer.test.js.map +1 -1
  502. package/lib/esm/tests/api_tests/phone_calls_conference_hold.test.d.ts +15 -5
  503. package/lib/esm/tests/api_tests/phone_calls_conference_hold.test.d.ts.map +1 -1
  504. package/lib/esm/tests/api_tests/phone_calls_conference_hold.test.js +127 -45
  505. package/lib/esm/tests/api_tests/phone_calls_conference_hold.test.js.map +1 -1
  506. package/lib/esm/tests/api_tests/phone_tree_enduser_condition.test.d.ts +6 -5
  507. package/lib/esm/tests/api_tests/phone_tree_enduser_condition.test.d.ts.map +1 -1
  508. package/lib/esm/tests/api_tests/phone_tree_enduser_condition.test.js +177 -130
  509. package/lib/esm/tests/api_tests/phone_tree_enduser_condition.test.js.map +1 -1
  510. package/lib/esm/tests/api_tests/programs.test.d.ts.map +1 -1
  511. package/lib/esm/tests/api_tests/programs.test.js +417 -50
  512. package/lib/esm/tests/api_tests/programs.test.js.map +1 -1
  513. package/lib/esm/tests/api_tests/security/ai-conversations-rbac.test.d.ts +10 -5
  514. package/lib/esm/tests/api_tests/security/ai-conversations-rbac.test.d.ts.map +1 -1
  515. package/lib/esm/tests/api_tests/security/ai-conversations-rbac.test.js +399 -281
  516. package/lib/esm/tests/api_tests/security/ai-conversations-rbac.test.js.map +1 -1
  517. package/lib/esm/tests/api_tests/security/automated-actions-process-gate.test.d.ts +9 -5
  518. package/lib/esm/tests/api_tests/security/automated-actions-process-gate.test.d.ts.map +1 -1
  519. package/lib/esm/tests/api_tests/security/automated-actions-process-gate.test.js +225 -209
  520. package/lib/esm/tests/api_tests/security/automated-actions-process-gate.test.js.map +1 -1
  521. package/lib/esm/tests/api_tests/security/booking-info-idor-token-mint.test.d.ts +13 -8
  522. package/lib/esm/tests/api_tests/security/booking-info-idor-token-mint.test.d.ts.map +1 -1
  523. package/lib/esm/tests/api_tests/security/booking-info-idor-token-mint.test.js +268 -253
  524. package/lib/esm/tests/api_tests/security/booking-info-idor-token-mint.test.js.map +1 -1
  525. package/lib/esm/tests/api_tests/security/cascade-role-rename-cross-tenant.test.d.ts +16 -6
  526. package/lib/esm/tests/api_tests/security/cascade-role-rename-cross-tenant.test.d.ts.map +1 -1
  527. package/lib/esm/tests/api_tests/security/cascade-role-rename-cross-tenant.test.js +165 -141
  528. package/lib/esm/tests/api_tests/security/cascade-role-rename-cross-tenant.test.js.map +1 -1
  529. package/lib/esm/tests/api_tests/security/data-sync-redaction-bypass.test.d.ts +10 -5
  530. package/lib/esm/tests/api_tests/security/data-sync-redaction-bypass.test.d.ts.map +1 -1
  531. package/lib/esm/tests/api_tests/security/data-sync-redaction-bypass.test.js +294 -220
  532. package/lib/esm/tests/api_tests/security/data-sync-redaction-bypass.test.js.map +1 -1
  533. package/lib/esm/tests/api_tests/security/develop-health-benefit-verification-rbac.test.d.ts +12 -5
  534. package/lib/esm/tests/api_tests/security/develop-health-benefit-verification-rbac.test.d.ts.map +1 -1
  535. package/lib/esm/tests/api_tests/security/develop-health-benefit-verification-rbac.test.js +219 -215
  536. package/lib/esm/tests/api_tests/security/develop-health-benefit-verification-rbac.test.js.map +1 -1
  537. package/lib/esm/tests/api_tests/security/enduser-ai-summary-trust-gate.test.d.ts +11 -5
  538. package/lib/esm/tests/api_tests/security/enduser-ai-summary-trust-gate.test.d.ts.map +1 -1
  539. package/lib/esm/tests/api_tests/security/enduser-ai-summary-trust-gate.test.js +298 -202
  540. package/lib/esm/tests/api_tests/security/enduser-ai-summary-trust-gate.test.js.map +1 -1
  541. package/lib/esm/tests/api_tests/security/enduser-cross-create.test.d.ts +11 -5
  542. package/lib/esm/tests/api_tests/security/enduser-cross-create.test.d.ts.map +1 -1
  543. package/lib/esm/tests/api_tests/security/enduser-cross-create.test.js +413 -274
  544. package/lib/esm/tests/api_tests/security/enduser-cross-create.test.js.map +1 -1
  545. package/lib/esm/tests/api_tests/security/enduser-write-restrictions.test.d.ts +11 -5
  546. package/lib/esm/tests/api_tests/security/enduser-write-restrictions.test.d.ts.map +1 -1
  547. package/lib/esm/tests/api_tests/security/enduser-write-restrictions.test.js +345 -227
  548. package/lib/esm/tests/api_tests/security/enduser-write-restrictions.test.js.map +1 -1
  549. package/lib/esm/tests/api_tests/security/globalunique-conflict-redaction.test.d.ts +18 -7
  550. package/lib/esm/tests/api_tests/security/globalunique-conflict-redaction.test.d.ts.map +1 -1
  551. package/lib/esm/tests/api_tests/security/globalunique-conflict-redaction.test.js +162 -74
  552. package/lib/esm/tests/api_tests/security/globalunique-conflict-redaction.test.js.map +1 -1
  553. package/lib/esm/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.d.ts +15 -9
  554. package/lib/esm/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.d.ts.map +1 -1
  555. package/lib/esm/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.js +96 -100
  556. package/lib/esm/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.js.map +1 -1
  557. package/lib/esm/tests/api_tests/security/load-inbox-redaction.test.d.ts +11 -5
  558. package/lib/esm/tests/api_tests/security/load-inbox-redaction.test.d.ts.map +1 -1
  559. package/lib/esm/tests/api_tests/security/load-inbox-redaction.test.js +129 -87
  560. package/lib/esm/tests/api_tests/security/load-inbox-redaction.test.js.map +1 -1
  561. package/lib/esm/tests/api_tests/security/proxy-image-unauth-ssrf.test.d.ts +12 -5
  562. package/lib/esm/tests/api_tests/security/proxy-image-unauth-ssrf.test.d.ts.map +1 -1
  563. package/lib/esm/tests/api_tests/security/proxy-image-unauth-ssrf.test.js +187 -136
  564. package/lib/esm/tests/api_tests/security/proxy-image-unauth-ssrf.test.js.map +1 -1
  565. package/lib/esm/tests/api_tests/security/register_business_id_injection.test.d.ts +18 -16
  566. package/lib/esm/tests/api_tests/security/register_business_id_injection.test.d.ts.map +1 -1
  567. package/lib/esm/tests/api_tests/security/register_business_id_injection.test.js +162 -123
  568. package/lib/esm/tests/api_tests/security/register_business_id_injection.test.js.map +1 -1
  569. package/lib/esm/tests/api_tests/security/sanitize-user-html-with-iframes.test.d.ts.map +1 -1
  570. package/lib/esm/tests/api_tests/security/sanitize-user-html-with-iframes.test.js +122 -2
  571. package/lib/esm/tests/api_tests/security/sanitize-user-html-with-iframes.test.js.map +1 -1
  572. package/lib/esm/tests/api_tests/security/schema-adminonly-enforcement.test.d.ts +11 -5
  573. package/lib/esm/tests/api_tests/security/schema-adminonly-enforcement.test.d.ts.map +1 -1
  574. package/lib/esm/tests/api_tests/security/schema-adminonly-enforcement.test.js +285 -272
  575. package/lib/esm/tests/api_tests/security/schema-adminonly-enforcement.test.js.map +1 -1
  576. package/lib/esm/tests/api_tests/security/self-admin-role-assignment.test.d.ts +17 -10
  577. package/lib/esm/tests/api_tests/security/self-admin-role-assignment.test.d.ts.map +1 -1
  578. package/lib/esm/tests/api_tests/security/self-admin-role-assignment.test.js +171 -137
  579. package/lib/esm/tests/api_tests/security/self-admin-role-assignment.test.js.map +1 -1
  580. package/lib/esm/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.d.ts +6 -5
  581. package/lib/esm/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.d.ts.map +1 -1
  582. package/lib/esm/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.js +307 -263
  583. package/lib/esm/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.js.map +1 -1
  584. package/lib/esm/tests/api_tests/security/webhook-timeout.test.d.ts +9 -5
  585. package/lib/esm/tests/api_tests/security/webhook-timeout.test.d.ts.map +1 -1
  586. package/lib/esm/tests/api_tests/security/webhook-timeout.test.js +105 -81
  587. package/lib/esm/tests/api_tests/security/webhook-timeout.test.js.map +1 -1
  588. package/lib/esm/tests/api_tests/stedi_approval.test.d.ts +6 -5
  589. package/lib/esm/tests/api_tests/stedi_approval.test.d.ts.map +1 -1
  590. package/lib/esm/tests/api_tests/stedi_approval.test.js +204 -136
  591. package/lib/esm/tests/api_tests/stedi_approval.test.js.map +1 -1
  592. package/lib/esm/tests/api_tests/ticket_stage_archive.test.d.ts +7 -0
  593. package/lib/esm/tests/api_tests/ticket_stage_archive.test.d.ts.map +1 -0
  594. package/lib/esm/tests/api_tests/ticket_stage_archive.test.js +339 -0
  595. package/lib/esm/tests/api_tests/ticket_stage_archive.test.js.map +1 -0
  596. package/lib/esm/tests/api_tests/tickets_bulk_assign_care_team.test.d.ts +6 -5
  597. package/lib/esm/tests/api_tests/tickets_bulk_assign_care_team.test.d.ts.map +1 -1
  598. package/lib/esm/tests/api_tests/tickets_bulk_assign_care_team.test.js +162 -147
  599. package/lib/esm/tests/api_tests/tickets_bulk_assign_care_team.test.js.map +1 -1
  600. package/lib/esm/tests/api_tests/translations.test.d.ts +6 -5
  601. package/lib/esm/tests/api_tests/translations.test.d.ts.map +1 -1
  602. package/lib/esm/tests/api_tests/translations.test.js +102 -74
  603. package/lib/esm/tests/api_tests/translations.test.js.map +1 -1
  604. package/lib/esm/tests/api_tests/trigger_set_fields_date_difference.test.d.ts +21 -4
  605. package/lib/esm/tests/api_tests/trigger_set_fields_date_difference.test.d.ts.map +1 -1
  606. package/lib/esm/tests/api_tests/trigger_set_fields_date_difference.test.js +236 -369
  607. package/lib/esm/tests/api_tests/trigger_set_fields_date_difference.test.js.map +1 -1
  608. package/lib/esm/tests/api_tests/user_preferences.test.d.ts +30 -0
  609. package/lib/esm/tests/api_tests/user_preferences.test.d.ts.map +1 -0
  610. package/lib/esm/tests/api_tests/user_preferences.test.js +274 -0
  611. package/lib/esm/tests/api_tests/user_preferences.test.js.map +1 -0
  612. package/lib/esm/tests/api_tests/webhook_error_handling.test.d.ts +17 -5
  613. package/lib/esm/tests/api_tests/webhook_error_handling.test.d.ts.map +1 -1
  614. package/lib/esm/tests/api_tests/webhook_error_handling.test.js +202 -194
  615. package/lib/esm/tests/api_tests/webhook_error_handling.test.js.map +1 -1
  616. package/lib/esm/tests/api_tests/webhook_raw_json_number.test.d.ts +15 -5
  617. package/lib/esm/tests/api_tests/webhook_raw_json_number.test.d.ts.map +1 -1
  618. package/lib/esm/tests/api_tests/webhook_raw_json_number.test.js +152 -178
  619. package/lib/esm/tests/api_tests/webhook_raw_json_number.test.js.map +1 -1
  620. package/lib/esm/tests/api_tests/welle_partner_token.test.d.ts +6 -5
  621. package/lib/esm/tests/api_tests/welle_partner_token.test.d.ts.map +1 -1
  622. package/lib/esm/tests/api_tests/welle_partner_token.test.js +391 -250
  623. package/lib/esm/tests/api_tests/welle_partner_token.test.js.map +1 -1
  624. package/lib/esm/tests/setup_isolated.d.ts +7 -0
  625. package/lib/esm/tests/setup_isolated.d.ts.map +1 -1
  626. package/lib/esm/tests/setup_isolated.js.map +1 -1
  627. package/lib/esm/tests/tests.d.ts.map +1 -1
  628. package/lib/esm/tests/tests.js +229 -461
  629. package/lib/esm/tests/tests.js.map +1 -1
  630. package/lib/esm/tests/unit_tests/date_string_validation.test.d.ts +2 -0
  631. package/lib/esm/tests/unit_tests/date_string_validation.test.d.ts.map +1 -0
  632. package/lib/esm/tests/unit_tests/date_string_validation.test.js +108 -0
  633. package/lib/esm/tests/unit_tests/date_string_validation.test.js.map +1 -0
  634. package/lib/tsconfig.tsbuildinfo +1 -1
  635. package/package.json +10 -10
  636. package/src/sdk.ts +14 -3
  637. package/src/tests/api_tests/ai_conversations.test.ts +170 -138
  638. package/src/tests/api_tests/ai_conversations_agent_message.test.ts +491 -0
  639. package/src/tests/api_tests/appointment_link_expiration.test.ts +94 -35
  640. package/src/tests/api_tests/appointment_no_showed_trigger.test.ts +181 -128
  641. package/src/tests/api_tests/availability_block_buffer.test.ts +286 -0
  642. package/src/tests/api_tests/beluga_manual_sync.test.ts +103 -53
  643. package/src/tests/api_tests/beluga_trigger_refill.test.ts +131 -46
  644. package/src/tests/api_tests/bulk_assignment.test.ts +307 -220
  645. package/src/tests/api_tests/calendar_event_references_update.test.ts +97 -54
  646. package/src/tests/api_tests/calendar_event_webhook_template.test.ts +198 -158
  647. package/src/tests/api_tests/chats_analytics.test.ts +161 -123
  648. package/src/tests/api_tests/concurrent_build_threads.test.ts +80 -69
  649. package/src/tests/api_tests/configurations_public_read.test.ts +154 -67
  650. package/src/tests/api_tests/copied_form_response_no_enduser_sync.test.ts +307 -0
  651. package/src/tests/api_tests/create_note_action.test.ts +149 -70
  652. package/src/tests/api_tests/create_user_notifications_trigger.test.ts +116 -144
  653. package/src/tests/api_tests/custom_aggregation.test.ts +163 -92
  654. package/src/tests/api_tests/database_cascade_delete.test.ts +101 -87
  655. package/src/tests/api_tests/dont_sync_to_elation_form_submission.test.ts +122 -51
  656. package/src/tests/api_tests/elation_user_id.test.ts +105 -42
  657. package/src/tests/api_tests/file_download_unicode_names.test.ts +171 -122
  658. package/src/tests/api_tests/form_intake_email_normalization.test.ts +489 -0
  659. package/src/tests/api_tests/form_submitted_trigger.test.ts +152 -86
  660. package/src/tests/api_tests/form_translations.test.ts +117 -48
  661. package/src/tests/api_tests/formsort_header_auth.test.ts +147 -97
  662. package/src/tests/api_tests/gcal_sync_retry.test.ts +71 -49
  663. package/src/tests/api_tests/get_some_projection.test.ts +333 -169
  664. package/src/tests/api_tests/group_event_attendee_self_update.test.ts +103 -52
  665. package/src/tests/api_tests/integrations_redacted.test.ts +161 -84
  666. package/src/tests/api_tests/journey_delete_cancels_actions.test.ts +93 -64
  667. package/src/tests/api_tests/load_team_chat.test.ts +62 -6
  668. package/src/tests/api_tests/load_threads_autobuild.test.ts +163 -67
  669. package/src/tests/api_tests/load_threads_care_team.test.ts +103 -0
  670. package/src/tests/api_tests/managed_content_file_access.test.ts +132 -108
  671. package/src/tests/api_tests/mdb_sort.test.ts +247 -161
  672. package/src/tests/api_tests/mdi_manual_sync.test.ts +277 -0
  673. package/src/tests/api_tests/mdi_trigger_refill.test.ts +132 -78
  674. package/src/tests/api_tests/mdi_webhooks.test.ts +52 -22
  675. package/src/tests/api_tests/message_assignment_trigger.test.ts +129 -155
  676. package/src/tests/api_tests/metriport_push_form_response.test.ts +109 -49
  677. package/src/tests/api_tests/organization_api_keys.test.ts +170 -2
  678. package/src/tests/api_tests/organization_settings_duplicates.test.ts +291 -181
  679. package/src/tests/api_tests/organization_signup.test.ts +170 -5
  680. package/src/tests/api_tests/out_of_office_endpoint.test.ts +98 -0
  681. package/src/tests/api_tests/outbound_chat_sent_trigger.test.ts +163 -175
  682. package/src/tests/api_tests/phone_calls_cold_transfer.test.ts +195 -133
  683. package/src/tests/api_tests/phone_calls_conference_hold.test.ts +112 -42
  684. package/src/tests/api_tests/phone_tree_enduser_condition.test.ts +81 -32
  685. package/src/tests/api_tests/programs.test.ts +350 -0
  686. package/src/tests/api_tests/security/ai-conversations-rbac.test.ts +248 -128
  687. package/src/tests/api_tests/security/automated-actions-process-gate.test.ts +47 -42
  688. package/src/tests/api_tests/security/booking-info-idor-token-mint.test.ts +53 -45
  689. package/src/tests/api_tests/security/cascade-role-rename-cross-tenant.test.ts +100 -73
  690. package/src/tests/api_tests/security/data-sync-redaction-bypass.test.ts +125 -59
  691. package/src/tests/api_tests/security/develop-health-benefit-verification-rbac.test.ts +131 -103
  692. package/src/tests/api_tests/security/enduser-ai-summary-trust-gate.test.ts +161 -68
  693. package/src/tests/api_tests/security/enduser-cross-create.test.ts +200 -61
  694. package/src/tests/api_tests/security/enduser-write-restrictions.test.ts +179 -61
  695. package/src/tests/api_tests/security/globalunique-conflict-redaction.test.ts +163 -44
  696. package/src/tests/api_tests/security/handle-incoming-communication-cross-tenant.test.ts +78 -70
  697. package/src/tests/api_tests/security/load-inbox-redaction.test.ts +79 -44
  698. package/src/tests/api_tests/security/proxy-image-unauth-ssrf.test.ts +95 -52
  699. package/src/tests/api_tests/security/register_business_id_injection.test.ts +132 -93
  700. package/src/tests/api_tests/security/sanitize-user-html-with-iframes.test.ts +127 -0
  701. package/src/tests/api_tests/security/schema-adminonly-enforcement.test.ts +42 -37
  702. package/src/tests/api_tests/security/self-admin-role-assignment.test.ts +92 -54
  703. package/src/tests/api_tests/security/startlinktoken-enduser-staff-escalation.test.ts +76 -34
  704. package/src/tests/api_tests/security/webhook-timeout.test.ts +67 -36
  705. package/src/tests/api_tests/stedi_approval.test.ts +156 -90
  706. package/src/tests/api_tests/ticket_stage_archive.test.ts +314 -0
  707. package/src/tests/api_tests/tickets_bulk_assign_care_team.test.ts +138 -103
  708. package/src/tests/api_tests/translations.test.ts +69 -46
  709. package/src/tests/api_tests/trigger_set_fields_date_difference.test.ts +198 -256
  710. package/src/tests/api_tests/user_preferences.test.ts +227 -0
  711. package/src/tests/api_tests/webhook_error_handling.test.ts +121 -60
  712. package/src/tests/api_tests/webhook_raw_json_number.test.ts +127 -109
  713. package/src/tests/api_tests/welle_partner_token.test.ts +217 -90
  714. package/src/tests/setup_isolated.ts +7 -0
  715. package/src/tests/tests.ts +41 -147
  716. package/src/tests/{api_tests → unit_tests}/date_string_validation.test.ts +2 -23
  717. package/test_generated.pdf +0 -0
@@ -1,6 +1,16 @@
1
- import { Session } from "../../sdk";
2
- export declare const phone_calls_conference_hold_tests: ({ sdk, sdkNonAdmin }: {
3
- sdk: Session;
4
- sdkNonAdmin: Session;
5
- }) => Promise<void>;
1
+ import { Check, IsolatedSuite } from "../setup_isolated";
2
+ /**
3
+ * Validation-path coverage for the modify-conference-attendee-status endpoint. Every check below
4
+ * hits a validation that runs before any Twilio access, so no Twilio config is needed.
5
+ * conferenceId is not settable via the public API (only set internally by conference webhooks),
6
+ * so the Twilio hold/unhold branches are covered by manual E2E testing only.
7
+ *
8
+ * Provisions its own throwaway tenant, so the "Call not found" results below are statements about
9
+ * an empty tenant's phone_calls rather than about whatever the shared fixture happens to hold.
10
+ */
11
+ export declare const phone_calls_conference_hold_checks: () => Promise<Check[]>;
12
+ /** Asserting wrapper, for standalone runs. */
13
+ export declare const phone_calls_conference_hold_tests: () => Promise<void>;
14
+ /** Enrolls this suite in the auto-discovered parallel pool — see run_discovered_isolated_suites. */
15
+ export declare const ISOLATED_SUITE: IsolatedSuite;
6
16
  //# sourceMappingURL=phone_calls_conference_hold.test.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"phone_calls_conference_hold.test.d.ts","sourceRoot":"","sources":["../../../../src/tests/api_tests/phone_calls_conference_hold.test.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAcnC,eAAO,MAAM,iCAAiC;SAAwC,OAAO;iBAAe,OAAO;mBAuBlH,CAAA"}
1
+ {"version":3,"file":"phone_calls_conference_hold.test.d.ts","sourceRoot":"","sources":["../../../../src/tests/api_tests/phone_calls_conference_hold.test.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,EAEL,aAAa,EACd,MAAM,mBAAmB,CAAA;AAM1B;;;;;;;;GAQG;AACH,eAAO,MAAM,kCAAkC,QAAa,QAAQ,KAAK,EAAE,CAoF1E,CAAA;AAED,8CAA8C;AAC9C,eAAO,MAAM,iCAAiC,qBAE7C,CAAA;AAED,oGAAoG;AACpG,eAAO,MAAM,cAAc,EAAE,aAG5B,CAAA"}
@@ -35,57 +35,139 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
35
35
  }
36
36
  };
37
37
  require('source-map-support').install();
38
- import { Session } from "../../sdk";
39
- import { async_test, handleAnyError, log_header, } from "@tellescope/testing";
40
- import { setup_tests } from "../setup";
38
+ import { assert_checks, setup_isolated_tenant, } from "../setup_isolated";
41
39
  var host = process.env.API_URL || 'http://localhost:8080';
42
- // Validation-path tests for the modify-conference-attendee-status endpoint. All assertions
43
- // below hit validations that run before any Twilio access, so no Twilio config is needed.
44
- // conferenceId is not settable via the public API (only set internally by conference
45
- // webhooks), so the Twilio hold/unhold branches are covered by manual E2E testing only.
46
- export var phone_calls_conference_hold_tests = function (_a) {
47
- var sdk = _a.sdk, sdkNonAdmin = _a.sdkNonAdmin;
48
- return __awaiter(void 0, void 0, void 0, function () {
49
- return __generator(this, function (_b) {
50
- switch (_b.label) {
51
- case 0:
52
- log_header("Phone Calls Conference Hold Tests");
53
- return [4 /*yield*/, async_test("modify_conference_attendee_status: no status fields rejected", function () { return sdk.api.phone_calls.modify_conference_attendee_status({ conferenceId: 'CAconferenceholdtest0000000000001' }); }, { shouldError: true, onError: function (e) { return e.message === "At least one status field (e.g. hold) must be provided"; } })];
54
- case 1:
55
- _b.sent();
56
- return [4 /*yield*/, async_test("modify_conference_attendee_status: bogus conferenceId rejected", function () { return sdk.api.phone_calls.modify_conference_attendee_status({ conferenceId: 'CAdoesnotexist0000000000000000000', hold: true }); }, { shouldError: true, onError: function (e) { return e.message === "Call not found"; } })];
57
- case 2:
58
- _b.sent();
59
- return [4 /*yield*/, async_test("modify_conference_attendee_status: hold false also validated against record access", function () { return sdk.api.phone_calls.modify_conference_attendee_status({ conferenceId: 'CAdoesnotexist0000000000000000000', hold: false }); }, { shouldError: true, onError: function (e) { return e.message === "Call not found"; } })];
60
- case 3:
61
- _b.sent();
62
- return [4 /*yield*/, async_test("modify_conference_attendee_status: non-admin cannot hold an inaccessible conference", function () { return sdkNonAdmin.api.phone_calls.modify_conference_attendee_status({ conferenceId: 'CAdoesnotexist0000000000000000000', hold: true }); }, handleAnyError)];
63
- case 4:
64
- _b.sent();
65
- return [2 /*return*/];
66
- }
67
- });
40
+ var RAND = function () { return Math.random().toString(36).slice(2, 10); };
41
+ /**
42
+ * Validation-path coverage for the modify-conference-attendee-status endpoint. Every check below
43
+ * hits a validation that runs before any Twilio access, so no Twilio config is needed.
44
+ * conferenceId is not settable via the public API (only set internally by conference webhooks),
45
+ * so the Twilio hold/unhold branches are covered by manual E2E testing only.
46
+ *
47
+ * Provisions its own throwaway tenant, so the "Call not found" results below are statements about
48
+ * an empty tenant's phone_calls rather than about whatever the shared fixture happens to hold.
49
+ */
50
+ export var phone_calls_conference_hold_checks = function () { return __awaiter(void 0, void 0, void 0, function () {
51
+ var checks, record, describe_error, expect_rejected_with, tenant, sdk_1, sdkNonAdmin_1, e_1;
52
+ return __generator(this, function (_a) {
53
+ switch (_a.label) {
54
+ case 0:
55
+ checks = [];
56
+ record = function (label, pass, detail) { return checks.push({ label: label, pass: pass, detail: detail }); };
57
+ describe_error = function (err) {
58
+ var _a;
59
+ var raw = (_a = err === null || err === void 0 ? void 0 : err.message) !== null && _a !== void 0 ? _a : err;
60
+ return raw ? JSON.stringify(raw) : '(the rejection carried no message)';
61
+ };
62
+ expect_rejected_with = function (label, expectedMessage, call) { return __awaiter(void 0, void 0, void 0, function () {
63
+ var err_1, message;
64
+ return __generator(this, function (_a) {
65
+ switch (_a.label) {
66
+ case 0:
67
+ _a.trys.push([0, 2, , 3]);
68
+ return [4 /*yield*/, call()];
69
+ case 1:
70
+ _a.sent();
71
+ record(label, false, "the call resolved, but it should have been rejected with ".concat(JSON.stringify(expectedMessage)));
72
+ return [3 /*break*/, 3];
73
+ case 2:
74
+ err_1 = _a.sent();
75
+ message = err_1 === null || err_1 === void 0 ? void 0 : err_1.message;
76
+ record(label, message === expectedMessage, message === expectedMessage
77
+ ? "rejected with ".concat(JSON.stringify(expectedMessage))
78
+ : "expected ".concat(JSON.stringify(expectedMessage), ", got ").concat(describe_error(err_1)));
79
+ return [3 /*break*/, 3];
80
+ case 3: return [2 /*return*/];
81
+ }
82
+ });
83
+ }); };
84
+ _a.label = 1;
85
+ case 1:
86
+ _a.trys.push([1, , 7, 12]);
87
+ return [4 /*yield*/, setup_isolated_tenant({
88
+ name: "ConferenceHold ".concat(RAND()),
89
+ apiKeys: 0,
90
+ })];
91
+ case 2:
92
+ tenant = _a.sent();
93
+ sdk_1 = tenant.sdk, sdkNonAdmin_1 = tenant.sdkNonAdmin;
94
+ return [4 /*yield*/, expect_rejected_with('A: modify_conference_attendee_status with no status field is rejected', "At least one status field (e.g. hold) must be provided", function () { return sdk_1.api.phone_calls.modify_conference_attendee_status({
95
+ conferenceId: 'CAconferenceholdtest0000000000001',
96
+ }); })];
97
+ case 3:
98
+ _a.sent();
99
+ return [4 /*yield*/, expect_rejected_with('B: hold true against a conferenceId with no phone_call record is rejected', "Call not found", function () { return sdk_1.api.phone_calls.modify_conference_attendee_status({
100
+ conferenceId: 'CAdoesnotexist0000000000000000000', hold: true,
101
+ }); })
102
+ // hold: false takes the same record lookup — unholding is not a shortcut around it
103
+ ];
104
+ case 4:
105
+ _a.sent();
106
+ // hold: false takes the same record lookup — unholding is not a shortcut around it
107
+ return [4 /*yield*/, expect_rejected_with('C: hold false is validated against record access the same way', "Call not found", function () { return sdk_1.api.phone_calls.modify_conference_attendee_status({
108
+ conferenceId: 'CAdoesnotexist0000000000000000000', hold: false,
109
+ }); })
110
+ // The provisioned Non-Admin clears checkAccess and reaches the same findOne, so it must fail with
111
+ // the record error rather than a permission error — asserting the exact message is what keeps
112
+ // this from passing on any incidental 401/403.
113
+ ];
114
+ case 5:
115
+ // hold: false takes the same record lookup — unholding is not a shortcut around it
116
+ _a.sent();
117
+ // The provisioned Non-Admin clears checkAccess and reaches the same findOne, so it must fail with
118
+ // the record error rather than a permission error — asserting the exact message is what keeps
119
+ // this from passing on any incidental 401/403.
120
+ return [4 /*yield*/, expect_rejected_with('D: a non-admin session reaches the same record lookup and is rejected by it', "Call not found", function () { return sdkNonAdmin_1.api.phone_calls.modify_conference_attendee_status({
121
+ conferenceId: 'CAdoesnotexist0000000000000000000', hold: true,
122
+ }); })];
123
+ case 6:
124
+ // The provisioned Non-Admin clears checkAccess and reaches the same findOne, so it must fail with
125
+ // the record error rather than a permission error — asserting the exact message is what keeps
126
+ // this from passing on any incidental 401/403.
127
+ _a.sent();
128
+ return [3 /*break*/, 12];
129
+ case 7:
130
+ if (!tenant) return [3 /*break*/, 11];
131
+ _a.label = 8;
132
+ case 8:
133
+ _a.trys.push([8, 10, , 11]);
134
+ return [4 /*yield*/, tenant.teardown()];
135
+ case 9:
136
+ _a.sent();
137
+ return [3 /*break*/, 11];
138
+ case 10:
139
+ e_1 = _a.sent();
140
+ console.error('teardown failed', e_1);
141
+ return [3 /*break*/, 11];
142
+ case 11: return [7 /*endfinally*/];
143
+ case 12: return [2 /*return*/, checks];
144
+ }
145
+ });
146
+ }); };
147
+ /** Asserting wrapper, for standalone runs. */
148
+ export var phone_calls_conference_hold_tests = function () { return __awaiter(void 0, void 0, void 0, function () {
149
+ var _a, _b;
150
+ return __generator(this, function (_c) {
151
+ switch (_c.label) {
152
+ case 0:
153
+ _a = assert_checks;
154
+ _b = ['Phone calls conference hold'];
155
+ return [4 /*yield*/, phone_calls_conference_hold_checks()];
156
+ case 1:
157
+ _a.apply(void 0, _b.concat([_c.sent()]));
158
+ return [2 /*return*/];
159
+ }
68
160
  });
161
+ }); };
162
+ /** Enrolls this suite in the auto-discovered parallel pool — see run_discovered_isolated_suites. */
163
+ export var ISOLATED_SUITE = {
164
+ name: 'Phone calls conference hold',
165
+ run: phone_calls_conference_hold_checks,
69
166
  };
70
167
  // Allow running this test file independently
71
168
  if (require.main === module) {
72
169
  console.log("\uD83C\uDF10 Using API URL: ".concat(host));
73
- var sdk_1 = new Session({ host: host });
74
- var sdkNonAdmin_1 = new Session({ host: host });
75
- var runTests = function () { return __awaiter(void 0, void 0, void 0, function () {
76
- return __generator(this, function (_a) {
77
- switch (_a.label) {
78
- case 0: return [4 /*yield*/, setup_tests(sdk_1, sdkNonAdmin_1)];
79
- case 1:
80
- _a.sent();
81
- return [4 /*yield*/, phone_calls_conference_hold_tests({ sdk: sdk_1, sdkNonAdmin: sdkNonAdmin_1 })];
82
- case 2:
83
- _a.sent();
84
- return [2 /*return*/];
85
- }
86
- });
87
- }); };
88
- runTests()
170
+ phone_calls_conference_hold_tests()
89
171
  .then(function () {
90
172
  console.log("✅ Phone calls conference hold test suite completed successfully");
91
173
  process.exit(0);
@@ -1 +1 @@
1
- {"version":3,"file":"phone_calls_conference_hold.test.js","sourceRoot":"","sources":["../../../../src/tests/api_tests/phone_calls_conference_hold.test.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"phone_calls_conference_hold.test.js","sourceRoot":"","sources":["../../../../src/tests/api_tests/phone_calls_conference_hold.test.ts"],"names":[],"mappings":"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"}
@@ -1,6 +1,7 @@
1
- import { Session } from "../../sdk";
2
- export declare const phone_tree_enduser_condition_tests: ({ sdk, sdkNonAdmin }: {
3
- sdk: Session;
4
- sdkNonAdmin: Session;
5
- }) => Promise<void>;
1
+ import { Check, IsolatedSuite } from "../setup_isolated";
2
+ export declare const phone_tree_enduser_condition_checks: () => Promise<Check[]>;
3
+ /** Asserting wrapper, for standalone runs. */
4
+ export declare const phone_tree_enduser_condition_tests: () => Promise<void>;
5
+ /** Enrolls this suite in the auto-discovered parallel pool — see run_discovered_isolated_suites. */
6
+ export declare const ISOLATED_SUITE: IsolatedSuite;
6
7
  //# sourceMappingURL=phone_tree_enduser_condition.test.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"phone_tree_enduser_condition.test.d.ts","sourceRoot":"","sources":["../../../../src/tests/api_tests/phone_tree_enduser_condition.test.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAmDnC,eAAO,MAAM,kCAAkC;SAAwC,OAAO;iBAAe,OAAO;mBAkGnH,CAAA"}
1
+ {"version":3,"file":"phone_tree_enduser_condition.test.d.ts","sourceRoot":"","sources":["../../../../src/tests/api_tests/phone_tree_enduser_condition.test.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,EACL,aAAa,EAEd,MAAM,mBAAmB,CAAA;AAuD1B,eAAO,MAAM,mCAAmC,QAAa,QAAQ,KAAK,EAAE,CAsI3E,CAAA;AAED,8CAA8C;AAC9C,eAAO,MAAM,kCAAkC,qBAE9C,CAAA;AAED,oGAAoG;AACpG,eAAO,MAAM,cAAc,EAAE,aAG5B,CAAA"}
@@ -46,13 +46,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
46
46
  }
47
47
  };
48
48
  require('source-map-support').install();
49
- import { Session } from "../../sdk";
50
- import { assert, async_test, handleAnyError, log_header, } from "@tellescope/testing";
51
- import { setup_tests } from "../setup";
49
+ import { assert_checks, setup_isolated_tenant, } from "../setup_isolated";
52
50
  var host = process.env.API_URL || 'http://localhost:8080';
51
+ var RAND = function () { return Math.random().toString(36).slice(2, 10); };
53
52
  var SPLIT_NODE_ID = 'enduser-condition-split-node';
54
53
  var VIP_NODE_ID = 'vip-play-message-node';
55
54
  var ELSE_NODE_ID = 'else-play-message-node';
55
+ /** Prefers the error's message, falling back to the raw value — JSON.stringify('') is '""' (truthy),
56
+ * so a `|| fallback` on the stringified value would make the fallback unreachable. */
57
+ var error_detail = function (e) { return (typeof (e === null || e === void 0 ? void 0 : e.message) === 'string' && e.message !== ''
58
+ ? e.message
59
+ : (e === undefined || e === null ? String(e) : JSON.stringify(e))); };
56
60
  var valid_condition_split_nodes = [
57
61
  {
58
62
  id: SPLIT_NODE_ID,
@@ -87,140 +91,183 @@ var valid_condition_split_nodes = [
87
91
  flowchartUI: { x: 100, y: 100 },
88
92
  },
89
93
  ];
90
- export var phone_tree_enduser_condition_tests = function (_a) {
91
- var sdk = _a.sdk, sdkNonAdmin = _a.sdkNonAdmin;
92
- return __awaiter(void 0, void 0, void 0, function () {
93
- var treeIds, tree, loaded, loadedSplit, conditionalSplitTree, _i, treeIds_1, id;
94
- return __generator(this, function (_b) {
95
- switch (_b.label) {
96
- case 0:
97
- log_header("Phone Tree Enduser Condition Split Tests");
98
- treeIds = [];
99
- _b.label = 1;
100
- case 1:
101
- _b.trys.push([1, , 8, 13]);
102
- return [4 /*yield*/, sdk.api.phone_trees.createOne({
103
- number: '+15005550006',
104
- isActive: false,
105
- nodes: valid_condition_split_nodes,
106
- })];
107
- case 2:
108
- tree = _b.sent();
109
- treeIds.push(tree.id);
110
- assert(!!tree.id, 'failed to create tree with Enduser Condition Split', 'create tree with Enduser Condition Split');
111
- return [4 /*yield*/, sdk.api.phone_trees.getOne(tree.id)];
112
- case 3:
113
- loaded = _b.sent();
114
- loadedSplit = loaded.nodes.find(function (n) { return n.action.type === 'Enduser Condition Split'; });
115
- assert((loadedSplit === null || loadedSplit === void 0 ? void 0 : loadedSplit.action.type) === 'Enduser Condition Split'
116
- && loadedSplit.action.info.branches.length === 2
117
- && loadedSplit.action.info.branches[0].name === 'VIP'
118
- && !!loadedSplit.action.info.branches[0].enduserCondition
119
- && loadedSplit.action.info.branches[1].enduserCondition === undefined, 'branches did not round-trip', 'branches (conditions + catch-all) round-trip on read');
120
- return [4 /*yield*/, sdk.api.phone_trees.createOne({
121
- number: '+15005550006',
122
- isActive: false,
123
- nodes: [{
124
- id: 'conditional-split-node',
125
- // timezone + weeklyAvailabilities included to match the webapp's default Conditional Split shape
126
- action: { type: 'Conditional Split', info: { timezone: 'US/Eastern', weeklyAvailabilities: [], hasCareTeam: true } },
127
- events: [{ type: 'Start', parentId: 'conditional-split-node', info: {} }],
128
- flowchartUI: { x: 0, y: 0 },
129
- }],
130
- })];
131
- case 4:
132
- conditionalSplitTree = _b.sent();
133
- treeIds.push(conditionalSplitTree.id);
134
- assert(!!conditionalSplitTree.id, 'failed to create Conditional Split tree', 'existing Conditional Split still saves (regression)');
135
- // invalid: enduserCondition must be an object
136
- return [4 /*yield*/, async_test("non-object enduserCondition is rejected", function () { return sdk.api.phone_trees.createOne({
137
- number: '+15005550006',
138
- isActive: false,
139
- nodes: [{
140
- id: SPLIT_NODE_ID,
141
- action: {
142
- type: 'Enduser Condition Split',
143
- info: { branches: [{ name: 'Bad', enduserCondition: "not-an-object" }] },
144
- },
145
- events: [{ type: 'Start', parentId: SPLIT_NODE_ID, info: {} }],
146
- flowchartUI: { x: 0, y: 0 },
147
- }],
148
- }).then(function (t) { treeIds.push(t.id); return t; }); }, // cleanup if it unexpectedly passes
149
- handleAnyError)
150
- // invalid: branches must include a name
151
- ];
152
- case 5:
153
- // invalid: enduserCondition must be an object
154
- _b.sent();
94
+ // Schema coverage for the Enduser Condition Split phone-tree node. Runs on its own provisioned
95
+ // tenant so the phone trees it creates (and deletes) can never collide with another suite's.
96
+ export var phone_tree_enduser_condition_checks = function () { return __awaiter(void 0, void 0, void 0, function () {
97
+ var checks, record, tenant, treeIds, sdk_1, expect_rejected, tree, loaded, loadedSplit, conditionalSplitTree, _i, treeIds_1, id, e_1;
98
+ return __generator(this, function (_a) {
99
+ switch (_a.label) {
100
+ case 0:
101
+ checks = [];
102
+ record = function (label, pass, detail) { return checks.push({ label: label, pass: pass, detail: detail }); };
103
+ treeIds = [];
104
+ _a.label = 1;
105
+ case 1:
106
+ _a.trys.push([1, , 9, 17]);
107
+ return [4 /*yield*/, setup_isolated_tenant({
108
+ name: "PhoneTreeEnduserCondition ".concat(RAND()),
109
+ users: [{ isAdmin: true }],
110
+ apiKeys: 0,
111
+ })];
112
+ case 2:
113
+ tenant = _a.sent();
114
+ sdk_1 = tenant.sdk;
115
+ expect_rejected = function (label, fn) { return __awaiter(void 0, void 0, void 0, function () {
116
+ var unexpected, e_2;
117
+ return __generator(this, function (_a) {
118
+ switch (_a.label) {
119
+ case 0:
120
+ _a.trys.push([0, 2, , 3]);
121
+ return [4 /*yield*/, fn()];
122
+ case 1:
123
+ unexpected = _a.sent();
124
+ record(label, false, "the tree was created (result=".concat(unexpected === undefined ? '(none)' : JSON.stringify(unexpected), ");")
125
+ + " it must be rejected");
126
+ return [3 /*break*/, 3];
127
+ case 2:
128
+ e_2 = _a.sent();
129
+ record(label, true, "rejected with ".concat(error_detail(e_2)));
130
+ return [3 /*break*/, 3];
131
+ case 3: return [2 /*return*/];
132
+ }
133
+ });
134
+ }); };
135
+ return [4 /*yield*/, sdk_1.api.phone_trees.createOne({
136
+ number: '+15005550006',
137
+ isActive: false,
138
+ nodes: valid_condition_split_nodes,
139
+ })];
140
+ case 3:
141
+ tree = _a.sent();
142
+ treeIds.push(tree.id);
143
+ record('create tree with Enduser Condition Split', !!tree.id, "tree id=".concat(tree.id ? JSON.stringify(tree.id) : '(none)'));
144
+ return [4 /*yield*/, sdk_1.api.phone_trees.getOne(tree.id)];
145
+ case 4:
146
+ loaded = _a.sent();
147
+ loadedSplit = loaded.nodes.find(function (n) { return n.action.type === 'Enduser Condition Split'; });
148
+ record('branches (conditions + catch-all) round-trip on read', (loadedSplit === null || loadedSplit === void 0 ? void 0 : loadedSplit.action.type) === 'Enduser Condition Split'
149
+ && loadedSplit.action.info.branches.length === 2
150
+ && loadedSplit.action.info.branches[0].name === 'VIP'
151
+ && !!loadedSplit.action.info.branches[0].enduserCondition
152
+ && loadedSplit.action.info.branches[1].enduserCondition === undefined, "split node=".concat(loadedSplit ? JSON.stringify(loadedSplit.action) : '(not found)'));
153
+ return [4 /*yield*/, sdk_1.api.phone_trees.createOne({
154
+ number: '+15005550006',
155
+ isActive: false,
156
+ nodes: [{
157
+ id: 'conditional-split-node',
158
+ // timezone + weeklyAvailabilities included to match the webapp's default Conditional Split shape
159
+ action: { type: 'Conditional Split', info: { timezone: 'US/Eastern', weeklyAvailabilities: [], hasCareTeam: true } },
160
+ events: [{ type: 'Start', parentId: 'conditional-split-node', info: {} }],
161
+ flowchartUI: { x: 0, y: 0 },
162
+ }],
163
+ })];
164
+ case 5:
165
+ conditionalSplitTree = _a.sent();
166
+ treeIds.push(conditionalSplitTree.id);
167
+ record('existing Conditional Split still saves (regression)', !!conditionalSplitTree.id, "tree id=".concat(conditionalSplitTree.id ? JSON.stringify(conditionalSplitTree.id) : '(none)'));
168
+ // invalid: enduserCondition must be an object
169
+ return [4 /*yield*/, expect_rejected("non-object enduserCondition is rejected", function () { return sdk_1.api.phone_trees.createOne({
170
+ number: '+15005550006',
171
+ isActive: false,
172
+ nodes: [{
173
+ id: SPLIT_NODE_ID,
174
+ action: {
175
+ type: 'Enduser Condition Split',
176
+ info: { branches: [{ name: 'Bad', enduserCondition: "not-an-object" }] },
177
+ },
178
+ events: [{ type: 'Start', parentId: SPLIT_NODE_ID, info: {} }],
179
+ flowchartUI: { x: 0, y: 0 },
180
+ }],
181
+ }).then(function (t) { treeIds.push(t.id); return t; }); })
155
182
  // invalid: branches must include a name
156
- return [4 /*yield*/, async_test("branch without a name is rejected", function () { return sdk.api.phone_trees.createOne({
157
- number: '+15005550006',
158
- isActive: false,
159
- nodes: [{
160
- id: SPLIT_NODE_ID,
161
- action: {
162
- type: 'Enduser Condition Split',
163
- info: { branches: [{ enduserCondition: {} }] },
164
- },
165
- events: [{ type: 'Start', parentId: SPLIT_NODE_ID, info: {} }],
166
- flowchartUI: { x: 0, y: 0 },
167
- }],
168
- }).then(function (t) { treeIds.push(t.id); return t; }); }, handleAnyError)
169
- // invalid: On Condition Branch events must include a branch value
170
- ];
171
- case 6:
172
- // invalid: branches must include a name
173
- _b.sent();
174
- // invalid: On Condition Branch events must include a branch value
175
- return [4 /*yield*/, async_test("On Condition Branch event without branch is rejected", function () { return sdk.api.phone_trees.createOne({
176
- number: '+15005550006',
177
- isActive: false,
178
- nodes: valid_condition_split_nodes.map(function (n) { return (n.id !== VIP_NODE_ID
179
- ? n
180
- : __assign(__assign({}, n), { events: [{ type: 'On Condition Branch', parentId: SPLIT_NODE_ID, info: {} }] })); }),
181
- }).then(function (t) { treeIds.push(t.id); return t; }); }, handleAnyError)];
182
- case 7:
183
+ ];
184
+ case 6:
185
+ // invalid: enduserCondition must be an object
186
+ _a.sent();
187
+ // invalid: branches must include a name
188
+ return [4 /*yield*/, expect_rejected("branch without a name is rejected", function () { return sdk_1.api.phone_trees.createOne({
189
+ number: '+15005550006',
190
+ isActive: false,
191
+ nodes: [{
192
+ id: SPLIT_NODE_ID,
193
+ action: {
194
+ type: 'Enduser Condition Split',
195
+ info: { branches: [{ enduserCondition: {} }] },
196
+ },
197
+ events: [{ type: 'Start', parentId: SPLIT_NODE_ID, info: {} }],
198
+ flowchartUI: { x: 0, y: 0 },
199
+ }],
200
+ }).then(function (t) { treeIds.push(t.id); return t; }); })
183
201
  // invalid: On Condition Branch events must include a branch value
184
- _b.sent();
185
- return [3 /*break*/, 13];
186
- case 8:
187
- _i = 0, treeIds_1 = treeIds;
188
- _b.label = 9;
189
- case 9:
190
- if (!(_i < treeIds_1.length)) return [3 /*break*/, 12];
191
- id = treeIds_1[_i];
192
- return [4 /*yield*/, sdk.api.phone_trees.deleteOne(id).catch(console.error)];
193
- case 10:
194
- _b.sent();
195
- _b.label = 11;
196
- case 11:
197
- _i++;
198
- return [3 /*break*/, 9];
199
- case 12: return [7 /*endfinally*/];
200
- case 13: return [2 /*return*/];
201
- }
202
- });
202
+ ];
203
+ case 7:
204
+ // invalid: branches must include a name
205
+ _a.sent();
206
+ // invalid: On Condition Branch events must include a branch value
207
+ return [4 /*yield*/, expect_rejected("On Condition Branch event without branch is rejected", function () { return sdk_1.api.phone_trees.createOne({
208
+ number: '+15005550006',
209
+ isActive: false,
210
+ nodes: valid_condition_split_nodes.map(function (n) { return (n.id !== VIP_NODE_ID
211
+ ? n
212
+ : __assign(__assign({}, n), { events: [{ type: 'On Condition Branch', parentId: SPLIT_NODE_ID, info: {} }] })); }),
213
+ }).then(function (t) { treeIds.push(t.id); return t; }); })];
214
+ case 8:
215
+ // invalid: On Condition Branch events must include a branch value
216
+ _a.sent();
217
+ return [3 /*break*/, 17];
218
+ case 9:
219
+ if (!tenant) return [3 /*break*/, 16];
220
+ _i = 0, treeIds_1 = treeIds;
221
+ _a.label = 10;
222
+ case 10:
223
+ if (!(_i < treeIds_1.length)) return [3 /*break*/, 13];
224
+ id = treeIds_1[_i];
225
+ return [4 /*yield*/, tenant.sdk.api.phone_trees.deleteOne(id).catch(console.error)];
226
+ case 11:
227
+ _a.sent();
228
+ _a.label = 12;
229
+ case 12:
230
+ _i++;
231
+ return [3 /*break*/, 10];
232
+ case 13:
233
+ _a.trys.push([13, 15, , 16]);
234
+ return [4 /*yield*/, tenant.teardown()];
235
+ case 14:
236
+ _a.sent();
237
+ return [3 /*break*/, 16];
238
+ case 15:
239
+ e_1 = _a.sent();
240
+ console.error('teardown failed', e_1);
241
+ return [3 /*break*/, 16];
242
+ case 16: return [7 /*endfinally*/];
243
+ case 17: return [2 /*return*/, checks];
244
+ }
203
245
  });
246
+ }); };
247
+ /** Asserting wrapper, for standalone runs. */
248
+ export var phone_tree_enduser_condition_tests = function () { return __awaiter(void 0, void 0, void 0, function () {
249
+ var _a, _b;
250
+ return __generator(this, function (_c) {
251
+ switch (_c.label) {
252
+ case 0:
253
+ _a = assert_checks;
254
+ _b = ['Phone tree Enduser Condition Split'];
255
+ return [4 /*yield*/, phone_tree_enduser_condition_checks()];
256
+ case 1:
257
+ _a.apply(void 0, _b.concat([_c.sent()]));
258
+ return [2 /*return*/];
259
+ }
260
+ });
261
+ }); };
262
+ /** Enrolls this suite in the auto-discovered parallel pool — see run_discovered_isolated_suites. */
263
+ export var ISOLATED_SUITE = {
264
+ name: 'Phone tree Enduser Condition Split',
265
+ run: phone_tree_enduser_condition_checks,
204
266
  };
205
267
  // Allow running this test file independently
206
268
  if (require.main === module) {
207
269
  console.log("Using API URL: ".concat(host));
208
- var sdk_1 = new Session({ host: host });
209
- var sdkNonAdmin_1 = new Session({ host: host });
210
- var runTests = function () { return __awaiter(void 0, void 0, void 0, function () {
211
- return __generator(this, function (_a) {
212
- switch (_a.label) {
213
- case 0: return [4 /*yield*/, setup_tests(sdk_1, sdkNonAdmin_1)];
214
- case 1:
215
- _a.sent();
216
- return [4 /*yield*/, phone_tree_enduser_condition_tests({ sdk: sdk_1, sdkNonAdmin: sdkNonAdmin_1 })];
217
- case 2:
218
- _a.sent();
219
- return [2 /*return*/];
220
- }
221
- });
222
- }); };
223
- runTests()
270
+ phone_tree_enduser_condition_tests()
224
271
  .then(function () {
225
272
  console.log("✅ Phone tree enduser condition test suite completed successfully");
226
273
  process.exit(0);