@superoffice/webapi 11.1.447 → 11.3.1349

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.
Files changed (92) hide show
  1. package/dist/cjs/AIAgent.d.ts +115 -0
  2. package/dist/cjs/AIAgent.d.ts.map +1 -1
  3. package/dist/cjs/AIAgent.js +243 -0
  4. package/dist/cjs/AIAgent.js.map +1 -1
  5. package/dist/cjs/Carriers.d.ts +586 -1
  6. package/dist/cjs/Carriers.d.ts.map +1 -1
  7. package/dist/cjs/ContactAgent.d.ts +33 -2
  8. package/dist/cjs/ContactAgent.d.ts.map +1 -1
  9. package/dist/cjs/ContactAgent.js +67 -0
  10. package/dist/cjs/ContactAgent.js.map +1 -1
  11. package/dist/cjs/Converters.d.ts +33 -0
  12. package/dist/cjs/Converters.d.ts.map +1 -1
  13. package/dist/cjs/Converters.js +477 -24
  14. package/dist/cjs/Converters.js.map +1 -1
  15. package/dist/cjs/DiagnosticsAgent.d.ts +7 -0
  16. package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -1
  17. package/dist/cjs/DiagnosticsAgent.js +24 -0
  18. package/dist/cjs/DiagnosticsAgent.js.map +1 -1
  19. package/dist/cjs/Enums.d.ts +156 -8
  20. package/dist/cjs/Enums.d.ts.map +1 -1
  21. package/dist/cjs/Enums.js +159 -7
  22. package/dist/cjs/Enums.js.map +1 -1
  23. package/dist/cjs/ListAgent.d.ts +24 -0
  24. package/dist/cjs/ListAgent.d.ts.map +1 -1
  25. package/dist/cjs/ListAgent.js +66 -0
  26. package/dist/cjs/ListAgent.js.map +1 -1
  27. package/dist/cjs/PersonAgent.d.ts +15 -0
  28. package/dist/cjs/PersonAgent.d.ts.map +1 -1
  29. package/dist/cjs/PersonAgent.js +33 -0
  30. package/dist/cjs/PersonAgent.js.map +1 -1
  31. package/dist/cjs/PersonRestApi.d.ts.map +1 -1
  32. package/dist/cjs/PersonRestApi.js.map +1 -1
  33. package/dist/cjs/ProjectAgent.d.ts +16 -0
  34. package/dist/cjs/ProjectAgent.d.ts.map +1 -1
  35. package/dist/cjs/ProjectAgent.js +34 -0
  36. package/dist/cjs/ProjectAgent.js.map +1 -1
  37. package/dist/cjs/SelectionAgent.d.ts +76 -0
  38. package/dist/cjs/SelectionAgent.d.ts.map +1 -1
  39. package/dist/cjs/SelectionAgent.js +166 -0
  40. package/dist/cjs/SelectionAgent.js.map +1 -1
  41. package/dist/esm/AIAgent.d.ts +115 -0
  42. package/dist/esm/AIAgent.d.ts.map +1 -1
  43. package/dist/esm/AIAgent.js +243 -0
  44. package/dist/esm/AIAgent.js.map +1 -1
  45. package/dist/esm/Carriers.d.ts +586 -1
  46. package/dist/esm/Carriers.d.ts.map +1 -1
  47. package/dist/esm/ContactAgent.d.ts +33 -2
  48. package/dist/esm/ContactAgent.d.ts.map +1 -1
  49. package/dist/esm/ContactAgent.js +67 -0
  50. package/dist/esm/ContactAgent.js.map +1 -1
  51. package/dist/esm/Converters.d.ts +33 -0
  52. package/dist/esm/Converters.d.ts.map +1 -1
  53. package/dist/esm/Converters.js +419 -0
  54. package/dist/esm/Converters.js.map +1 -1
  55. package/dist/esm/DiagnosticsAgent.d.ts +7 -0
  56. package/dist/esm/DiagnosticsAgent.d.ts.map +1 -1
  57. package/dist/esm/DiagnosticsAgent.js +24 -0
  58. package/dist/esm/DiagnosticsAgent.js.map +1 -1
  59. package/dist/esm/Enums.d.ts +156 -8
  60. package/dist/esm/Enums.d.ts.map +1 -1
  61. package/dist/esm/Enums.js +156 -4
  62. package/dist/esm/Enums.js.map +1 -1
  63. package/dist/esm/ListAgent.d.ts +24 -0
  64. package/dist/esm/ListAgent.d.ts.map +1 -1
  65. package/dist/esm/ListAgent.js +66 -0
  66. package/dist/esm/ListAgent.js.map +1 -1
  67. package/dist/esm/PersonAgent.d.ts +15 -0
  68. package/dist/esm/PersonAgent.d.ts.map +1 -1
  69. package/dist/esm/PersonAgent.js +33 -0
  70. package/dist/esm/PersonAgent.js.map +1 -1
  71. package/dist/esm/PersonRestApi.d.ts.map +1 -1
  72. package/dist/esm/PersonRestApi.js.map +1 -1
  73. package/dist/esm/ProjectAgent.d.ts +16 -0
  74. package/dist/esm/ProjectAgent.d.ts.map +1 -1
  75. package/dist/esm/ProjectAgent.js +34 -0
  76. package/dist/esm/ProjectAgent.js.map +1 -1
  77. package/dist/esm/SelectionAgent.d.ts +76 -0
  78. package/dist/esm/SelectionAgent.d.ts.map +1 -1
  79. package/dist/esm/SelectionAgent.js +166 -0
  80. package/dist/esm/SelectionAgent.js.map +1 -1
  81. package/package.json +3 -3
  82. package/src/AIAgent.ts +413 -0
  83. package/src/Carriers.ts +816 -1
  84. package/src/ContactAgent.ts +116 -2
  85. package/src/Converters.ts +505 -0
  86. package/src/DiagnosticsAgent.ts +30 -0
  87. package/src/Enums.ts +160 -4
  88. package/src/ListAgent.ts +71 -0
  89. package/src/PersonAgent.ts +56 -0
  90. package/src/PersonRestApi.ts +2 -0
  91. package/src/ProjectAgent.ts +58 -0
  92. package/src/SelectionAgent.ts +282 -0
