@tellescope/types-models 1.206.0 → 1.208.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index.ts CHANGED
@@ -260,6 +260,7 @@ export type OrganizationSettings = {
260
260
  },
261
261
  integrations?: {
262
262
  vitalLabOrderPhysicianOptional?: boolean,
263
+ athenaAppointmentSyncJITSeconds?: number,
263
264
  },
264
265
  interface?: {
265
266
  dontPersistSearches?: boolean,
@@ -328,6 +329,7 @@ export interface Organization_updatesDisabled {
328
329
  subdomain: string;
329
330
  }
330
331
  export interface Organization extends Organization_readonly, Organization_required, Organization_updatesDisabled {
332
+ bedrockAIAllowed?: boolean,
331
333
  subdomains?: string[],
332
334
  owner?: string,
333
335
  timezone?: Timezone,
@@ -435,6 +437,8 @@ export interface Organization extends Organization_readonly, Organization_requir
435
437
  customerIOFields?: string[],
436
438
  customerIOIdField?: string,
437
439
  createEnduserForms?: string[],
440
+ creditCount?: number,
441
+ creditTrialStartedAt?: Date,
438
442
  // _AIEnabled?: boolean,
439
443
  }
440
444
  export type OrganizationTheme = {
@@ -1769,6 +1773,7 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
1769
1773
  ga4measurementId?: string,
1770
1774
  backgroundColor?: string,
1771
1775
  productIds?: string[],
1776
+ redirectToBookedAppointmentOnSubmit?: boolean,
1772
1777
  submitRedirectURL?: string,
1773
1778
  publicFormIdRedirect?: string,
1774
1779
  publicShowLanguage?: boolean,
@@ -2396,6 +2401,7 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
2396
2401
  confirmedAt?: Date | '',
2397
2402
  preventRescheduleMinutesInAdvance?: number,
2398
2403
  preventCancelMinutesInAdvance?: number,
2404
+ sendIcsEmail?: boolean,
2399
2405
  // isAllDay?: boolean,
2400
2406
  }
2401
2407
 
@@ -2478,6 +2484,7 @@ export interface CalendarEventTemplate_required {
2478
2484
  }
2479
2485
  export interface CalendarEventTemplate_updatesDisabled {}
2480
2486
  export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, CalendarEventTemplate_required, CalendarEventTemplate_updatesDisabled {
2487
+ sendIcsEmail?: boolean,
2481
2488
  createAndBookAthenaSlot?: boolean,
2482
2489
  dontSyncToCanvas?: boolean,
2483
2490
  archivedAt?: Date | '',
@@ -2855,7 +2862,7 @@ export type CreateTicketActionInfo = {
2855
2862
  disableEditTitle?: boolean,
2856
2863
  }
2857
2864
 
2858
- export type SendEmailAutomationAction = AutomationActionBuilder<'sendEmail', AutomationForMessage & { fromEmailOverride?: string }>
2865
+ export type SendEmailAutomationAction = AutomationActionBuilder<'sendEmail', AutomationForMessage & { fromEmailOverride?: string, ccRelatedContactTypes?: string[], }>
2859
2866
  export type NotifyTeamAutomationAction = AutomationActionBuilder<'notifyTeam', {
2860
2867
  templateId: string,
2861
2868
  forAssigned: boolean,
@@ -2903,6 +2910,7 @@ export type SendChatAutomationAction = AutomationActionBuilder<'sendChat', {
2903
2910
  identifier: string,
2904
2911
  includeCareTeam?: boolean,
2905
2912
  userIds?: string[], // for when not includeCareTeam
2913
+ sendToDestinationOfRelatedContactTypes?: string[],
2906
2914
  }>
2907
2915
  export type HealthieSyncAutomationAction = AutomationActionBuilder<'healthieSync', {}>
2908
2916
  export type HealthieAddToCourseAutomationAction = AutomationActionBuilder<'healthieAddToCourse', { courseId: string }>
@@ -3603,6 +3611,7 @@ export type AnalyticsQueryGroupingForType = {
3603
3611
  Type: boolean,
3604
3612
  "Scheduled By"?: boolean,
3605
3613
  alsoGroupByHost?: boolean, // for further breaking down a grouping by host
3614
+ "Cancel Reason"?: boolean,
3606
3615
  } & EnduserGrouping & { Enduser: string },
3607
3616
  "Form Responses": {
3608
3617
  "Submitted By"?: boolean,
@@ -3961,6 +3970,7 @@ export type AutomationTriggerEvents = {
3961
3970
  'Subscription Payment Failed': AutomationTriggerEventBuilder<"Subscription Payment Failed", { }, {}>,
3962
3971
  'Appointment No-Showed': AutomationTriggerEventBuilder<"Appointment No-Showed", { titles?: string[], templateIds?: string[] }, { }>,
3963
3972
  'Field Equals': AutomationTriggerEventBuilder<"Field Equals", { field: string, value: string }, { }>,
3973
+ 'Fields Changed': AutomationTriggerEventBuilder<"Fields Changed", { fields: string[] }, { }>,
3964
3974
  'Tag Added': AutomationTriggerEventBuilder<"Tag Added", { tag: string }, { }>,
3965
3975
  'Contact Created': AutomationTriggerEventBuilder<"Contact Created", { entityTypes?: string[] }, { }>,
3966
3976
  'Appointment Created': AutomationTriggerEventBuilder<"Appointment Created", { titles?: string[], templateIds?: string[], excludeTemplateIds?: string[] }, {}>,
@@ -4635,7 +4645,29 @@ export interface Waitlist extends Waitlist_readonly, Waitlist_required, Waitlist
4635
4645
  tags?: string[],
4636
4646
  }
4637
4647
 
4648
+ export type AICOnversationMessageContent = {
4649
+ type: 'text' | 'image' | 'file',
4650
+ text?: string,
4651
+ }
4652
+ export type AIConversationMessage = {
4653
+ role: 'user' | 'assistant',
4654
+ text: string,
4655
+ timestamp: Date,
4656
+ tokens: number,
4657
+ content?: AICOnversationMessageContent[],
4658
+ userId?: string, // for user messages
4659
+ }
4660
+ export interface AIConversation_readonly extends ClientRecord {}
4661
+ export interface AIConversation_required {
4662
+ type: string,
4663
+ modelName: string,
4664
+ messages: AIConversationMessage[],
4665
+ }
4666
+ export interface AIConversation_updatesDisabled {}
4667
+ export interface AIConversation extends AIConversation_readonly, AIConversation_required, AIConversation_updatesDisabled {}
4668
+
4638
4669
  export type ModelForName_required = {
4670
+ ai_conversations: AIConversation_required,
4639
4671
  waitlists: Waitlist_required,
4640
4672
  agent_records: AgentRecord_required,
4641
4673
  enduser_eligibility_results: EnduserEligibilityResult_required,
@@ -4726,6 +4758,7 @@ export type ModelForName_required = {
4726
4758
  export type ClientModel_required = ModelForName_required[keyof ModelForName_required]
4727
4759
 
4728
4760
  export interface ModelForName_readonly {
4761
+ ai_conversations: AIConversation_readonly,
4729
4762
  waitlists: Waitlist_readonly,
4730
4763
  agent_records: AgentRecord_readonly,
4731
4764
  enduser_eligibility_results: EnduserEligibilityResult_readonly,
@@ -4816,6 +4849,7 @@ export interface ModelForName_readonly {
4816
4849
  export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly]
4817
4850
 
4818
4851
  export interface ModelForName_updatesDisabled {
4852
+ ai_conversations: AIConversation_updatesDisabled,
4819
4853
  waitlists: Waitlist_updatesDisabled,
4820
4854
  agent_records: AgentRecord_updatesDisabled,
4821
4855
  enduser_eligibility_results: EnduserEligibilityResult_updatesDisabled,
@@ -4906,6 +4940,7 @@ export interface ModelForName_updatesDisabled {
4906
4940
  export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled]
4907
4941
 
4908
4942
  export interface ModelForName extends ModelForName_required, ModelForName_readonly {
4943
+ ai_conversations: AIConversation,
4909
4944
  waitlists: Waitlist,
4910
4945
  agent_records: AgentRecord,
4911
4946
  enduser_eligibility_results: EnduserEligibilityResult,
@@ -5006,6 +5041,7 @@ export interface UserActivityInfo {
5006
5041
  export type UserActivityStatus = 'Active' | 'Away' | 'Unavailable'
5007
5042
 
5008
5043
  export const modelNameChecker: { [K in ModelName] : true } = {
5044
+ ai_conversations: true,
5009
5045
  waitlists: true,
5010
5046
  agent_records: true,
5011
5047
  enduser_eligibility_results: true,