@juhuu/sdk-ts 1.2.36 → 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 +57 -2
- package/dist/index.d.ts +57 -2
- package/dist/index.js +48 -1
- package/dist/index.mjs +48 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -495,9 +495,21 @@ type Command = {
|
|
495
495
|
parameterName: string;
|
496
496
|
};
|
497
497
|
interface LocaleString {
|
498
|
-
de: string;
|
499
498
|
en: string;
|
500
|
-
|
499
|
+
de?: string;
|
500
|
+
fr?: string;
|
501
|
+
it?: string;
|
502
|
+
nl?: string;
|
503
|
+
es?: string;
|
504
|
+
da?: string;
|
505
|
+
hr?: string;
|
506
|
+
hu?: string;
|
507
|
+
no?: string;
|
508
|
+
pl?: string;
|
509
|
+
sv?: string;
|
510
|
+
cs?: string;
|
511
|
+
et?: string;
|
512
|
+
gsw?: string;
|
501
513
|
}
|
502
514
|
|
503
515
|
declare class Service {
|
@@ -726,6 +738,12 @@ declare class ChatMessagesService extends Service {
|
|
726
738
|
retrieve(ChatMessageRetrieveParams: JUHUU.ChatMessage.Retrieve.Params, ChatMessageRetrieveOptions?: JUHUU.ChatMessage.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.ChatMessage.Retrieve.Response>>;
|
727
739
|
}
|
728
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
|
+
|
729
747
|
declare class Juhuu {
|
730
748
|
constructor(config: JUHUU.SetupConfig);
|
731
749
|
/**
|
@@ -753,6 +771,7 @@ declare class Juhuu {
|
|
753
771
|
readonly articles: ArticlesService;
|
754
772
|
readonly chats: ChatsService;
|
755
773
|
readonly chatMessages: ChatMessagesService;
|
774
|
+
readonly articleEmbeddings: ArticleEmbeddingsService;
|
756
775
|
}
|
757
776
|
declare namespace JUHUU {
|
758
777
|
interface SetupConfig {
|
@@ -1166,6 +1185,41 @@ declare namespace JUHUU {
|
|
1166
1185
|
type Response = JUHUU.AccountingArea.Object[];
|
1167
1186
|
}
|
1168
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
|
+
}
|
1169
1223
|
namespace Article {
|
1170
1224
|
type Object = {
|
1171
1225
|
id: string;
|
@@ -1323,6 +1377,7 @@ declare namespace JUHUU {
|
|
1323
1377
|
}
|
1324
1378
|
export interface AiChatMessage extends Base {
|
1325
1379
|
type: "ai";
|
1380
|
+
articleEmbeddingArray: JUHUU.ArticleEmbedding.Object[];
|
1326
1381
|
}
|
1327
1382
|
export type Object = AiChatMessage | UserChatMessage;
|
1328
1383
|
export namespace Create {
|
package/dist/index.d.ts
CHANGED
@@ -495,9 +495,21 @@ type Command = {
|
|
495
495
|
parameterName: string;
|
496
496
|
};
|
497
497
|
interface LocaleString {
|
498
|
-
de: string;
|
499
498
|
en: string;
|
500
|
-
|
499
|
+
de?: string;
|
500
|
+
fr?: string;
|
501
|
+
it?: string;
|
502
|
+
nl?: string;
|
503
|
+
es?: string;
|
504
|
+
da?: string;
|
505
|
+
hr?: string;
|
506
|
+
hu?: string;
|
507
|
+
no?: string;
|
508
|
+
pl?: string;
|
509
|
+
sv?: string;
|
510
|
+
cs?: string;
|
511
|
+
et?: string;
|
512
|
+
gsw?: string;
|
501
513
|
}
|
502
514
|
|
503
515
|
declare class Service {
|
@@ -726,6 +738,12 @@ declare class ChatMessagesService extends Service {
|
|
726
738
|
retrieve(ChatMessageRetrieveParams: JUHUU.ChatMessage.Retrieve.Params, ChatMessageRetrieveOptions?: JUHUU.ChatMessage.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.ChatMessage.Retrieve.Response>>;
|
727
739
|
}
|
728
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
|
+
|
729
747
|
declare class Juhuu {
|
730
748
|
constructor(config: JUHUU.SetupConfig);
|
731
749
|
/**
|
@@ -753,6 +771,7 @@ declare class Juhuu {
|
|
753
771
|
readonly articles: ArticlesService;
|
754
772
|
readonly chats: ChatsService;
|
755
773
|
readonly chatMessages: ChatMessagesService;
|
774
|
+
readonly articleEmbeddings: ArticleEmbeddingsService;
|
756
775
|
}
|
757
776
|
declare namespace JUHUU {
|
758
777
|
interface SetupConfig {
|
@@ -1166,6 +1185,41 @@ declare namespace JUHUU {
|
|
1166
1185
|
type Response = JUHUU.AccountingArea.Object[];
|
1167
1186
|
}
|
1168
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
|
+
}
|
1169
1223
|
namespace Article {
|
1170
1224
|
type Object = {
|
1171
1225
|
id: string;
|
@@ -1323,6 +1377,7 @@ declare namespace JUHUU {
|
|
1323
1377
|
}
|
1324
1378
|
export interface AiChatMessage extends Base {
|
1325
1379
|
type: "ai";
|
1380
|
+
articleEmbeddingArray: JUHUU.ArticleEmbedding.Object[];
|
1326
1381
|
}
|
1327
1382
|
export type Object = AiChatMessage | UserChatMessage;
|
1328
1383
|
export namespace Create {
|
package/dist/index.js
CHANGED
@@ -1566,7 +1566,7 @@ var ArticlesService = class extends Service {
|
|
1566
1566
|
parentArticleId: ArticleUpdateParams.parentArticleId,
|
1567
1567
|
markdownContent: ArticleUpdateParams.markdownContent,
|
1568
1568
|
status: ArticleUpdateParams.status,
|
1569
|
-
|
1569
|
+
languageCodeArray: ArticleUpdateParams.languageCodeArray
|
1570
1570
|
},
|
1571
1571
|
useAuthentication: true
|
1572
1572
|
},
|
@@ -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
@@ -1521,7 +1521,7 @@ var ArticlesService = class extends Service {
|
|
1521
1521
|
parentArticleId: ArticleUpdateParams.parentArticleId,
|
1522
1522
|
markdownContent: ArticleUpdateParams.markdownContent,
|
1523
1523
|
status: ArticleUpdateParams.status,
|
1524
|
-
|
1524
|
+
languageCodeArray: ArticleUpdateParams.languageCodeArray
|
1525
1525
|
},
|
1526
1526
|
useAuthentication: true
|
1527
1527
|
},
|
@@ -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) => {
|