@superoffice/webapi 11.8.788 → 11.9.1204
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/cjs/AIAgent.d.ts +62 -0
- package/dist/cjs/AIAgent.d.ts.map +1 -1
- package/dist/cjs/AIAgent.js +149 -0
- package/dist/cjs/AIAgent.js.map +1 -1
- package/dist/cjs/Carriers.d.ts +281 -18
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/Converters.d.ts +15 -0
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +211 -8
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/Enums.d.ts +61 -3
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +66 -6
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/MarketingAgent.d.ts +68 -0
- package/dist/cjs/MarketingAgent.d.ts.map +1 -1
- package/dist/cjs/MarketingAgent.js +157 -0
- package/dist/cjs/MarketingAgent.js.map +1 -1
- package/dist/esm/AIAgent.d.ts +62 -0
- package/dist/esm/AIAgent.d.ts.map +1 -1
- package/dist/esm/AIAgent.js +150 -1
- package/dist/esm/AIAgent.js.map +1 -1
- package/dist/esm/Carriers.d.ts +281 -18
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/Converters.d.ts +15 -0
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +189 -2
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/Enums.d.ts +61 -3
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +62 -2
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/MarketingAgent.d.ts +68 -0
- package/dist/esm/MarketingAgent.d.ts.map +1 -1
- package/dist/esm/MarketingAgent.js +157 -0
- package/dist/esm/MarketingAgent.js.map +1 -1
- package/package.json +3 -3
- package/src/AIAgent.ts +247 -0
- package/src/Carriers.ts +391 -20
- package/src/Converters.ts +230 -5
- package/src/Enums.ts +64 -2
- package/src/MarketingAgent.ts +256 -0
package/dist/cjs/Carriers.d.ts
CHANGED
|
@@ -5845,6 +5845,10 @@ export interface PersonEntity extends Carrier {
|
|
|
5845
5845
|
* Refinement of categories of lead type. Empty if the category is not a lead type.
|
|
5846
5846
|
*/
|
|
5847
5847
|
leadstatusId?: number;
|
|
5848
|
+
/**
|
|
5849
|
+
* Name of leadstatus
|
|
5850
|
+
*/
|
|
5851
|
+
leadstatus?: string;
|
|
5848
5852
|
/**
|
|
5849
5853
|
* Dictionary of user defined field data.
|
|
5850
5854
|
* The key string is the ProgId of the UdefField, or if the ProgId is empty it is a string of the format "SuperOffice:[UdefFieldIdentity]", e.g. "SuperOffice:1234"
|
|
@@ -11556,6 +11560,14 @@ export interface ParticipantInfo {
|
|
|
11556
11560
|
* Description added for the email address participant, added to the email-table's description field if present.
|
|
11557
11561
|
*/
|
|
11558
11562
|
description?: string;
|
|
11563
|
+
/**
|
|
11564
|
+
* The type of participant if the appointment is externally owned.
|
|
11565
|
+
*/
|
|
11566
|
+
externallyOwnedType?: enums.ExternallyOwnedType;
|
|
11567
|
+
/**
|
|
11568
|
+
* The status of the externally owned participant.
|
|
11569
|
+
*/
|
|
11570
|
+
externallyOwnedStatus?: enums.ExternallyOwnedStatus;
|
|
11559
11571
|
}
|
|
11560
11572
|
/**
|
|
11561
11573
|
*
|
|
@@ -14729,7 +14741,7 @@ export interface AmountClassEntity extends Carrier {
|
|
|
14729
14741
|
currencyId?: number;
|
|
14730
14742
|
}
|
|
14731
14743
|
/**
|
|
14732
|
-
*
|
|
14744
|
+
* Carrier for an automated category update setting.
|
|
14733
14745
|
*/
|
|
14734
14746
|
export interface AutomatedCategoryUpdate extends Carrier {
|
|
14735
14747
|
/**
|
|
@@ -14862,17 +14874,33 @@ export interface List_GetBusinessesRequest {
|
|
|
14862
14874
|
*/
|
|
14863
14875
|
export interface Category extends Carrier {
|
|
14864
14876
|
/**
|
|
14865
|
-
* The
|
|
14877
|
+
* The category identifier
|
|
14866
14878
|
*/
|
|
14867
|
-
id
|
|
14879
|
+
id?: number;
|
|
14868
14880
|
/**
|
|
14869
|
-
* The
|
|
14881
|
+
* The category name
|
|
14870
14882
|
*/
|
|
14871
14883
|
value?: string;
|
|
14872
14884
|
/**
|
|
14873
|
-
* The
|
|
14885
|
+
* The category description
|
|
14874
14886
|
*/
|
|
14875
14887
|
tooltip?: string;
|
|
14888
|
+
/**
|
|
14889
|
+
* Enum of the group this category belongs to, static list of 5 groups
|
|
14890
|
+
*/
|
|
14891
|
+
categoryGroup?: enums.CategoryGroup;
|
|
14892
|
+
/**
|
|
14893
|
+
* True if the category should enable lead status
|
|
14894
|
+
*/
|
|
14895
|
+
enableLeadStatus?: boolean;
|
|
14896
|
+
/**
|
|
14897
|
+
* The rank of the category
|
|
14898
|
+
*/
|
|
14899
|
+
rank?: number;
|
|
14900
|
+
/**
|
|
14901
|
+
* True if the category is deleted
|
|
14902
|
+
*/
|
|
14903
|
+
deleted?: boolean;
|
|
14876
14904
|
}
|
|
14877
14905
|
/**
|
|
14878
14906
|
*
|
|
@@ -14899,7 +14927,7 @@ export interface CategoryEntity extends Carrier {
|
|
|
14899
14927
|
*/
|
|
14900
14928
|
rank?: number;
|
|
14901
14929
|
/**
|
|
14902
|
-
* True if the category should enable lead
|
|
14930
|
+
* True if the category should enable lead status
|
|
14903
14931
|
*/
|
|
14904
14932
|
enableLeadStatus?: boolean;
|
|
14905
14933
|
/**
|
|
@@ -14907,7 +14935,7 @@ export interface CategoryEntity extends Carrier {
|
|
|
14907
14935
|
*/
|
|
14908
14936
|
categoryFamilyId?: number;
|
|
14909
14937
|
/**
|
|
14910
|
-
* true if the
|
|
14938
|
+
* true if the category is deleted
|
|
14911
14939
|
*/
|
|
14912
14940
|
deleted?: boolean;
|
|
14913
14941
|
}
|
|
@@ -18733,6 +18761,10 @@ export interface WebPanelEntity extends Carrier {
|
|
|
18733
18761
|
* If set to true, the content will not reload on current changes, only applies to sidepanels
|
|
18734
18762
|
*/
|
|
18735
18763
|
neverReloadOnCurrentChange?: boolean;
|
|
18764
|
+
/**
|
|
18765
|
+
* The name of the custom object when VisibleIn is set to custom object
|
|
18766
|
+
*/
|
|
18767
|
+
customObjectEntity?: string;
|
|
18736
18768
|
}
|
|
18737
18769
|
/**
|
|
18738
18770
|
* This methods generates the navigation URL to be used to navigate to the panel
|
|
@@ -20567,14 +20599,6 @@ export interface Associate_LogOffWindowsUsersRequest {
|
|
|
20567
20599
|
*
|
|
20568
20600
|
*/
|
|
20569
20601
|
export interface AnalyticsData {
|
|
20570
|
-
/**
|
|
20571
|
-
* Amplitude API key for analytics integration
|
|
20572
|
-
*/
|
|
20573
|
-
amplitudeApiKey?: string;
|
|
20574
|
-
/**
|
|
20575
|
-
* Userflow authentication token
|
|
20576
|
-
*/
|
|
20577
|
-
userflowToken?: string;
|
|
20578
20602
|
/**
|
|
20579
20603
|
* User full name. Only included in Sod
|
|
20580
20604
|
*/
|
|
@@ -33437,6 +33461,85 @@ export interface OperationInfo extends Carrier {
|
|
|
33437
33461
|
*/
|
|
33438
33462
|
encodedLeadTexts?: string[];
|
|
33439
33463
|
}
|
|
33464
|
+
/**
|
|
33465
|
+
* Carrier for a font that is available for external use.
|
|
33466
|
+
*/
|
|
33467
|
+
export interface AvailableFont extends Carrier {
|
|
33468
|
+
/**
|
|
33469
|
+
* Primary key
|
|
33470
|
+
*/
|
|
33471
|
+
availableFontsId?: number;
|
|
33472
|
+
/**
|
|
33473
|
+
* The display name of the font
|
|
33474
|
+
*/
|
|
33475
|
+
displayName?: string;
|
|
33476
|
+
/**
|
|
33477
|
+
* The font family name
|
|
33478
|
+
*/
|
|
33479
|
+
fontFamily?: string;
|
|
33480
|
+
/**
|
|
33481
|
+
* The path to the CSS for the font
|
|
33482
|
+
*/
|
|
33483
|
+
cssPath?: string;
|
|
33484
|
+
/**
|
|
33485
|
+
* The rank of the font in the list
|
|
33486
|
+
*/
|
|
33487
|
+
rank?: number;
|
|
33488
|
+
/**
|
|
33489
|
+
* True if font is deleted from available fonts
|
|
33490
|
+
*/
|
|
33491
|
+
deleted?: boolean;
|
|
33492
|
+
}
|
|
33493
|
+
/**
|
|
33494
|
+
* Create an return an empty font
|
|
33495
|
+
* Returns AvailableFont
|
|
33496
|
+
*/
|
|
33497
|
+
export interface Marketing_CreateDefaultAvailableFontRequest {
|
|
33498
|
+
}
|
|
33499
|
+
/**
|
|
33500
|
+
* Saves the font and returns it with correct rank
|
|
33501
|
+
* Returns AvailableFont
|
|
33502
|
+
*/
|
|
33503
|
+
export interface Marketing_SaveAvailableFontRequest {
|
|
33504
|
+
/**
|
|
33505
|
+
* The font to save
|
|
33506
|
+
*/
|
|
33507
|
+
font: AvailableFont;
|
|
33508
|
+
}
|
|
33509
|
+
/**
|
|
33510
|
+
* Delete the font with the provided id
|
|
33511
|
+
* Returns boolean
|
|
33512
|
+
*/
|
|
33513
|
+
export interface Marketing_DeleteAvailableFontRequest {
|
|
33514
|
+
/**
|
|
33515
|
+
* The id of the font to delete
|
|
33516
|
+
*/
|
|
33517
|
+
availableFontId: number;
|
|
33518
|
+
}
|
|
33519
|
+
/**
|
|
33520
|
+
* Get an available font by id
|
|
33521
|
+
* Returns AvailableFont
|
|
33522
|
+
*/
|
|
33523
|
+
export interface Marketing_GetAvailableFontRequest {
|
|
33524
|
+
/**
|
|
33525
|
+
* The id of the font to retrieve
|
|
33526
|
+
*/
|
|
33527
|
+
availableFontId: number;
|
|
33528
|
+
}
|
|
33529
|
+
/**
|
|
33530
|
+
* Set the rank on the font and reorder the rest of the fonts accordingly
|
|
33531
|
+
* Returns boolean
|
|
33532
|
+
*/
|
|
33533
|
+
export interface Marketing_SetFontRankRequest {
|
|
33534
|
+
/**
|
|
33535
|
+
* The id of the available font to set the rank on
|
|
33536
|
+
*/
|
|
33537
|
+
availableFontId: number;
|
|
33538
|
+
/**
|
|
33539
|
+
* The new rank to set on the font
|
|
33540
|
+
*/
|
|
33541
|
+
rank: number;
|
|
33542
|
+
}
|
|
33440
33543
|
/**
|
|
33441
33544
|
* Definition and configuration of a Form
|
|
33442
33545
|
*/
|
|
@@ -37573,7 +37676,7 @@ export interface AI_ClearChatbotTurnsRequest {
|
|
|
37573
37676
|
chatId: string;
|
|
37574
37677
|
}
|
|
37575
37678
|
/**
|
|
37576
|
-
*
|
|
37679
|
+
* Copilot data source - contains a list of settings for this source
|
|
37577
37680
|
*/
|
|
37578
37681
|
export interface CopilotDataSourceEntity extends Carrier {
|
|
37579
37682
|
/**
|
|
@@ -37597,12 +37700,12 @@ export interface CopilotDataSourceEntity extends Carrier {
|
|
|
37597
37700
|
*/
|
|
37598
37701
|
name?: string;
|
|
37599
37702
|
/**
|
|
37600
|
-
* Collection of data source settings
|
|
37703
|
+
* Collection of data source settings - each setting has key + value
|
|
37601
37704
|
*/
|
|
37602
37705
|
settings?: CopilotDataSourceSetting[];
|
|
37603
37706
|
}
|
|
37604
37707
|
/**
|
|
37605
|
-
* Setting for Copilot data source
|
|
37708
|
+
* Setting for a Copilot data source (key + value)
|
|
37606
37709
|
*/
|
|
37607
37710
|
export interface CopilotDataSourceSetting extends Carrier {
|
|
37608
37711
|
/**
|
|
@@ -37729,6 +37832,68 @@ export interface AI_TranslateEntityRequest {
|
|
|
37729
37832
|
*/
|
|
37730
37833
|
targetLanguage: string;
|
|
37731
37834
|
}
|
|
37835
|
+
/**
|
|
37836
|
+
* Natural language search results.
|
|
37837
|
+
*/
|
|
37838
|
+
export interface NaturalLanguageSearch {
|
|
37839
|
+
/**
|
|
37840
|
+
* User's query.
|
|
37841
|
+
*/
|
|
37842
|
+
query?: string;
|
|
37843
|
+
/**
|
|
37844
|
+
* Markdown response from the AI.
|
|
37845
|
+
*/
|
|
37846
|
+
responseMarkdown?: string;
|
|
37847
|
+
/**
|
|
37848
|
+
* Type of entity we are searching. e.g. 'contact', 'project' etc.
|
|
37849
|
+
*/
|
|
37850
|
+
entity?: string;
|
|
37851
|
+
/**
|
|
37852
|
+
* Search criteria in ODATA format
|
|
37853
|
+
*/
|
|
37854
|
+
oDataQuery?: string;
|
|
37855
|
+
/**
|
|
37856
|
+
* Archive restrictions for the search query.
|
|
37857
|
+
*/
|
|
37858
|
+
restrictions?: ArchiveRestrictionInfo[];
|
|
37859
|
+
/**
|
|
37860
|
+
* AI internal context - opaque to callers.
|
|
37861
|
+
*/
|
|
37862
|
+
internalContext?: string;
|
|
37863
|
+
}
|
|
37864
|
+
/**
|
|
37865
|
+
* Return archive restrictions based on a natural language query.
|
|
37866
|
+
* Returns NaturalLanguageSearch
|
|
37867
|
+
*/
|
|
37868
|
+
export interface AI_ParseQueryIntoRestrictionsRequest {
|
|
37869
|
+
/**
|
|
37870
|
+
* What the user asked for.
|
|
37871
|
+
*/
|
|
37872
|
+
query: string;
|
|
37873
|
+
/**
|
|
37874
|
+
* Current context prompt. e.g. Current company name and id, what selection are we looking at?
|
|
37875
|
+
*/
|
|
37876
|
+
currents: string;
|
|
37877
|
+
/**
|
|
37878
|
+
* Previous query, if applicable. NULL if no previous query.
|
|
37879
|
+
*/
|
|
37880
|
+
previousQuery: NaturalLanguageSearch;
|
|
37881
|
+
}
|
|
37882
|
+
/**
|
|
37883
|
+
* Photo background remover results.
|
|
37884
|
+
*/
|
|
37885
|
+
export interface CreatePhotoBackground {
|
|
37886
|
+
}
|
|
37887
|
+
/**
|
|
37888
|
+
* Returns an image with the background removed, leaving only the main subject
|
|
37889
|
+
* Returns Blob
|
|
37890
|
+
*/
|
|
37891
|
+
export interface AI_RemovePhotoBackgroundRequest {
|
|
37892
|
+
/**
|
|
37893
|
+
* Image to be cleaned. JPG or PNG.
|
|
37894
|
+
*/
|
|
37895
|
+
image: ArrayBuffer | string;
|
|
37896
|
+
}
|
|
37732
37897
|
/**
|
|
37733
37898
|
* Contains the answer to an AI search, with sources used.
|
|
37734
37899
|
*/
|
|
@@ -37855,6 +38020,104 @@ export interface AI_StartRagIndexingRequest {
|
|
|
37855
38020
|
*/
|
|
37856
38021
|
sourceId: string;
|
|
37857
38022
|
}
|
|
38023
|
+
/**
|
|
38024
|
+
* RAG namespace status. How is the indexing going?
|
|
38025
|
+
*/
|
|
38026
|
+
export interface RagStatus {
|
|
38027
|
+
/**
|
|
38028
|
+
* UTC timestamp - when content indexeing started.
|
|
38029
|
+
*/
|
|
38030
|
+
startedAt?: Date;
|
|
38031
|
+
/**
|
|
38032
|
+
* UTC timestamp - when content indexing finished.
|
|
38033
|
+
*/
|
|
38034
|
+
completedAt?: Date;
|
|
38035
|
+
/**
|
|
38036
|
+
* Namespace the status belongs to.
|
|
38037
|
+
*/
|
|
38038
|
+
namespaceName?: string;
|
|
38039
|
+
/**
|
|
38040
|
+
* Unique identifier for current indexing job.
|
|
38041
|
+
*/
|
|
38042
|
+
currentRunTag?: string;
|
|
38043
|
+
/**
|
|
38044
|
+
* Is the indexing run finished?
|
|
38045
|
+
*/
|
|
38046
|
+
isCompleted?: boolean;
|
|
38047
|
+
/**
|
|
38048
|
+
* Was the indexing cancelled before completion?
|
|
38049
|
+
*/
|
|
38050
|
+
isCancelled?: boolean;
|
|
38051
|
+
/**
|
|
38052
|
+
* UTC timestamp - when last content was added/updated to index.
|
|
38053
|
+
*/
|
|
38054
|
+
lastIndexed?: Date;
|
|
38055
|
+
/**
|
|
38056
|
+
* How many documents/chunks are in the index - sum of all the other types
|
|
38057
|
+
*/
|
|
38058
|
+
statusAll?: RagStatusChunks;
|
|
38059
|
+
/**
|
|
38060
|
+
* How many documents/chunks of type Document are in the index
|
|
38061
|
+
*/
|
|
38062
|
+
statusDocuments?: RagStatusChunks;
|
|
38063
|
+
/**
|
|
38064
|
+
* How many documents/chunks of type FAQ are in the index
|
|
38065
|
+
*/
|
|
38066
|
+
statusFAQ?: RagStatusChunks;
|
|
38067
|
+
/**
|
|
38068
|
+
* How many documents/chunks of type None are in the index
|
|
38069
|
+
*/
|
|
38070
|
+
statusNone?: RagStatusChunks;
|
|
38071
|
+
/**
|
|
38072
|
+
* How many documents/chunks of type Product are in the index
|
|
38073
|
+
*/
|
|
38074
|
+
statusProduct?: RagStatusChunks;
|
|
38075
|
+
/**
|
|
38076
|
+
* How many documents/chunks of type Ticket are in the index
|
|
38077
|
+
*/
|
|
38078
|
+
statusTicket?: RagStatusChunks;
|
|
38079
|
+
/**
|
|
38080
|
+
* How many documents/chunks of type Webpage are in the index
|
|
38081
|
+
*/
|
|
38082
|
+
statusWebpage?: RagStatusChunks;
|
|
38083
|
+
/**
|
|
38084
|
+
* How many documents/chunks of type Website are in the index
|
|
38085
|
+
*/
|
|
38086
|
+
statusWebsite?: RagStatusChunks;
|
|
38087
|
+
}
|
|
38088
|
+
/**
|
|
38089
|
+
* Get the current status.
|
|
38090
|
+
* Returns RagStatus
|
|
38091
|
+
*/
|
|
38092
|
+
export interface AI_GetIndexingStatusRequest {
|
|
38093
|
+
/**
|
|
38094
|
+
* Identifies the namespace to store content in.
|
|
38095
|
+
*/
|
|
38096
|
+
namespaceName: string;
|
|
38097
|
+
}
|
|
38098
|
+
/**
|
|
38099
|
+
* Cancel the current re-indexing job on a given namespace. Leaves data in inconsistent state, because removal of old data is skipped.
|
|
38100
|
+
* Returns RagStatus
|
|
38101
|
+
*/
|
|
38102
|
+
export interface AI_CancelIndexingRequest {
|
|
38103
|
+
/**
|
|
38104
|
+
* Identifies the namespace to stop indexing in.
|
|
38105
|
+
*/
|
|
38106
|
+
namespaceName: string;
|
|
38107
|
+
}
|
|
38108
|
+
/**
|
|
38109
|
+
* RAG namespace document index statistics
|
|
38110
|
+
*/
|
|
38111
|
+
export interface RagStatusChunks {
|
|
38112
|
+
/**
|
|
38113
|
+
* How many chunks stored in the database
|
|
38114
|
+
*/
|
|
38115
|
+
numberOfChunks?: number;
|
|
38116
|
+
/**
|
|
38117
|
+
* How many documents stored in the database
|
|
38118
|
+
*/
|
|
38119
|
+
numberOfDocuments?: number;
|
|
38120
|
+
}
|
|
37858
38121
|
/**
|
|
37859
38122
|
* Summary functions for various entities
|
|
37860
38123
|
*/
|