@@ -2613,6 +2613,20 @@ export default function createEnvironmentApi(makeRequest: MakeRequest) {
26132613 } ) . then ( ( data ) => wrapAiActionInvocation ( makeRequest , data ) )
26142614 } ,
26152615
2616+ /**
2617+ * Retrieves Semantic Duplicates for the given entity ID
2618+ * @param payload - Object containing the entityId and optional filters
2619+ * @return Promise for Semantic Duplicates
2620+ * @example ```javascript
2621+ * client.getSpace('<space_id>')
2622+ * .then(space => space.getEnvironment('<environment_id>'))
2623+ * .then(environment => environment.getSemanticDuplicates({
2624+ * entityId: '<entity_id>',
2625+ * filters: {
2626+ * contentTypeIds: ['<content_type_id1>', '<content_type_id2>'],
2627+ * }
2628+ * })
2629+ */
26162630 getSemanticDuplicates ( payload : GetSemanticDuplicatesProps ) {
26172631 const raw = this . toPlainObject ( ) as EnvironmentProps
26182632 return makeRequest ( {
@@ -2626,6 +2640,20 @@ export default function createEnvironmentApi(makeRequest: MakeRequest) {
26262640 } ) . then ( ( data ) => wrapSemanticDuplicates ( makeRequest , data ) )
26272641 } ,
26282642
2643+ /**
2644+ * Retrieves Semantic Recommendations for the given entity ID
2645+ * @param payload - Object containing the entityId and optional filters
2646+ * @return Promise for Semantic Recommendations
2647+ * @example ```javascript
2648+ * client.getSpace('<space_id>')
2649+ * .then(space => space.getEnvironment('<environment_id>'))
2650+ * .then(environment => environment.getSemanticRecommendations({
2651+ * entityId: '<entity_id>',
2652+ * filters: {
2653+ * contentTypeIds: ['<content_type_id1>', '<content_type_id2>'],
2654+ * }
2655+ * })
2656+ */
26292657 getSemanticRecommendations ( payload : GetSemanticRecommendationsProps ) {
26302658 const raw = this . toPlainObject ( ) as EnvironmentProps
26312659 return makeRequest ( {
@@ -2639,6 +2667,21 @@ export default function createEnvironmentApi(makeRequest: MakeRequest) {
26392667 } ) . then ( ( data ) => wrapSemanticRecommendations ( makeRequest , data ) )
26402668 } ,
26412669
2670+ /**
2671+ * Retrieves Semantic Reference Suggestions for the given entity ID and its reference field ID
2672+ * @param payload - Object containing the entityId and optional filters
2673+ * @return Promise for Semantic Recommendations
2674+ * @example ```javascript
2675+ * client.getSpace('<space_id>')
2676+ * .then(space => space.getEnvironment('<environment_id>'))
2677+ * .then(environment => environment.getSemanticRecommendations({
2678+ * entityId: '<entity_id>',
2679+ * referenceFieldId: '<reference_field_id>',
2680+ * filters: {
2681+ * contentTypeIds: ['<content_type_id1>', '<content_type_id2>'],
2682+ * }
2683+ * })
2684+ */
26422685 getSemanticReferenceSuggestions ( payload : GetSemanticReferenceSuggestionsProps ) {
26432686 const raw = this . toPlainObject ( ) as EnvironmentProps
26442687 return makeRequest ( {
@@ -2652,6 +2695,20 @@ export default function createEnvironmentApi(makeRequest: MakeRequest) {
26522695 } ) . then ( ( data ) => wrapSemanticReferenceSuggestions ( makeRequest , data ) )
26532696 } ,
26542697
2698+ /**
2699+ * Retrieves Semantic Search results for the given query
2700+ * @param payload - Object containing the search query and optional filters
2701+ * @return Promise for Semantic Search results
2702+ * @example ```javascript
2703+ * client.getSpace('<space_id>')
2704+ * .then(space => space.getEnvironment('<environment_id>'))
2705+ * .then(environment => environment.getSemanticSearch({
2706+ * query: '<search_query>',
2707+ * filters: {
2708+ * contentTypeIds: ['<content_type_id1>', '<content_type_id2>'],
2709+ * }
2710+ * })
2711+ */
26552712 getSemanticSearch ( payload : GetSemanticSearchProps ) {
26562713 const raw = this . toPlainObject ( ) as EnvironmentProps
26572714 return makeRequest ( {
0 commit comments