@@ -4880,6 +4880,10 @@ export interface ContactEntity extends Carrier {
4880
4880
  * Web domains for this contact, ordered in array by rank
4881
4881
  */
4882
4882
  domains?: string[];
4883
+ /**
4884
+ * Initial utm parameters when creating first person, readonly field
4885
+ */
4886
+ initialUtmParameters?: InitalUtmParameters;
4883
4887
  /**
4884
4888
  * Dictionary of user defined field data.
4885
4889
  * 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"
@@ -5164,6 +5168,20 @@ export interface Contact_ValidateContactEntityRequest {
5164
5168
  */
5165
5169
  contactEntity: ContactEntity;
5166
5170
  }
5171
+ /**
5172
+ * Enrich a contact with data from the AI Enrichment service. This will update the contact with address, phone number, and email.
5173
+ * Returns ContactEntity
5174
+ */
5175
+ export interface Contact_EnrichContactEntityRequest {
5176
+ /**
5177
+ * The contact entity to enrich.
5178
+ */
5179
+ contactEntity: ContactEntity;
5180
+ /**
5181
+ * Id from the EnrichContact provider
5182
+ */
5183
+ enrichId: string;
5184
+ }
5167
5185
  /**
5168
5186
  * Getting the contacts where the user currently logged in is set as contact owner.
5169
5187
  * Returns Contact[]
@@ -5272,6 +5290,16 @@ export interface Contact_GetPreviewContactRequest {
5272
5290
  */
5273
5291
  contactId: number;
5274
5292
  }
