@tellescope/types-models 1.206.0 → 1.207.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 = {
@@ -2855,7 +2859,7 @@ export type CreateTicketActionInfo = {
2855
2859
  disableEditTitle?: boolean,
2856
2860
  }
2857
2861
 
2858
- export type SendEmailAutomationAction = AutomationActionBuilder<'sendEmail', AutomationForMessage & { fromEmailOverride?: string }>
2862
+ export type SendEmailAutomationAction = AutomationActionBuilder<'sendEmail', AutomationForMessage & { fromEmailOverride?: string, ccRelatedContactTypes?: string[], }>
2859
2863
  export type NotifyTeamAutomationAction = AutomationActionBuilder<'notifyTeam', {
2860
2864
  templateId: string,
2861
2865
  forAssigned: boolean,
@@ -2903,6 +2907,7 @@ export type SendChatAutomationAction = AutomationActionBuilder<'sendChat', {
2903
2907
  identifier: string,
2904
2908
  includeCareTeam?: boolean,
2905
2909
  userIds?: string[], // for when not includeCareTeam
2910
+ sendToDestinationOfRelatedContactTypes?: string[],
2906
2911
  }>
2907
2912
  export type HealthieSyncAutomationAction = AutomationActionBuilder<'healthieSync', {}>
2908
2913
  export type HealthieAddToCourseAutomationAction = AutomationActionBuilder<'healthieAddToCourse', { courseId: string }>
@@ -3603,6 +3608,7 @@ export type AnalyticsQueryGroupingForType = {
3603
3608
  Type: boolean,
3604
3609
  "Scheduled By"?: boolean,
3605
3610
  alsoGroupByHost?: boolean, // for further breaking down a grouping by host
3611
+ "Cancel Reason"?: boolean,
3606
3612
  } & EnduserGrouping & { Enduser: string },
3607
3613
  "Form Responses": {
3608
3614
  "Submitted By"?: boolean,
@@ -3961,6 +3967,7 @@ export type AutomationTriggerEvents = {
3961
3967
  'Subscription Payment Failed': AutomationTriggerEventBuilder<"Subscription Payment Failed", { }, {}>,
3962
3968
  'Appointment No-Showed': AutomationTriggerEventBuilder<"Appointment No-Showed", { titles?: string[], templateIds?: string[] }, { }>,
3963
3969
  'Field Equals': AutomationTriggerEventBuilder<"Field Equals", { field: string, value: string }, { }>,
3970
+ 'Fields Changed': AutomationTriggerEventBuilder<"Fields Changed", { fields: string[] }, { }>,
3964
3971
  'Tag Added': AutomationTriggerEventBuilder<"Tag Added", { tag: string }, { }>,
3965
3972
  'Contact Created': AutomationTriggerEventBuilder<"Contact Created", { entityTypes?: string[] }, { }>,
3966
3973
  'Appointment Created': AutomationTriggerEventBuilder<"Appointment Created", { titles?: string[], templateIds?: string[], excludeTemplateIds?: string[] }, {}>,
@@ -4635,7 +4642,29 @@ export interface Waitlist extends Waitlist_readonly, Waitlist_required, Waitlist
4635
4642
  tags?: string[],
4636
4643
  }
4637
4644
 
4645
+ export type AICOnversationMessageContent = {
4646
+ type: 'text' | 'image' | 'file',
4647
+ text?: string,
4648
+ }
4649
+ export type AIConversationMessage = {
4650
+ role: 'user' | 'assistant',
4651
+ text: string,
4652
+ timestamp: Date,
4653
+ tokens: number,
4654
+ content?: AICOnversationMessageContent[],
4655
+ userId?: string, // for user messages
4656
+ }
4657
+ export interface AIConversation_readonly extends ClientRecord {}
4658
+ export interface AIConversation_required {
4659
+ type: string,
4660
+ modelName: string,
4661
+ messages: AIConversationMessage[],
4662
+ }
4663
+ export interface AIConversation_updatesDisabled {}
4664
+ export interface AIConversation extends AIConversation_readonly, AIConversation_required, AIConversation_updatesDisabled {}
4665
+
4638
4666
  export type ModelForName_required = {
4667
+ ai_conversations: AIConversation_required,
4639
4668
  waitlists: Waitlist_required,
4640
4669
  agent_records: AgentRecord_required,
4641
4670
  enduser_eligibility_results: EnduserEligibilityResult_required,
@@ -4726,6 +4755,7 @@ export type ModelForName_required = {
4726
4755
  export type ClientModel_required = ModelForName_required[keyof ModelForName_required]
4727
4756
 
4728
4757
  export interface ModelForName_readonly {
4758
+ ai_conversations: AIConversation_readonly,
4729
4759
  waitlists: Waitlist_readonly,
4730
4760
  agent_records: AgentRecord_readonly,
4731
4761
  enduser_eligibility_results: EnduserEligibilityResult_readonly,
@@ -4816,6 +4846,7 @@ export interface ModelForName_readonly {
4816
4846
  export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly]
4817
4847
 
4818
4848
  export interface ModelForName_updatesDisabled {
4849
+ ai_conversations: AIConversation_updatesDisabled,
4819
4850
  waitlists: Waitlist_updatesDisabled,
4820
4851
  agent_records: AgentRecord_updatesDisabled,
4821
4852
  enduser_eligibility_results: EnduserEligibilityResult_updatesDisabled,
@@ -4906,6 +4937,7 @@ export interface ModelForName_updatesDisabled {
4906
4937
  export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled]
4907
4938
 
4908
4939
  export interface ModelForName extends ModelForName_required, ModelForName_readonly {
4940
+ ai_conversations: AIConversation,
4909
4941
  waitlists: Waitlist,
4910
4942
  agent_records: AgentRecord,
4911
4943
  enduser_eligibility_results: EnduserEligibilityResult,
@@ -5006,6 +5038,7 @@ export interface UserActivityInfo {
5006
5038
  export type UserActivityStatus = 'Active' | 'Away' | 'Unavailable'
5007
5039
 
5008
5040
  export const modelNameChecker: { [K in ModelName] : true } = {
5041
+ ai_conversations: true,
5009
5042
  waitlists: true,
5010
5043
  agent_records: true,
5011
5044
  enduser_eligibility_results: true,