@mentingo/luma-sdk 0.6.0 → 0.7.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/README.md +3 -3
- package/dist/{chunk-PHLN53W2.js → chunk-VA5F2G2H.js} +156 -0
- package/dist/{contracts-NgFlZ1vx.d.cts → contracts-BmeI96S2.d.cts} +401 -1
- package/dist/{contracts-NgFlZ1vx.d.ts → contracts-BmeI96S2.d.ts} +401 -1
- package/dist/contracts.d.cts +1 -1
- package/dist/contracts.d.ts +1 -1
- package/dist/contracts.js +1 -1
- package/dist/index.cjs +223 -0
- package/dist/index.d.cts +19 -3
- package/dist/index.d.ts +19 -3
- package/dist/index.js +67 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,11 +10,11 @@ It provides two separate clients:
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
pnpm add @mentingo/luma-sdk@0.
|
|
13
|
+
pnpm add @mentingo/luma-sdk@0.7.0
|
|
14
14
|
# or
|
|
15
|
-
npm install @mentingo/luma-sdk@0.
|
|
15
|
+
npm install @mentingo/luma-sdk@0.7.0
|
|
16
16
|
# or
|
|
17
|
-
yarn add @mentingo/luma-sdk@0.
|
|
17
|
+
yarn add @mentingo/luma-sdk@0.7.0
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## Quick Start (HTTP)
|
|
@@ -635,6 +635,162 @@ var API = class extends HttpClient {
|
|
|
635
635
|
secure: true,
|
|
636
636
|
...params
|
|
637
637
|
}),
|
|
638
|
+
/**
|
|
639
|
+
* @description Open or recover a single handoff using the Core-provided session identity.
|
|
640
|
+
*
|
|
641
|
+
* @tags Public - Require API Key
|
|
642
|
+
* @name CreateApiPublicV1CreatorsSessionsPost
|
|
643
|
+
* @summary Create
|
|
644
|
+
* @request POST:/api/public/v1/creators/sessions
|
|
645
|
+
* @secure
|
|
646
|
+
*/
|
|
647
|
+
createApiPublicV1CreatorsSessionsPost: (data, params = {}) => this.request({
|
|
648
|
+
path: `/api/public/v1/creators/sessions`,
|
|
649
|
+
method: "POST",
|
|
650
|
+
body: data,
|
|
651
|
+
secure: true,
|
|
652
|
+
type: "application/json" /* Json */,
|
|
653
|
+
format: "json",
|
|
654
|
+
...params
|
|
655
|
+
}),
|
|
656
|
+
/**
|
|
657
|
+
* @description Recover the current private draft, including a partially generated turn.
|
|
658
|
+
*
|
|
659
|
+
* @tags Public - Require API Key
|
|
660
|
+
* @name GetSessionApiPublicV1CreatorsSessionsSessionIdGet
|
|
661
|
+
* @summary Get Session
|
|
662
|
+
* @request GET:/api/public/v1/creators/sessions/{session_id}
|
|
663
|
+
* @secure
|
|
664
|
+
*/
|
|
665
|
+
getSessionApiPublicV1CreatorsSessionsSessionIdGet: (sessionId, query, params = {}) => this.request({
|
|
666
|
+
path: `/api/public/v1/creators/sessions/${sessionId}`,
|
|
667
|
+
method: "GET",
|
|
668
|
+
query,
|
|
669
|
+
secure: true,
|
|
670
|
+
format: "json",
|
|
671
|
+
...params
|
|
672
|
+
}),
|
|
673
|
+
/**
|
|
674
|
+
* @description Claim a durable generation, apply a versioned manual edit or freeze an exact revision.
|
|
675
|
+
*
|
|
676
|
+
* @tags Public - Require API Key
|
|
677
|
+
* @name CommandApiPublicV1CreatorsSessionsSessionIdCommandsPost
|
|
678
|
+
* @summary Command
|
|
679
|
+
* @request POST:/api/public/v1/creators/sessions/{session_id}/commands
|
|
680
|
+
* @secure
|
|
681
|
+
*/
|
|
682
|
+
commandApiPublicV1CreatorsSessionsSessionIdCommandsPost: (sessionId, data, params = {}) => this.request({
|
|
683
|
+
path: `/api/public/v1/creators/sessions/${sessionId}/commands`,
|
|
684
|
+
method: "POST",
|
|
685
|
+
body: data,
|
|
686
|
+
secure: true,
|
|
687
|
+
type: "application/json" /* Json */,
|
|
688
|
+
format: "json",
|
|
689
|
+
...params
|
|
690
|
+
}),
|
|
691
|
+
/**
|
|
692
|
+
* @description Read committed events after the caller's cursor across reconnects and refreshes.
|
|
693
|
+
*
|
|
694
|
+
* @tags Public - Require API Key
|
|
695
|
+
* @name EventsApiPublicV1CreatorsSessionsSessionIdEventsGet
|
|
696
|
+
* @summary Events
|
|
697
|
+
* @request GET:/api/public/v1/creators/sessions/{session_id}/events
|
|
698
|
+
* @secure
|
|
699
|
+
*/
|
|
700
|
+
eventsApiPublicV1CreatorsSessionsSessionIdEventsGet: (sessionId, query, params = {}) => this.request({
|
|
701
|
+
path: `/api/public/v1/creators/sessions/${sessionId}/events`,
|
|
702
|
+
method: "GET",
|
|
703
|
+
query,
|
|
704
|
+
secure: true,
|
|
705
|
+
format: "json",
|
|
706
|
+
...params
|
|
707
|
+
}),
|
|
708
|
+
/**
|
|
709
|
+
* @description Recover the immutable version for Core's domain-owned atomic application.
|
|
710
|
+
*
|
|
711
|
+
* @tags Public - Require API Key
|
|
712
|
+
* @name ExportApiPublicV1CreatorsSessionsSessionIdExportsCommandIdGet
|
|
713
|
+
* @summary Export
|
|
714
|
+
* @request GET:/api/public/v1/creators/sessions/{session_id}/exports/{command_id}
|
|
715
|
+
* @secure
|
|
716
|
+
*/
|
|
717
|
+
exportApiPublicV1CreatorsSessionsSessionIdExportsCommandIdGet: (sessionId, commandId, query, params = {}) => this.request({
|
|
718
|
+
path: `/api/public/v1/creators/sessions/${sessionId}/exports/${commandId}`,
|
|
719
|
+
method: "GET",
|
|
720
|
+
query,
|
|
721
|
+
secure: true,
|
|
722
|
+
format: "json",
|
|
723
|
+
...params
|
|
724
|
+
}),
|
|
725
|
+
/**
|
|
726
|
+
* @description Extract one private source and return its reviewable preview before generation.
|
|
727
|
+
*
|
|
728
|
+
* @tags Public - Require API Key
|
|
729
|
+
* @name UploadApiPublicV1CreatorsSessionsSessionIdSourcesPost
|
|
730
|
+
* @summary Upload
|
|
731
|
+
* @request POST:/api/public/v1/creators/sessions/{session_id}/sources
|
|
732
|
+
* @secure
|
|
733
|
+
*/
|
|
734
|
+
uploadApiPublicV1CreatorsSessionsSessionIdSourcesPost: (sessionId, data, params = {}) => this.request({
|
|
735
|
+
path: `/api/public/v1/creators/sessions/${sessionId}/sources`,
|
|
736
|
+
method: "POST",
|
|
737
|
+
body: data,
|
|
738
|
+
secure: true,
|
|
739
|
+
type: "multipart/form-data" /* FormData */,
|
|
740
|
+
format: "json",
|
|
741
|
+
...params
|
|
742
|
+
}),
|
|
743
|
+
/**
|
|
744
|
+
* @description List sources for an authorized creator session with their mapping requirements.
|
|
745
|
+
*
|
|
746
|
+
* @tags Public - Require API Key
|
|
747
|
+
* @name ListSourcesApiPublicV1CreatorsSessionsSessionIdSourcesGet
|
|
748
|
+
* @summary List Sources
|
|
749
|
+
* @request GET:/api/public/v1/creators/sessions/{session_id}/sources
|
|
750
|
+
* @secure
|
|
751
|
+
*/
|
|
752
|
+
listSourcesApiPublicV1CreatorsSessionsSessionIdSourcesGet: (sessionId, query, params = {}) => this.request({
|
|
753
|
+
path: `/api/public/v1/creators/sessions/${sessionId}/sources`,
|
|
754
|
+
method: "GET",
|
|
755
|
+
query,
|
|
756
|
+
secure: true,
|
|
757
|
+
format: "json",
|
|
758
|
+
...params
|
|
759
|
+
}),
|
|
760
|
+
/**
|
|
761
|
+
* @description Record the author's explicit role, scale and empty-cell interpretation for an XLSX.
|
|
762
|
+
*
|
|
763
|
+
* @tags Public - Require API Key
|
|
764
|
+
* @name ConfirmMappingApiPublicV1CreatorsSessionsSessionIdSourcesSourceIdMappingPut
|
|
765
|
+
* @summary Confirm Mapping
|
|
766
|
+
* @request PUT:/api/public/v1/creators/sessions/{session_id}/sources/{source_id}/mapping
|
|
767
|
+
* @secure
|
|
768
|
+
*/
|
|
769
|
+
confirmMappingApiPublicV1CreatorsSessionsSessionIdSourcesSourceIdMappingPut: (sessionId, sourceId, data, params = {}) => this.request({
|
|
770
|
+
path: `/api/public/v1/creators/sessions/${sessionId}/sources/${sourceId}/mapping`,
|
|
771
|
+
method: "PUT",
|
|
772
|
+
body: data,
|
|
773
|
+
secure: true,
|
|
774
|
+
type: "application/json" /* Json */,
|
|
775
|
+
format: "json",
|
|
776
|
+
...params
|
|
777
|
+
}),
|
|
778
|
+
/**
|
|
779
|
+
* @description Remove a source from subsequent generation turns.
|
|
780
|
+
*
|
|
781
|
+
* @tags Public - Require API Key
|
|
782
|
+
* @name RemoveSourceApiPublicV1CreatorsSessionsSessionIdSourcesSourceIdDelete
|
|
783
|
+
* @summary Remove Source
|
|
784
|
+
* @request DELETE:/api/public/v1/creators/sessions/{session_id}/sources/{source_id}
|
|
785
|
+
* @secure
|
|
786
|
+
*/
|
|
787
|
+
removeSourceApiPublicV1CreatorsSessionsSessionIdSourcesSourceIdDelete: (sessionId, sourceId, query, params = {}) => this.request({
|
|
788
|
+
path: `/api/public/v1/creators/sessions/${sessionId}/sources/${sourceId}`,
|
|
789
|
+
method: "DELETE",
|
|
790
|
+
query,
|
|
791
|
+
secure: true,
|
|
792
|
+
...params
|
|
793
|
+
}),
|
|
638
794
|
/**
|
|
639
795
|
* No description
|
|
640
796
|
*
|
|
@@ -82,6 +82,21 @@ declare enum PlanningScope {
|
|
|
82
82
|
AppendChapter = "append_chapter",
|
|
83
83
|
AppendLesson = "append_lesson"
|
|
84
84
|
}
|
|
85
|
+
/** ItemKind */
|
|
86
|
+
declare enum ItemKind {
|
|
87
|
+
Category = "category",
|
|
88
|
+
Competency = "competency",
|
|
89
|
+
Profile = "profile",
|
|
90
|
+
Settings = "settings",
|
|
91
|
+
Automation = "automation",
|
|
92
|
+
Step = "step",
|
|
93
|
+
EmailTemplate = "emailTemplate"
|
|
94
|
+
}
|
|
95
|
+
/** CreatorDomain */
|
|
96
|
+
declare enum CreatorDomain$1 {
|
|
97
|
+
Competencies = "competencies",
|
|
98
|
+
Automations = "automations"
|
|
99
|
+
}
|
|
85
100
|
/**
|
|
86
101
|
* ContentMode
|
|
87
102
|
* Distinguish fact-based authoring from an explicitly requested illustrative draft.
|
|
@@ -842,6 +857,8 @@ interface AuthoringCommand$1 {
|
|
|
842
857
|
* @default 1
|
|
843
858
|
*/
|
|
844
859
|
schemaVersion?: 1;
|
|
860
|
+
/** Personrefs */
|
|
861
|
+
personRefs?: string[] | null;
|
|
845
862
|
/**
|
|
846
863
|
* Commandid
|
|
847
864
|
* @format uuid
|
|
@@ -1060,6 +1077,24 @@ interface BodyTranscribeDictationApiPublicV1AiTranscriptionsPost {
|
|
|
1060
1077
|
*/
|
|
1061
1078
|
file: File;
|
|
1062
1079
|
}
|
|
1080
|
+
/** Body_upload_api_public_v1_creators_sessions__session_id__sources_post */
|
|
1081
|
+
interface BodyUploadApiPublicV1CreatorsSessionsSessionIdSourcesPost {
|
|
1082
|
+
/**
|
|
1083
|
+
* File
|
|
1084
|
+
* @format binary
|
|
1085
|
+
*/
|
|
1086
|
+
file: File;
|
|
1087
|
+
/**
|
|
1088
|
+
* Actorid
|
|
1089
|
+
* @format uuid
|
|
1090
|
+
*/
|
|
1091
|
+
actorId: string;
|
|
1092
|
+
/**
|
|
1093
|
+
* Sourceid
|
|
1094
|
+
* @format uuid
|
|
1095
|
+
*/
|
|
1096
|
+
sourceId: string;
|
|
1097
|
+
}
|
|
1063
1098
|
/** Body_upload_source_api_public_v1_authoring_sessions__session_id__sources_post */
|
|
1064
1099
|
interface BodyUploadSourceApiPublicV1AuthoringSessionsSessionIdSourcesPost {
|
|
1065
1100
|
/**
|
|
@@ -1162,6 +1197,20 @@ interface CommandReceipt {
|
|
|
1162
1197
|
/** Refreshstatus */
|
|
1163
1198
|
refreshStatus?: "refreshed" | "needs_mapping" | null;
|
|
1164
1199
|
}
|
|
1200
|
+
/** ConfirmMapping */
|
|
1201
|
+
interface ConfirmMapping {
|
|
1202
|
+
/**
|
|
1203
|
+
* Actorid
|
|
1204
|
+
* @format uuid
|
|
1205
|
+
*/
|
|
1206
|
+
actorId: string;
|
|
1207
|
+
/**
|
|
1208
|
+
* Mapping
|
|
1209
|
+
* @minLength 1
|
|
1210
|
+
* @maxLength 32000
|
|
1211
|
+
*/
|
|
1212
|
+
mapping: string;
|
|
1213
|
+
}
|
|
1165
1214
|
/**
|
|
1166
1215
|
* ContentLesson
|
|
1167
1216
|
* Carry the title and description payload for a content lesson operation.
|
|
@@ -1405,6 +1454,38 @@ interface CourseCreatePayload {
|
|
|
1405
1454
|
/** Thumbnailassetid */
|
|
1406
1455
|
thumbnailAssetId?: string | null;
|
|
1407
1456
|
}
|
|
1457
|
+
/** CreateCreatorSession */
|
|
1458
|
+
interface CreateCreatorSession {
|
|
1459
|
+
/**
|
|
1460
|
+
* Sessionid
|
|
1461
|
+
* @format uuid
|
|
1462
|
+
*/
|
|
1463
|
+
sessionId: string;
|
|
1464
|
+
/**
|
|
1465
|
+
* Actorid
|
|
1466
|
+
* @format uuid
|
|
1467
|
+
*/
|
|
1468
|
+
actorId: string;
|
|
1469
|
+
domain: CreatorDomain$1;
|
|
1470
|
+
/**
|
|
1471
|
+
* Language
|
|
1472
|
+
* @minLength 2
|
|
1473
|
+
* @maxLength 16
|
|
1474
|
+
*/
|
|
1475
|
+
language: string;
|
|
1476
|
+
/**
|
|
1477
|
+
* Brief
|
|
1478
|
+
* @maxLength 32000
|
|
1479
|
+
*/
|
|
1480
|
+
brief: string;
|
|
1481
|
+
/** Context */
|
|
1482
|
+
context?: Record<string, JsonValue>;
|
|
1483
|
+
/**
|
|
1484
|
+
* Items
|
|
1485
|
+
* @maxItems 2000
|
|
1486
|
+
*/
|
|
1487
|
+
items?: CreatorItem$1[];
|
|
1488
|
+
}
|
|
1408
1489
|
/**
|
|
1409
1490
|
* CreateSession
|
|
1410
1491
|
* Request creation of an authoring session for one course and actor.
|
|
@@ -1430,6 +1511,141 @@ interface CreateSession {
|
|
|
1430
1511
|
/** Context */
|
|
1431
1512
|
context?: Record<string, JsonValue>;
|
|
1432
1513
|
}
|
|
1514
|
+
/** CreatorCommand */
|
|
1515
|
+
interface CreatorCommand$1 {
|
|
1516
|
+
/**
|
|
1517
|
+
* Commandid
|
|
1518
|
+
* @format uuid
|
|
1519
|
+
*/
|
|
1520
|
+
commandId: string;
|
|
1521
|
+
/**
|
|
1522
|
+
* Actorid
|
|
1523
|
+
* @format uuid
|
|
1524
|
+
*/
|
|
1525
|
+
actorId: string;
|
|
1526
|
+
/** Type */
|
|
1527
|
+
type: "generate" | "edit" | "freeze" | "stop";
|
|
1528
|
+
/**
|
|
1529
|
+
* Expectedrevision
|
|
1530
|
+
* @min 0
|
|
1531
|
+
*/
|
|
1532
|
+
expectedRevision: number;
|
|
1533
|
+
/** Text */
|
|
1534
|
+
text?: string | null;
|
|
1535
|
+
research?: PublicResearch | null;
|
|
1536
|
+
/** Context */
|
|
1537
|
+
context?: Record<string, JsonValue> | null;
|
|
1538
|
+
/**
|
|
1539
|
+
* Items
|
|
1540
|
+
* @maxItems 2000
|
|
1541
|
+
*/
|
|
1542
|
+
items?: CreatorItem$1[];
|
|
1543
|
+
/**
|
|
1544
|
+
* Removeids
|
|
1545
|
+
* @maxItems 2000
|
|
1546
|
+
*/
|
|
1547
|
+
removeIds?: string[];
|
|
1548
|
+
}
|
|
1549
|
+
/** CreatorEvent */
|
|
1550
|
+
interface CreatorEvent {
|
|
1551
|
+
/** Turnkind */
|
|
1552
|
+
turnKind?: "question" | "message" | null;
|
|
1553
|
+
/** Sequence */
|
|
1554
|
+
sequence: number;
|
|
1555
|
+
/** Revision */
|
|
1556
|
+
revision: number;
|
|
1557
|
+
/** Type */
|
|
1558
|
+
type: "item.upserted" | "item.removed" | "turn.started" | "turn.completed" | "turn.failed" | "turn.stopped";
|
|
1559
|
+
item?: CreatorItem$1 | null;
|
|
1560
|
+
/** Itemid */
|
|
1561
|
+
itemId?: string | null;
|
|
1562
|
+
/** Fieldpath */
|
|
1563
|
+
fieldPath?: string[] | null;
|
|
1564
|
+
/** Status */
|
|
1565
|
+
status?: "idle" | "generating" | "failed" | null;
|
|
1566
|
+
/** Message */
|
|
1567
|
+
message?: string | null;
|
|
1568
|
+
}
|
|
1569
|
+
/** CreatorEventPage */
|
|
1570
|
+
interface CreatorEventPage {
|
|
1571
|
+
/** Events */
|
|
1572
|
+
events: CreatorEvent[];
|
|
1573
|
+
/** Nextsequence */
|
|
1574
|
+
nextSequence: number;
|
|
1575
|
+
}
|
|
1576
|
+
/**
|
|
1577
|
+
* CreatorItem
|
|
1578
|
+
* One stable draft object, with its native value and review dependencies.
|
|
1579
|
+
*/
|
|
1580
|
+
interface CreatorItem$1 {
|
|
1581
|
+
/**
|
|
1582
|
+
* Id
|
|
1583
|
+
* @format uuid
|
|
1584
|
+
*/
|
|
1585
|
+
id: string;
|
|
1586
|
+
kind: ItemKind;
|
|
1587
|
+
/** Value */
|
|
1588
|
+
value: Record<string, JsonValue>;
|
|
1589
|
+
/**
|
|
1590
|
+
* Operation
|
|
1591
|
+
* @default "upsert"
|
|
1592
|
+
*/
|
|
1593
|
+
operation?: "upsert" | "delete";
|
|
1594
|
+
/** Baserevision */
|
|
1595
|
+
baseRevision?: number | null;
|
|
1596
|
+
/** Rationale */
|
|
1597
|
+
rationale?: string | null;
|
|
1598
|
+
/**
|
|
1599
|
+
* Sourcerefs
|
|
1600
|
+
* @maxItems 100
|
|
1601
|
+
*/
|
|
1602
|
+
sourceRefs?: string[];
|
|
1603
|
+
/**
|
|
1604
|
+
* Dependencies
|
|
1605
|
+
* @maxItems 1000
|
|
1606
|
+
*/
|
|
1607
|
+
dependencies?: string[];
|
|
1608
|
+
}
|
|
1609
|
+
/** CreatorSnapshot */
|
|
1610
|
+
interface CreatorSnapshot {
|
|
1611
|
+
/**
|
|
1612
|
+
* Sessionid
|
|
1613
|
+
* @format uuid
|
|
1614
|
+
*/
|
|
1615
|
+
sessionId: string;
|
|
1616
|
+
/**
|
|
1617
|
+
* Actorid
|
|
1618
|
+
* @format uuid
|
|
1619
|
+
*/
|
|
1620
|
+
actorId: string;
|
|
1621
|
+
domain: CreatorDomain$1;
|
|
1622
|
+
/** Revision */
|
|
1623
|
+
revision: number;
|
|
1624
|
+
/** Sequence */
|
|
1625
|
+
sequence: number;
|
|
1626
|
+
/** Status */
|
|
1627
|
+
status: "idle" | "generating" | "failed";
|
|
1628
|
+
/** Brief */
|
|
1629
|
+
brief: string;
|
|
1630
|
+
/** Items */
|
|
1631
|
+
items: CreatorItem$1[];
|
|
1632
|
+
/** Turns */
|
|
1633
|
+
turns: CreatorTurn[];
|
|
1634
|
+
}
|
|
1635
|
+
/** CreatorTurn */
|
|
1636
|
+
interface CreatorTurn {
|
|
1637
|
+
/** Kind */
|
|
1638
|
+
kind?: "question" | "message" | null;
|
|
1639
|
+
/**
|
|
1640
|
+
* Id
|
|
1641
|
+
* @format uuid
|
|
1642
|
+
*/
|
|
1643
|
+
id: string;
|
|
1644
|
+
/** Role */
|
|
1645
|
+
role: "user" | "assistant";
|
|
1646
|
+
/** Text */
|
|
1647
|
+
text: string;
|
|
1648
|
+
}
|
|
1433
1649
|
/**
|
|
1434
1650
|
* DeleteOperation
|
|
1435
1651
|
* Delete one chapter or lesson selected by operation target and baseline.
|
|
@@ -2352,6 +2568,22 @@ interface PublicConfigurationResponse {
|
|
|
2352
2568
|
/** Capabilities */
|
|
2353
2569
|
capabilities: Record<AiCapability, AiCapabilityStatus>;
|
|
2354
2570
|
}
|
|
2571
|
+
/**
|
|
2572
|
+
* PublicResearch
|
|
2573
|
+
* Only this explicitly supplied public topic may reach the discovery provider.
|
|
2574
|
+
*/
|
|
2575
|
+
interface PublicResearch {
|
|
2576
|
+
/**
|
|
2577
|
+
* Query
|
|
2578
|
+
* @maxLength 1024
|
|
2579
|
+
*/
|
|
2580
|
+
query: string;
|
|
2581
|
+
/**
|
|
2582
|
+
* Urls
|
|
2583
|
+
* @maxItems 5
|
|
2584
|
+
*/
|
|
2585
|
+
urls?: string[];
|
|
2586
|
+
}
|
|
2355
2587
|
/**
|
|
2356
2588
|
* QuestionBlank
|
|
2357
2589
|
* Describe a fill-in blank and how its answer sets are compared.
|
|
@@ -2757,6 +2989,11 @@ interface SettingsUpdateOutput {
|
|
|
2757
2989
|
/** Carry a non-empty course settings patch while preserving omitted fields. */
|
|
2758
2990
|
payload: SettingsPayload;
|
|
2759
2991
|
}
|
|
2992
|
+
/** SourcePage */
|
|
2993
|
+
interface SourcePage {
|
|
2994
|
+
/** Sources */
|
|
2995
|
+
sources: SourceSummary[];
|
|
2996
|
+
}
|
|
2760
2997
|
/**
|
|
2761
2998
|
* SourcePolicy
|
|
2762
2999
|
* Allowlist source versions and explicitly enabled web, general-knowledge, and research-depth permissions.
|
|
@@ -2784,6 +3021,22 @@ interface SourcePolicy {
|
|
|
2784
3021
|
/** Excludedsectionids */
|
|
2785
3022
|
excludedSectionIds?: string[];
|
|
2786
3023
|
}
|
|
3024
|
+
/** SourceSummary */
|
|
3025
|
+
interface SourceSummary {
|
|
3026
|
+
/**
|
|
3027
|
+
* Id
|
|
3028
|
+
* @format uuid
|
|
3029
|
+
*/
|
|
3030
|
+
id: string;
|
|
3031
|
+
/** Name */
|
|
3032
|
+
name: string;
|
|
3033
|
+
/** Status */
|
|
3034
|
+
status: "ready" | "mapping_required";
|
|
3035
|
+
/** Preview */
|
|
3036
|
+
preview: string[];
|
|
3037
|
+
/** Mapping */
|
|
3038
|
+
mapping?: string | null;
|
|
3039
|
+
}
|
|
2787
3040
|
/**
|
|
2788
3041
|
* SourceUploadReceipt
|
|
2789
3042
|
* Return the immutable uploaded source version and its queued ingestion task.
|
|
@@ -3413,6 +3666,139 @@ declare class API<SecurityDataType extends unknown> extends HttpClient<SecurityD
|
|
|
3413
3666
|
*/
|
|
3414
3667
|
revision?: number;
|
|
3415
3668
|
}, params?: RequestParams) => Promise<AxiosResponse<File, any, {}, any>>;
|
|
3669
|
+
/**
|
|
3670
|
+
* @description Open or recover a single handoff using the Core-provided session identity.
|
|
3671
|
+
*
|
|
3672
|
+
* @tags Public - Require API Key
|
|
3673
|
+
* @name CreateApiPublicV1CreatorsSessionsPost
|
|
3674
|
+
* @summary Create
|
|
3675
|
+
* @request POST:/api/public/v1/creators/sessions
|
|
3676
|
+
* @secure
|
|
3677
|
+
*/
|
|
3678
|
+
createApiPublicV1CreatorsSessionsPost: (data: CreateCreatorSession, params?: RequestParams) => Promise<AxiosResponse<CreatorSnapshot, any, {}, any>>;
|
|
3679
|
+
/**
|
|
3680
|
+
* @description Recover the current private draft, including a partially generated turn.
|
|
3681
|
+
*
|
|
3682
|
+
* @tags Public - Require API Key
|
|
3683
|
+
* @name GetSessionApiPublicV1CreatorsSessionsSessionIdGet
|
|
3684
|
+
* @summary Get Session
|
|
3685
|
+
* @request GET:/api/public/v1/creators/sessions/{session_id}
|
|
3686
|
+
* @secure
|
|
3687
|
+
*/
|
|
3688
|
+
getSessionApiPublicV1CreatorsSessionsSessionIdGet: (sessionId: string, query: {
|
|
3689
|
+
/**
|
|
3690
|
+
* Actorid
|
|
3691
|
+
* @format uuid
|
|
3692
|
+
*/
|
|
3693
|
+
actorId: string;
|
|
3694
|
+
}, params?: RequestParams) => Promise<AxiosResponse<CreatorSnapshot, any, {}, any>>;
|
|
3695
|
+
/**
|
|
3696
|
+
* @description Claim a durable generation, apply a versioned manual edit or freeze an exact revision.
|
|
3697
|
+
*
|
|
3698
|
+
* @tags Public - Require API Key
|
|
3699
|
+
* @name CommandApiPublicV1CreatorsSessionsSessionIdCommandsPost
|
|
3700
|
+
* @summary Command
|
|
3701
|
+
* @request POST:/api/public/v1/creators/sessions/{session_id}/commands
|
|
3702
|
+
* @secure
|
|
3703
|
+
*/
|
|
3704
|
+
commandApiPublicV1CreatorsSessionsSessionIdCommandsPost: (sessionId: string, data: CreatorCommand$1, params?: RequestParams) => Promise<AxiosResponse<CreatorSnapshot, any, {}, any>>;
|
|
3705
|
+
/**
|
|
3706
|
+
* @description Read committed events after the caller's cursor across reconnects and refreshes.
|
|
3707
|
+
*
|
|
3708
|
+
* @tags Public - Require API Key
|
|
3709
|
+
* @name EventsApiPublicV1CreatorsSessionsSessionIdEventsGet
|
|
3710
|
+
* @summary Events
|
|
3711
|
+
* @request GET:/api/public/v1/creators/sessions/{session_id}/events
|
|
3712
|
+
* @secure
|
|
3713
|
+
*/
|
|
3714
|
+
eventsApiPublicV1CreatorsSessionsSessionIdEventsGet: (sessionId: string, query: {
|
|
3715
|
+
/**
|
|
3716
|
+
* Actorid
|
|
3717
|
+
* @format uuid
|
|
3718
|
+
*/
|
|
3719
|
+
actorId: string;
|
|
3720
|
+
/**
|
|
3721
|
+
* Aftersequence
|
|
3722
|
+
* @min 0
|
|
3723
|
+
* @default 0
|
|
3724
|
+
*/
|
|
3725
|
+
afterSequence?: number;
|
|
3726
|
+
/**
|
|
3727
|
+
* Limit
|
|
3728
|
+
* @min 1
|
|
3729
|
+
* @max 500
|
|
3730
|
+
* @default 100
|
|
3731
|
+
*/
|
|
3732
|
+
limit?: number;
|
|
3733
|
+
}, params?: RequestParams) => Promise<AxiosResponse<CreatorEventPage, any, {}, any>>;
|
|
3734
|
+
/**
|
|
3735
|
+
* @description Recover the immutable version for Core's domain-owned atomic application.
|
|
3736
|
+
*
|
|
3737
|
+
* @tags Public - Require API Key
|
|
3738
|
+
* @name ExportApiPublicV1CreatorsSessionsSessionIdExportsCommandIdGet
|
|
3739
|
+
* @summary Export
|
|
3740
|
+
* @request GET:/api/public/v1/creators/sessions/{session_id}/exports/{command_id}
|
|
3741
|
+
* @secure
|
|
3742
|
+
*/
|
|
3743
|
+
exportApiPublicV1CreatorsSessionsSessionIdExportsCommandIdGet: (sessionId: string, commandId: string, query: {
|
|
3744
|
+
/**
|
|
3745
|
+
* Actorid
|
|
3746
|
+
* @format uuid
|
|
3747
|
+
*/
|
|
3748
|
+
actorId: string;
|
|
3749
|
+
}, params?: RequestParams) => Promise<AxiosResponse<CreatorSnapshot, any, {}, any>>;
|
|
3750
|
+
/**
|
|
3751
|
+
* @description Extract one private source and return its reviewable preview before generation.
|
|
3752
|
+
*
|
|
3753
|
+
* @tags Public - Require API Key
|
|
3754
|
+
* @name UploadApiPublicV1CreatorsSessionsSessionIdSourcesPost
|
|
3755
|
+
* @summary Upload
|
|
3756
|
+
* @request POST:/api/public/v1/creators/sessions/{session_id}/sources
|
|
3757
|
+
* @secure
|
|
3758
|
+
*/
|
|
3759
|
+
uploadApiPublicV1CreatorsSessionsSessionIdSourcesPost: (sessionId: string, data: BodyUploadApiPublicV1CreatorsSessionsSessionIdSourcesPost, params?: RequestParams) => Promise<AxiosResponse<SourceSummary, any, {}, any>>;
|
|
3760
|
+
/**
|
|
3761
|
+
* @description List sources for an authorized creator session with their mapping requirements.
|
|
3762
|
+
*
|
|
3763
|
+
* @tags Public - Require API Key
|
|
3764
|
+
* @name ListSourcesApiPublicV1CreatorsSessionsSessionIdSourcesGet
|
|
3765
|
+
* @summary List Sources
|
|
3766
|
+
* @request GET:/api/public/v1/creators/sessions/{session_id}/sources
|
|
3767
|
+
* @secure
|
|
3768
|
+
*/
|
|
3769
|
+
listSourcesApiPublicV1CreatorsSessionsSessionIdSourcesGet: (sessionId: string, query: {
|
|
3770
|
+
/**
|
|
3771
|
+
* Actorid
|
|
3772
|
+
* @format uuid
|
|
3773
|
+
*/
|
|
3774
|
+
actorId: string;
|
|
3775
|
+
}, params?: RequestParams) => Promise<AxiosResponse<SourcePage, any, {}, any>>;
|
|
3776
|
+
/**
|
|
3777
|
+
* @description Record the author's explicit role, scale and empty-cell interpretation for an XLSX.
|
|
3778
|
+
*
|
|
3779
|
+
* @tags Public - Require API Key
|
|
3780
|
+
* @name ConfirmMappingApiPublicV1CreatorsSessionsSessionIdSourcesSourceIdMappingPut
|
|
3781
|
+
* @summary Confirm Mapping
|
|
3782
|
+
* @request PUT:/api/public/v1/creators/sessions/{session_id}/sources/{source_id}/mapping
|
|
3783
|
+
* @secure
|
|
3784
|
+
*/
|
|
3785
|
+
confirmMappingApiPublicV1CreatorsSessionsSessionIdSourcesSourceIdMappingPut: (sessionId: string, sourceId: string, data: ConfirmMapping, params?: RequestParams) => Promise<AxiosResponse<SourceSummary, any, {}, any>>;
|
|
3786
|
+
/**
|
|
3787
|
+
* @description Remove a source from subsequent generation turns.
|
|
3788
|
+
*
|
|
3789
|
+
* @tags Public - Require API Key
|
|
3790
|
+
* @name RemoveSourceApiPublicV1CreatorsSessionsSessionIdSourcesSourceIdDelete
|
|
3791
|
+
* @summary Remove Source
|
|
3792
|
+
* @request DELETE:/api/public/v1/creators/sessions/{session_id}/sources/{source_id}
|
|
3793
|
+
* @secure
|
|
3794
|
+
*/
|
|
3795
|
+
removeSourceApiPublicV1CreatorsSessionsSessionIdSourcesSourceIdDelete: (sessionId: string, sourceId: string, query: {
|
|
3796
|
+
/**
|
|
3797
|
+
* Actorid
|
|
3798
|
+
* @format uuid
|
|
3799
|
+
*/
|
|
3800
|
+
actorId: string;
|
|
3801
|
+
}, params?: RequestParams) => Promise<AxiosResponse<void, any, {}, any>>;
|
|
3416
3802
|
/**
|
|
3417
3803
|
* No description
|
|
3418
3804
|
*
|
|
@@ -4128,4 +4514,18 @@ declare const LUMA_AI_CAPABILITIES: {
|
|
|
4128
4514
|
readonly VOICE_TEXT_TO_SPEECH: AiCapability.VoiceTextToSpeech;
|
|
4129
4515
|
};
|
|
4130
4516
|
|
|
4131
|
-
|
|
4517
|
+
/** Accept the wire values directly in applications with their own domain schemas. */
|
|
4518
|
+
type CreatorDomain = `${CreatorDomain$1}`;
|
|
4519
|
+
type CreatorItemKind = `${ItemKind}`;
|
|
4520
|
+
type CreatorItem = Omit<CreatorItem$1, "kind"> & {
|
|
4521
|
+
kind: CreatorItemKind;
|
|
4522
|
+
};
|
|
4523
|
+
type OpenCreatorSession = Omit<CreateCreatorSession, "domain" | "items"> & {
|
|
4524
|
+
domain: CreatorDomain;
|
|
4525
|
+
items?: CreatorItem[];
|
|
4526
|
+
};
|
|
4527
|
+
type CreatorCommand = Omit<CreatorCommand$1, "items"> & {
|
|
4528
|
+
items?: CreatorItem[];
|
|
4529
|
+
};
|
|
4530
|
+
|
|
4531
|
+
export { type CreatorCommand as $, API as A, type AuthoringTurnHistoryPage as B, type CreateEmbeddingsOptions as C, type AuthoringEventsOptions as D, type AuthoringEventPage as E, type AuthoringSourceUploadReceipt as F, type GenerateAiJudgeConfigurationOptions as G, type DownloadAuthoringAssetOptions as H, type DownloadedAuthoringAsset as I, type SendAuthoringCommandOptions as J, type AuthoringCommandReceipt as K, type ListAuthoringSessionsOptions as L, type FulfillAuthoringContextOptions as M, type AuthoringContextFulfillmentReceipt as N, type FailAuthoringContextOptions as O, type AuthoringContextFailureReceipt as P, type PrepareAuthoringExportOptions as Q, type FrozenAuthoringExport as R, type SubscribeAuthoringEventsOptions as S, type TranscribeDictationOptions as T, type UploadAuthoringSourceOptions as U, type ValidateAiJudgeConfigurationOptions as V, type GetAuthoringExportOptions as W, type RecordAuthoringReceiptOptions as X, type AuthoringApplicationReceipt as Y, type OpenCreatorSession as Z, type CreatorSnapshot as _, type CreateEmbeddingsResponse as a, type AuthoringSessionSummary as a$, type CreatorEventPage as a0, type SourceSummary as a1, type SourcePage as a2, type PublicConfigurationResponse as a3, type MentorChatOptions as a4, type MentorStreamRequestOptions as a5, type NativeChatResult as a6, type MentorGenerateChatResponse as a7, type MentorJudgeOptions as a8, type MentorJudgeResponse as a9, type AudioOutputAlignmentPayload as aA, type AudioOutputChunkData as aB, type AudioOutputChunkPayload as aC, type AudioOutputCompleteData as aD, type AudioOutputCompletePayload as aE, type AudioOutputErrorData as aF, type AudioOutputErrorPayload as aG, type AudioOutputInterruptedData as aH, type AudioOutputInterruptedPayload as aI, type AudioProtocolErrorPayload as aJ, type AudioProviderState as aK, type AudioReconnectPayload as aL, type AudioRecoveryPayload as aM, type AudioRecoveryState as aN, type AudioStartedPayload as aO, type AudioStopPayload as aP, type AudioTriggerTTSPayload as aQ, type AuthoringCommand as aR, type AuthoringContextFailure as aS, type AuthoringContextResponse as aT, type AuthoringDraftCourseCategory as aU, type AuthoringDraftCourseContext as aV, type AuthoringEvent as aW, type AuthoringLessonCreateOperation as aX, type AuthoringLessonUpdateOperation as aY, type AuthoringMentorLessonCreatePayload as aZ, type AuthoringOperation as a_, type LumaSocket as aa, AI_MENTOR_CONFIGURATION_TYPES as ab, AUDIO_PROVIDER_STATES as ac, AUDIO_RECOVERY_STATES as ad, AiCapability as ae, AiCapabilityMode as af, AiCapabilityProvider as ag, type AiCapabilityStatus as ah, type AiJudgeConfigurationResponseInput as ai, type AiMentorConfigurationType as aj, type AiModelAssignmentResponse as ak, type AiModelAssignmentUpdateRequest as al, AiModelDomain as am, AiModelProfileKind as an, type AiModelProfileResponse as ao, type AiRuntimeConfiguration as ap, type ApiKeyCreateRequest as aq, type ApiKeyCreateResponse as ar, type ApiKeyMetadataInput as as, type ApiKeyResponse as at, type ApiKeyUpdateRequest as au, type ApplicationReceipt as av, type AudioBinaryChunk as aw, type AudioChunkPayload as ax, type AudioChunkedPayload as ay, type AudioOutputAlignmentData as az, type GenerateAiJudgeConfigurationResponse as b, type MentorTranscriptionPayload as b$, AuthoringSubscriptionError as b0, type AuthoringSubscriptionErrorCode as b1, type AuthoringTaskFailure as b2, type AuthoringTaskSummary as b3, type AuthoringTurn as b4, type AuthoringTurnPart as b5, type AuthoringWorkProgress as b6, type AuthoringWorkProgressChapter as b7, type AuthoringWorkProgressStage as b8, type AuthoringWorkspaceRecord as b9, LUMA_AI_MODEL_DOMAINS as bA, LUMA_AI_MODEL_PROFILE_KINDS as bB, LUMA_AUDIO_ACTIONS as bC, LUMA_AUDIO_FORMATS as bD, LUMA_CAPTURE_PROFILES as bE, LUMA_MENTOR_STREAM_EVENT_TYPES as bF, LUMA_SOCKET_EMIT_EVENTS as bG, LUMA_SOCKET_LISTEN_EVENTS as bH, LUMA_SOCKET_MESSAGE_TYPES as bI, LUMA_VOICE_TIMING_PRECISION as bJ, type LearnerTranscriptStatus as bK, type LearnerTranscriptionData as bL, type LearnerTranscriptionPayload as bM, type LearnerTranscriptionTimingData as bN, type LumaAiModelDomain as bO, type LumaAiModelProfileKind as bP, type LumaCaptureProfile as bQ, type LumaSocketEmitEvents as bR, type LumaSocketListenEvents as bS, type LumaVoiceTimingPrecision as bT, type MentorChatEvent as bU, type MentorChatRequest as bV, type MentorChatResponse as bW, type MentorStreamEventEnvelope as bX, type MentorTextDeltaPayload as bY, type MentorTextEndPayload as bZ, type MentorTextErrorPayload as b_, type BodyUploadSourceApiPublicV1AuthoringSessionsSessionIdSourcesPost as ba, type ClientSpeechBoundaryPayload as bb, type CommandReceipt as bc, type ContextFailure as bd, type ContextFailureReceipt as be, type ContextFulfillmentReceipt as bf, type ContextResponse as bg, type CourseCreateOperation as bh, type CourseCreatePayload as bi, type CreateSession as bj, type CreatorDomain as bk, type CreatorItem as bl, type CreatorItemKind as bm, EXTERNAL_AUDIO_CLIENT_RECONNECT_GRACE_MS as bn, EXTERNAL_AUDIO_MAX_BUFFERED_CHUNKS as bo, EXTERNAL_AUDIO_MAX_RECOVERY_ATTEMPTS as bp, EXTERNAL_AUDIO_OPERATION as bq, EXTERNAL_AUDIO_RECOVERY_STATE as br, EXTERNAL_AUDIO_RECOVERY_TIMEOUT_MS as bs, EXTERNAL_AUDIO_TERMINAL_RECOVERY_ERROR_CODES as bt, type EventPage as bu, type FrozenExport as bv, LEARNER_TRANSCRIPT_STATUSES as bw, LUMA_AI_CAPABILITIES as bx, LUMA_AI_CAPABILITY_MODES as by, LUMA_AI_CAPABILITY_PROVIDERS as bz, type GenerateAiMentorConfigurationOptions as c, type NamedToolChoice as c0, type NativeChatTool as c1, type NativeChatUsage as c2, type NativeErrorEvent as c3, type NativeFinishEvent as c4, type NativeTextDelta as c5, type NativeToolCall as c6, type NativeToolCallEvent as c7, type PrepareAuthoringExport as c8, type PrepareExport as c9, type ProposalReviewDecision as ca, type PublicAiMessage as cb, ReasoningEffort as cc, type ServerConnectedPayload as cd, type SessionSnapshot as ce, type SessionSummary as cf, type SessionSummaryPage as cg, type SourceUploadReceipt as ch, type SpeechAlignmentWord as ci, type StartAudioPayload as cj, TRANSCRIPTION_MODES as ck, TTSProvider as cl, type TaskFailure as cm, TaskKind as cn, type TaskSummary as co, TextToSpeechProvider as cp, type TranscriptionSessionPlan as cq, TurnPartKind as cr, TurnPartStatus as cs, TurnStatus as ct, type WorkspaceRecord as cu, type GenerateAiMentorConfigurationResponse as d, type ValidateAiJudgeConfigurationResponse as e, type ValidateAiMentorConfigurationOptions as f, type ValidateAiMentorConfigurationResponse as g, type GenerateTranslationsOptions as h, type GenerateTranslationsResponse as i, type TranscribeDictationResponse as j, type AdminOrganizationIdOptions as k, type AdminApiKeyResponse as l, type AdminApiKeyCreateOptions as m, type AdminApiKeyCreateResponse as n, type AdminApiKeyIdentifierOptions as o, type AdminApiKeyUpdateOptions as p, type AdminApiKeyRevokeResponse as q, type AdminConfigurationResponse as r, type AdminModelAssignmentResponse as s, type AdminApiKeyAssignmentUpdateOptions as t, type AdminModelProfileResponse as u, type AuthoringCreateSessionOptions as v, type AuthoringSessionSnapshot as w, type AuthoringSessionPage as x, type AuthoringSessionOptions as y, type AuthoringTurnHistoryOptions as z };
|