5293
+ /**
5294
+ * Get a contact from its ID
5295
+ * Returns PreviewContact
5296
+ */
5297
+ export interface Contact_GetPreviewEnrichContactRequest {
5298
+ /**
5299
+ * Enrich Contact ID from the EnrichContact MDO list provider
5300
+ */
5301
+ enrichId: string;
5302
+ }
5275
5303
  /**
5276
5304
  * Consent information for a give person. Consents are for a particular Purpose, and may be withdrawn (see LegalBase).
5277
5305
  */
@@ -5366,6 +5394,39 @@ export interface ConsentPerson extends Carrier {
5366
5394
  */
5367
5395
  comment?: string;
5368
5396
  }
5397
+ /**
5398
+ * Inital Utm parameters for a given person or contact.
5399
+ */
5400
+ export interface InitalUtmParameters extends Carrier {
5401
+ /**
5402
+ * The name of form for the first submission
5403
+ */
5404
+ formName?: string;
5405
+ /**
5406
+ * First touch UTM source
5407
+ */
5408
+ source?: string;
5409
+ /**
5410
+ * First touch UTM medium
5411
+ */
5412
+ medium?: string;
5413
+ /**
5414
+ * First touch UTM campaign
5415
+ */
5416
+ campaign?: string;
5417
+ /**
5418
+ * First touch UTM term
5419
+ */
5420
+ term?: string;
5421
+ /**
5422
+ * First touch UTM content
5423
+ */
5424
+ content?: string;
5425
+ /**
5426
+ * First touch UTM referrer domain
5427
+ */
5428
+ referrerDomain?: string;
5429
+ }
5369
5430
  /**
5370
5431
  *
5371
5432
  */
@@ -5809,6 +5870,10 @@ export interface PersonEntity extends Carrier {
5809
5870
  * The form id of the form that created the person
5810
5871
  */
5811
5872
  createdByFormId?: number;
5873
+ /**
5874
+ * Initial utm parameters when creating this person, readonly fields
5875
+ */
5876
+ initialUtmParameters?: InitalUtmParameters;
5812
5877
  /**
5813
5878
  * Dictionary of user defined field data.
5814
5879
  * 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"
@@ -6445,6 +6510,16 @@ export interface Person_SendEmailWithEventNameRequest {
6445
6510
  */
6446
6511
  eventName: string;
6447
6512
  }
6513
+ /**
6514
+ * Get all UTM parameters for a given person.
6515
+ * Returns UtmParameters
6516
+ */
6517
+ export interface Person_GetUtmParametersRequest {
6518
+ /**
6519
+ * The person id to get UTM parameters for
6520
+ */
6521
+ personId: number;
6522
+ }
6448
6523
  /**
6449
6524
  * Scaled person image
6450
6525
  */
@@ -6629,6 +6704,103 @@ export interface TemporaryKeyInfo extends Carrier {
6629
6704
  */
6630
6705
  payload?: string;
6631
6706
  }
