@juhuu/sdk-ts 1.2.77 → 1.2.79
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 +31 -37
- package/dist/index.d.ts +31 -37
- package/dist/index.js +11 -0
- package/dist/index.mjs +11 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -16,7 +16,7 @@ interface Offer {
|
|
16
16
|
offerTime: OfferTime;
|
17
17
|
}
|
18
18
|
type DevicePermission = {
|
19
|
-
type: "
|
19
|
+
type: "bluetooth";
|
20
20
|
};
|
21
21
|
type OfferTime = {
|
22
22
|
mon: {
|
@@ -770,6 +770,7 @@ declare class ChatsService extends Service {
|
|
770
770
|
list(ChatListParams: JUHUU.Chat.List.Params, ChatListOptions?: JUHUU.Chat.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.List.Response>>;
|
771
771
|
retrieve(ChatRetrieveParams: JUHUU.Chat.Retrieve.Params, ChatRetrieveOptions?: JUHUU.Chat.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Retrieve.Response>>;
|
772
772
|
update(ChatUpdateParams: JUHUU.Chat.Update.Params, ChatUpdateOptions?: JUHUU.Chat.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Update.Response>>;
|
773
|
+
generateTitle(ChatGenerateTitleParams: JUHUU.Chat.GenerateTitle.Params, ChatGenerateTitleOptions?: JUHUU.Chat.GenerateTitle.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.GenerateTitle.Response>>;
|
773
774
|
delete(ChatDeleteParams: JUHUU.Chat.Delete.Params, ChatDeleteOptions?: JUHUU.Chat.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Delete.Response>>;
|
774
775
|
complete(ChatUpdateParams: JUHUU.Chat.Complete.Params, ChatUpdateOptions?: JUHUU.Chat.Complete.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Complete.Response>>;
|
775
776
|
}
|
@@ -1535,6 +1536,15 @@ declare namespace JUHUU {
|
|
1535
1536
|
chat: JUHUU.Chat.Object;
|
1536
1537
|
};
|
1537
1538
|
}
|
1539
|
+
namespace GenerateTitle {
|
1540
|
+
type Params = {
|
1541
|
+
chatId: string;
|
1542
|
+
};
|
1543
|
+
type Options = JUHUU.RequestOptions;
|
1544
|
+
type Response = {
|
1545
|
+
chat: JUHUU.Chat.Object;
|
1546
|
+
};
|
1547
|
+
}
|
1538
1548
|
namespace Delete {
|
1539
1549
|
type Params = {
|
1540
1550
|
chatId: string;
|
@@ -1562,6 +1572,14 @@ declare namespace JUHUU {
|
|
1562
1572
|
originalMessage: string;
|
1563
1573
|
translatedMessage: string;
|
1564
1574
|
languageCode: LanguageCode;
|
1575
|
+
context: {
|
1576
|
+
imageArray?: string[];
|
1577
|
+
articleIdArray?: string[];
|
1578
|
+
propertyIdArray?: string;
|
1579
|
+
deviceIdArray?: string[];
|
1580
|
+
locationIdArray?: string[];
|
1581
|
+
tariffIdArray?: string[];
|
1582
|
+
} | null;
|
1565
1583
|
};
|
1566
1584
|
export interface UserChatMessage extends Base {
|
1567
1585
|
type: "user";
|
@@ -1569,14 +1587,8 @@ declare namespace JUHUU {
|
|
1569
1587
|
}
|
1570
1588
|
export interface AiChatMessage extends Base {
|
1571
1589
|
type: "ai";
|
1572
|
-
articleEmbeddingArray: JUHUU.ArticleEmbedding.Object[];
|
1573
1590
|
rating: "good" | "bad" | null;
|
1574
1591
|
feedbackText: string | null;
|
1575
|
-
contradictionDetection: {
|
1576
|
-
status: "neutral" | "contradiction" | "entailment";
|
1577
|
-
contradictionConfidence: number;
|
1578
|
-
isContradiction: boolean;
|
1579
|
-
} | null;
|
1580
1592
|
}
|
1581
1593
|
export type Object = AiChatMessage | UserChatMessage;
|
1582
1594
|
export namespace Create {
|
@@ -1584,6 +1596,7 @@ declare namespace JUHUU {
|
|
1584
1596
|
userId: string;
|
1585
1597
|
message: string;
|
1586
1598
|
chatId: string;
|
1599
|
+
context?: JUHUU.ChatMessage.Object["context"];
|
1587
1600
|
};
|
1588
1601
|
type Options = JUHUU.RequestOptions;
|
1589
1602
|
type Response = {
|
@@ -1742,7 +1755,7 @@ declare namespace JUHUU {
|
|
1742
1755
|
type Params = {
|
1743
1756
|
propertyId: string;
|
1744
1757
|
name?: LocaleString;
|
1745
|
-
type:
|
1758
|
+
type: JUHUU.LicenseTemplate.Object["type"];
|
1746
1759
|
regex?: string;
|
1747
1760
|
};
|
1748
1761
|
type Options = JUHUU.RequestOptions;
|
@@ -1835,7 +1848,7 @@ declare namespace JUHUU {
|
|
1835
1848
|
type Params = {
|
1836
1849
|
userId?: string;
|
1837
1850
|
name: string;
|
1838
|
-
type?: Object["type"];
|
1851
|
+
type?: JUHUU.Property.Object["type"];
|
1839
1852
|
};
|
1840
1853
|
type Options = {};
|
1841
1854
|
type Response = {
|
@@ -2133,7 +2146,7 @@ declare namespace JUHUU {
|
|
2133
2146
|
type Params = {
|
2134
2147
|
propertyId: string;
|
2135
2148
|
name?: string;
|
2136
|
-
type:
|
2149
|
+
type: JUHUU.Location.Object["type"];
|
2137
2150
|
};
|
2138
2151
|
type Options = JUHUU.RequestOptions;
|
2139
2152
|
type Response = {
|
@@ -2193,42 +2206,23 @@ declare namespace JUHUU {
|
|
2193
2206
|
export { };
|
2194
2207
|
}
|
2195
2208
|
namespace Product {
|
2196
|
-
type
|
2209
|
+
type Object = {
|
2197
2210
|
id: string;
|
2198
2211
|
readonly object: "product";
|
2199
2212
|
name: string;
|
2200
2213
|
propertyId: string;
|
2201
2214
|
version: number;
|
2202
|
-
previewText:
|
2203
|
-
description:
|
2215
|
+
previewText: LocaleString;
|
2216
|
+
description: LocaleString;
|
2204
2217
|
bannerImageDark: string[];
|
2205
2218
|
bannerImageLight: string[];
|
2206
2219
|
model3d: string | null;
|
2207
|
-
datasheet:
|
2208
|
-
highlightArray:
|
2209
|
-
purposeArray:
|
2210
|
-
technologyArray:
|
2211
|
-
invalidAt: Date;
|
2212
|
-
source: "fluctuo" | null;
|
2220
|
+
datasheet: DeepNullable<LocaleString>;
|
2221
|
+
highlightArray: LocaleString[];
|
2222
|
+
purposeArray: Purpose[];
|
2223
|
+
technologyArray: Technology[];
|
2213
2224
|
articleId: string | null;
|
2214
2225
|
};
|
2215
|
-
interface PhysicalProduct extends Base {
|
2216
|
-
type: "physicalProduct";
|
2217
|
-
weight: number;
|
2218
|
-
dimensions: {
|
2219
|
-
length: number;
|
2220
|
-
width: number;
|
2221
|
-
height: number;
|
2222
|
-
};
|
2223
|
-
material: string;
|
2224
|
-
color: string;
|
2225
|
-
}
|
2226
|
-
interface DigitalProduct extends Base {
|
2227
|
-
type: "digitalProduct";
|
2228
|
-
fileSize: number;
|
2229
|
-
downloadUrl: string;
|
2230
|
-
}
|
2231
|
-
type Object = PhysicalProduct | DigitalProduct;
|
2232
2226
|
namespace Create {
|
2233
2227
|
type Params = {
|
2234
2228
|
propertyId: string;
|
@@ -2477,7 +2471,7 @@ declare namespace JUHUU {
|
|
2477
2471
|
description?: string;
|
2478
2472
|
simId?: string;
|
2479
2473
|
connectionMode?: "alwaysOnline" | "temporaryOnline";
|
2480
|
-
type: ["type"];
|
2474
|
+
type: JUHUU.Connector.Object["type"];
|
2481
2475
|
};
|
2482
2476
|
type Options = JUHUU.RequestOptions;
|
2483
2477
|
type Response = {
|
package/dist/index.d.ts
CHANGED
@@ -16,7 +16,7 @@ interface Offer {
|
|
16
16
|
offerTime: OfferTime;
|
17
17
|
}
|
18
18
|
type DevicePermission = {
|
19
|
-
type: "
|
19
|
+
type: "bluetooth";
|
20
20
|
};
|
21
21
|
type OfferTime = {
|
22
22
|
mon: {
|
@@ -770,6 +770,7 @@ declare class ChatsService extends Service {
|
|
770
770
|
list(ChatListParams: JUHUU.Chat.List.Params, ChatListOptions?: JUHUU.Chat.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.List.Response>>;
|
771
771
|
retrieve(ChatRetrieveParams: JUHUU.Chat.Retrieve.Params, ChatRetrieveOptions?: JUHUU.Chat.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Retrieve.Response>>;
|
772
772
|
update(ChatUpdateParams: JUHUU.Chat.Update.Params, ChatUpdateOptions?: JUHUU.Chat.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Update.Response>>;
|
773
|
+
generateTitle(ChatGenerateTitleParams: JUHUU.Chat.GenerateTitle.Params, ChatGenerateTitleOptions?: JUHUU.Chat.GenerateTitle.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.GenerateTitle.Response>>;
|
773
774
|
delete(ChatDeleteParams: JUHUU.Chat.Delete.Params, ChatDeleteOptions?: JUHUU.Chat.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Delete.Response>>;
|
774
775
|
complete(ChatUpdateParams: JUHUU.Chat.Complete.Params, ChatUpdateOptions?: JUHUU.Chat.Complete.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Complete.Response>>;
|
775
776
|
}
|
@@ -1535,6 +1536,15 @@ declare namespace JUHUU {
|
|
1535
1536
|
chat: JUHUU.Chat.Object;
|
1536
1537
|
};
|
1537
1538
|
}
|
1539
|
+
namespace GenerateTitle {
|
1540
|
+
type Params = {
|
1541
|
+
chatId: string;
|
1542
|
+
};
|
1543
|
+
type Options = JUHUU.RequestOptions;
|
1544
|
+
type Response = {
|
1545
|
+
chat: JUHUU.Chat.Object;
|
1546
|
+
};
|
1547
|
+
}
|
1538
1548
|
namespace Delete {
|
1539
1549
|
type Params = {
|
1540
1550
|
chatId: string;
|
@@ -1562,6 +1572,14 @@ declare namespace JUHUU {
|
|
1562
1572
|
originalMessage: string;
|
1563
1573
|
translatedMessage: string;
|
1564
1574
|
languageCode: LanguageCode;
|
1575
|
+
context: {
|
1576
|
+
imageArray?: string[];
|
1577
|
+
articleIdArray?: string[];
|
1578
|
+
propertyIdArray?: string;
|
1579
|
+
deviceIdArray?: string[];
|
1580
|
+
locationIdArray?: string[];
|
1581
|
+
tariffIdArray?: string[];
|
1582
|
+
} | null;
|
1565
1583
|
};
|
1566
1584
|
export interface UserChatMessage extends Base {
|
1567
1585
|
type: "user";
|
@@ -1569,14 +1587,8 @@ declare namespace JUHUU {
|
|
1569
1587
|
}
|
1570
1588
|
export interface AiChatMessage extends Base {
|
1571
1589
|
type: "ai";
|
1572
|
-
articleEmbeddingArray: JUHUU.ArticleEmbedding.Object[];
|
1573
1590
|
rating: "good" | "bad" | null;
|
1574
1591
|
feedbackText: string | null;
|
1575
|
-
contradictionDetection: {
|
1576
|
-
status: "neutral" | "contradiction" | "entailment";
|
1577
|
-
contradictionConfidence: number;
|
1578
|
-
isContradiction: boolean;
|
1579
|
-
} | null;
|
1580
1592
|
}
|
1581
1593
|
export type Object = AiChatMessage | UserChatMessage;
|
1582
1594
|
export namespace Create {
|
@@ -1584,6 +1596,7 @@ declare namespace JUHUU {
|
|
1584
1596
|
userId: string;
|
1585
1597
|
message: string;
|
1586
1598
|
chatId: string;
|
1599
|
+
context?: JUHUU.ChatMessage.Object["context"];
|
1587
1600
|
};
|
1588
1601
|
type Options = JUHUU.RequestOptions;
|
1589
1602
|
type Response = {
|
@@ -1742,7 +1755,7 @@ declare namespace JUHUU {
|
|
1742
1755
|
type Params = {
|
1743
1756
|
propertyId: string;
|
1744
1757
|
name?: LocaleString;
|
1745
|
-
type:
|
1758
|
+
type: JUHUU.LicenseTemplate.Object["type"];
|
1746
1759
|
regex?: string;
|
1747
1760
|
};
|
1748
1761
|
type Options = JUHUU.RequestOptions;
|
@@ -1835,7 +1848,7 @@ declare namespace JUHUU {
|
|
1835
1848
|
type Params = {
|
1836
1849
|
userId?: string;
|
1837
1850
|
name: string;
|
1838
|
-
type?: Object["type"];
|
1851
|
+
type?: JUHUU.Property.Object["type"];
|
1839
1852
|
};
|
1840
1853
|
type Options = {};
|
1841
1854
|
type Response = {
|
@@ -2133,7 +2146,7 @@ declare namespace JUHUU {
|
|
2133
2146
|
type Params = {
|
2134
2147
|
propertyId: string;
|
2135
2148
|
name?: string;
|
2136
|
-
type:
|
2149
|
+
type: JUHUU.Location.Object["type"];
|
2137
2150
|
};
|
2138
2151
|
type Options = JUHUU.RequestOptions;
|
2139
2152
|
type Response = {
|
@@ -2193,42 +2206,23 @@ declare namespace JUHUU {
|
|
2193
2206
|
export { };
|
2194
2207
|
}
|
2195
2208
|
namespace Product {
|
2196
|
-
type
|
2209
|
+
type Object = {
|
2197
2210
|
id: string;
|
2198
2211
|
readonly object: "product";
|
2199
2212
|
name: string;
|
2200
2213
|
propertyId: string;
|
2201
2214
|
version: number;
|
2202
|
-
previewText:
|
2203
|
-
description:
|
2215
|
+
previewText: LocaleString;
|
2216
|
+
description: LocaleString;
|
2204
2217
|
bannerImageDark: string[];
|
2205
2218
|
bannerImageLight: string[];
|
2206
2219
|
model3d: string | null;
|
2207
|
-
datasheet:
|
2208
|
-
highlightArray:
|
2209
|
-
purposeArray:
|
2210
|
-
technologyArray:
|
2211
|
-
invalidAt: Date;
|
2212
|
-
source: "fluctuo" | null;
|
2220
|
+
datasheet: DeepNullable<LocaleString>;
|
2221
|
+
highlightArray: LocaleString[];
|
2222
|
+
purposeArray: Purpose[];
|
2223
|
+
technologyArray: Technology[];
|
2213
2224
|
articleId: string | null;
|
2214
2225
|
};
|
2215
|
-
interface PhysicalProduct extends Base {
|
2216
|
-
type: "physicalProduct";
|
2217
|
-
weight: number;
|
2218
|
-
dimensions: {
|
2219
|
-
length: number;
|
2220
|
-
width: number;
|
2221
|
-
height: number;
|
2222
|
-
};
|
2223
|
-
material: string;
|
2224
|
-
color: string;
|
2225
|
-
}
|
2226
|
-
interface DigitalProduct extends Base {
|
2227
|
-
type: "digitalProduct";
|
2228
|
-
fileSize: number;
|
2229
|
-
downloadUrl: string;
|
2230
|
-
}
|
2231
|
-
type Object = PhysicalProduct | DigitalProduct;
|
2232
2226
|
namespace Create {
|
2233
2227
|
type Params = {
|
2234
2228
|
propertyId: string;
|
@@ -2477,7 +2471,7 @@ declare namespace JUHUU {
|
|
2477
2471
|
description?: string;
|
2478
2472
|
simId?: string;
|
2479
2473
|
connectionMode?: "alwaysOnline" | "temporaryOnline";
|
2480
|
-
type: ["type"];
|
2474
|
+
type: JUHUU.Connector.Object["type"];
|
2481
2475
|
};
|
2482
2476
|
type Options = JUHUU.RequestOptions;
|
2483
2477
|
type Response = {
|
package/dist/index.js
CHANGED
@@ -2095,6 +2095,17 @@ var ChatsService = class extends Service {
|
|
2095
2095
|
ChatUpdateOptions
|
2096
2096
|
);
|
2097
2097
|
}
|
2098
|
+
async generateTitle(ChatGenerateTitleParams, ChatGenerateTitleOptions) {
|
2099
|
+
return await super.sendRequest(
|
2100
|
+
{
|
2101
|
+
method: "PATCH",
|
2102
|
+
url: "chats/" + ChatGenerateTitleParams.chatId + "/generateTitle",
|
2103
|
+
body: void 0,
|
2104
|
+
authenticationNotOptional: true
|
2105
|
+
},
|
2106
|
+
ChatGenerateTitleOptions
|
2107
|
+
);
|
2108
|
+
}
|
2098
2109
|
async delete(ChatDeleteParams, ChatDeleteOptions) {
|
2099
2110
|
return await super.sendRequest(
|
2100
2111
|
{
|
package/dist/index.mjs
CHANGED
@@ -2051,6 +2051,17 @@ var ChatsService = class extends Service {
|
|
2051
2051
|
ChatUpdateOptions
|
2052
2052
|
);
|
2053
2053
|
}
|
2054
|
+
async generateTitle(ChatGenerateTitleParams, ChatGenerateTitleOptions) {
|
2055
|
+
return await super.sendRequest(
|
2056
|
+
{
|
2057
|
+
method: "PATCH",
|
2058
|
+
url: "chats/" + ChatGenerateTitleParams.chatId + "/generateTitle",
|
2059
|
+
body: void 0,
|
2060
|
+
authenticationNotOptional: true
|
2061
|
+
},
|
2062
|
+
ChatGenerateTitleOptions
|
2063
|
+
);
|
2064
|
+
}
|
2054
2065
|
async delete(ChatDeleteParams, ChatDeleteOptions) {
|
2055
2066
|
return await super.sendRequest(
|
2056
2067
|
{
|