@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
package/src/Carriers.ts CHANGED
@@ -6739,6 +6739,11 @@ export interface ContactEntity extends Carrier {
6739
6739
  */
6740
6740
  domains?: string[];
6741
6741
 
6742
+ /**
6743
+ * Initial utm parameters when creating first person, readonly field
6744
+ */
6745
+ initialUtmParameters?: InitalUtmParameters;
6746
+
6742
6747
  /**
6743
6748
  * Dictionary of user defined field data.
6744
6749
  * 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"
@@ -7101,6 +7106,23 @@ export interface Contact_ValidateContactEntityRequest {
7101
7106
 
7102
7107
  // response object: StringDictionary
7103
7108
 
7109
+ /**
7110
+ * Enrich a contact with data from the AI Enrichment service. This will update the contact with address, phone number, and email.
7111
+ * Returns ContactEntity
7112
+ */
7113
+ export interface Contact_EnrichContactEntityRequest {
7114
+ /**
7115
+ * The contact entity to enrich.
7116
+ */
7117
+ contactEntity: ContactEntity;
7118
+ /**
7119
+ * Id from the EnrichContact provider
7120
+ */
7121
+ enrichId: string;
7122
+ }
7123
+
7124
+ // response object: ContactEntity
7125
+
7104
7126
 
7105
7127
  /**
7106
7128
  * Getting the contacts where the user currently logged in is set as contact owner.
@@ -7255,6 +7277,19 @@ export interface Contact_GetPreviewContactRequest {
7255
7277
 
7256
7278
  // response object: PreviewContact
7257
7279
 
7280
+ /**
7281
+ * Get a contact from its ID
7282
+ * Returns PreviewContact
7283
+ */
7284
+ export interface Contact_GetPreviewEnrichContactRequest {
7285
+ /**
7286
+ * Enrich Contact ID from the EnrichContact MDO list provider
7287
+ */
7288
+ enrichId: string;
7289
+ }
7290
+
7291
+ // response object: PreviewContact
7292
+
7258
7293
 
7259
7294
 
7260
7295
 
@@ -7392,6 +7427,55 @@ export interface ConsentPerson extends Carrier {
7392
7427
 
7393
7428
 
7394
7429
 
7430
+ /**
7431
+ * Inital Utm parameters for a given person or contact.
7432
+ */
7433
+ export interface InitalUtmParameters extends Carrier {
7434
+
7435
+
7436
+ /**
7437
+ * The name of form for the first submission
7438
+ */
7439
+ formName?: string;
7440
+
7441
+ /**
7442
+ * First touch UTM source
7443
+ */
7444
+ source?: string;
7445
+
7446
+ /**
7447
+ * First touch UTM medium
7448
+ */
7449
+ medium?: string;
7450
+
7451
+ /**
7452
+ * First touch UTM campaign
7453
+ */
7454
+ campaign?: string;
7455
+
7456
+ /**
7457
+ * First touch UTM term
7458
+ */
7459
+ term?: string;
7460
+
7461
+ /**
7462
+ * First touch UTM content
7463
+ */
7464
+ content?: string;
7465
+
7466
+ /**
7467
+ * First touch UTM referrer domain
7468
+ */
7469
+ referrerDomain?: string;
7470
+
7471
+ }
7472
+
7473
+
7474
+
7475
+
7476
+
7477
+
7478
+
7395
7479
  /**
7396
7480
  *
7397
7481
  */
@@ -7951,6 +8035,11 @@ export interface PersonEntity extends Carrier {
7951
8035
  */
7952
8036
  createdByFormId?: number;
7953
8037
 
8038
+ /**
8039
+ * Initial utm parameters when creating this person, readonly fields
8040
+ */
8041
+ initialUtmParameters?: InitalUtmParameters;
8042
+
7954
8043
  /**
7955
8044
  * Dictionary of user defined field data.
7956
8045
  * 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"
@@ -8713,6 +8802,19 @@ export interface Person_SendEmailWithEventNameRequest {
8713
8802
 
8714
8803
  // Void response...
8715
8804
 
8805
+ /**
8806
+ * Get all UTM parameters for a given person.
8807
+ * Returns UtmParameters
8808
+ */
8809
+ export interface Person_GetUtmParametersRequest {
8810
+ /**
8811
+ * The person id to get UTM parameters for
8812
+ */
8813
+ personId: number;
8814
+ }
8815
+
8816
+ // response object: UtmParameters
8817
+
8716
8818
 
8717
8819
  /**
8718
8820
  * Scaled person image
@@ -8980,6 +9082,135 @@ export interface TemporaryKeyInfo extends Carrier {
8980
9082
 
8981
9083
 
8982
9084
 
9085
+ /**
9086
+ * Utm parameters for a given person.
9087
+ */
9088
+ export interface UtmParameters extends Carrier {
9089
+
9090
+
9091
+ /**
9092
+ * Primary key
9093
+ */
9094
+ utmParametersId?: number;
9095
+
9096
+ /**
9097
+ * Id of the created contact
9098
+ */
9099
+ createdContactId?: number;
9100
+
9101
+ /**
9102
+ * Id of the created person
9103
+ */
9104
+ createdPersonId?: number;
9105
+
9106
+ /**
9107
+ * Id of the form submission
9108
+ */
9109
+ formSubmissionId?: number;
9110
+
9111
+ /**
9112
+ * First touch UTM source
9113
+ */
9114
+ firstTouchSource?: string;
9115
+
9116
+ /**
9117
+ * First touch UTM medium
9118
+ */
9119
+ firstTouchMedium?: string;
9120
+
9121
+ /**
9122
+ * First touch UTM campaign
9123
+ */
9124
+ firstTouchCampaign?: string;
9125
+
9126
+ /**
9127
+ * First touch UTM term
9128
+ */
9129
+ firstTouchTerm?: string;
9130
+
9131
+ /**
9132
+ * First touch UTM content
9133
+ */
9134
+ firstTouchContent?: string;
9135
+
9136
+ /**
9137
+ * First touch UTM referrer domain
9138
+ */
9139
+ firstTouchReferrerDomain?: string;
9140
+
9141
+ /**
9142
+ * First touch date
9143
+ */
9144
+ firstTouchWhen?: Date;
9145
+
9146
+ /**
9147
+ * UTM source
9148
+ */
9149
+ source?: string;
9150
+
9151
+ /**
9152
+ * UTM medium
9153
+ */
9154
+ medium?: string;
9155
+
9156
+ /**
9157
+ * UTM campaign
9158
+ */
9159
+ campaign?: string;
9160
+
9161
+ /**
9162
+ * UTM term
9163
+ */
9164
+ term?: string;
9165
+
9166
+ /**
9167
+ * UTM content
9168
+ */
9169
+ content?: string;
9170
+
9171
+ /**
9172
+ * UTM referrer domain
9173
+ */
9174
+ referrerDomain?: string;
9175
+
9176
+ /**
9177
+ * Date of the visit or form submission
9178
+ */
9179
+ when?: Date;
9180
+
9181
+ /**
9182
+ * Registered when
9183
+ */
9184
+ registered?: Date;
9185
+
9186
+ /**
9187
+ * Registered by whom
9188
+ */
9189
+ registeredAssociateId?: number;
9190
+
9191
+ /**
9192
+ * Updated when
9193
+ */
9194
+ updated?: Date;
9195
+
9196
+ /**
9197
+ * Updated by whom
9198
+ */
9199
+ updatedAssociateId?: number;
9200
+
9201
+ /**
9202
+ * Number of updates made to this record
9203
+ */
9204
+ updatedCount?: number;
9205
+
9206
+ }
9207
+
9208
+
9209
+
9210
+
9211
+
9212
+
9213
+
8983
9214
 
8984
9215
 
8985
9216
 
@@ -10910,6 +11141,22 @@ export interface Project_ValidateProjectEntityRequest {
10910
11141
 
10911
11142
  // response object: StringDictionary
10912
11143
 
11144
+ /**
11145
+ * Set the completed flag on the project
11146
+ */
11147
+ export interface Project_SetCompletedRequest {
11148
+ /**
11149
+ *
11150
+ */
11151
+ projectId: number;
11152
+ /**
11153
+ * True if the project is completed, false if it is not
11154
+ */
11155
+ isCompleted: boolean;
11156
+ }
11157
+
11158
+ // Void response...
11159
+
10913
11160
 
10914
11161
  /**
10915
11162
  * A project that is also an event. Used by Audience
@@ -12122,6 +12369,11 @@ export interface Appointment extends Carrier {
12122
12369
  */
12123
12370
  ownedExternally?: enums.AppointmentExternalOwner;
12124
12371
 
12372
+ /**
12373
+ * Associate/owner of the mother appointment
12374
+ */
12375
+ motherAssociateId?: number;
12376
+
12125
12377
  /**
12126
12378
  * Blank when not a video meeting. Filled with Join Meeting URL when created.
12127
12379
  */
@@ -13479,6 +13731,16 @@ export interface AppointmentInfo extends Carrier {
13479
13731
  */
13480
13732
  isBooking?: boolean;
13481
13733
 
13734
+ /**
13735
+ * Set if an external system owns this appointment.
13736
+ */
13737
+ ownedExternally?: enums.AppointmentExternalOwner;
13738
+
13739
+ /**
13740
+ * Associate/owner of the mother appointment
13741
+ */
13742
+ motherAssociateId?: number;
13743
+
13482
13744
  }
13483
13745
 
13484
13746
 
@@ -19015,6 +19277,60 @@ export interface Category extends Carrier {
19015
19277
 
19016
19278
 
19017
19279
 
19280
+ /**
19281
+ *
19282
+ */
19283
+ export interface CategoryEntity extends Carrier {
19284
+
19285
+
19286
+ /**
19287
+ * Primary key
19288
+ */
19289
+ categoryId?: number;
19290
+
19291
+ /**
19292
+ * Name of the category
19293
+ */
19294
+ name?: string;
19295
+
19296
+ /**
19297
+ * Enum of the group this category belongs to, static list of 5 groups
19298
+ */
19299
+ categoryGroup?: enums.CategoryGroup;
19300
+
19301
+ /**
19302
+ * Tooltip of the category
19303
+ */
19304
+ tooltip?: string;
19305
+
19306
+ /**
19307
+ * Rank of the category
19308
+ */
19309
+ rank?: number;
19310
+
19311
+ /**
19312
+ * True if the category should enable lead stage
19313
+ */
19314
+ enableLeadStatus?: boolean;
19315
+
19316
+ /**
19317
+ * Optional link to family, for grouping things like multiple kinds of customer category under family 'customer'
19318
+ */
19319
+ categoryFamilyId?: number;
19320
+
19321
+ /**
19322
+ * true if the country is deleted
19323
+ */
19324
+ deleted?: boolean;
19325
+
19326
+ }
19327
+
19328
+
19329
+
19330
+
19331
+
19332
+
19333
+
19018
19334
  /**
19019
19335
  * Returns all categories a contact could belong to
19020
19336
  * Returns Category[]
@@ -26706,6 +27022,15 @@ export interface Associate extends Carrier {
26706
27022
  * User name
26707
27023
  */
26708
27024
  userName?: string;
27025
+ /**
27026
+ * Extra fields added to the carrier. This could be data from Plug-ins, the foreign key system, external applications, etc.
27027
+ */
27028
+ extraFields?: StringDictionary;
27029
+
27030
+ /**
27031
+ * Extra + udef fields added to the carrier.
27032
+ */
27033
+ customFields?: StringDictionary;
26709
27034
 
26710
27035
  }
26711
27036
 
@@ -27187,6 +27512,29 @@ export interface Diagnostics_RemoveExpiredSystemMessagesRequest {
27187
27512
  // Void response...
27188
27513
 
27189
27514
 
27515
+ /**
27516
+ * Operations related to table management
27517
+ */
27518
+ export interface TableManager extends Carrier {
27519
+
27520
+
27521
+ }
27522
+
27523
+
27524
+
27525
+
27526
+
27527
+
27528
+ /**
27529
+ * Increment save and return NextTableNumber, to be used when creating new extra table
27530
+ * Returns number
27531
+ */
27532
+ export interface Diagnostics_GetNextTableNumberRequest {
27533
+ }
27534
+
27535
+ // response object: number
27536
+
27537
+
27190
27538
  /**
27191
27539
  * Operations related to installation, upgrade and maintenance
27192
27540
  */
@@ -27385,6 +27733,186 @@ export interface Previews_GetPreviewRequest {
27385
27733
  // response object: string
27386
27734
 
27387
27735
 
27736
+ /**
27737
+ * Board view settings.
27738
+ */
27739
+ export interface BoardViewSettingsBase {
27740
+
27741
+
27742
+ /**
27743
+ * Primary key
27744
+ */
27745
+ boardViewSettingsId?: number;
27746
+
27747
+ /**
27748
+ * The kind of board view entity these settings belong to
27749
+ */
27750
+ entityType?: enums.BoardViewEntityType;
27751
+
27752
+ /**
27753
+ * The associate this board view settings belongs to (0 for all)
27754
+ */
27755
+ associateId?: number;
27756
+
27757
+ /**
27758
+ * The selection this board view settings belongs to
27759
+ */
27760
+ selectionId?: number;
27761
+
27762
+ /**
27763
+ * Do not show groups with no members/elements if this is true
27764
+ */
27765
+ hideEmptyGroups?: boolean;
27766
+
27767
+ /**
27768
+ * Column name to group on
27769
+ */
27770
+ groupBy?: string;
27771
+
27772
+ /**
27773
+ * Column name to group on
27774
+ */
27775
+ subGroupBy?: string;
27776
+
27777
+ /**
27778
+ * Column name to sort on
27779
+ */
27780
+ sortBy?: string;
27781
+
27782
+ /**
27783
+ * True if the sort is descending
27784
+ */
27785
+ sortDesc?: boolean;
27786
+
27787
+ /**
27788
+ * Column name to sum on
27789
+ */
27790
+ sumBy?: string;
27791
+
27792
+ /**
27793
+ * Column name to color on
27794
+ */
27795
+ colorBy?: string;
27796
+
27797
+ /**
27798
+ * Column names to filter on, comma separated
27799
+ */
27800
+ filters?: string;
27801
+
27802
+ }
27803
+
27804
+
27805
+
27806
+
27807
+
27808
+
27809
+ /**
27810
+ * Creates a new carrier from the entity type given, with the right kind of properties, defaults set.
27811
+ * Returns BoardViewSettingsBase
27812
+ */
27813
+ export interface Selection_CreateDefaultBoardViewSettingsFromEntityTypeRequest {
27814
+ /**
27815
+ * Entity type to create settings for
27816
+ */
27817
+ entityType: enums.BoardViewEntityType;
27818
+ }
27819
+
27820
+ // response object: BoardViewSettingsBase
27821
+
27822
+ /**
27823
+ * Get BoardViewSettings by ID
27824
+ * Returns BoardViewSettingsBase
27825
+ */
27826
+ export interface Selection_GetBoardViewSettingsRequest {
27827
+ /**
27828
+ * Primary key of BoardViewSettings
27829
+ */
27830
+ boardViewSettingsId: number;
27831
+ }
27832
+
27833
+ // response object: BoardViewSettingsBase
27834
+
27835
+ /**
27836
+ * Get BoardViewSettings by selection id, associate id, and settings type
27837
+ * Returns BoardViewSettingsBase
27838
+ */
27839
+ export interface Selection_GetBoardViewSettingsForSelectionRequest {
27840
+ /**
27841
+ * Id of associate
27842
+ */
27843
+ associateId: number;
27844
+ /**
27845
+ * Id of selection
27846
+ */
27847
+ selectionId: number;
27848
+ }
27849
+
27850
+ // response object: BoardViewSettingsBase
27851
+
27852
+ /**
27853
+ * Save BoardViewSettings
27854
+ * Returns BoardViewSettingsBase
27855
+ */
27856
+ export interface Selection_SaveBoardViewSettingsRequest {
27857
+ /**
27858
+ * Typed BoardViewSettings carrier object
27859
+ */
27860
+ boardViewSettings: BoardViewSettingsBase;
27861
+ }
27862
+
27863
+ // response object: BoardViewSettingsBase
27864
+
27865
+ /**
27866
+ * Delete BoardViewSettings
27867
+ */
27868
+ export interface Selection_DeleteBoardViewSettingsRequest {
27869
+ /**
27870
+ * Primary key of BoardViewSettings
27871
+ */
27872
+ boardViewSettingsId: number;
27873
+ }
27874
+
27875
+ // Void response...
27876
+
27877
+
27878
+ /**
27879
+ * Settings for project selection board view.
27880
+ */
27881
+ export interface ProjectBoardViewSettings extends BoardViewSettingsBase {
27882
+
27883
+
27884
+ /**
27885
+ * True if we should hide completed projects
27886
+ */
27887
+ hideCompletedProjects?: boolean;
27888
+
27889
+ }
27890
+
27891
+
27892
+
27893
+
27894
+
27895
+
27896
+
27897
+ /**
27898
+ * Settings for sale selection board view.
27899
+ */
27900
+ export interface SaleBoardViewSettings extends BoardViewSettingsBase {
27901
+
27902
+
27903
+ /**
27904
+ * True if we should hide closed sales
27905
+ */
27906
+ hideClosedSales?: boolean;
27907
+
27908
+ }
27909
+
27910
+
27911
+
27912
+
27913
+
27914
+
27915
+
27388
27916
  /**
27389
27917
  *
27390
27918
  */
@@ -44316,6 +44844,11 @@ export interface Script extends Carrier {
44316
44844
  */
44317
44845
  path?: string;
44318
44846
 
44847
+ /**
44848
+ * The verbs that are blocked when calling a ejscript over HTTP
44849
+ */
44850
+ blockedVerbs?: enums.EjScriptVerb;
44851
+
44319
44852
  }
44320
44853
 
44321
44854
 
@@ -44462,6 +44995,11 @@ export interface CRMScriptEntity extends Carrier {
44462
44995
  */
44463
44996
  updatedAssociateId?: number;
44464
44997
 
44998
+ /**
44999
+ * The verbs that are blocked when calling a ejscript over HTTP
45000
+ */
45001
+ blockedVerbs?: enums.EjScriptVerb;
45002
+
44465
45003
  }
44466
45004
 
44467
45005
 
@@ -48697,6 +49235,74 @@ export interface AI_CreateTextForAppointmentRequest {
48697
49235
  // response object: string
48698
49236
 
48699
49237
 
49238
+ /**
49239
+ * Contains a ContactEntity and a PersonEntity filled with information from a business card.
49240
+ */
49241
+ export interface BizCard {
49242
+
49243
+
49244
+ /**
49245
+ * The contact information.
49246
+ */
49247
+ contact?: ContactEntity;
49248
+
49249
+ /**
49250
+ * The person information.
49251
+ */
49252
+ person?: PersonEntity;
49253
+
49254
+ /**
49255
+ * Base64 encoded company logo image, if available.
49256
+ */
49257
+ logoImage?: string;
49258
+
49259
+ /**
49260
+ * Base64 encoded person photo image, if available.
49261
+ */
49262
+ photoImage?: string;
49263
+
49264
+ }
49265
+
49266
+
49267
+
49268
+
49269
+
49270
+
49271
+ /**
49272
+ * Returns contact and person information from an image. Merges results with matching database records if merge = true
49273
+ * Returns BizCard
49274
+ */
49275
+ export interface AI_AnalyzeBizCardImageRequest {
49276
+ /**
49277
+ * Image data containg a business card
49278
+ */
49279
+ image: ArrayBuffer | string;
49280
+ /**
49281
+ * Merge results from analysis with matching database records? True: match company/person names and set ids on returned entities.
49282
+ */
49283
+ mergeWithDatabase: boolean;
49284
+ }
49285
+
49286
+ // response object: BizCard
49287
+
49288
+ /**
49289
+ * Extract contact and person information from text. Merge results with matching database records if merge = true
49290
+ * Returns BizCard
49291
+ */
49292
+ export interface AI_AnalyzeBizCardTextRequest {
49293
+ /**
49294
+ * Text that contains useful contact and person information.
49295
+ */
49296
+ text: string;
49297
+ /**
49298
+ * Merge results from analysis with matching database records? True: match company/person names and set ids on returned entities.
49299
+ */
49300
+ mergeWithDatabase: boolean;
49301
+ }
49302
+
49303
+ // response object: BizCard
49304
+
49305
+
48700
49306
  /**
48701
49307
  * Details about a categorization model in HugoAI
48702
49308
  */
@@ -48829,7 +49435,7 @@ export interface ChatbotTurn {
48829
49435
 
48830
49436
 
48831
49437
  /**
48832
- * UTC timestamp for turn - when response was generated
49438
+ * UTC timestamp for turn - when response was generated.
48833
49439
  */
48834
49440
  timestamp?: Date;
48835
49441
 
@@ -49033,6 +49639,174 @@ export interface AI_TranslateEntityRequest {
49033
49639
  // response object: string
49034
49640
 
49035
49641
 
49642
+ /**
49643
+ * Contains the answer to an AI search, with sources used.
49644
+ */
49645
+ export interface RagAnswer {
49646
+
49647
+
49648
+ /**
49649
+ * Response to the question
49650
+ */
49651
+ answer?: string;
49652
+
49653
+ /**
49654
+ * Array of sources used to ground the answer. Each source has a chunk of text, relevancy score, title.
49655
+ */
49656
+ source?: RagResult[];
49657
+
49658
+ /**
49659
+ * Unique identifier for this answer. Used for correlating feedback to answers
49660
+ */
49661
+ trackingId?: string;
49662
+
49663
+ }
49664
+
49665
+
49666
+
49667
+
49668
+
49669
+
49670
+ /**
49671
+ * Returns an answer.
49672
+ * Returns RagAnswer
49673
+ */
49674
+ export interface AI_AnswerRequest {
49675
+ /**
49676
+ * Defines the search domain used for generating answer. e.g. 'ServiceCopilot'
49677
+ */
49678
+ namespaceName: string;
49679
+ /**
49680
+ * Question. The search query to answer.
49681
+ */
49682
+ query: string;
49683
+ /**
49684
+ * Filter results based on content type. Default: None = no filtering
49685
+ */
49686
+ type: enums.RagType;
49687
+ /**
49688
+ * Max Number of results to use in generating answer.
49689
+ */
49690
+ top: number;
49691
+ }
49692
+
49693
+ // response object: RagAnswer
49694
+
49695
+ /**
49696
+ * Send feedback on answer - feedback is logged and used to improve the answer algorithm.
49697
+ */
49698
+ export interface AI_AnswerFeedbackRequest {
49699
+ /**
49700
+ * The id of the answer that you are giving feedback to.
49701
+ */
49702
+ trackingId: string;
49703
+ /**
49704
+ * True = Like, False = Dislike.
49705
+ */
49706
+ isThumbsUp: boolean;
49707
+ }
49708
+
49709
+ // Void response...
49710
+
49711
+ /**
49712
+ * Signal that answer was inserted into response- feedback is logged and used to improve the answer algorithm.
49713
+ */
49714
+ export interface AI_AnswerAcceptedRequest {
49715
+ /**
49716
+ * The id of the answer that you are giving feedback to.
49717
+ */
49718
+ trackingId: string;
49719
+ }
49720
+
49721
+ // Void response...
49722
+
49723
+
49724
+ /**
49725
+ * Contains the result of an AI search, with relevance score, document refernce, relevant text chunk.
49726
+ */
49727
+ export interface RagResult {
49728
+
49729
+
49730
+ /**
49731
+ * Markdown text that matched query.
49732
+ */
49733
+ chunk?: string;
49734
+
49735
+ /**
49736
+ * Title or filename of matched document, extracted from the Metadata
49737
+ */
49738
+ title?: string;
49739
+
49740
+ /**
49741
+ * Matched document's unique id. Typically a URI.
49742
+ */
49743
+ id?: string;
49744
+
49745
+ /**
49746
+ * Content type (web/faq/ticket/...)
49747
+ */
49748
+ type?: enums.RagType;
49749
+
49750
+ /**
49751
+ * Relevancy score (0-1). How close this chunk of the document matched the query.
49752
+ */
49753
+ score?: number;
49754
+
49755
+ /**
49756
+ * Dictionary of metadata for this result. Keys depend on the source of the document. e.g. 'Title', 'Filename', 'Url', etc.
49757
+ */
49758
+ metadata?: StringObjectDictionary;
49759
+
49760
+ }
49761
+
49762
+
49763
+
49764
+
49765
+
49766
+
49767
+ /**
49768
+ * Returns semantic search results from vector database.
49769
+ * Returns RagResult[]
49770
+ */
49771
+ export interface AI_SearchRequest {
49772
+ /**
49773
+ * Defines the search domain. e.g. 'ServiceCopilot'.
49774
+ */
49775
+ namespaceName: string;
49776
+ /**
49777
+ * Search query.
49778
+ */
49779
+ query: string;
49780
+ /**
49781
+ * Filter results based on a specific content type. Default: None = no filtering
49782
+ */
49783
+ type: enums.RagType;
49784
+ /**
49785
+ * Max Number of results to return.
49786
+ */
49787
+ top: number;
49788
+ }
49789
+
49790
+ // response object: RagResult[]
49791
+
49792
+ /**
49793
+ * Kicks off a batch task to update the RAG index
49794
+ * Returns number
49795
+ */
49796
+ export interface AI_StartRagIndexingRequest {
49797
+ /**
49798
+ * Defines the search domain. e.g. 'ServiceCopilot'.
49799
+ */
49800
+ namespaceName: string;
49801
+ /**
49802
+ * (Optional) Identifies the data source to update. Blank = all sources
49803
+ */
49804
+ sourceId: string;
49805
+ }
49806
+
49807
+ // response object: number
49808
+
49809
+
49036
49810
  /**
49037
49811
  * Summary functions for various entities
49038
49812
  */
@@ -49187,6 +49961,8 @@ export interface AI_GetSummarizeSalePromptRequest {
49187
49961
 
49188
49962
 
49189
49963
 
49964
+
49965
+
49190
49966
  /**
49191
49967
  * Class used to map relationship between AssociateId and the user's email.
49192
49968
  */
@@ -50306,6 +51082,45 @@ export interface WorkflowStepCreateSale extends WorkflowStepBase {
50306
51082
 
50307
51083
 
50308
51084
 
51085
+ /**
51086
+ * Step in workflow.
51087
+ */
51088
+ export interface WorkflowStepDistributeToOwner extends WorkflowStepBase {
51089
+
51090
+
51091
+ /**
51092
+ * If set to true, participants will only get owner if no owner
51093
+ */
51094
+ onlyToUnassigned?: boolean;
51095
+
51096
+ /**
51097
+ * Selected associates to be owner of participants
51098
+ */
51099
+ associates?: number[];
51100
+
51101
+ /**
51102
+ * Selected usergroups to be
51103
+ */
51104
+ userGroups?: number[];
51105
+
51106
+ /**
51107
+ * The ordered queue of next new owners
51108
+ */
51109
+ distributeQueue?: number[];
51110
+
51111
+ /**
51112
+ * If no other available, assign to this associate
51113
+ */
51114
+ defaultAssociate?: number;
51115
+
51116
+ }
51117
+
51118
+
51119
+
51120
+
51121
+
51122
+
51123
+
50309
51124
  /**
50310
51125
  * Step in workflow.
50311
51126
  */