6707
+ /**
6708
+ * Utm parameters for a given person.
6709
+ */
6710
+ export interface UtmParameters extends Carrier {
6711
+ /**
6712
+ * Primary key
6713
+ */
6714
+ utmParametersId?: number;
6715
+ /**
6716
+ * Id of the created contact
6717
+ */
6718
+ createdContactId?: number;
6719
+ /**
6720
+ * Id of the created person
6721
+ */
6722
+ createdPersonId?: number;
6723
+ /**
6724
+ * Id of the form submission
6725
+ */
6726
+ formSubmissionId?: number;
6727
+ /**
6728
+ * First touch UTM source
6729
+ */
6730
+ firstTouchSource?: string;
6731
+ /**
6732
+ * First touch UTM medium
6733
+ */
6734
+ firstTouchMedium?: string;
6735
+ /**
6736
+ * First touch UTM campaign
6737
+ */
6738
+ firstTouchCampaign?: string;
6739
+ /**
6740
+ * First touch UTM term
6741
+ */
6742
+ firstTouchTerm?: string;
6743
+ /**
6744
+ * First touch UTM content
6745
+ */
6746
+ firstTouchContent?: string;
6747
+ /**
6748
+ * First touch UTM referrer domain
6749
+ */
6750
+ firstTouchReferrerDomain?: string;
6751
+ /**
6752
+ * First touch date
6753
+ */
6754
+ firstTouchWhen?: Date;
6755
+ /**
6756
+ * UTM source
6757
+ */
6758
+ source?: string;
6759
+ /**
6760
+ * UTM medium
6761
+ */
6762
+ medium?: string;
6763
+ /**
6764
+ * UTM campaign
6765
+ */
6766
+ campaign?: string;
6767
+ /**
6768
+ * UTM term
6769
+ */
6770
+ term?: string;
6771
+ /**
6772
+ * UTM content
6773
+ */
6774
+ content?: string;
6775
+ /**
6776
+ * UTM referrer domain
6777
+ */
6778
+ referrerDomain?: string;
6779
+ /**
6780
+ * Date of the visit or form submission
6781
+ */
6782
+ when?: Date;
6783
+ /**
6784
+ * Registered when
6785
+ */
6786
+ registered?: Date;
6787
+ /**
6788
+ * Registered by whom
6789
+ */
6790
+ registeredAssociateId?: number;
6791
+ /**
6792
+ * Updated when
6793
+ */
6794
+ updated?: Date;
6795
+ /**
6796
+ * Updated by whom
6797
+ */
6798
+ updatedAssociateId?: number;
6799
+ /**
6800
+ * Number of updates made to this record
6801
+ */
6802
+ updatedCount?: number;
6803
+ }
6632
6804
  /**
6633
6805
  *
6634
6806
  */
@@ -8084,6 +8256,19 @@ export interface Project_ValidateProjectEntityRequest {
8084
8256
  */
8085
8257
  projectEntity: ProjectEntity;
8086
8258
  }
8259
+ /**
8260
+ * Set the completed flag on the project
8261
+ */
8262
+ export interface Project_SetCompletedRequest {
8263
+ /**
8264
+ *
8265
+ */
8266
+ projectId: number;
8267
+ /**
8268
+ * True if the project is completed, false if it is not
8269
+ */
8270
+ isCompleted: boolean;
8271
+ }
8087
8272
  /**
8088
8273
  * A project that is also an event. Used by Audience
8089
8274
  */
@@ -8982,6 +9167,10 @@ export interface Appointment extends Carrier {
8982
9167
  * Set if an external system owns this appointment.
8983
9168
  */
8984
9169
  ownedExternally?: enums.AppointmentExternalOwner;
9170
+ /**
9171
+ * Associate/owner of the mother appointment
9172
+ */
9173
+ motherAssociateId?: number;
8985
9174
  /**
8986
9175
  * Blank when not a video meeting. Filled with Join Meeting URL when created.
8987
9176
  */
@@ -10079,6 +10268,14 @@ export interface AppointmentInfo extends Carrier {
10079
10268
  * True if the appointment is part of a booking
10080
10269
  */
10081
10270
  isBooking?: boolean;
10271
+ /**
10272
+ * Set if an external system owns this appointment.
10273
+ */
10274
+ ownedExternally?: enums.AppointmentExternalOwner;
10275
+ /**
10276
+ * Associate/owner of the mother appointment
10277
+ */
10278
+ motherAssociateId?: number;
10082
10279
  }
10083
10280
  /**
10084
10281
  * Method that returns a specified number of appointments within a time range. The appointments belong to the currently logged on user.
@@ -14491,6 +14688,43 @@ export interface Category extends Carrier {
14491
14688
  */
14492
14689
  tooltip?: string;
14493
14690
  }
