@juhuu/sdk-ts 1.2.78 → 1.2.80
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 +32 -37
- package/dist/index.d.ts +32 -37
- package/dist/index.js +15 -2
- package/dist/index.mjs +15 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -10,6 +10,7 @@ type PushToken = {
|
|
10
10
|
type ExtractType<T> = T extends {
|
11
11
|
type: infer U;
|
12
12
|
} ? U : never;
|
13
|
+
type UserGroup = "retailer" | "engineer" | "operator" | "user";
|
13
14
|
interface Offer {
|
14
15
|
tariffId: string;
|
15
16
|
licenseTemplateIdArray: string[];
|
@@ -770,6 +771,7 @@ declare class ChatsService extends Service {
|
|
770
771
|
list(ChatListParams: JUHUU.Chat.List.Params, ChatListOptions?: JUHUU.Chat.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.List.Response>>;
|
771
772
|
retrieve(ChatRetrieveParams: JUHUU.Chat.Retrieve.Params, ChatRetrieveOptions?: JUHUU.Chat.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Retrieve.Response>>;
|
772
773
|
update(ChatUpdateParams: JUHUU.Chat.Update.Params, ChatUpdateOptions?: JUHUU.Chat.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Update.Response>>;
|
774
|
+
generateTitle(ChatGenerateTitleParams: JUHUU.Chat.GenerateTitle.Params, ChatGenerateTitleOptions?: JUHUU.Chat.GenerateTitle.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.GenerateTitle.Response>>;
|
773
775
|
delete(ChatDeleteParams: JUHUU.Chat.Delete.Params, ChatDeleteOptions?: JUHUU.Chat.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Delete.Response>>;
|
774
776
|
complete(ChatUpdateParams: JUHUU.Chat.Complete.Params, ChatUpdateOptions?: JUHUU.Chat.Complete.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Complete.Response>>;
|
775
777
|
}
|
@@ -1137,6 +1139,7 @@ declare namespace JUHUU {
|
|
1137
1139
|
billingAddress?: DeepNullable<Address>;
|
1138
1140
|
vat?: string | null;
|
1139
1141
|
acceptedTermIdArray?: string[];
|
1142
|
+
group?: UserGroup;
|
1140
1143
|
};
|
1141
1144
|
type Options = JUHUU.RequestOptions;
|
1142
1145
|
type Response = {
|
@@ -1528,7 +1531,16 @@ declare namespace JUHUU {
|
|
1528
1531
|
namespace Update {
|
1529
1532
|
type Params = {
|
1530
1533
|
chatId: string;
|
1531
|
-
title?: string;
|
1534
|
+
title?: string | null;
|
1535
|
+
};
|
1536
|
+
type Options = JUHUU.RequestOptions;
|
1537
|
+
type Response = {
|
1538
|
+
chat: JUHUU.Chat.Object;
|
1539
|
+
};
|
1540
|
+
}
|
1541
|
+
namespace GenerateTitle {
|
1542
|
+
type Params = {
|
1543
|
+
chatId: string;
|
1532
1544
|
};
|
1533
1545
|
type Options = JUHUU.RequestOptions;
|
1534
1546
|
type Response = {
|
@@ -1562,6 +1574,13 @@ declare namespace JUHUU {
|
|
1562
1574
|
originalMessage: string;
|
1563
1575
|
translatedMessage: string;
|
1564
1576
|
languageCode: LanguageCode;
|
1577
|
+
context: {
|
1578
|
+
imageArray?: string[];
|
1579
|
+
articleIdArray?: string[];
|
1580
|
+
ownerPropertyId?: string;
|
1581
|
+
userName?: string;
|
1582
|
+
userGroup: UserGroup;
|
1583
|
+
} | null;
|
1565
1584
|
};
|
1566
1585
|
export interface UserChatMessage extends Base {
|
1567
1586
|
type: "user";
|
@@ -1569,14 +1588,8 @@ declare namespace JUHUU {
|
|
1569
1588
|
}
|
1570
1589
|
export interface AiChatMessage extends Base {
|
1571
1590
|
type: "ai";
|
1572
|
-
articleEmbeddingArray: JUHUU.ArticleEmbedding.Object[];
|
1573
1591
|
rating: "good" | "bad" | null;
|
1574
1592
|
feedbackText: string | null;
|
1575
|
-
contradictionDetection: {
|
1576
|
-
status: "neutral" | "contradiction" | "entailment";
|
1577
|
-
contradictionConfidence: number;
|
1578
|
-
isContradiction: boolean;
|
1579
|
-
} | null;
|
1580
1593
|
}
|
1581
1594
|
export type Object = AiChatMessage | UserChatMessage;
|
1582
1595
|
export namespace Create {
|
@@ -1584,6 +1597,7 @@ declare namespace JUHUU {
|
|
1584
1597
|
userId: string;
|
1585
1598
|
message: string;
|
1586
1599
|
chatId: string;
|
1600
|
+
context?: JUHUU.ChatMessage.Object["context"];
|
1587
1601
|
};
|
1588
1602
|
type Options = JUHUU.RequestOptions;
|
1589
1603
|
type Response = {
|
@@ -1742,7 +1756,7 @@ declare namespace JUHUU {
|
|
1742
1756
|
type Params = {
|
1743
1757
|
propertyId: string;
|
1744
1758
|
name?: LocaleString;
|
1745
|
-
type:
|
1759
|
+
type: JUHUU.LicenseTemplate.Object["type"];
|
1746
1760
|
regex?: string;
|
1747
1761
|
};
|
1748
1762
|
type Options = JUHUU.RequestOptions;
|
@@ -1835,7 +1849,7 @@ declare namespace JUHUU {
|
|
1835
1849
|
type Params = {
|
1836
1850
|
userId?: string;
|
1837
1851
|
name: string;
|
1838
|
-
type?: Object["type"];
|
1852
|
+
type?: JUHUU.Property.Object["type"];
|
1839
1853
|
};
|
1840
1854
|
type Options = {};
|
1841
1855
|
type Response = {
|
@@ -2193,42 +2207,23 @@ declare namespace JUHUU {
|
|
2193
2207
|
export { };
|
2194
2208
|
}
|
2195
2209
|
namespace Product {
|
2196
|
-
type
|
2210
|
+
type Object = {
|
2197
2211
|
id: string;
|
2198
2212
|
readonly object: "product";
|
2199
2213
|
name: string;
|
2200
2214
|
propertyId: string;
|
2201
2215
|
version: number;
|
2202
|
-
previewText:
|
2203
|
-
description:
|
2216
|
+
previewText: LocaleString;
|
2217
|
+
description: LocaleString;
|
2204
2218
|
bannerImageDark: string[];
|
2205
2219
|
bannerImageLight: string[];
|
2206
2220
|
model3d: string | null;
|
2207
|
-
datasheet:
|
2208
|
-
highlightArray:
|
2209
|
-
purposeArray:
|
2210
|
-
technologyArray:
|
2211
|
-
invalidAt: Date;
|
2212
|
-
source: "fluctuo" | null;
|
2221
|
+
datasheet: DeepNullable<LocaleString>;
|
2222
|
+
highlightArray: LocaleString[];
|
2223
|
+
purposeArray: Purpose[];
|
2224
|
+
technologyArray: Technology[];
|
2213
2225
|
articleId: string | null;
|
2214
2226
|
};
|
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
2227
|
namespace Create {
|
2233
2228
|
type Params = {
|
2234
2229
|
propertyId: string;
|
@@ -2477,7 +2472,7 @@ declare namespace JUHUU {
|
|
2477
2472
|
description?: string;
|
2478
2473
|
simId?: string;
|
2479
2474
|
connectionMode?: "alwaysOnline" | "temporaryOnline";
|
2480
|
-
type: ["type"];
|
2475
|
+
type: JUHUU.Connector.Object["type"];
|
2481
2476
|
};
|
2482
2477
|
type Options = JUHUU.RequestOptions;
|
2483
2478
|
type Response = {
|
@@ -2684,4 +2679,4 @@ declare namespace JUHUU {
|
|
2684
2679
|
}
|
2685
2680
|
}
|
2686
2681
|
|
2687
|
-
export { type AccessControlListElement, type Address, type AutoRenewMode, type BusinessType, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type FuelType, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformUrl, type PostingRow, type Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundReason, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TimeZone, type Unit, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
2682
|
+
export { type AccessControlListElement, type Address, type AutoRenewMode, type BusinessType, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type FuelType, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformUrl, type PostingRow, type Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundReason, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
package/dist/index.d.ts
CHANGED
@@ -10,6 +10,7 @@ type PushToken = {
|
|
10
10
|
type ExtractType<T> = T extends {
|
11
11
|
type: infer U;
|
12
12
|
} ? U : never;
|
13
|
+
type UserGroup = "retailer" | "engineer" | "operator" | "user";
|
13
14
|
interface Offer {
|
14
15
|
tariffId: string;
|
15
16
|
licenseTemplateIdArray: string[];
|
@@ -770,6 +771,7 @@ declare class ChatsService extends Service {
|
|
770
771
|
list(ChatListParams: JUHUU.Chat.List.Params, ChatListOptions?: JUHUU.Chat.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.List.Response>>;
|
771
772
|
retrieve(ChatRetrieveParams: JUHUU.Chat.Retrieve.Params, ChatRetrieveOptions?: JUHUU.Chat.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Retrieve.Response>>;
|
772
773
|
update(ChatUpdateParams: JUHUU.Chat.Update.Params, ChatUpdateOptions?: JUHUU.Chat.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Update.Response>>;
|
774
|
+
generateTitle(ChatGenerateTitleParams: JUHUU.Chat.GenerateTitle.Params, ChatGenerateTitleOptions?: JUHUU.Chat.GenerateTitle.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.GenerateTitle.Response>>;
|
773
775
|
delete(ChatDeleteParams: JUHUU.Chat.Delete.Params, ChatDeleteOptions?: JUHUU.Chat.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Delete.Response>>;
|
774
776
|
complete(ChatUpdateParams: JUHUU.Chat.Complete.Params, ChatUpdateOptions?: JUHUU.Chat.Complete.Options): Promise<JUHUU.HttpResponse<JUHUU.Chat.Complete.Response>>;
|
775
777
|
}
|
@@ -1137,6 +1139,7 @@ declare namespace JUHUU {
|
|
1137
1139
|
billingAddress?: DeepNullable<Address>;
|
1138
1140
|
vat?: string | null;
|
1139
1141
|
acceptedTermIdArray?: string[];
|
1142
|
+
group?: UserGroup;
|
1140
1143
|
};
|
1141
1144
|
type Options = JUHUU.RequestOptions;
|
1142
1145
|
type Response = {
|
@@ -1528,7 +1531,16 @@ declare namespace JUHUU {
|
|
1528
1531
|
namespace Update {
|
1529
1532
|
type Params = {
|
1530
1533
|
chatId: string;
|
1531
|
-
title?: string;
|
1534
|
+
title?: string | null;
|
1535
|
+
};
|
1536
|
+
type Options = JUHUU.RequestOptions;
|
1537
|
+
type Response = {
|
1538
|
+
chat: JUHUU.Chat.Object;
|
1539
|
+
};
|
1540
|
+
}
|
1541
|
+
namespace GenerateTitle {
|
1542
|
+
type Params = {
|
1543
|
+
chatId: string;
|
1532
1544
|
};
|
1533
1545
|
type Options = JUHUU.RequestOptions;
|
1534
1546
|
type Response = {
|
@@ -1562,6 +1574,13 @@ declare namespace JUHUU {
|
|
1562
1574
|
originalMessage: string;
|
1563
1575
|
translatedMessage: string;
|
1564
1576
|
languageCode: LanguageCode;
|
1577
|
+
context: {
|
1578
|
+
imageArray?: string[];
|
1579
|
+
articleIdArray?: string[];
|
1580
|
+
ownerPropertyId?: string;
|
1581
|
+
userName?: string;
|
1582
|
+
userGroup: UserGroup;
|
1583
|
+
} | null;
|
1565
1584
|
};
|
1566
1585
|
export interface UserChatMessage extends Base {
|
1567
1586
|
type: "user";
|
@@ -1569,14 +1588,8 @@ declare namespace JUHUU {
|
|
1569
1588
|
}
|
1570
1589
|
export interface AiChatMessage extends Base {
|
1571
1590
|
type: "ai";
|
1572
|
-
articleEmbeddingArray: JUHUU.ArticleEmbedding.Object[];
|
1573
1591
|
rating: "good" | "bad" | null;
|
1574
1592
|
feedbackText: string | null;
|
1575
|
-
contradictionDetection: {
|
1576
|
-
status: "neutral" | "contradiction" | "entailment";
|
1577
|
-
contradictionConfidence: number;
|
1578
|
-
isContradiction: boolean;
|
1579
|
-
} | null;
|
1580
1593
|
}
|
1581
1594
|
export type Object = AiChatMessage | UserChatMessage;
|
1582
1595
|
export namespace Create {
|
@@ -1584,6 +1597,7 @@ declare namespace JUHUU {
|
|
1584
1597
|
userId: string;
|
1585
1598
|
message: string;
|
1586
1599
|
chatId: string;
|
1600
|
+
context?: JUHUU.ChatMessage.Object["context"];
|
1587
1601
|
};
|
1588
1602
|
type Options = JUHUU.RequestOptions;
|
1589
1603
|
type Response = {
|
@@ -1742,7 +1756,7 @@ declare namespace JUHUU {
|
|
1742
1756
|
type Params = {
|
1743
1757
|
propertyId: string;
|
1744
1758
|
name?: LocaleString;
|
1745
|
-
type:
|
1759
|
+
type: JUHUU.LicenseTemplate.Object["type"];
|
1746
1760
|
regex?: string;
|
1747
1761
|
};
|
1748
1762
|
type Options = JUHUU.RequestOptions;
|
@@ -1835,7 +1849,7 @@ declare namespace JUHUU {
|
|
1835
1849
|
type Params = {
|
1836
1850
|
userId?: string;
|
1837
1851
|
name: string;
|
1838
|
-
type?: Object["type"];
|
1852
|
+
type?: JUHUU.Property.Object["type"];
|
1839
1853
|
};
|
1840
1854
|
type Options = {};
|
1841
1855
|
type Response = {
|
@@ -2193,42 +2207,23 @@ declare namespace JUHUU {
|
|
2193
2207
|
export { };
|
2194
2208
|
}
|
2195
2209
|
namespace Product {
|
2196
|
-
type
|
2210
|
+
type Object = {
|
2197
2211
|
id: string;
|
2198
2212
|
readonly object: "product";
|
2199
2213
|
name: string;
|
2200
2214
|
propertyId: string;
|
2201
2215
|
version: number;
|
2202
|
-
previewText:
|
2203
|
-
description:
|
2216
|
+
previewText: LocaleString;
|
2217
|
+
description: LocaleString;
|
2204
2218
|
bannerImageDark: string[];
|
2205
2219
|
bannerImageLight: string[];
|
2206
2220
|
model3d: string | null;
|
2207
|
-
datasheet:
|
2208
|
-
highlightArray:
|
2209
|
-
purposeArray:
|
2210
|
-
technologyArray:
|
2211
|
-
invalidAt: Date;
|
2212
|
-
source: "fluctuo" | null;
|
2221
|
+
datasheet: DeepNullable<LocaleString>;
|
2222
|
+
highlightArray: LocaleString[];
|
2223
|
+
purposeArray: Purpose[];
|
2224
|
+
technologyArray: Technology[];
|
2213
2225
|
articleId: string | null;
|
2214
2226
|
};
|
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
2227
|
namespace Create {
|
2233
2228
|
type Params = {
|
2234
2229
|
propertyId: string;
|
@@ -2477,7 +2472,7 @@ declare namespace JUHUU {
|
|
2477
2472
|
description?: string;
|
2478
2473
|
simId?: string;
|
2479
2474
|
connectionMode?: "alwaysOnline" | "temporaryOnline";
|
2480
|
-
type: ["type"];
|
2475
|
+
type: JUHUU.Connector.Object["type"];
|
2481
2476
|
};
|
2482
2477
|
type Options = JUHUU.RequestOptions;
|
2483
2478
|
type Response = {
|
@@ -2684,4 +2679,4 @@ declare namespace JUHUU {
|
|
2684
2679
|
}
|
2685
2680
|
}
|
2686
2681
|
|
2687
|
-
export { type AccessControlListElement, type Address, type AutoRenewMode, type BusinessType, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type FuelType, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformUrl, type PostingRow, type Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundReason, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TimeZone, type Unit, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
2682
|
+
export { type AccessControlListElement, type Address, type AutoRenewMode, type BusinessType, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type FuelType, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformUrl, type PostingRow, type Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundReason, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
package/dist/index.js
CHANGED
@@ -628,7 +628,8 @@ var UsersService = class extends Service {
|
|
628
628
|
appVersion: UserUpdateParams?.appVersion,
|
629
629
|
billingAddress: UserUpdateParams?.billingAddress,
|
630
630
|
vat: UserUpdateParams?.vat,
|
631
|
-
acceptedTermIdArray: UserUpdateParams?.acceptedTermIdArray
|
631
|
+
acceptedTermIdArray: UserUpdateParams?.acceptedTermIdArray,
|
632
|
+
group: UserUpdateParams?.group
|
632
633
|
},
|
633
634
|
authenticationNotOptional: true
|
634
635
|
},
|
@@ -2095,6 +2096,17 @@ var ChatsService = class extends Service {
|
|
2095
2096
|
ChatUpdateOptions
|
2096
2097
|
);
|
2097
2098
|
}
|
2099
|
+
async generateTitle(ChatGenerateTitleParams, ChatGenerateTitleOptions) {
|
2100
|
+
return await super.sendRequest(
|
2101
|
+
{
|
2102
|
+
method: "PATCH",
|
2103
|
+
url: "chats/" + ChatGenerateTitleParams.chatId + "/generateTitle",
|
2104
|
+
body: void 0,
|
2105
|
+
authenticationNotOptional: true
|
2106
|
+
},
|
2107
|
+
ChatGenerateTitleOptions
|
2108
|
+
);
|
2109
|
+
}
|
2098
2110
|
async delete(ChatDeleteParams, ChatDeleteOptions) {
|
2099
2111
|
return await super.sendRequest(
|
2100
2112
|
{
|
@@ -2132,7 +2144,8 @@ var ChatMessagesService = class extends Service {
|
|
2132
2144
|
body: {
|
2133
2145
|
chatId: ChatMessageCreateParams.chatId,
|
2134
2146
|
message: ChatMessageCreateParams.message,
|
2135
|
-
userId: ChatMessageCreateParams.userId
|
2147
|
+
userId: ChatMessageCreateParams.userId,
|
2148
|
+
context: ChatMessageCreateParams.context
|
2136
2149
|
},
|
2137
2150
|
authenticationNotOptional: true
|
2138
2151
|
},
|
package/dist/index.mjs
CHANGED
@@ -584,7 +584,8 @@ var UsersService = class extends Service {
|
|
584
584
|
appVersion: UserUpdateParams?.appVersion,
|
585
585
|
billingAddress: UserUpdateParams?.billingAddress,
|
586
586
|
vat: UserUpdateParams?.vat,
|
587
|
-
acceptedTermIdArray: UserUpdateParams?.acceptedTermIdArray
|
587
|
+
acceptedTermIdArray: UserUpdateParams?.acceptedTermIdArray,
|
588
|
+
group: UserUpdateParams?.group
|
588
589
|
},
|
589
590
|
authenticationNotOptional: true
|
590
591
|
},
|
@@ -2051,6 +2052,17 @@ var ChatsService = class extends Service {
|
|
2051
2052
|
ChatUpdateOptions
|
2052
2053
|
);
|
2053
2054
|
}
|
2055
|
+
async generateTitle(ChatGenerateTitleParams, ChatGenerateTitleOptions) {
|
2056
|
+
return await super.sendRequest(
|
2057
|
+
{
|
2058
|
+
method: "PATCH",
|
2059
|
+
url: "chats/" + ChatGenerateTitleParams.chatId + "/generateTitle",
|
2060
|
+
body: void 0,
|
2061
|
+
authenticationNotOptional: true
|
2062
|
+
},
|
2063
|
+
ChatGenerateTitleOptions
|
2064
|
+
);
|
2065
|
+
}
|
2054
2066
|
async delete(ChatDeleteParams, ChatDeleteOptions) {
|
2055
2067
|
return await super.sendRequest(
|
2056
2068
|
{
|
@@ -2088,7 +2100,8 @@ var ChatMessagesService = class extends Service {
|
|
2088
2100
|
body: {
|
2089
2101
|
chatId: ChatMessageCreateParams.chatId,
|
2090
2102
|
message: ChatMessageCreateParams.message,
|
2091
|
-
userId: ChatMessageCreateParams.userId
|
2103
|
+
userId: ChatMessageCreateParams.userId,
|
2104
|
+
context: ChatMessageCreateParams.context
|
2092
2105
|
},
|
2093
2106
|
authenticationNotOptional: true
|
2094
2107
|
},
|