@tellescope/types-models 1.255.18 → 1.255.19

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.
@@ -631,15 +631,21 @@ export interface RecordInfo {
631
631
  export interface ClientRecord extends RecordInfo {
632
632
  id: string;
633
633
  }
634
- export interface WithAllowedPaths {
634
+ export interface SessionScopeContext {
635
+ calendarEventId?: string;
636
+ }
637
+ export interface WithSessionConfinement {
638
+ sessionScopes?: SessionScope[];
639
+ scopeContext?: SessionScopeContext;
635
640
  allowedPaths?: string[];
636
641
  }
637
- export interface Session {
642
+ export interface WithAllowedPaths extends WithSessionConfinement {
643
+ }
644
+ export interface Session extends WithSessionConfinement {
638
645
  type: "user" | "enduser";
639
646
  businessId: string;
640
647
  iat: number;
641
648
  exp: number;
642
- allowedPaths?: string[];
643
649
  requiresMFA?: boolean;
644
650
  }
645
651
  export type SessionType = "user" | "enduser";
@@ -1164,6 +1170,16 @@ export interface EnduserMedication extends EnduserMedication_readonly, EnduserMe
1164
1170
  export declare const FORM_INGESTION_API_KEY_SCOPE: "form-ingestion";
1165
1171
  export declare const API_KEY_SCOPES: readonly ["form-ingestion"];
1166
1172
  export type APIKeyScope = typeof API_KEY_SCOPES[number];
1173
+ /**
1174
+ * Confinement scopes for limited-purpose SESSIONS (video links, public forms, booking pages, ics
1175
+ * links). Each name resolves server-side to a fixed set of method+path grants.
1176
+ *
1177
+ * Distinct from APIKeyScope above, and NOT interchangeable — note the inverted empty-array
1178
+ * semantics: `scopes: []` on an API key means unrestricted, whereas a session confined to no scopes
1179
+ * reaches nothing. The route table is intentionally backend-only; only the names are public.
1180
+ */
1181
+ export declare const SESSION_SCOPES: readonly ["video-join-link", "video-start-link", "public-form", "appointment-booking", "ics-download"];
1182
+ export type SessionScope = typeof SESSION_SCOPES[number];
1167
1183
  export interface APIKey_readonly extends ClientRecord {
1168
1184
  hashedKey: string;
1169
1185
  key?: string;
@@ -1438,6 +1454,7 @@ export interface SMSMessage extends SMSMessage_readonly, SMSMessage_required, SM
1438
1454
  replyToTemplateId?: string;
1439
1455
  assignedTo?: string[];
1440
1456
  templatedMessage?: string;
1457
+ translations?: Translations<'message'>;
1441
1458
  canvasId?: string;
1442
1459
  discussionRoomId?: string;
1443
1460
  mediaURLs?: string[];
@@ -2544,6 +2561,7 @@ export interface FormResponse_required {
2544
2561
  formTitle: string;
2545
2562
  responses?: FormResponseValue[];
2546
2563
  publicSubmit?: boolean;
2564
+ authFieldIntakeDisabled?: boolean;
2547
2565
  submittedBy?: string;
2548
2566
  submittedByIsPlaceholder?: boolean;
2549
2567
  markedAsSubmitted?: boolean;