14691
+ /**
14692
+ *
14693
+ */
14694
+ export interface CategoryEntity extends Carrier {
14695
+ /**
14696
+ * Primary key
14697
+ */
14698
+ categoryId?: number;
14699
+ /**
14700
+ * Name of the category
14701
+ */
14702
+ name?: string;
14703
+ /**
14704
+ * Enum of the group this category belongs to, static list of 5 groups
14705
+ */
14706
+ categoryGroup?: enums.CategoryGroup;
14707
+ /**
14708
+ * Tooltip of the category
14709
+ */
14710
+ tooltip?: string;
14711
+ /**
14712
+ * Rank of the category
14713
+ */
14714
+ rank?: number;
14715
+ /**
14716
+ * True if the category should enable lead stage
14717
+ */
14718
+ enableLeadStatus?: boolean;
14719
+ /**
14720
+ * Optional link to family, for grouping things like multiple kinds of customer category under family 'customer'
14721
+ */
14722
+ categoryFamilyId?: number;
14723
+ /**
14724
+ * true if the country is deleted
14725
+ */
14726
+ deleted?: boolean;
14727
+ }
14494
14728
  /**
14495
14729
  * Returns all categories a contact could belong to
14496
14730
  * Returns Category[]
@@ -20006,6 +20240,14 @@ export interface Associate extends Carrier {
20006
20240
  * User name
20007
20241
  */
20008
20242
  userName?: string;
20243
+ /**
20244
+ * Extra fields added to the carrier. This could be data from Plug-ins, the foreign key system, external applications, etc.
20245
+ */
20246
+ extraFields?: StringDictionary;
20247
+ /**
20248
+ * Extra + udef fields added to the carrier.
20249
+ */
20250
+ customFields?: StringDictionary;
20009
20251
  }
20010
20252
  /**
20011
20253
  * Returns the associate that belongs to this person if the person is an associate.
@@ -20336,6 +20578,17 @@ export interface Diagnostics_GetSystemMessagesRequest {
20336
20578
  */
20337
20579
  export interface Diagnostics_RemoveExpiredSystemMessagesRequest {
20338
20580
  }
20581
+ /**
20582
+ * Operations related to table management
20583
+ */
20584
+ export interface TableManager extends Carrier {
20585
+ }
20586
+ /**
20587
+ * Increment save and return NextTableNumber, to be used when creating new extra table
20588
+ * Returns number
20589
+ */
20590
+ export interface Diagnostics_GetNextTableNumberRequest {
20591
+ }
20339
20592
  /**
20340
20593
  * Operations related to installation, upgrade and maintenance
20341
20594
  */
@@ -20464,6 +20717,130 @@ export interface Previews_GetPreviewRequest {
20464
20717
  */
20465
20718
  previewHint: string;
20466
20719
  }
