@juhuu/sdk-ts 1.2.37 → 1.2.38
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/dist/index.d.mts +43 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.js +47 -0
- package/dist/index.mjs +47 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -738,6 +738,12 @@ declare class ChatMessagesService extends Service {
|
|
738
738
|
retrieve(ChatMessageRetrieveParams: JUHUU.ChatMessage.Retrieve.Params, ChatMessageRetrieveOptions?: JUHUU.ChatMessage.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.ChatMessage.Retrieve.Response>>;
|
739
739
|
}
|
740
740
|
|
741
|
+
declare class ArticleEmbeddingsService extends Service {
|
742
|
+
constructor(config: JUHUU.SetupConfig);
|
743
|
+
list(ArticleEmbeddingListParams: JUHUU.ArticleEmbedding.List.Params, ArticleEmbeddingListOptions?: JUHUU.ArticleEmbedding.List.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleEmbedding.List.Response>>;
|
744
|
+
retrieve(ArticleEmbeddingRetrieveParams: JUHUU.ArticleEmbedding.Retrieve.Params, ArticleEmbeddingRetrieveOptions?: JUHUU.ArticleEmbedding.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleEmbedding.Retrieve.Response>>;
|
745
|
+
}
|
746
|
+
|
741
747
|
declare class Juhuu {
|
742
748
|
constructor(config: JUHUU.SetupConfig);
|
743
749
|
/**
|
@@ -765,6 +771,7 @@ declare class Juhuu {
|
|
765
771
|
readonly articles: ArticlesService;
|
766
772
|
readonly chats: ChatsService;
|
767
773
|
readonly chatMessages: ChatMessagesService;
|
774
|
+
readonly articleEmbeddings: ArticleEmbeddingsService;
|
768
775
|
}
|
769
776
|
declare namespace JUHUU {
|
770
777
|
interface SetupConfig {
|
@@ -1178,6 +1185,41 @@ declare namespace JUHUU {
|
|
1178
1185
|
type Response = JUHUU.AccountingArea.Object[];
|
1179
1186
|
}
|
1180
1187
|
}
|
1188
|
+
namespace ArticleEmbedding {
|
1189
|
+
type Object = {
|
1190
|
+
id: string;
|
1191
|
+
readonly object: "articleEmbedding";
|
1192
|
+
chunk: string;
|
1193
|
+
articleId: string;
|
1194
|
+
lineFrom: number;
|
1195
|
+
lineTo: number;
|
1196
|
+
};
|
1197
|
+
namespace Retrieve {
|
1198
|
+
type Params = {
|
1199
|
+
articleEmbeddingId: string;
|
1200
|
+
};
|
1201
|
+
type Options = {
|
1202
|
+
expand?: Array<"property">;
|
1203
|
+
} & JUHUU.RequestOptions;
|
1204
|
+
type Response = {
|
1205
|
+
articleEmbedding: JUHUU.ArticleEmbedding.Object;
|
1206
|
+
};
|
1207
|
+
}
|
1208
|
+
namespace List {
|
1209
|
+
type Params = {
|
1210
|
+
articleId?: string;
|
1211
|
+
};
|
1212
|
+
type Options = {
|
1213
|
+
limit?: number;
|
1214
|
+
skip?: number;
|
1215
|
+
} & JUHUU.RequestOptions;
|
1216
|
+
type Response = {
|
1217
|
+
articleEmbeddingArray: JUHUU.ArticleEmbedding.Object[];
|
1218
|
+
count: number;
|
1219
|
+
hasMore: boolean;
|
1220
|
+
};
|
1221
|
+
}
|
1222
|
+
}
|
1181
1223
|
namespace Article {
|
1182
1224
|
type Object = {
|
1183
1225
|
id: string;
|
@@ -1335,6 +1377,7 @@ declare namespace JUHUU {
|
|
1335
1377
|
}
|
1336
1378
|
export interface AiChatMessage extends Base {
|
1337
1379
|
type: "ai";
|
1380
|
+
articleEmbeddingArray: JUHUU.ArticleEmbedding.Object[];
|
1338
1381
|
}
|
1339
1382
|
export type Object = AiChatMessage | UserChatMessage;
|
1340
1383
|
export namespace Create {
|
package/dist/index.d.ts
CHANGED
@@ -738,6 +738,12 @@ declare class ChatMessagesService extends Service {
|
|
738
738
|
retrieve(ChatMessageRetrieveParams: JUHUU.ChatMessage.Retrieve.Params, ChatMessageRetrieveOptions?: JUHUU.ChatMessage.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.ChatMessage.Retrieve.Response>>;
|
739
739
|
}
|
740
740
|
|
741
|
+
declare class ArticleEmbeddingsService extends Service {
|
742
|
+
constructor(config: JUHUU.SetupConfig);
|
743
|
+
list(ArticleEmbeddingListParams: JUHUU.ArticleEmbedding.List.Params, ArticleEmbeddingListOptions?: JUHUU.ArticleEmbedding.List.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleEmbedding.List.Response>>;
|
744
|
+
retrieve(ArticleEmbeddingRetrieveParams: JUHUU.ArticleEmbedding.Retrieve.Params, ArticleEmbeddingRetrieveOptions?: JUHUU.ArticleEmbedding.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleEmbedding.Retrieve.Response>>;
|
745
|
+
}
|
746
|
+
|
741
747
|
declare class Juhuu {
|
742
748
|
constructor(config: JUHUU.SetupConfig);
|
743
749
|
/**
|
@@ -765,6 +771,7 @@ declare class Juhuu {
|
|
765
771
|
readonly articles: ArticlesService;
|
766
772
|
readonly chats: ChatsService;
|
767
773
|
readonly chatMessages: ChatMessagesService;
|
774
|
+
readonly articleEmbeddings: ArticleEmbeddingsService;
|
768
775
|
}
|
769
776
|
declare namespace JUHUU {
|
770
777
|
interface SetupConfig {
|
@@ -1178,6 +1185,41 @@ declare namespace JUHUU {
|
|
1178
1185
|
type Response = JUHUU.AccountingArea.Object[];
|
1179
1186
|
}
|
1180
1187
|
}
|
1188
|
+
namespace ArticleEmbedding {
|
1189
|
+
type Object = {
|
1190
|
+
id: string;
|
1191
|
+
readonly object: "articleEmbedding";
|
1192
|
+
chunk: string;
|
1193
|
+
articleId: string;
|
1194
|
+
lineFrom: number;
|
1195
|
+
lineTo: number;
|
1196
|
+
};
|
1197
|
+
namespace Retrieve {
|
1198
|
+
type Params = {
|
1199
|
+
articleEmbeddingId: string;
|
1200
|
+
};
|
1201
|
+
type Options = {
|
1202
|
+
expand?: Array<"property">;
|
1203
|
+
} & JUHUU.RequestOptions;
|
1204
|
+
type Response = {
|
1205
|
+
articleEmbedding: JUHUU.ArticleEmbedding.Object;
|
1206
|
+
};
|
1207
|
+
}
|
1208
|
+
namespace List {
|
1209
|
+
type Params = {
|
1210
|
+
articleId?: string;
|
1211
|
+
};
|
1212
|
+
type Options = {
|
1213
|
+
limit?: number;
|
1214
|
+
skip?: number;
|
1215
|
+
} & JUHUU.RequestOptions;
|
1216
|
+
type Response = {
|
1217
|
+
articleEmbeddingArray: JUHUU.ArticleEmbedding.Object[];
|
1218
|
+
count: number;
|
1219
|
+
hasMore: boolean;
|
1220
|
+
};
|
1221
|
+
}
|
1222
|
+
}
|
1181
1223
|
namespace Article {
|
1182
1224
|
type Object = {
|
1183
1225
|
id: string;
|
@@ -1335,6 +1377,7 @@ declare namespace JUHUU {
|
|
1335
1377
|
}
|
1336
1378
|
export interface AiChatMessage extends Base {
|
1337
1379
|
type: "ai";
|
1380
|
+
articleEmbeddingArray: JUHUU.ArticleEmbedding.Object[];
|
1338
1381
|
}
|
1339
1382
|
export type Object = AiChatMessage | UserChatMessage;
|
1340
1383
|
export namespace Create {
|
package/dist/index.js
CHANGED
@@ -1729,6 +1729,51 @@ var ChatMessagesService = class extends Service {
|
|
1729
1729
|
}
|
1730
1730
|
};
|
1731
1731
|
|
1732
|
+
// src/articleEmbeddings/articleEmbeddings.service.ts
|
1733
|
+
var ArticleEmbeddingsService = class extends Service {
|
1734
|
+
constructor(config) {
|
1735
|
+
super(config);
|
1736
|
+
}
|
1737
|
+
async list(ArticleEmbeddingListParams, ArticleEmbeddingListOptions) {
|
1738
|
+
const queryArray = [];
|
1739
|
+
if (ArticleEmbeddingListOptions?.limit !== void 0) {
|
1740
|
+
queryArray.push("limit=" + ArticleEmbeddingListOptions.limit);
|
1741
|
+
}
|
1742
|
+
if (ArticleEmbeddingListParams?.articleId !== void 0) {
|
1743
|
+
queryArray.push("articleId=" + ArticleEmbeddingListParams.articleId);
|
1744
|
+
}
|
1745
|
+
if (ArticleEmbeddingListOptions?.skip !== void 0) {
|
1746
|
+
queryArray.push("skip=" + ArticleEmbeddingListOptions.skip);
|
1747
|
+
}
|
1748
|
+
return await super.sendRequest(
|
1749
|
+
{
|
1750
|
+
method: "GET",
|
1751
|
+
url: "articleEmbeddingEmbeddings?" + queryArray.join("&"),
|
1752
|
+
body: void 0,
|
1753
|
+
useAuthentication: false
|
1754
|
+
},
|
1755
|
+
ArticleEmbeddingListOptions
|
1756
|
+
);
|
1757
|
+
}
|
1758
|
+
async retrieve(ArticleEmbeddingRetrieveParams, ArticleEmbeddingRetrieveOptions) {
|
1759
|
+
const queryArray = [];
|
1760
|
+
if (ArticleEmbeddingRetrieveOptions?.expand !== void 0) {
|
1761
|
+
queryArray.push(
|
1762
|
+
"expand=" + ArticleEmbeddingRetrieveOptions.expand.join(",")
|
1763
|
+
);
|
1764
|
+
}
|
1765
|
+
return await super.sendRequest(
|
1766
|
+
{
|
1767
|
+
method: "GET",
|
1768
|
+
url: "articleEmbeddingEmbeddings/" + ArticleEmbeddingRetrieveParams.articleEmbeddingId + "?" + queryArray.join("&"),
|
1769
|
+
body: void 0,
|
1770
|
+
useAuthentication: false
|
1771
|
+
},
|
1772
|
+
ArticleEmbeddingRetrieveOptions
|
1773
|
+
);
|
1774
|
+
}
|
1775
|
+
};
|
1776
|
+
|
1732
1777
|
// src/types/types.ts
|
1733
1778
|
var LanguageCodeArray = [
|
1734
1779
|
"en",
|
@@ -1905,6 +1950,7 @@ var Juhuu = class {
|
|
1905
1950
|
this.articles = new ArticlesService(config);
|
1906
1951
|
this.chats = new ChatsService(config);
|
1907
1952
|
this.chatMessages = new ChatMessagesService(config);
|
1953
|
+
this.articleEmbeddings = new ArticleEmbeddingsService(config);
|
1908
1954
|
}
|
1909
1955
|
/**
|
1910
1956
|
* Top Level Resources
|
@@ -1931,6 +1977,7 @@ var Juhuu = class {
|
|
1931
1977
|
articles;
|
1932
1978
|
chats;
|
1933
1979
|
chatMessages;
|
1980
|
+
articleEmbeddings;
|
1934
1981
|
};
|
1935
1982
|
var JUHUU;
|
1936
1983
|
((JUHUU2) => {
|
package/dist/index.mjs
CHANGED
@@ -1684,6 +1684,51 @@ var ChatMessagesService = class extends Service {
|
|
1684
1684
|
}
|
1685
1685
|
};
|
1686
1686
|
|
1687
|
+
// src/articleEmbeddings/articleEmbeddings.service.ts
|
1688
|
+
var ArticleEmbeddingsService = class extends Service {
|
1689
|
+
constructor(config) {
|
1690
|
+
super(config);
|
1691
|
+
}
|
1692
|
+
async list(ArticleEmbeddingListParams, ArticleEmbeddingListOptions) {
|
1693
|
+
const queryArray = [];
|
1694
|
+
if (ArticleEmbeddingListOptions?.limit !== void 0) {
|
1695
|
+
queryArray.push("limit=" + ArticleEmbeddingListOptions.limit);
|
1696
|
+
}
|
1697
|
+
if (ArticleEmbeddingListParams?.articleId !== void 0) {
|
1698
|
+
queryArray.push("articleId=" + ArticleEmbeddingListParams.articleId);
|
1699
|
+
}
|
1700
|
+
if (ArticleEmbeddingListOptions?.skip !== void 0) {
|
1701
|
+
queryArray.push("skip=" + ArticleEmbeddingListOptions.skip);
|
1702
|
+
}
|
1703
|
+
return await super.sendRequest(
|
1704
|
+
{
|
1705
|
+
method: "GET",
|
1706
|
+
url: "articleEmbeddingEmbeddings?" + queryArray.join("&"),
|
1707
|
+
body: void 0,
|
1708
|
+
useAuthentication: false
|
1709
|
+
},
|
1710
|
+
ArticleEmbeddingListOptions
|
1711
|
+
);
|
1712
|
+
}
|
1713
|
+
async retrieve(ArticleEmbeddingRetrieveParams, ArticleEmbeddingRetrieveOptions) {
|
1714
|
+
const queryArray = [];
|
1715
|
+
if (ArticleEmbeddingRetrieveOptions?.expand !== void 0) {
|
1716
|
+
queryArray.push(
|
1717
|
+
"expand=" + ArticleEmbeddingRetrieveOptions.expand.join(",")
|
1718
|
+
);
|
1719
|
+
}
|
1720
|
+
return await super.sendRequest(
|
1721
|
+
{
|
1722
|
+
method: "GET",
|
1723
|
+
url: "articleEmbeddingEmbeddings/" + ArticleEmbeddingRetrieveParams.articleEmbeddingId + "?" + queryArray.join("&"),
|
1724
|
+
body: void 0,
|
1725
|
+
useAuthentication: false
|
1726
|
+
},
|
1727
|
+
ArticleEmbeddingRetrieveOptions
|
1728
|
+
);
|
1729
|
+
}
|
1730
|
+
};
|
1731
|
+
|
1687
1732
|
// src/types/types.ts
|
1688
1733
|
var LanguageCodeArray = [
|
1689
1734
|
"en",
|
@@ -1860,6 +1905,7 @@ var Juhuu = class {
|
|
1860
1905
|
this.articles = new ArticlesService(config);
|
1861
1906
|
this.chats = new ChatsService(config);
|
1862
1907
|
this.chatMessages = new ChatMessagesService(config);
|
1908
|
+
this.articleEmbeddings = new ArticleEmbeddingsService(config);
|
1863
1909
|
}
|
1864
1910
|
/**
|
1865
1911
|
* Top Level Resources
|
@@ -1886,6 +1932,7 @@ var Juhuu = class {
|
|
1886
1932
|
articles;
|
1887
1933
|
chats;
|
1888
1934
|
chatMessages;
|
1935
|
+
articleEmbeddings;
|
1889
1936
|
};
|
1890
1937
|
var JUHUU;
|
1891
1938
|
((JUHUU2) => {
|