@mentingo/luma-sdk 0.5.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-B44LepMQ.d.cts → contracts-BmeI96S2.d.cts} +462 -6
- package/dist/{contracts-B44LepMQ.d.ts → contracts-BmeI96S2.d.ts} +462 -6
- 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
|
*
|