@tellescope/types-models 1.255.18 → 1.256.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.
@@ -586,6 +586,7 @@ export interface Organization extends Organization_readonly, Organization_requir
586
586
  customerIOFields?: string[];
587
587
  customerIOIdField?: string;
588
588
  createEnduserForms?: string[];
589
+ defaultSummaryJourneyId?: string;
589
590
  creditCount?: number;
590
591
  creditTrialStartedAt?: Date;
591
592
  hasIntegrations?: string[];
@@ -631,15 +632,21 @@ export interface RecordInfo {
631
632
  export interface ClientRecord extends RecordInfo {
632
633
  id: string;
633
634
  }
634
- export interface WithAllowedPaths {
635
+ export interface SessionScopeContext {
636
+ calendarEventId?: string;
637
+ }
638
+ export interface WithSessionConfinement {
639
+ sessionScopes?: SessionScope[];
640
+ scopeContext?: SessionScopeContext;
635
641
  allowedPaths?: string[];
636
642
  }
637
- export interface Session {
643
+ export interface WithAllowedPaths extends WithSessionConfinement {
644
+ }
645
+ export interface Session extends WithSessionConfinement {
638
646
  type: "user" | "enduser";
639
647
  businessId: string;
640
648
  iat: number;
641
649
  exp: number;
642
- allowedPaths?: string[];
643
650
  requiresMFA?: boolean;
644
651
  }
645
652
  export type SessionType = "user" | "enduser";
@@ -1164,6 +1171,16 @@ export interface EnduserMedication extends EnduserMedication_readonly, EnduserMe
1164
1171
  export declare const FORM_INGESTION_API_KEY_SCOPE: "form-ingestion";
1165
1172
  export declare const API_KEY_SCOPES: readonly ["form-ingestion"];
1166
1173
  export type APIKeyScope = typeof API_KEY_SCOPES[number];
1174
+ /**
1175
+ * Confinement scopes for limited-purpose SESSIONS (video links, public forms, booking pages, ics
1176
+ * links). Each name resolves server-side to a fixed set of method+path grants.
1177
+ *
1178
+ * Distinct from APIKeyScope above, and NOT interchangeable — note the inverted empty-array
1179
+ * semantics: `scopes: []` on an API key means unrestricted, whereas a session confined to no scopes
1180
+ * reaches nothing. The route table is intentionally backend-only; only the names are public.
1181
+ */
1182
+ export declare const SESSION_SCOPES: readonly ["video-join-link", "video-start-link", "public-form", "appointment-booking", "ics-download"];
1183
+ export type SessionScope = typeof SESSION_SCOPES[number];
1167
1184
  export interface APIKey_readonly extends ClientRecord {
1168
1185
  hashedKey: string;
1169
1186
  key?: string;
@@ -1438,6 +1455,7 @@ export interface SMSMessage extends SMSMessage_readonly, SMSMessage_required, SM
1438
1455
  replyToTemplateId?: string;
1439
1456
  assignedTo?: string[];
1440
1457
  templatedMessage?: string;
1458
+ translations?: Translations<'message'>;
1441
1459
  canvasId?: string;
1442
1460
  discussionRoomId?: string;
1443
1461
  mediaURLs?: string[];
@@ -2544,6 +2562,7 @@ export interface FormResponse_required {
2544
2562
  formTitle: string;
2545
2563
  responses?: FormResponseValue[];
2546
2564
  publicSubmit?: boolean;
2565
+ authFieldIntakeDisabled?: boolean;
2547
2566
  submittedBy?: string;
2548
2567
  submittedByIsPlaceholder?: boolean;
2549
2568
  markedAsSubmitted?: boolean;
@@ -5125,6 +5144,22 @@ export type PhonePlaybackInfo = {
5125
5144
  };
5126
5145
  export type PhonePlaybackType = keyof PhonePlaybackInfo;
5127
5146
  export type PhonePlayback = PhonePlaybackInfo[PhonePlaybackType];
5147
+ export type PhoneTreeAgentToolBuilder<T extends string, V> = {
5148
+ type: T;
5149
+ info: V;
5150
+ };
5151
+ export type PhoneTreeAgentTools = {
5152
+ 'Submit Form': PhoneTreeAgentToolBuilder<'Submit Form', {
5153
+ formId: string;
5154
+ useWhen?: string;
5155
+ }>;
5156
+ 'Book Appointment': PhoneTreeAgentToolBuilder<'Book Appointment', {
5157
+ appointmentBookingPageId: string;
5158
+ useWhen?: string;
5159
+ }>;
5160
+ };
5161
+ export type PhoneTreeAgentToolType = keyof PhoneTreeAgentTools;
5162
+ export type PhoneTreeAgentTool = PhoneTreeAgentTools[PhoneTreeAgentToolType];
5128
5163
  export type PhoneTreeActionBuilder<T, V> = {
5129
5164
  type: T;
5130
5165
  info: V;
@@ -5216,6 +5251,7 @@ export type PhoneTreeActions = {
5216
5251
  value: string;
5217
5252
  description: string;
5218
5253
  }[];
5254
+ tools?: PhoneTreeAgentTool[];
5219
5255
  }>;
5220
5256
  };
5221
5257
  export type PhoneTreeActionType = keyof PhoneTreeActions;
@@ -6938,6 +6974,7 @@ export type DataSyncRecord = {
6938
6974
  data: 'deleted' | string;
6939
6975
  userIds: string[];
6940
6976
  enduserIds: string[];
6977
+ visibleToAllUsers?: boolean;
6941
6978
  };
6942
6979
  export type InsuranceType = "Primary" | "Secondary";
6943
6980
  export type TwilioQueue = {