20720
+ /**
20721
+ * Board view settings.
20722
+ */
20723
+ export interface BoardViewSettingsBase {
20724
+ /**
20725
+ * Primary key
20726
+ */
20727
+ boardViewSettingsId?: number;
20728
+ /**
20729
+ * The kind of board view entity these settings belong to
20730
+ */
20731
+ entityType?: enums.BoardViewEntityType;
20732
+ /**
20733
+ * The associate this board view settings belongs to (0 for all)
20734
+ */
20735
+ associateId?: number;
20736
+ /**
20737
+ * The selection this board view settings belongs to
20738
+ */
20739
+ selectionId?: number;
20740
+ /**
20741
+ * Do not show groups with no members/elements if this is true
20742
+ */
20743
+ hideEmptyGroups?: boolean;
20744
+ /**
20745
+ * Column name to group on
20746
+ */
20747
+ groupBy?: string;
20748
+ /**
20749
+ * Column name to group on
20750
+ */
20751
+ subGroupBy?: string;
20752
+ /**
20753
+ * Column name to sort on
20754
+ */
20755
+ sortBy?: string;
20756
+ /**
20757
+ * True if the sort is descending
20758
+ */
20759
+ sortDesc?: boolean;
20760
+ /**
20761
+ * Column name to sum on
20762
+ */
20763
+ sumBy?: string;
20764
+ /**
20765
+ * Column name to color on
20766
+ */
20767
+ colorBy?: string;
20768
+ /**
20769
+ * Column names to filter on, comma separated
20770
+ */
20771
+ filters?: string;
20772
+ }
20773
+ /**
20774
+ * Creates a new carrier from the entity type given, with the right kind of properties, defaults set.
20775
+ * Returns BoardViewSettingsBase
20776
+ */
20777
+ export interface Selection_CreateDefaultBoardViewSettingsFromEntityTypeRequest {
20778
+ /**
20779
+ * Entity type to create settings for
20780
+ */
20781
+ entityType: enums.BoardViewEntityType;
20782
+ }
20783
+ /**
20784
+ * Get BoardViewSettings by ID
20785
+ * Returns BoardViewSettingsBase
20786
+ */
20787
+ export interface Selection_GetBoardViewSettingsRequest {
20788
+ /**
20789
+ * Primary key of BoardViewSettings
20790
+ */
20791
+ boardViewSettingsId: number;
20792
+ }
20793
+ /**
20794
+ * Get BoardViewSettings by selection id, associate id, and settings type
20795
+ * Returns BoardViewSettingsBase
20796
+ */
20797
+ export interface Selection_GetBoardViewSettingsForSelectionRequest {
20798
+ /**
20799
+ * Id of associate
20800
+ */
20801
+ associateId: number;
20802
+ /**
20803
+ * Id of selection
20804
+ */
20805
+ selectionId: number;
20806
+ }
20807
+ /**
20808
+ * Save BoardViewSettings
20809
+ * Returns BoardViewSettingsBase
20810
+ */
20811
+ export interface Selection_SaveBoardViewSettingsRequest {
20812
+ /**
20813
+ * Typed BoardViewSettings carrier object
20814
+ */
20815
+ boardViewSettings: BoardViewSettingsBase;
20816
+ }
20817
+ /**
20818
+ * Delete BoardViewSettings
20819
+ */
20820
+ export interface Selection_DeleteBoardViewSettingsRequest {
20821
+ /**
20822
+ * Primary key of BoardViewSettings
20823
+ */
20824
+ boardViewSettingsId: number;
20825
+ }
20826
+ /**
20827
+ * Settings for project selection board view.
20828
+ */
20829
+ export interface ProjectBoardViewSettings extends BoardViewSettingsBase {
20830
+ /**
20831
+ * True if we should hide completed projects
20832
+ */
20833
+ hideCompletedProjects?: boolean;
20834
+ }
20835
+ /**
20836
+ * Settings for sale selection board view.
20837
+ */
20838
+ export interface SaleBoardViewSettings extends BoardViewSettingsBase {
20839
+ /**
20840
+ * True if we should hide closed sales
20841
+ */
20842
+ hideClosedSales?: boolean;
20843
+ }
20467
20844
  /**
20468
20845
  *
20469
20846
  */
@@ -33001,6 +33378,10 @@ export interface Script extends Carrier {
33001
33378
  * Path to script in the hierarchy.
33002
33379
  */
33003
33380
  path?: string;
33381
+ /**
33382
+ * The verbs that are blocked when calling a ejscript over HTTP
33383
+ */
33384
+ blockedVerbs?: enums.EjScriptVerb;
33004
33385
  }
33005
33386
  /**
33006
33387
  * Get information about a script from a unique identifier
@@ -33111,6 +33492,10 @@ export interface CRMScriptEntity extends Carrier {
33111
33492
  * Last updated by whom
33112
33493
  */
33113
33494
  updatedAssociateId?: number;
33495
+ /**
33496
+ * The verbs that are blocked when calling a ejscript over HTTP
33497
+ */
33498
+ blockedVerbs?: enums.EjScriptVerb;
33114
33499
  }
33115
33500
  /**
33116
33501
  * Save the script directly without compiling TypeScript
@@ -36323,6 +36708,55 @@ export interface AI_CreateTextForAppointmentRequest {
36323
36708
  */
36324
36709
  isoLangCode: string;
36325
36710
  }
