@superoffice/webapi 11.1.447 → 11.2.694
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 +83 -0
- package/dist/cjs/AIAgent.d.ts.map +1 -1
- package/dist/cjs/AIAgent.js +173 -0
- package/dist/cjs/AIAgent.js.map +1 -1
- package/dist/cjs/Carriers.d.ts +187 -1
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/ContactAgent.d.ts +33 -2
- package/dist/cjs/ContactAgent.d.ts.map +1 -1
- package/dist/cjs/ContactAgent.js +67 -0
- package/dist/cjs/ContactAgent.js.map +1 -1
- package/dist/cjs/Converters.d.ts +12 -0
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +155 -15
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/DiagnosticsAgent.d.ts +7 -0
- package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -1
- package/dist/cjs/DiagnosticsAgent.js +24 -0
- package/dist/cjs/DiagnosticsAgent.js.map +1 -1
- package/dist/cjs/Enums.d.ts +34 -1
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +36 -2
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/esm/AIAgent.d.ts +83 -0
- package/dist/esm/AIAgent.d.ts.map +1 -1
- package/dist/esm/AIAgent.js +173 -0
- package/dist/esm/AIAgent.js.map +1 -1
- package/dist/esm/Carriers.d.ts +187 -1
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/ContactAgent.d.ts +33 -2
- package/dist/esm/ContactAgent.d.ts.map +1 -1
- package/dist/esm/ContactAgent.js +67 -0
- package/dist/esm/ContactAgent.js.map +1 -1
- package/dist/esm/Converters.d.ts +12 -0
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +128 -0
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/DiagnosticsAgent.d.ts +7 -0
- package/dist/esm/DiagnosticsAgent.d.ts.map +1 -1
- package/dist/esm/DiagnosticsAgent.js +24 -0
- package/dist/esm/DiagnosticsAgent.js.map +1 -1
- package/dist/esm/Enums.d.ts +34 -1
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +34 -0
- package/dist/esm/Enums.js.map +1 -1
- package/package.json +3 -3
- package/src/AIAgent.ts +296 -0
- package/src/Carriers.ts +263 -1
- package/src/ContactAgent.ts +116 -2
- package/src/Converters.ts +160 -0
- package/src/DiagnosticsAgent.ts +30 -0
- package/src/Enums.ts +35 -0
package/dist/cjs/Carriers.d.ts
CHANGED
|
@@ -5164,6 +5164,20 @@ export interface Contact_ValidateContactEntityRequest {
|
|
|
5164
5164
|
*/
|
|
5165
5165
|
contactEntity: ContactEntity;
|
|
5166
5166
|
}
|
|
5167
|
+
/**
|
|
5168
|
+
* Enrich a contact with data from the AI Enrichment service. This will update the contact with address, phone number, and email.
|
|
5169
|
+
* Returns ContactEntity
|
|
5170
|
+
*/
|
|
5171
|
+
export interface Contact_EnrichContactEntityRequest {
|
|
5172
|
+
/**
|
|
5173
|
+
* The contact entity to enrich.
|
|
5174
|
+
*/
|
|
5175
|
+
contactEntity: ContactEntity;
|
|
5176
|
+
/**
|
|
5177
|
+
* Id from the EnrichContact provider
|
|
5178
|
+
*/
|
|
5179
|
+
enrichId: string;
|
|
5180
|
+
}
|
|
5167
5181
|
/**
|
|
5168
5182
|
* Getting the contacts where the user currently logged in is set as contact owner.
|
|
5169
5183
|
* Returns Contact[]
|
|
@@ -5272,6 +5286,16 @@ export interface Contact_GetPreviewContactRequest {
|
|
|
5272
5286
|
*/
|
|
5273
5287
|
contactId: number;
|
|
5274
5288
|
}
|
|
5289
|
+
/**
|
|
5290
|
+
* Get a contact from its ID
|
|
5291
|
+
* Returns PreviewContact
|
|
5292
|
+
*/
|
|
5293
|
+
export interface Contact_GetPreviewEnrichContactRequest {
|
|
5294
|
+
/**
|
|
5295
|
+
* Enrich Contact ID from the EnrichContact MDO list provider
|
|
5296
|
+
*/
|
|
5297
|
+
enrichId: string;
|
|
5298
|
+
}
|
|
5275
5299
|
/**
|
|
5276
5300
|
* Consent information for a give person. Consents are for a particular Purpose, and may be withdrawn (see LegalBase).
|
|
5277
5301
|
*/
|
|
@@ -20336,6 +20360,17 @@ export interface Diagnostics_GetSystemMessagesRequest {
|
|
|
20336
20360
|
*/
|
|
20337
20361
|
export interface Diagnostics_RemoveExpiredSystemMessagesRequest {
|
|
20338
20362
|
}
|
|
20363
|
+
/**
|
|
20364
|
+
* Operations related to table management
|
|
20365
|
+
*/
|
|
20366
|
+
export interface TableManager extends Carrier {
|
|
20367
|
+
}
|
|
20368
|
+
/**
|
|
20369
|
+
* Increment save and return NextTableNumber, to be used when creating new extra table
|
|
20370
|
+
* Returns number
|
|
20371
|
+
*/
|
|
20372
|
+
export interface Diagnostics_GetNextTableNumberRequest {
|
|
20373
|
+
}
|
|
20339
20374
|
/**
|
|
20340
20375
|
* Operations related to installation, upgrade and maintenance
|
|
20341
20376
|
*/
|
|
@@ -36409,7 +36444,7 @@ export interface AI_TrainCategoryGuesserRequest {
|
|
|
36409
36444
|
*/
|
|
36410
36445
|
export interface ChatbotTurn {
|
|
36411
36446
|
/**
|
|
36412
|
-
* UTC timestamp for turn - when response was generated
|
|
36447
|
+
* UTC timestamp for turn - when response was generated.
|
|
36413
36448
|
*/
|
|
36414
36449
|
timestamp?: Date;
|
|
36415
36450
|
/**
|
|
@@ -36565,6 +36600,132 @@ export interface AI_TranslateEntityRequest {
|
|
|
36565
36600
|
*/
|
|
36566
36601
|
targetLanguage: string;
|
|
36567
36602
|
}
|
|
36603
|
+
/**
|
|
36604
|
+
* Contains the answer to an AI search, with sources used.
|
|
36605
|
+
*/
|
|
36606
|
+
export interface RagAnswer {
|
|
36607
|
+
/**
|
|
36608
|
+
* Response to the question
|
|
36609
|
+
*/
|
|
36610
|
+
answer?: string;
|
|
36611
|
+
/**
|
|
36612
|
+
* Array of sources used to ground the answer. Each source has a chunk of text, relevancy score, title.
|
|
36613
|
+
*/
|
|
36614
|
+
source?: RagResult[];
|
|
36615
|
+
/**
|
|
36616
|
+
* Unique identifier for this answer. Used for correlating feedback to answers
|
|
36617
|
+
*/
|
|
36618
|
+
trackingId?: string;
|
|
36619
|
+
}
|
|
36620
|
+
/**
|
|
36621
|
+
* Returns an answer.
|
|
36622
|
+
* Returns RagAnswer
|
|
36623
|
+
*/
|
|
36624
|
+
export interface AI_AnswerRequest {
|
|
36625
|
+
/**
|
|
36626
|
+
* Defines the search domain used for generating answer. e.g. 'ServiceCopilot'
|
|
36627
|
+
*/
|
|
36628
|
+
namespaceName: string;
|
|
36629
|
+
/**
|
|
36630
|
+
* Question. The search query to answer.
|
|
36631
|
+
*/
|
|
36632
|
+
query: string;
|
|
36633
|
+
/**
|
|
36634
|
+
* Filter results based on content type. Default: None = no filtering
|
|
36635
|
+
*/
|
|
36636
|
+
type: enums.RagType;
|
|
36637
|
+
/**
|
|
36638
|
+
* Max Number of results to use in generating answer.
|
|
36639
|
+
*/
|
|
36640
|
+
top: number;
|
|
36641
|
+
}
|
|
36642
|
+
/**
|
|
36643
|
+
* Send feedback on answer - feedback is logged and used to improve the answer algorithm.
|
|
36644
|
+
*/
|
|
36645
|
+
export interface AI_AnswerFeedbackRequest {
|
|
36646
|
+
/**
|
|
36647
|
+
* The id of the answer that you are giving feedback to.
|
|
36648
|
+
*/
|
|
36649
|
+
trackingId: string;
|
|
36650
|
+
/**
|
|
36651
|
+
* True = Like, False = Dislike.
|
|
36652
|
+
*/
|
|
36653
|
+
isThumbsUp: boolean;
|
|
36654
|
+
}
|
|
36655
|
+
/**
|
|
36656
|
+
* Signal that answer was inserted into response- feedback is logged and used to improve the answer algorithm.
|
|
36657
|
+
*/
|
|
36658
|
+
export interface AI_AnswerAcceptedRequest {
|
|
36659
|
+
/**
|
|
36660
|
+
* The id of the answer that you are giving feedback to.
|
|
36661
|
+
*/
|
|
36662
|
+
trackingId: string;
|
|
36663
|
+
}
|
|
36664
|
+
/**
|
|
36665
|
+
* Contains the result of an AI search, with relevance score, document refernce, relevant text chunk.
|
|
36666
|
+
*/
|
|
36667
|
+
export interface RagResult {
|
|
36668
|
+
/**
|
|
36669
|
+
* Markdown text that matched query.
|
|
36670
|
+
*/
|
|
36671
|
+
chunk?: string;
|
|
36672
|
+
/**
|
|
36673
|
+
* Title or filename of matched document, extracted from the Metadata
|
|
36674
|
+
*/
|
|
36675
|
+
title?: string;
|
|
36676
|
+
/**
|
|
36677
|
+
* Matched document's unique id. Typically a URI.
|
|
36678
|
+
*/
|
|
36679
|
+
id?: string;
|
|
36680
|
+
/**
|
|
36681
|
+
* Content type (web/faq/ticket/...)
|
|
36682
|
+
*/
|
|
36683
|
+
type?: enums.RagType;
|
|
36684
|
+
/**
|
|
36685
|
+
* Relevancy score (0-1). How close this chunk of the document matched the query.
|
|
36686
|
+
*/
|
|
36687
|
+
score?: number;
|
|
36688
|
+
/**
|
|
36689
|
+
* Dictionary of metadata for this result. Keys depend on the source of the document. e.g. 'Title', 'Filename', 'Url', etc.
|
|
36690
|
+
*/
|
|
36691
|
+
metadata?: StringObjectDictionary;
|
|
36692
|
+
}
|
|
36693
|
+
/**
|
|
36694
|
+
* Returns semantic search results from vector database.
|
|
36695
|
+
* Returns RagResult[]
|
|
36696
|
+
*/
|
|
36697
|
+
export interface AI_SearchRequest {
|
|
36698
|
+
/**
|
|
36699
|
+
* Defines the search domain. e.g. 'ServiceCopilot'.
|
|
36700
|
+
*/
|
|
36701
|
+
namespaceName: string;
|
|
36702
|
+
/**
|
|
36703
|
+
* Search query.
|
|
36704
|
+
*/
|
|
36705
|
+
query: string;
|
|
36706
|
+
/**
|
|
36707
|
+
* Filter results based on a specific content type. Default: None = no filtering
|
|
36708
|
+
*/
|
|
36709
|
+
type: enums.RagType;
|
|
36710
|
+
/**
|
|
36711
|
+
* Max Number of results to return.
|
|
36712
|
+
*/
|
|
36713
|
+
top: number;
|
|
36714
|
+
}
|
|
36715
|
+
/**
|
|
36716
|
+
* Kicks off a batch task to update the RAG index
|
|
36717
|
+
* Returns number
|
|
36718
|
+
*/
|
|
36719
|
+
export interface AI_StartRagIndexingRequest {
|
|
36720
|
+
/**
|
|
36721
|
+
* Defines the search domain. e.g. 'ServiceCopilot'.
|
|
36722
|
+
*/
|
|
36723
|
+
namespaceName: string;
|
|
36724
|
+
/**
|
|
36725
|
+
* (Optional) Identifies the data source to update. Blank = all sources
|
|
36726
|
+
*/
|
|
36727
|
+
sourceId: string;
|
|
36728
|
+
}
|
|
36568
36729
|
/**
|
|
36569
36730
|
* Summary functions for various entities
|
|
36570
36731
|
*/
|
|
@@ -37486,6 +37647,31 @@ export interface WorkflowStepCreateSale extends WorkflowStepBase {
|
|
|
37486
37647
|
*/
|
|
37487
37648
|
source?: number;
|
|
37488
37649
|
}
|
|
37650
|
+
/**
|
|
37651
|
+
* Step in workflow.
|
|
37652
|
+
*/
|
|
37653
|
+
export interface WorkflowStepDistributeToOwner extends WorkflowStepBase {
|
|
37654
|
+
/**
|
|
37655
|
+
* If set to true, participants will only get owner if no owner
|
|
37656
|
+
*/
|
|
37657
|
+
onlyToUnassigned?: boolean;
|
|
37658
|
+
/**
|
|
37659
|
+
* Selected associates to be owner of participants
|
|
37660
|
+
*/
|
|
37661
|
+
associates?: number[];
|
|
37662
|
+
/**
|
|
37663
|
+
* Selected usergroups to be
|
|
37664
|
+
*/
|
|
37665
|
+
userGroups?: number[];
|
|
37666
|
+
/**
|
|
37667
|
+
* The ordered queue of next new owners
|
|
37668
|
+
*/
|
|
37669
|
+
distributeQueue?: number[];
|
|
37670
|
+
/**
|
|
37671
|
+
* If no other available, assign to this associate
|
|
37672
|
+
*/
|
|
37673
|
+
defaultAssociate?: number;
|
|
37674
|
+
}
|
|
37489
37675
|
/**
|
|
37490
37676
|
* Step in workflow.
|
|
37491
37677
|
*/
|