@speakableio/core 1.0.48 → 1.0.50

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.
@@ -92,6 +92,10 @@ interface MediaPageActivity {
92
92
  url: string;
93
93
  transcript?: string | null;
94
94
  }
95
+ declare enum ConversationPageMode {
96
+ VoiceAndText = "voice_and_text",
97
+ PhoneCall = "phone_call"
98
+ }
95
99
  interface PageActivity {
96
100
  owners: string[];
97
101
  checked?: boolean;
@@ -163,6 +167,14 @@ interface PageActivity {
163
167
  correct_answer_exact_match?: boolean;
164
168
  ai_context_block_ids?: string[];
165
169
  resolvedContext?: string;
170
+ goal?: string;
171
+ mode?: ConversationPageMode;
172
+ personality?: string;
173
+ voice?: string;
174
+ topic?: string;
175
+ vocab?: string[];
176
+ questions?: string[];
177
+ showHints?: boolean;
166
178
  }
167
179
  declare const enum ActivityPageType {
168
180
  READ_REPEAT = "READ_REPEAT",
@@ -173,13 +185,15 @@ declare const enum ActivityPageType {
173
185
  RESPOND_WRITE = "RESPOND_WRITE",
174
186
  MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
175
187
  MEDIA_PAGE = "MEDIA_PAGE",
176
- SHORT_ANSWER = "SHORT_ANSWER"
188
+ SHORT_ANSWER = "SHORT_ANSWER",
189
+ CONVERSATION = "CONVERSATION"
177
190
  }
178
191
  declare const RESPOND_PAGE_ACTIVITY_TYPES: ActivityPageType[];
179
192
  declare const MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES: ActivityPageType[];
180
193
  declare const REPEAT_PAGE_ACTIVITY_TYPES: ActivityPageType[];
181
194
  declare const RESPOND_WRITE_PAGE_ACTIVITY_TYPES: ActivityPageType[];
182
195
  declare const RESPOND_AUDIO_PAGE_ACTIVITY_TYPES: ActivityPageType[];
196
+ declare const CONVERSATION_PAGE_ACTIVITY_TYPES: ActivityPageType[];
183
197
 
184
198
  declare const cardsQueryKeys: {
185
199
  all: string[];
@@ -266,6 +280,14 @@ declare function useCards({ cardIds, enabled, asObject, }: {
266
280
  correct_answer_exact_match?: boolean;
267
281
  ai_context_block_ids?: string[];
268
282
  resolvedContext?: string;
283
+ goal?: string;
284
+ mode?: ConversationPageMode;
285
+ personality?: string;
286
+ voice?: string;
287
+ topic?: string;
288
+ vocab?: string[];
289
+ questions?: string[];
290
+ showHints?: boolean;
269
291
  } | null, Error>[];
270
292
  };
271
293
  declare function useCreateCard(): {
@@ -348,6 +370,14 @@ declare function useCreateCards(): {
348
370
  correct_answer_exact_match?: boolean;
349
371
  ai_context_block_ids?: string[];
350
372
  resolvedContext?: string;
373
+ goal?: string;
374
+ mode?: ConversationPageMode;
375
+ personality?: string;
376
+ voice?: string;
377
+ topic?: string;
378
+ vocab?: string[];
379
+ questions?: string[];
380
+ showHints?: boolean;
351
381
  }[], Error, {
352
382
  cards: PageActivity[];
353
383
  }, unknown>;
@@ -436,6 +466,14 @@ declare function useGetCard({ cardId, enabled }: {
436
466
  correct_answer_exact_match?: boolean;
437
467
  ai_context_block_ids?: string[];
438
468
  resolvedContext?: string;
469
+ goal?: string;
470
+ mode?: ConversationPageMode;
471
+ personality?: string;
472
+ voice?: string;
473
+ topic?: string;
474
+ vocab?: string[];
475
+ questions?: string[];
476
+ showHints?: boolean;
439
477
  } | null, Error>;
440
478
 
441
479
  declare const createCardRepo: () => {
@@ -518,6 +556,14 @@ declare const createCardRepo: () => {
518
556
  correct_answer_exact_match?: boolean;
519
557
  ai_context_block_ids?: string[];
520
558
  resolvedContext?: string;
559
+ goal?: string;
560
+ mode?: ConversationPageMode;
561
+ personality?: string;
562
+ voice?: string;
563
+ topic?: string;
564
+ vocab?: string[];
565
+ questions?: string[];
566
+ showHints?: boolean;
521
567
  }[]>;
522
568
  getCard: (params: {
523
569
  cardId: string;
@@ -593,6 +639,14 @@ declare const createCardRepo: () => {
593
639
  correct_answer_exact_match?: boolean;
594
640
  ai_context_block_ids?: string[];
595
641
  resolvedContext?: string;
642
+ goal?: string;
643
+ mode?: ConversationPageMode;
644
+ personality?: string;
645
+ voice?: string;
646
+ topic?: string;
647
+ vocab?: string[];
648
+ questions?: string[];
649
+ showHints?: boolean;
596
650
  } | null>;
597
651
  };
598
652
 
@@ -603,6 +657,7 @@ declare function checkIsRespondWrittenPage(cardType: ActivityPageType | undefine
603
657
  declare function checkIsRespondAudioPage(cardType: ActivityPageType | undefined): boolean;
604
658
  declare const checkIsMediaPage: (cardType: ActivityPageType | undefined) => boolean;
605
659
  declare const checkIsShortAnswerPage: (cardType: ActivityPageType | undefined) => boolean;
660
+ declare const checkIsConversationPage: (cardType: ActivityPageType | undefined) => boolean;
606
661
  declare const checkTypePageActivity: (cardType: ActivityPageType | undefined) => {
607
662
  isRespondAudio: boolean;
608
663
  isRespondWritten: boolean;
@@ -612,6 +667,7 @@ declare const checkTypePageActivity: (cardType: ActivityPageType | undefined) =>
612
667
  isMediaPage: boolean;
613
668
  isShortAnswer: boolean;
614
669
  hasSomeType: boolean;
670
+ isConversation: boolean;
615
671
  };
616
672
 
617
673
  declare function getPagePrompt(card: PageActivityWithId | undefined): {
@@ -1451,6 +1507,14 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
1451
1507
  correct_answer_exact_match?: boolean;
1452
1508
  ai_context_block_ids?: string[];
1453
1509
  resolvedContext?: string;
1510
+ goal?: string;
1511
+ mode?: ConversationPageMode;
1512
+ personality?: string;
1513
+ voice?: string;
1514
+ topic?: string;
1515
+ vocab?: string[];
1516
+ questions?: string[];
1517
+ showHints?: boolean;
1454
1518
  }[]>;
1455
1519
  getCard: (params: {
1456
1520
  cardId: string;
@@ -1526,6 +1590,14 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
1526
1590
  correct_answer_exact_match?: boolean;
1527
1591
  ai_context_block_ids?: string[];
1528
1592
  resolvedContext?: string;
1593
+ goal?: string;
1594
+ mode?: ConversationPageMode;
1595
+ personality?: string;
1596
+ voice?: string;
1597
+ topic?: string;
1598
+ vocab?: string[];
1599
+ questions?: string[];
1600
+ showHints?: boolean;
1529
1601
  } | null>;
1530
1602
  };
1531
1603
  };
@@ -1785,6 +1857,14 @@ declare function useActivity({ id, isAssignment, onAssignmentSubmitted, ltiData,
1785
1857
  correct_answer_exact_match?: boolean;
1786
1858
  ai_context_block_ids?: string[];
1787
1859
  resolvedContext?: string;
1860
+ goal?: string;
1861
+ mode?: ConversationPageMode;
1862
+ personality?: string;
1863
+ voice?: string;
1864
+ topic?: string;
1865
+ vocab?: string[];
1866
+ questions?: string[];
1867
+ showHints?: boolean;
1788
1868
  } | null, Error>[];
1789
1869
  cardsArray: PageActivityWithId[];
1790
1870
  };
@@ -3333,6 +3413,14 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
3333
3413
  correct_answer_exact_match?: boolean;
3334
3414
  ai_context_block_ids?: string[];
3335
3415
  resolvedContext?: string;
3416
+ goal?: string;
3417
+ mode?: ConversationPageMode;
3418
+ personality?: string;
3419
+ voice?: string;
3420
+ topic?: string;
3421
+ vocab?: string[];
3422
+ questions?: string[];
3423
+ showHints?: boolean;
3336
3424
  }[]>;
3337
3425
  getCard: (params: {
3338
3426
  cardId: string;
@@ -3408,8 +3496,16 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
3408
3496
  correct_answer_exact_match?: boolean;
3409
3497
  ai_context_block_ids?: string[];
3410
3498
  resolvedContext?: string;
3499
+ goal?: string;
3500
+ mode?: ConversationPageMode;
3501
+ personality?: string;
3502
+ voice?: string;
3503
+ topic?: string;
3504
+ vocab?: string[];
3505
+ questions?: string[];
3506
+ showHints?: boolean;
3411
3507
  } | null>;
3412
3508
  };
3413
3509
  };
3414
3510
 
3415
- export { ActivityPageType, type Assignment, type AssignmentAnalyticsType$1 as AssignmentAnalyticsType, type AssignmentWithId, BASE_MULTIPLE_CHOICE_FIELD_VALUES, BASE_REPEAT_FIELD_VALUES, BASE_RESPOND_FIELD_VALUES, type CreditContract, FeedbackTypesCard, FsCtx, type InstitutionSubscription, LENIENCY_OPTIONS, LeniencyCard, MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES, type MediaPageActivity, type Organization, type OrganizationAccess, type PageActivity, type PageActivityWithId, type PageScore, REPEAT_PAGE_ACTIVITY_TYPES, RESPOND_AUDIO_PAGE_ACTIVITY_TYPES, RESPOND_PAGE_ACTIVITY_TYPES, RESPOND_WRITE_PAGE_ACTIVITY_TYPES, type RefsCardsFiresotre, type RefsSetsFirestore, SPEAKABLE_NOTIFICATIONS, STUDENT_LEVELS_OPTIONS, type Score, type ScoreWithId, type Set, type SetWithId, type SpeakableNotificationType, SpeakableNotificationTypes, SpeakableProvider, VerificationCardStatus, assignmentQueryKeys, cardsQueryKeys, checkIsMCPage, checkIsMediaPage, checkIsRepeatPage, checkIsRespondAudioPage, checkIsRespondPage, checkIsRespondWrittenPage, checkIsShortAnswerPage, checkTypePageActivity, cleanString, createAssignmentRepo, createCardRepo, createFsClientNative as createFsClient, createSetRepo, creditQueryKeys, debounce, getCardFromCache, getLabelPage, getPageMediaData, getPagePrompt, getPhraseLength, getRespondCardTool, getSetFromCache, getSingleMediaPageData, getTotalCompletedCards, getTranscript, getTranscriptCycle, getWordHash, purify, refsCardsFiresotre, refsSetsFirestore, scoreQueryKeys, setsQueryKeys, updateCardInCache, updateSetInCache, useActivity, useActivityFeedbackAccess, useAssignment, useBaseOpenAI, useCards, useClearScore, useClearScoreV2, useCreateCard, useCreateCards, useCreateNotification, useGetCard, useOrganizationAccess, useScore, useSet, useSpeakableApi, useSpeakableTranscript, useSpeakableTranscriptCycle, useSubmitAssignmentScore, useSubmitPracticeScore, useUpdateCardScore, useUpdateScore, useUpdateStudentVocab, useUserCredits };
3511
+ export { ActivityPageType, type Assignment, type AssignmentAnalyticsType$1 as AssignmentAnalyticsType, type AssignmentWithId, BASE_MULTIPLE_CHOICE_FIELD_VALUES, BASE_REPEAT_FIELD_VALUES, BASE_RESPOND_FIELD_VALUES, CONVERSATION_PAGE_ACTIVITY_TYPES, ConversationPageMode, type CreditContract, FeedbackTypesCard, FsCtx, type InstitutionSubscription, LENIENCY_OPTIONS, LeniencyCard, MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES, type MediaPageActivity, type Organization, type OrganizationAccess, type PageActivity, type PageActivityWithId, type PageScore, REPEAT_PAGE_ACTIVITY_TYPES, RESPOND_AUDIO_PAGE_ACTIVITY_TYPES, RESPOND_PAGE_ACTIVITY_TYPES, RESPOND_WRITE_PAGE_ACTIVITY_TYPES, type RefsCardsFiresotre, type RefsSetsFirestore, SPEAKABLE_NOTIFICATIONS, STUDENT_LEVELS_OPTIONS, type Score, type ScoreWithId, type Set, type SetWithId, type SpeakableNotificationType, SpeakableNotificationTypes, SpeakableProvider, VerificationCardStatus, assignmentQueryKeys, cardsQueryKeys, checkIsConversationPage, checkIsMCPage, checkIsMediaPage, checkIsRepeatPage, checkIsRespondAudioPage, checkIsRespondPage, checkIsRespondWrittenPage, checkIsShortAnswerPage, checkTypePageActivity, cleanString, createAssignmentRepo, createCardRepo, createFsClientNative as createFsClient, createSetRepo, creditQueryKeys, debounce, getCardFromCache, getLabelPage, getPageMediaData, getPagePrompt, getPhraseLength, getRespondCardTool, getSetFromCache, getSingleMediaPageData, getTotalCompletedCards, getTranscript, getTranscriptCycle, getWordHash, purify, refsCardsFiresotre, refsSetsFirestore, scoreQueryKeys, setsQueryKeys, updateCardInCache, updateSetInCache, useActivity, useActivityFeedbackAccess, useAssignment, useBaseOpenAI, useCards, useClearScore, useClearScoreV2, useCreateCard, useCreateCards, useCreateNotification, useGetCard, useOrganizationAccess, useScore, useSet, useSpeakableApi, useSpeakableTranscript, useSpeakableTranscriptCycle, useSubmitAssignmentScore, useSubmitPracticeScore, useUpdateCardScore, useUpdateScore, useUpdateStudentVocab, useUserCredits };
@@ -92,6 +92,10 @@ interface MediaPageActivity {
92
92
  url: string;
93
93
  transcript?: string | null;
94
94
  }
95
+ declare enum ConversationPageMode {
96
+ VoiceAndText = "voice_and_text",
97
+ PhoneCall = "phone_call"
98
+ }
95
99
  interface PageActivity {
96
100
  owners: string[];
97
101
  checked?: boolean;
@@ -163,6 +167,14 @@ interface PageActivity {
163
167
  correct_answer_exact_match?: boolean;
164
168
  ai_context_block_ids?: string[];
165
169
  resolvedContext?: string;
170
+ goal?: string;
171
+ mode?: ConversationPageMode;
172
+ personality?: string;
173
+ voice?: string;
174
+ topic?: string;
175
+ vocab?: string[];
176
+ questions?: string[];
177
+ showHints?: boolean;
166
178
  }
167
179
  declare const enum ActivityPageType {
168
180
  READ_REPEAT = "READ_REPEAT",
@@ -173,13 +185,15 @@ declare const enum ActivityPageType {
173
185
  RESPOND_WRITE = "RESPOND_WRITE",
174
186
  MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
175
187
  MEDIA_PAGE = "MEDIA_PAGE",
176
- SHORT_ANSWER = "SHORT_ANSWER"
188
+ SHORT_ANSWER = "SHORT_ANSWER",
189
+ CONVERSATION = "CONVERSATION"
177
190
  }
178
191
  declare const RESPOND_PAGE_ACTIVITY_TYPES: ActivityPageType[];
179
192
  declare const MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES: ActivityPageType[];
180
193
  declare const REPEAT_PAGE_ACTIVITY_TYPES: ActivityPageType[];
181
194
  declare const RESPOND_WRITE_PAGE_ACTIVITY_TYPES: ActivityPageType[];
182
195
  declare const RESPOND_AUDIO_PAGE_ACTIVITY_TYPES: ActivityPageType[];
196
+ declare const CONVERSATION_PAGE_ACTIVITY_TYPES: ActivityPageType[];
183
197
 
184
198
  declare const cardsQueryKeys: {
185
199
  all: string[];
@@ -266,6 +280,14 @@ declare function useCards({ cardIds, enabled, asObject, }: {
266
280
  correct_answer_exact_match?: boolean;
267
281
  ai_context_block_ids?: string[];
268
282
  resolvedContext?: string;
283
+ goal?: string;
284
+ mode?: ConversationPageMode;
285
+ personality?: string;
286
+ voice?: string;
287
+ topic?: string;
288
+ vocab?: string[];
289
+ questions?: string[];
290
+ showHints?: boolean;
269
291
  } | null, Error>[];
270
292
  };
271
293
  declare function useCreateCard(): {
@@ -348,6 +370,14 @@ declare function useCreateCards(): {
348
370
  correct_answer_exact_match?: boolean;
349
371
  ai_context_block_ids?: string[];
350
372
  resolvedContext?: string;
373
+ goal?: string;
374
+ mode?: ConversationPageMode;
375
+ personality?: string;
376
+ voice?: string;
377
+ topic?: string;
378
+ vocab?: string[];
379
+ questions?: string[];
380
+ showHints?: boolean;
351
381
  }[], Error, {
352
382
  cards: PageActivity[];
353
383
  }, unknown>;
@@ -436,6 +466,14 @@ declare function useGetCard({ cardId, enabled }: {
436
466
  correct_answer_exact_match?: boolean;
437
467
  ai_context_block_ids?: string[];
438
468
  resolvedContext?: string;
469
+ goal?: string;
470
+ mode?: ConversationPageMode;
471
+ personality?: string;
472
+ voice?: string;
473
+ topic?: string;
474
+ vocab?: string[];
475
+ questions?: string[];
476
+ showHints?: boolean;
439
477
  } | null, Error>;
440
478
 
441
479
  declare const createCardRepo: () => {
@@ -518,6 +556,14 @@ declare const createCardRepo: () => {
518
556
  correct_answer_exact_match?: boolean;
519
557
  ai_context_block_ids?: string[];
520
558
  resolvedContext?: string;
559
+ goal?: string;
560
+ mode?: ConversationPageMode;
561
+ personality?: string;
562
+ voice?: string;
563
+ topic?: string;
564
+ vocab?: string[];
565
+ questions?: string[];
566
+ showHints?: boolean;
521
567
  }[]>;
522
568
  getCard: (params: {
523
569
  cardId: string;
@@ -593,6 +639,14 @@ declare const createCardRepo: () => {
593
639
  correct_answer_exact_match?: boolean;
594
640
  ai_context_block_ids?: string[];
595
641
  resolvedContext?: string;
642
+ goal?: string;
643
+ mode?: ConversationPageMode;
644
+ personality?: string;
645
+ voice?: string;
646
+ topic?: string;
647
+ vocab?: string[];
648
+ questions?: string[];
649
+ showHints?: boolean;
596
650
  } | null>;
597
651
  };
598
652
 
@@ -603,6 +657,7 @@ declare function checkIsRespondWrittenPage(cardType: ActivityPageType | undefine
603
657
  declare function checkIsRespondAudioPage(cardType: ActivityPageType | undefined): boolean;
604
658
  declare const checkIsMediaPage: (cardType: ActivityPageType | undefined) => boolean;
605
659
  declare const checkIsShortAnswerPage: (cardType: ActivityPageType | undefined) => boolean;
660
+ declare const checkIsConversationPage: (cardType: ActivityPageType | undefined) => boolean;
606
661
  declare const checkTypePageActivity: (cardType: ActivityPageType | undefined) => {
607
662
  isRespondAudio: boolean;
608
663
  isRespondWritten: boolean;
@@ -612,6 +667,7 @@ declare const checkTypePageActivity: (cardType: ActivityPageType | undefined) =>
612
667
  isMediaPage: boolean;
613
668
  isShortAnswer: boolean;
614
669
  hasSomeType: boolean;
670
+ isConversation: boolean;
615
671
  };
616
672
 
617
673
  declare function getPagePrompt(card: PageActivityWithId | undefined): {
@@ -1451,6 +1507,14 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
1451
1507
  correct_answer_exact_match?: boolean;
1452
1508
  ai_context_block_ids?: string[];
1453
1509
  resolvedContext?: string;
1510
+ goal?: string;
1511
+ mode?: ConversationPageMode;
1512
+ personality?: string;
1513
+ voice?: string;
1514
+ topic?: string;
1515
+ vocab?: string[];
1516
+ questions?: string[];
1517
+ showHints?: boolean;
1454
1518
  }[]>;
1455
1519
  getCard: (params: {
1456
1520
  cardId: string;
@@ -1526,6 +1590,14 @@ declare function createFsClientBase({ db, helpers, httpsCallable, logEvent, }: {
1526
1590
  correct_answer_exact_match?: boolean;
1527
1591
  ai_context_block_ids?: string[];
1528
1592
  resolvedContext?: string;
1593
+ goal?: string;
1594
+ mode?: ConversationPageMode;
1595
+ personality?: string;
1596
+ voice?: string;
1597
+ topic?: string;
1598
+ vocab?: string[];
1599
+ questions?: string[];
1600
+ showHints?: boolean;
1529
1601
  } | null>;
1530
1602
  };
1531
1603
  };
@@ -1785,6 +1857,14 @@ declare function useActivity({ id, isAssignment, onAssignmentSubmitted, ltiData,
1785
1857
  correct_answer_exact_match?: boolean;
1786
1858
  ai_context_block_ids?: string[];
1787
1859
  resolvedContext?: string;
1860
+ goal?: string;
1861
+ mode?: ConversationPageMode;
1862
+ personality?: string;
1863
+ voice?: string;
1864
+ topic?: string;
1865
+ vocab?: string[];
1866
+ questions?: string[];
1867
+ showHints?: boolean;
1788
1868
  } | null, Error>[];
1789
1869
  cardsArray: PageActivityWithId[];
1790
1870
  };
@@ -3333,6 +3413,14 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
3333
3413
  correct_answer_exact_match?: boolean;
3334
3414
  ai_context_block_ids?: string[];
3335
3415
  resolvedContext?: string;
3416
+ goal?: string;
3417
+ mode?: ConversationPageMode;
3418
+ personality?: string;
3419
+ voice?: string;
3420
+ topic?: string;
3421
+ vocab?: string[];
3422
+ questions?: string[];
3423
+ showHints?: boolean;
3336
3424
  }[]>;
3337
3425
  getCard: (params: {
3338
3426
  cardId: string;
@@ -3408,8 +3496,16 @@ declare const createFsClientNative: ({ db, httpsCallable, logEvent }: FsClientPa
3408
3496
  correct_answer_exact_match?: boolean;
3409
3497
  ai_context_block_ids?: string[];
3410
3498
  resolvedContext?: string;
3499
+ goal?: string;
3500
+ mode?: ConversationPageMode;
3501
+ personality?: string;
3502
+ voice?: string;
3503
+ topic?: string;
3504
+ vocab?: string[];
3505
+ questions?: string[];
3506
+ showHints?: boolean;
3411
3507
  } | null>;
3412
3508
  };
3413
3509
  };
3414
3510
 
3415
- export { ActivityPageType, type Assignment, type AssignmentAnalyticsType$1 as AssignmentAnalyticsType, type AssignmentWithId, BASE_MULTIPLE_CHOICE_FIELD_VALUES, BASE_REPEAT_FIELD_VALUES, BASE_RESPOND_FIELD_VALUES, type CreditContract, FeedbackTypesCard, FsCtx, type InstitutionSubscription, LENIENCY_OPTIONS, LeniencyCard, MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES, type MediaPageActivity, type Organization, type OrganizationAccess, type PageActivity, type PageActivityWithId, type PageScore, REPEAT_PAGE_ACTIVITY_TYPES, RESPOND_AUDIO_PAGE_ACTIVITY_TYPES, RESPOND_PAGE_ACTIVITY_TYPES, RESPOND_WRITE_PAGE_ACTIVITY_TYPES, type RefsCardsFiresotre, type RefsSetsFirestore, SPEAKABLE_NOTIFICATIONS, STUDENT_LEVELS_OPTIONS, type Score, type ScoreWithId, type Set, type SetWithId, type SpeakableNotificationType, SpeakableNotificationTypes, SpeakableProvider, VerificationCardStatus, assignmentQueryKeys, cardsQueryKeys, checkIsMCPage, checkIsMediaPage, checkIsRepeatPage, checkIsRespondAudioPage, checkIsRespondPage, checkIsRespondWrittenPage, checkIsShortAnswerPage, checkTypePageActivity, cleanString, createAssignmentRepo, createCardRepo, createFsClientNative as createFsClient, createSetRepo, creditQueryKeys, debounce, getCardFromCache, getLabelPage, getPageMediaData, getPagePrompt, getPhraseLength, getRespondCardTool, getSetFromCache, getSingleMediaPageData, getTotalCompletedCards, getTranscript, getTranscriptCycle, getWordHash, purify, refsCardsFiresotre, refsSetsFirestore, scoreQueryKeys, setsQueryKeys, updateCardInCache, updateSetInCache, useActivity, useActivityFeedbackAccess, useAssignment, useBaseOpenAI, useCards, useClearScore, useClearScoreV2, useCreateCard, useCreateCards, useCreateNotification, useGetCard, useOrganizationAccess, useScore, useSet, useSpeakableApi, useSpeakableTranscript, useSpeakableTranscriptCycle, useSubmitAssignmentScore, useSubmitPracticeScore, useUpdateCardScore, useUpdateScore, useUpdateStudentVocab, useUserCredits };
3511
+ export { ActivityPageType, type Assignment, type AssignmentAnalyticsType$1 as AssignmentAnalyticsType, type AssignmentWithId, BASE_MULTIPLE_CHOICE_FIELD_VALUES, BASE_REPEAT_FIELD_VALUES, BASE_RESPOND_FIELD_VALUES, CONVERSATION_PAGE_ACTIVITY_TYPES, ConversationPageMode, type CreditContract, FeedbackTypesCard, FsCtx, type InstitutionSubscription, LENIENCY_OPTIONS, LeniencyCard, MULTIPLE_CHOICE_PAGE_ACTIVITY_TYPES, type MediaPageActivity, type Organization, type OrganizationAccess, type PageActivity, type PageActivityWithId, type PageScore, REPEAT_PAGE_ACTIVITY_TYPES, RESPOND_AUDIO_PAGE_ACTIVITY_TYPES, RESPOND_PAGE_ACTIVITY_TYPES, RESPOND_WRITE_PAGE_ACTIVITY_TYPES, type RefsCardsFiresotre, type RefsSetsFirestore, SPEAKABLE_NOTIFICATIONS, STUDENT_LEVELS_OPTIONS, type Score, type ScoreWithId, type Set, type SetWithId, type SpeakableNotificationType, SpeakableNotificationTypes, SpeakableProvider, VerificationCardStatus, assignmentQueryKeys, cardsQueryKeys, checkIsConversationPage, checkIsMCPage, checkIsMediaPage, checkIsRepeatPage, checkIsRespondAudioPage, checkIsRespondPage, checkIsRespondWrittenPage, checkIsShortAnswerPage, checkTypePageActivity, cleanString, createAssignmentRepo, createCardRepo, createFsClientNative as createFsClient, createSetRepo, creditQueryKeys, debounce, getCardFromCache, getLabelPage, getPageMediaData, getPagePrompt, getPhraseLength, getRespondCardTool, getSetFromCache, getSingleMediaPageData, getTotalCompletedCards, getTranscript, getTranscriptCycle, getWordHash, purify, refsCardsFiresotre, refsSetsFirestore, scoreQueryKeys, setsQueryKeys, updateCardInCache, updateSetInCache, useActivity, useActivityFeedbackAccess, useAssignment, useBaseOpenAI, useCards, useClearScore, useClearScoreV2, useCreateCard, useCreateCards, useCreateNotification, useGetCard, useOrganizationAccess, useScore, useSet, useSpeakableApi, useSpeakableTranscript, useSpeakableTranscriptCycle, useSubmitAssignmentScore, useSubmitPracticeScore, useUpdateCardScore, useUpdateScore, useUpdateStudentVocab, useUserCredits };
@@ -34,6 +34,8 @@ __export(index_native_exports, {
34
34
  BASE_MULTIPLE_CHOICE_FIELD_VALUES: () => BASE_MULTIPLE_CHOICE_FIELD_VALUES,
35
35
  BASE_REPEAT_FIELD_VALUES: () => BASE_REPEAT_FIELD_VALUES,
36
36
  BASE_RESPOND_FIELD_VALUES: () => BASE_RESPOND_FIELD_VALUES,
37
+ CONVERSATION_PAGE_ACTIVITY_TYPES: () => CONVERSATION_PAGE_ACTIVITY_TYPES,
38
+ ConversationPageMode: () => ConversationPageMode,
37
39
  FeedbackTypesCard: () => FeedbackTypesCard,
38
40
  FsCtx: () => FsCtx,
39
41
  LENIENCY_OPTIONS: () => LENIENCY_OPTIONS,
@@ -50,6 +52,7 @@ __export(index_native_exports, {
50
52
  VerificationCardStatus: () => VerificationCardStatus,
51
53
  assignmentQueryKeys: () => assignmentQueryKeys,
52
54
  cardsQueryKeys: () => cardsQueryKeys,
55
+ checkIsConversationPage: () => checkIsConversationPage,
53
56
  checkIsMCPage: () => checkIsMCPage,
54
57
  checkIsMediaPage: () => checkIsMediaPage,
55
58
  checkIsRepeatPage: () => checkIsRepeatPage,
@@ -1706,6 +1709,11 @@ var import_react_query3 = require("@tanstack/react-query");
1706
1709
  var import_react2 = require("react");
1707
1710
 
1708
1711
  // src/domains/cards/card.model.ts
1712
+ var ConversationPageMode = /* @__PURE__ */ ((ConversationPageMode2) => {
1713
+ ConversationPageMode2["VoiceAndText"] = "voice_and_text";
1714
+ ConversationPageMode2["PhoneCall"] = "phone_call";
1715
+ return ConversationPageMode2;
1716
+ })(ConversationPageMode || {});
1709
1717
  var ActivityPageType = /* @__PURE__ */ ((ActivityPageType2) => {
1710
1718
  ActivityPageType2["READ_REPEAT"] = "READ_REPEAT";
1711
1719
  ActivityPageType2["READ_RESPOND"] = "READ_RESPOND";
@@ -1716,6 +1724,7 @@ var ActivityPageType = /* @__PURE__ */ ((ActivityPageType2) => {
1716
1724
  ActivityPageType2["MULTIPLE_CHOICE"] = "MULTIPLE_CHOICE";
1717
1725
  ActivityPageType2["MEDIA_PAGE"] = "MEDIA_PAGE";
1718
1726
  ActivityPageType2["SHORT_ANSWER"] = "SHORT_ANSWER";
1727
+ ActivityPageType2["CONVERSATION"] = "CONVERSATION";
1719
1728
  return ActivityPageType2;
1720
1729
  })(ActivityPageType || {});
1721
1730
  var RESPOND_PAGE_ACTIVITY_TYPES = [
@@ -1734,6 +1743,7 @@ var RESPOND_AUDIO_PAGE_ACTIVITY_TYPES = [
1734
1743
  "RESPOND" /* RESPOND */,
1735
1744
  "READ_RESPOND" /* READ_RESPOND */
1736
1745
  ];
1746
+ var CONVERSATION_PAGE_ACTIVITY_TYPES = ["CONVERSATION" /* CONVERSATION */];
1737
1747
 
1738
1748
  // src/domains/cards/card.constants.ts
1739
1749
  var FeedbackTypesCard = /* @__PURE__ */ ((FeedbackTypesCard2) => {
@@ -2063,6 +2073,10 @@ var checkIsShortAnswerPage = (cardType) => {
2063
2073
  if (cardType === void 0) return false;
2064
2074
  return cardType === "SHORT_ANSWER" /* SHORT_ANSWER */;
2065
2075
  };
2076
+ var checkIsConversationPage = (cardType) => {
2077
+ if (cardType === void 0) return false;
2078
+ return cardType === "CONVERSATION" /* CONVERSATION */;
2079
+ };
2066
2080
  var checkTypePageActivity = (cardType) => {
2067
2081
  const isRespondAudio = checkIsRespondAudioPage(cardType);
2068
2082
  const isRespondWritten = checkIsRespondWrittenPage(cardType);
@@ -2071,7 +2085,8 @@ var checkTypePageActivity = (cardType) => {
2071
2085
  const isRepeat = checkIsRepeatPage(cardType);
2072
2086
  const isMediaPage = checkIsMediaPage(cardType);
2073
2087
  const isShortAnswer = checkIsShortAnswerPage(cardType);
2074
- const isNoOneOfThem = !isRespond && !isMC && !isRepeat && !isMediaPage && !isShortAnswer;
2088
+ const isConversation = checkIsConversationPage(cardType);
2089
+ const isNoOneOfThem = !isRespond && !isMC && !isRepeat && !isMediaPage && !isShortAnswer && !isConversation;
2075
2090
  if (isNoOneOfThem) {
2076
2091
  return {
2077
2092
  isRespondAudio: false,
@@ -2081,7 +2096,8 @@ var checkTypePageActivity = (cardType) => {
2081
2096
  isRepeat: true,
2082
2097
  isMediaPage: false,
2083
2098
  isShortAnswer: false,
2084
- hasSomeType: false
2099
+ hasSomeType: false,
2100
+ isConversation: false
2085
2101
  };
2086
2102
  }
2087
2103
  return {
@@ -2092,7 +2108,8 @@ var checkTypePageActivity = (cardType) => {
2092
2108
  isRepeat,
2093
2109
  isMediaPage,
2094
2110
  isShortAnswer,
2095
- hasSomeType: true
2111
+ hasSomeType: true,
2112
+ isConversation
2096
2113
  };
2097
2114
  };
2098
2115
 
@@ -2103,7 +2120,9 @@ function extractTextFromRichText(richText) {
2103
2120
  }
2104
2121
  function getPagePrompt(card) {
2105
2122
  if (!card) return { has: false, text: "", rich_text: "", isTextEqualToRichText: false };
2106
- const { isMC, isRepeat, isRespond, isShortAnswer } = checkTypePageActivity(card == null ? void 0 : card.type);
2123
+ const { isMC, isRepeat, isRespond, isShortAnswer, isConversation } = checkTypePageActivity(
2124
+ card == null ? void 0 : card.type
2125
+ );
2107
2126
  const hidePrompt = (card == null ? void 0 : card.hidePrompt) === true;
2108
2127
  const createReturnObject = (text, richText) => {
2109
2128
  const plainText = text || "";
@@ -2118,6 +2137,9 @@ function getPagePrompt(card) {
2118
2137
  if (isRepeat) {
2119
2138
  return createReturnObject(card == null ? void 0 : card.target_text, card == null ? void 0 : card.rich_text);
2120
2139
  }
2140
+ if (isConversation) {
2141
+ return createReturnObject(card == null ? void 0 : card.goal, card == null ? void 0 : card.rich_text);
2142
+ }
2121
2143
  if (isRespond && !hidePrompt) {
2122
2144
  return createReturnObject(card == null ? void 0 : card.prompt, card == null ? void 0 : card.rich_text);
2123
2145
  }