36711
+ /**
36712
+ * Contains a ContactEntity and a PersonEntity filled with information from a business card.
36713
+ */
36714
+ export interface BizCard {
36715
+ /**
36716
+ * The contact information.
36717
+ */
36718
+ contact?: ContactEntity;
36719
+ /**
36720
+ * The person information.
36721
+ */
36722
+ person?: PersonEntity;
36723
+ /**
36724
+ * Base64 encoded company logo image, if available.
36725
+ */
36726
+ logoImage?: string;
36727
+ /**
36728
+ * Base64 encoded person photo image, if available.
36729
+ */
36730
+ photoImage?: string;
36731
+ }
36732
+ /**
36733
+ * Returns contact and person information from an image. Merges results with matching database records if merge = true
36734
+ * Returns BizCard
36735
+ */
36736
+ export interface AI_AnalyzeBizCardImageRequest {
36737
+ /**
36738
+ * Image data containg a business card
36739
+ */
36740
+ image: ArrayBuffer | string;
36741
+ /**
36742
+ * Merge results from analysis with matching database records? True: match company/person names and set ids on returned entities.
36743
+ */
36744
+ mergeWithDatabase: boolean;
36745
+ }
36746
+ /**
36747
+ * Extract contact and person information from text. Merge results with matching database records if merge = true
36748
+ * Returns BizCard
36749
+ */
36750
+ export interface AI_AnalyzeBizCardTextRequest {
36751
+ /**
36752
+ * Text that contains useful contact and person information.
36753
+ */
36754
+ text: string;
36755
+ /**
36756
+ * Merge results from analysis with matching database records? True: match company/person names and set ids on returned entities.
36757
+ */
36758
+ mergeWithDatabase: boolean;
36759
+ }
36326
36760
  /**
36327
36761
  * Details about a categorization model in HugoAI
36328
36762
  */
@@ -36409,7 +36843,7 @@ export interface AI_TrainCategoryGuesserRequest {
36409
36843
  */
36410
36844
  export interface ChatbotTurn {
36411
36845
  /**
36412
- * UTC timestamp for turn - when response was generated
36846
+ * UTC timestamp for turn - when response was generated.
36413
36847
  */
36414
36848
  timestamp?: Date;
36415
36849
  /**
@@ -36565,6 +36999,132 @@ export interface AI_TranslateEntityRequest {
36565
36999
  */
36566
37000
  targetLanguage: string;
36567
37001
  }
37002
+ /**
37003
+ * Contains the answer to an AI search, with sources used.
37004
+ */
37005
+ export interface RagAnswer {
37006
+ /**
37007
+ * Response to the question
37008
+ */
37009
+ answer?: string;
37010
+ /**
37011
+ * Array of sources used to ground the answer. Each source has a chunk of text, relevancy score, title.
37012
+ */
37013
+ source?: RagResult[];
37014
+ /**
37015
+ * Unique identifier for this answer. Used for correlating feedback to answers
37016
+ */
37017
+ trackingId?: string;
37018
+ }
37019
+ /**
37020
+ * Returns an answer.
37021
+ * Returns RagAnswer
37022
+ */
37023
+ export interface AI_AnswerRequest {
37024
+ /**
37025
+ * Defines the search domain used for generating answer. e.g. 'ServiceCopilot'
37026
+ */
37027
+ namespaceName: string;
37028
+ /**
37029
+ * Question. The search query to answer.
37030
+ */
37031
+ query: string;
37032
+ /**
37033
+ * Filter results based on content type. Default: None = no filtering
37034
+ */
37035
+ type: enums.RagType;
37036
+ /**
37037
+ * Max Number of results to use in generating answer.
37038
+ */
37039
+ top: number;
37040
+ }
37041
+ /**
37042
+ * Send feedback on answer - feedback is logged and used to improve the answer algorithm.
37043
+ */
37044
+ export interface AI_AnswerFeedbackRequest {
37045
+ /**
37046
+ * The id of the answer that you are giving feedback to.
37047
+ */
37048
+ trackingId: string;
37049
+ /**
37050
+ * True = Like, False = Dislike.
37051
+ */
37052
+ isThumbsUp: boolean;
37053
+ }
37054
+ /**
37055
+ * Signal that answer was inserted into response- feedback is logged and used to improve the answer algorithm.
37056
+ */
37057
+ export interface AI_AnswerAcceptedRequest {
37058
+ /**
37059
+ * The id of the answer that you are giving feedback to.
37060
+ */
37061
+ trackingId: string;
37062
+ }
37063
+ /**
37064
+ * Contains the result of an AI search, with relevance score, document refernce, relevant text chunk.
37065
+ */
37066
+ export interface RagResult {
37067
+ /**
37068
+ * Markdown text that matched query.
37069
+ */
37070
+ chunk?: string;
37071
+ /**
37072
+ * Title or filename of matched document, extracted from the Metadata
37073
+ */
37074
+ title?: string;
37075
+ /**
37076
+ * Matched document's unique id. Typically a URI.
37077
+ */
37078
+ id?: string;
37079
+ /**
37080
+ * Content type (web/faq/ticket/...)
37081
+ */
37082
+ type?: enums.RagType;
37083
+ /**
37084
+ * Relevancy score (0-1). How close this chunk of the document matched the query.
37085
+ */
37086
+ score?: number;
37087
+ /**
37088
+ * Dictionary of metadata for this result. Keys depend on the source of the document. e.g. 'Title', 'Filename', 'Url', etc.
37089
+ */
37090
+ metadata?: StringObjectDictionary;
37091
+ }
37092
+ /**
37093
+ * Returns semantic search results from vector database.
37094
+ * Returns RagResult[]
37095
+ */
37096
+ export interface AI_SearchRequest {
37097
+ /**
37098
+ * Defines the search domain. e.g. 'ServiceCopilot'.
37099
+ */
37100
+ namespaceName: string;
37101
+ /**
37102
+ * Search query.
37103
+ */
37104
+ query: string;
37105
+ /**
37106
+ * Filter results based on a specific content type. Default: None = no filtering
37107
+ */
37108
+ type: enums.RagType;
37109
+ /**
37110
+ * Max Number of results to return.
37111
+ */
37112
+ top: number;
37113
+ }
37114
+ /**
37115
+ * Kicks off a batch task to update the RAG index
37116
+ * Returns number
37117
+ */
37118
+ export interface AI_StartRagIndexingRequest {
37119
+ /**
37120
+ * Defines the search domain. e.g. 'ServiceCopilot'.
37121
+ */
37122
+ namespaceName: string;
37123
+ /**
37124
+ * (Optional) Identifies the data source to update. Blank = all sources
37125
+ */
37126
+ sourceId: string;
37127
+ }
36568
37128
  /**
36569
37129
  * Summary functions for various entities
36570
37130
  */
@@ -37486,6 +38046,31 @@ export interface WorkflowStepCreateSale extends WorkflowStepBase {
37486
38046
  */
37487
38047
  source?: number;
37488
38048
  }
38049
+ /**
38050
+ * Step in workflow.
38051
+ */
38052
+ export interface WorkflowStepDistributeToOwner extends WorkflowStepBase {
38053
+ /**
38054
+ * If set to true, participants will only get owner if no owner
38055
+ */
38056
+ onlyToUnassigned?: boolean;
38057
+ /**
38058
+ * Selected associates to be owner of participants
38059
+ */
38060
+ associates?: number[];
38061
+ /**
38062
+ * Selected usergroups to be
38063
+ */
38064
+ userGroups?: number[];
38065
+ /**
38066
+ * The ordered queue of next new owners
38067
+ */
38068
+ distributeQueue?: number[];
38069
+ /**
38070
+ * If no other available, assign to this associate
38071
+ */
38072
+ defaultAssociate?: number;
38073
+ }
37489
38074
  /**
37490
38075
  * Step in workflow.
37491
38076
  */