@scout9/admin 1.0.0-alpha.0.0.7 → 1.0.0-alpha.0.0.9

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/build/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Scout9 API
3
3
  * Scout9 APIs for managing Scout9 users and conversations with your Scout9 agents
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.0.0-alpha.0.0.9
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -105,6 +105,19 @@ export declare const AgentModelEnum: {
105
105
  readonly Null: "null";
106
106
  };
107
107
  export type AgentModelEnum = typeof AgentModelEnum[keyof typeof AgentModelEnum];
108
+ /**
109
+ *
110
+ * @export
111
+ * @interface AndLogic
112
+ */
113
+ export interface AndLogic {
114
+ /**
115
+ *
116
+ * @type {Array<Logic>}
117
+ * @memberof AndLogic
118
+ */
119
+ 'and': Array<Logic>;
120
+ }
108
121
  /**
109
122
  * @type AnyValue
110
123
  * @export
@@ -170,6 +183,55 @@ export interface BlockInfo {
170
183
  */
171
184
  'time'?: string;
172
185
  }
186
+ /**
187
+ * @type Condition
188
+ * @export
189
+ */
190
+ export type Condition = EqualityCondition | ExistsCondition | RegexCondition;
191
+ /**
192
+ *
193
+ * @export
194
+ * @interface ConditionBase
195
+ */
196
+ export interface ConditionBase {
197
+ /**
198
+ *
199
+ * @type {string}
200
+ * @memberof ConditionBase
201
+ */
202
+ 'path': string;
203
+ /**
204
+ *
205
+ * @type {Operator}
206
+ * @memberof ConditionBase
207
+ */
208
+ 'operator': Operator;
209
+ /**
210
+ *
211
+ * @type {any}
212
+ * @memberof ConditionBase
213
+ */
214
+ 'value'?: any;
215
+ /**
216
+ *
217
+ * @type {boolean}
218
+ * @memberof ConditionBase
219
+ */
220
+ 'external'?: boolean;
221
+ }
222
+ /**
223
+ *
224
+ * @export
225
+ * @interface ConditionLogic
226
+ */
227
+ export interface ConditionLogic {
228
+ /**
229
+ *
230
+ * @type {Condition}
231
+ * @memberof ConditionLogic
232
+ */
233
+ 'condition': Condition;
234
+ }
173
235
  /**
174
236
  *
175
237
  * @export
@@ -200,6 +262,12 @@ export interface Context {
200
262
  * @memberof Context
201
263
  */
202
264
  'detection'?: ContextDetectionParams;
265
+ /**
266
+ * The API to use for context detection
267
+ * @type {string}
268
+ * @memberof Context
269
+ */
270
+ 'detectionApi'?: string;
203
271
  /**
204
272
  * The ID column of the context
205
273
  * @type {string}
@@ -218,6 +286,18 @@ export interface Context {
218
286
  * @memberof Context
219
287
  */
220
288
  'requiredColumns'?: Array<string>;
289
+ /**
290
+ * Whether or not to force NER
291
+ * @type {boolean}
292
+ * @memberof Context
293
+ */
294
+ 'forceNER'?: boolean;
295
+ /**
296
+ *
297
+ * @type {ContextModel}
298
+ * @memberof Context
299
+ */
300
+ 'model'?: ContextModel;
221
301
  }
222
302
  /**
223
303
  *
@@ -227,10 +307,10 @@ export interface Context {
227
307
  export interface ContextDetectionDocument {
228
308
  /**
229
309
  * The languages the entity is available in
230
- * @type {Array<string>}
310
+ * @type {string}
231
311
  * @memberof ContextDetectionDocument
232
312
  */
233
- 'languages'?: Array<string>;
313
+ 'language'?: string;
234
314
  /**
235
315
  *
236
316
  * @type {string}
@@ -293,6 +373,12 @@ export interface ContextDetectionParams {
293
373
  * @memberof ContextDetectionParams
294
374
  */
295
375
  'documents': Array<ContextDetectionDocument>;
376
+ /**
377
+ * The activation intent of the context
378
+ * @type {string}
379
+ * @memberof ContextDetectionParams
380
+ */
381
+ 'activationIntent'?: string;
296
382
  /**
297
383
  *
298
384
  * @type {Array<ContextDetectionTest>}
@@ -336,13 +422,32 @@ export interface ContextDetectionTestExpected {
336
422
  * @type {string}
337
423
  * @memberof ContextDetectionTestExpected
338
424
  */
339
- 'intent'?: string;
425
+ 'intent': string;
340
426
  /**
341
427
  *
342
428
  * @type {Array<ParsedContextEntity>}
343
429
  * @memberof ContextDetectionTestExpected
344
430
  */
345
- 'entities'?: Array<ParsedContextEntity>;
431
+ 'entities': Array<ParsedContextEntity>;
432
+ }
433
+ /**
434
+ * The model to use for context detection
435
+ * @export
436
+ * @interface ContextModel
437
+ */
438
+ export interface ContextModel {
439
+ /**
440
+ * The last time the model was updated
441
+ * @type {string}
442
+ * @memberof ContextModel
443
+ */
444
+ 'lastUpdate': string;
445
+ /**
446
+ * The reference to the model
447
+ * @type {string}
448
+ * @memberof ContextModel
449
+ */
450
+ 'ref': string;
346
451
  }
347
452
  /**
348
453
  * @type ContextRowValue
@@ -529,10 +634,17 @@ export interface ConversationContextField {
529
634
  * @memberof ConversationContextField
530
635
  */
531
636
  'metadata'?: object;
637
+ /**
638
+ *
639
+ * @type {Logic}
640
+ * @memberof ConversationContextField
641
+ */
642
+ 'logic'?: Logic;
532
643
  /**
533
644
  * The conditions of the conversation
534
645
  * @type {Array<ConversationContextGroup>}
535
646
  * @memberof ConversationContextField
647
+ * @deprecated
536
648
  */
537
649
  'conditions'?: Array<ConversationContextGroup>;
538
650
  /**
@@ -1431,6 +1543,12 @@ export interface CreateContextRequest {
1431
1543
  * @memberof CreateContextRequest
1432
1544
  */
1433
1545
  'detection'?: ContextDetectionParams;
1546
+ /**
1547
+ * The API to use for context detection
1548
+ * @type {string}
1549
+ * @memberof CreateContextRequest
1550
+ */
1551
+ 'detectionApi'?: string;
1434
1552
  /**
1435
1553
  * The ID column of the context
1436
1554
  * @type {string}
@@ -1449,6 +1567,18 @@ export interface CreateContextRequest {
1449
1567
  * @memberof CreateContextRequest
1450
1568
  */
1451
1569
  'requiredColumns'?: Array<string>;
1570
+ /**
1571
+ * Whether or not to force NER
1572
+ * @type {boolean}
1573
+ * @memberof CreateContextRequest
1574
+ */
1575
+ 'forceNER'?: boolean;
1576
+ /**
1577
+ *
1578
+ * @type {ContextModel}
1579
+ * @memberof CreateContextRequest
1580
+ */
1581
+ 'model'?: ContextModel;
1452
1582
  }
1453
1583
  /**
1454
1584
  *
@@ -1518,6 +1648,12 @@ export interface CreateContextsRequestContextsInner {
1518
1648
  * @memberof CreateContextsRequestContextsInner
1519
1649
  */
1520
1650
  'detection'?: ContextDetectionParams;
1651
+ /**
1652
+ * The API to use for context detection
1653
+ * @type {string}
1654
+ * @memberof CreateContextsRequestContextsInner
1655
+ */
1656
+ 'detectionApi'?: string;
1521
1657
  /**
1522
1658
  * The ID column of the context
1523
1659
  * @type {string}
@@ -1536,6 +1672,18 @@ export interface CreateContextsRequestContextsInner {
1536
1672
  * @memberof CreateContextsRequestContextsInner
1537
1673
  */
1538
1674
  'requiredColumns'?: Array<string>;
1675
+ /**
1676
+ * Whether or not to force NER
1677
+ * @type {boolean}
1678
+ * @memberof CreateContextsRequestContextsInner
1679
+ */
1680
+ 'forceNER'?: boolean;
1681
+ /**
1682
+ *
1683
+ * @type {ContextModel}
1684
+ * @memberof CreateContextsRequestContextsInner
1685
+ */
1686
+ 'model'?: ContextModel;
1539
1687
  }
1540
1688
  /**
1541
1689
  *
@@ -1830,6 +1978,31 @@ export interface CreateCustomersResponse {
1830
1978
  */
1831
1979
  '$operation': string;
1832
1980
  }
1981
+ /**
1982
+ *
1983
+ * @export
1984
+ * @interface CreateFileRequestWithStringPurpose
1985
+ */
1986
+ export interface CreateFileRequestWithStringPurpose {
1987
+ /**
1988
+ *
1989
+ * @type {File}
1990
+ * @memberof CreateFileRequestWithStringPurpose
1991
+ */
1992
+ 'file': File | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob;
1993
+ /**
1994
+ *
1995
+ * @type {string}
1996
+ * @memberof CreateFileRequestWithStringPurpose
1997
+ */
1998
+ 'purpose': string;
1999
+ /**
2000
+ *
2001
+ * @type {string}
2002
+ * @memberof CreateFileRequestWithStringPurpose
2003
+ */
2004
+ 'entity': string;
2005
+ }
1833
2006
  /**
1834
2007
  *
1835
2008
  * @export
@@ -1884,6 +2057,12 @@ export interface CreateWorkflowRequest {
1884
2057
  * @memberof CreateWorkflowRequest
1885
2058
  */
1886
2059
  'onError'?: string;
2060
+ /**
2061
+ * The priority of the workflow in relation to other workflows (determines activation order)
2062
+ * @type {number}
2063
+ * @memberof CreateWorkflowRequest
2064
+ */
2065
+ 'priority': number;
1887
2066
  }
1888
2067
  /**
1889
2068
  *
@@ -1977,6 +2156,12 @@ export interface CreateWorkflowsRequestWorkflowsInner {
1977
2156
  * @memberof CreateWorkflowsRequestWorkflowsInner
1978
2157
  */
1979
2158
  'onError'?: string;
2159
+ /**
2160
+ * The priority of the workflow in relation to other workflows (determines activation order)
2161
+ * @type {number}
2162
+ * @memberof CreateWorkflowsRequestWorkflowsInner
2163
+ */
2164
+ 'priority': number;
1980
2165
  }
1981
2166
  /**
1982
2167
  *
@@ -2458,6 +2643,78 @@ export interface DeleteWorkflowsResponse {
2458
2643
  */
2459
2644
  '$operation': string;
2460
2645
  }
2646
+ /**
2647
+ *
2648
+ * @export
2649
+ * @interface EqualityCondition
2650
+ */
2651
+ export interface EqualityCondition {
2652
+ /**
2653
+ *
2654
+ * @type {string}
2655
+ * @memberof EqualityCondition
2656
+ */
2657
+ 'path': string;
2658
+ /**
2659
+ *
2660
+ * @type {EqualityOperator}
2661
+ * @memberof EqualityCondition
2662
+ */
2663
+ 'operator': EqualityOperator;
2664
+ /**
2665
+ *
2666
+ * @type {any}
2667
+ * @memberof EqualityCondition
2668
+ */
2669
+ 'value': any;
2670
+ /**
2671
+ *
2672
+ * @type {boolean}
2673
+ * @memberof EqualityCondition
2674
+ */
2675
+ 'external'?: boolean;
2676
+ }
2677
+ /**
2678
+ *
2679
+ * @export
2680
+ * @interface EqualityConditionAllOf
2681
+ */
2682
+ export interface EqualityConditionAllOf {
2683
+ /**
2684
+ *
2685
+ * @type {EqualityOperator}
2686
+ * @memberof EqualityConditionAllOf
2687
+ */
2688
+ 'operator': EqualityOperator;
2689
+ /**
2690
+ *
2691
+ * @type {any}
2692
+ * @memberof EqualityConditionAllOf
2693
+ */
2694
+ 'value': any;
2695
+ }
2696
+ /**
2697
+ *
2698
+ * @export
2699
+ * @enum {string}
2700
+ */
2701
+ export declare const EqualityOperator: {
2702
+ readonly Eq: "eq";
2703
+ readonly Neq: "neq";
2704
+ readonly Gt: "gt";
2705
+ readonly Gte: "gte";
2706
+ readonly Lt: "lt";
2707
+ readonly Lte: "lte";
2708
+ readonly In: "in";
2709
+ readonly Nin: "nin";
2710
+ readonly Contains: "contains";
2711
+ readonly NotContains: "notContains";
2712
+ readonly StartsWith: "startsWith";
2713
+ readonly EndsWith: "endsWith";
2714
+ readonly ArrayContainsAny: "arrayContainsAny";
2715
+ readonly ArrayContains: "arrayContains";
2716
+ };
2717
+ export type EqualityOperator = typeof EqualityOperator[keyof typeof EqualityOperator];
2461
2718
  /**
2462
2719
  *
2463
2720
  * @export
@@ -2471,6 +2728,60 @@ export interface ErrorResponse {
2471
2728
  */
2472
2729
  'error': Error;
2473
2730
  }
2731
+ /**
2732
+ *
2733
+ * @export
2734
+ * @enum {string}
2735
+ */
2736
+ export declare const ExistenceOperator: {
2737
+ readonly Exists: "exists";
2738
+ readonly NotExists: "notExists";
2739
+ };
2740
+ export type ExistenceOperator = typeof ExistenceOperator[keyof typeof ExistenceOperator];
2741
+ /**
2742
+ *
2743
+ * @export
2744
+ * @interface ExistsCondition
2745
+ */
2746
+ export interface ExistsCondition {
2747
+ /**
2748
+ *
2749
+ * @type {string}
2750
+ * @memberof ExistsCondition
2751
+ */
2752
+ 'path': string;
2753
+ /**
2754
+ *
2755
+ * @type {ExistenceOperator}
2756
+ * @memberof ExistsCondition
2757
+ */
2758
+ 'operator': ExistenceOperator;
2759
+ /**
2760
+ *
2761
+ * @type {any}
2762
+ * @memberof ExistsCondition
2763
+ */
2764
+ 'value'?: any;
2765
+ /**
2766
+ *
2767
+ * @type {boolean}
2768
+ * @memberof ExistsCondition
2769
+ */
2770
+ 'external'?: boolean;
2771
+ }
2772
+ /**
2773
+ *
2774
+ * @export
2775
+ * @interface ExistsConditionAllOf
2776
+ */
2777
+ export interface ExistsConditionAllOf {
2778
+ /**
2779
+ *
2780
+ * @type {ExistenceOperator}
2781
+ * @memberof ExistsConditionAllOf
2782
+ */
2783
+ 'operator': ExistenceOperator;
2784
+ }
2474
2785
  /**
2475
2786
  *
2476
2787
  * @export
@@ -2808,6 +3119,12 @@ export interface GetContextResponse {
2808
3119
  * @memberof GetContextResponse
2809
3120
  */
2810
3121
  'detection'?: ContextDetectionParams;
3122
+ /**
3123
+ * The API to use for context detection
3124
+ * @type {string}
3125
+ * @memberof GetContextResponse
3126
+ */
3127
+ 'detectionApi'?: string;
2811
3128
  /**
2812
3129
  * The ID column of the context
2813
3130
  * @type {string}
@@ -2826,6 +3143,18 @@ export interface GetContextResponse {
2826
3143
  * @memberof GetContextResponse
2827
3144
  */
2828
3145
  'requiredColumns'?: Array<string>;
3146
+ /**
3147
+ * Whether or not to force NER
3148
+ * @type {boolean}
3149
+ * @memberof GetContextResponse
3150
+ */
3151
+ 'forceNER'?: boolean;
3152
+ /**
3153
+ *
3154
+ * @type {ContextModel}
3155
+ * @memberof GetContextResponse
3156
+ */
3157
+ 'model'?: ContextModel;
2829
3158
  /**
2830
3159
  * The ID of the context
2831
3160
  * @type {string}
@@ -3098,6 +3427,12 @@ export interface GetWorkflowResponse {
3098
3427
  * @memberof GetWorkflowResponse
3099
3428
  */
3100
3429
  'onError'?: string;
3430
+ /**
3431
+ * The priority of the workflow in relation to other workflows (determines activation order)
3432
+ * @type {number}
3433
+ * @memberof GetWorkflowResponse
3434
+ */
3435
+ 'priority': number;
3101
3436
  /**
3102
3437
  * The ID of the workflow
3103
3438
  * @type {string}
@@ -3318,6 +3653,12 @@ export interface ListContextsResponseInner {
3318
3653
  * @memberof ListContextsResponseInner
3319
3654
  */
3320
3655
  'detection'?: ContextDetectionParams;
3656
+ /**
3657
+ * The API to use for context detection
3658
+ * @type {string}
3659
+ * @memberof ListContextsResponseInner
3660
+ */
3661
+ 'detectionApi'?: string;
3321
3662
  /**
3322
3663
  * The ID column of the context
3323
3664
  * @type {string}
@@ -3336,6 +3677,18 @@ export interface ListContextsResponseInner {
3336
3677
  * @memberof ListContextsResponseInner
3337
3678
  */
3338
3679
  'requiredColumns'?: Array<string>;
3680
+ /**
3681
+ * Whether or not to force NER
3682
+ * @type {boolean}
3683
+ * @memberof ListContextsResponseInner
3684
+ */
3685
+ 'forceNER'?: boolean;
3686
+ /**
3687
+ *
3688
+ * @type {ContextModel}
3689
+ * @memberof ListContextsResponseInner
3690
+ */
3691
+ 'model'?: ContextModel;
3339
3692
  /**
3340
3693
  * The ID of the context
3341
3694
  * @type {string}
@@ -3572,6 +3925,12 @@ export interface ListFilesResponse {
3572
3925
  * @memberof ListFilesResponse
3573
3926
  */
3574
3927
  'data': Array<Scout9File>;
3928
+ /**
3929
+ *
3930
+ * @type {PurposeEnum}
3931
+ * @memberof ListFilesResponse
3932
+ */
3933
+ 'purpose'?: PurposeEnum;
3575
3934
  }
3576
3935
  /**
3577
3936
  *
@@ -3676,6 +4035,12 @@ export interface ListWorkflowsResponseInner {
3676
4035
  * @memberof ListWorkflowsResponseInner
3677
4036
  */
3678
4037
  'onError'?: string;
4038
+ /**
4039
+ * The priority of the workflow in relation to other workflows (determines activation order)
4040
+ * @type {number}
4041
+ * @memberof ListWorkflowsResponseInner
4042
+ */
4043
+ 'priority': number;
3679
4044
  /**
3680
4045
  * The ID of the workflow
3681
4046
  * @type {string}
@@ -3696,6 +4061,11 @@ export interface ListWorkflowsResponseInnerAllOf {
3696
4061
  */
3697
4062
  '$id': string;
3698
4063
  }
4064
+ /**
4065
+ * @type Logic
4066
+ * @export
4067
+ */
4068
+ export type Logic = AndLogic | ConditionLogic | NotLogic | OrLogic;
3699
4069
  /**
3700
4070
  *
3701
4071
  * @export
@@ -3926,6 +4296,19 @@ export interface ModelError {
3926
4296
  */
3927
4297
  'code': string | null;
3928
4298
  }
4299
+ /**
4300
+ *
4301
+ * @export
4302
+ * @interface NotLogic
4303
+ */
4304
+ export interface NotLogic {
4305
+ /**
4306
+ *
4307
+ * @type {Logic}
4308
+ * @memberof NotLogic
4309
+ */
4310
+ 'not': Logic;
4311
+ }
3929
4312
  /**
3930
4313
  *
3931
4314
  * @export
@@ -4003,29 +4386,23 @@ export interface OperationResponse {
4003
4386
  'error'?: Error;
4004
4387
  }
4005
4388
  /**
4006
- * The operator of the condition or query
4389
+ * @type Operator
4007
4390
  * @export
4008
- * @enum {string}
4009
4391
  */
4010
- export declare const Operator: {
4011
- readonly Eq: "eq";
4012
- readonly Equal: "equal";
4013
- readonly Ne: "ne";
4014
- readonly NotEquals: "not-equals";
4015
- readonly Gt: "gt";
4016
- readonly GreaterThan: "greater-than";
4017
- readonly Gte: "gte";
4018
- readonly GreaterThanEquals: "greater-than-equals";
4019
- readonly Lt: "lt";
4020
- readonly LessThan: "less-than";
4021
- readonly Lte: "lte";
4022
- readonly LessThanEquals: "less-than-equals";
4023
- readonly ArrayContains: "array-contains";
4024
- readonly In: "in";
4025
- readonly ArrayContainsAny: "array-contains-any";
4026
- readonly NotIn: "not-in";
4027
- };
4028
- export type Operator = typeof Operator[keyof typeof Operator];
4392
+ export type Operator = EqualityOperator | ExistenceOperator;
4393
+ /**
4394
+ *
4395
+ * @export
4396
+ * @interface OrLogic
4397
+ */
4398
+ export interface OrLogic {
4399
+ /**
4400
+ *
4401
+ * @type {Array<Logic>}
4402
+ * @memberof OrLogic
4403
+ */
4404
+ 'or': Array<Logic>;
4405
+ }
4029
4406
  /**
4030
4407
  * @type ParsedContextEntity
4031
4408
  * @export
@@ -4033,6 +4410,42 @@ export type Operator = typeof Operator[keyof typeof Operator];
4033
4410
  export type ParsedContextEntity = string | {
4034
4411
  [key: string]: any;
4035
4412
  };
4413
+ /**
4414
+ *
4415
+ * @export
4416
+ * @enum {string}
4417
+ */
4418
+ export declare const PurposeEnum: {
4419
+ readonly Context: "context";
4420
+ readonly AgentAudio: "agent-audio";
4421
+ readonly AgentTranscript: "agent-transcript";
4422
+ };
4423
+ export type PurposeEnum = typeof PurposeEnum[keyof typeof PurposeEnum];
4424
+ /**
4425
+ *
4426
+ * @export
4427
+ * @interface RegexCondition
4428
+ */
4429
+ export interface RegexCondition {
4430
+ /**
4431
+ *
4432
+ * @type {string}
4433
+ * @memberof RegexCondition
4434
+ */
4435
+ 'path': string;
4436
+ /**
4437
+ *
4438
+ * @type {string}
4439
+ * @memberof RegexCondition
4440
+ */
4441
+ 'regex': string;
4442
+ /**
4443
+ *
4444
+ * @type {boolean}
4445
+ * @memberof RegexCondition
4446
+ */
4447
+ 'external'?: boolean;
4448
+ }
4036
4449
  /**
4037
4450
  *
4038
4451
  * @export
@@ -5271,6 +5684,12 @@ export interface UpdateContextRequest {
5271
5684
  * @memberof UpdateContextRequest
5272
5685
  */
5273
5686
  'detection'?: ContextDetectionParams;
5687
+ /**
5688
+ * The API to use for context detection
5689
+ * @type {string}
5690
+ * @memberof UpdateContextRequest
5691
+ */
5692
+ 'detectionApi'?: string;
5274
5693
  /**
5275
5694
  * The ID column of the context
5276
5695
  * @type {string}
@@ -5289,6 +5708,18 @@ export interface UpdateContextRequest {
5289
5708
  * @memberof UpdateContextRequest
5290
5709
  */
5291
5710
  'requiredColumns'?: Array<string>;
5711
+ /**
5712
+ * Whether or not to force NER
5713
+ * @type {boolean}
5714
+ * @memberof UpdateContextRequest
5715
+ */
5716
+ 'forceNER'?: boolean;
5717
+ /**
5718
+ *
5719
+ * @type {ContextModel}
5720
+ * @memberof UpdateContextRequest
5721
+ */
5722
+ 'model'?: ContextModel;
5292
5723
  /**
5293
5724
  * The ID of the context to update
5294
5725
  * @type {string}
@@ -5684,30 +6115,36 @@ export interface UpdateCustomersResponse {
5684
6115
  * @interface UpdateWorkflowRequest
5685
6116
  */
5686
6117
  export interface UpdateWorkflowRequest {
6118
+ /**
6119
+ * The ID of the workflow to update
6120
+ * @type {string}
6121
+ * @memberof UpdateWorkflowRequest
6122
+ */
6123
+ '$id': string;
5687
6124
  /**
5688
6125
  * The name of the workflow
5689
6126
  * @type {string}
5690
6127
  * @memberof UpdateWorkflowRequest
5691
6128
  */
5692
- 'name': string;
6129
+ 'name'?: string;
5693
6130
  /**
5694
6131
  *
5695
6132
  * @type {ContextDetectionParams}
5696
6133
  * @memberof UpdateWorkflowRequest
5697
6134
  */
5698
- 'initiators': ContextDetectionParams;
6135
+ 'initiators'?: ContextDetectionParams;
5699
6136
  /**
5700
6137
  * The fields of the workflow
5701
6138
  * @type {Array<ConversationContextField>}
5702
6139
  * @memberof UpdateWorkflowRequest
5703
6140
  */
5704
- 'fields': Array<ConversationContextField>;
6141
+ 'fields'?: Array<ConversationContextField>;
5705
6142
  /**
5706
6143
  * About this conversation - used as initial context
5707
6144
  * @type {string}
5708
6145
  * @memberof UpdateWorkflowRequest
5709
6146
  */
5710
- 'context': string;
6147
+ 'context'?: string;
5711
6148
  /**
5712
6149
  * The webhook to call when a workflow is created
5713
6150
  * @type {string}
@@ -5733,11 +6170,11 @@ export interface UpdateWorkflowRequest {
5733
6170
  */
5734
6171
  'onError'?: string;
5735
6172
  /**
5736
- * The ID of the workflow to update
5737
- * @type {string}
6173
+ * The priority of the workflow in relation to other workflows (determines activation order)
6174
+ * @type {number}
5738
6175
  * @memberof UpdateWorkflowRequest
5739
6176
  */
5740
- '$id': string;
6177
+ 'priority'?: number;
5741
6178
  }
5742
6179
  /**
5743
6180
  *
@@ -5863,6 +6300,73 @@ export interface Workflow {
5863
6300
  * @memberof Workflow
5864
6301
  */
5865
6302
  'onError'?: string;
6303
+ /**
6304
+ * The priority of the workflow in relation to other workflows (determines activation order)
6305
+ * @type {number}
6306
+ * @memberof Workflow
6307
+ */
6308
+ 'priority': number;
6309
+ }
6310
+ /**
6311
+ *
6312
+ * @export
6313
+ * @interface WorkflowPartial
6314
+ */
6315
+ export interface WorkflowPartial {
6316
+ /**
6317
+ * The name of the workflow
6318
+ * @type {string}
6319
+ * @memberof WorkflowPartial
6320
+ */
6321
+ 'name'?: string;
6322
+ /**
6323
+ *
6324
+ * @type {ContextDetectionParams}
6325
+ * @memberof WorkflowPartial
6326
+ */
6327
+ 'initiators'?: ContextDetectionParams;
6328
+ /**
6329
+ * The fields of the workflow
6330
+ * @type {Array<ConversationContextField>}
6331
+ * @memberof WorkflowPartial
6332
+ */
6333
+ 'fields'?: Array<ConversationContextField>;
6334
+ /**
6335
+ * About this conversation - used as initial context
6336
+ * @type {string}
6337
+ * @memberof WorkflowPartial
6338
+ */
6339
+ 'context'?: string;
6340
+ /**
6341
+ * The webhook to call when a workflow is created
6342
+ * @type {string}
6343
+ * @memberof WorkflowPartial
6344
+ */
6345
+ 'onCreated'?: string;
6346
+ /**
6347
+ * The webhook to call when a workflow is updated
6348
+ * @type {string}
6349
+ * @memberof WorkflowPartial
6350
+ */
6351
+ 'onUpdated'?: string;
6352
+ /**
6353
+ * The webhook to call when a workflow is deleted
6354
+ * @type {string}
6355
+ * @memberof WorkflowPartial
6356
+ */
6357
+ 'onDeleted'?: string;
6358
+ /**
6359
+ * The webhook to call when a workflow has an error
6360
+ * @type {string}
6361
+ * @memberof WorkflowPartial
6362
+ */
6363
+ 'onError'?: string;
6364
+ /**
6365
+ * The priority of the workflow in relation to other workflows (determines activation order)
6366
+ * @type {number}
6367
+ * @memberof WorkflowPartial
6368
+ */
6369
+ 'priority'?: number;
5866
6370
  }
5867
6371
  /**
5868
6372
  * CustomContextApi - axios parameter creator
@@ -6058,7 +6562,7 @@ export declare const Scout9ApiAxiosParamCreator: (configuration?: Configuration)
6058
6562
  */
6059
6563
  contextTest: (contextTestRequest: ContextTestRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
6060
6564
  /**
6061
- *
6565
+ * Update a context
6062
6566
  * @summary Update a context
6063
6567
  * @param {UpdateContextRequest} updateContextRequest
6064
6568
  * @param {*} [options] Override http request option.
@@ -6272,11 +6776,12 @@ export declare const Scout9ApiAxiosParamCreator: (configuration?: Configuration)
6272
6776
  *
6273
6777
  * @summary Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.
6274
6778
  * @param {File} file
6275
- * @param {string} [purpose] The intended purpose of the uploaded documents. This allows us to validate the format of the uploaded file.
6779
+ * @param {PurposeEnum} [purpose]
6780
+ * @param {string} [entity]
6276
6781
  * @param {*} [options] Override http request option.
6277
6782
  * @throws {RequiredError}
6278
6783
  */
6279
- fileCreate: (file: File | Buffer | Blob, purpose?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
6784
+ fileCreate: (file: File | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob, purpose?: PurposeEnum, entity?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
6280
6785
  /**
6281
6786
  *
6282
6787
  * @summary Delete a file.
@@ -6607,7 +7112,7 @@ export declare const Scout9ApiFp: (configuration?: Configuration) => {
6607
7112
  */
6608
7113
  contextTest(contextTestRequest: ContextTestRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContextTestResponse>>;
6609
7114
  /**
6610
- *
7115
+ * Update a context
6611
7116
  * @summary Update a context
6612
7117
  * @param {UpdateContextRequest} updateContextRequest
6613
7118
  * @param {*} [options] Override http request option.
@@ -6821,11 +7326,12 @@ export declare const Scout9ApiFp: (configuration?: Configuration) => {
6821
7326
  *
6822
7327
  * @summary Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.
6823
7328
  * @param {File} file
6824
- * @param {string} [purpose] The intended purpose of the uploaded documents. This allows us to validate the format of the uploaded file.
7329
+ * @param {PurposeEnum} [purpose]
7330
+ * @param {string} [entity]
6825
7331
  * @param {*} [options] Override http request option.
6826
7332
  * @throws {RequiredError}
6827
7333
  */
6828
- fileCreate(file: File | Buffer | Blob, purpose?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Scout9File>>;
7334
+ fileCreate(file: File | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob, purpose?: PurposeEnum, entity?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Scout9File>>;
6829
7335
  /**
6830
7336
  *
6831
7337
  * @summary Delete a file.
@@ -7156,7 +7662,7 @@ export declare const Scout9ApiFactory: (configuration?: Configuration, basePath?
7156
7662
  */
7157
7663
  contextTest(contextTestRequest: ContextTestRequest, options?: any): AxiosPromise<ContextTestResponse>;
7158
7664
  /**
7159
- *
7665
+ * Update a context
7160
7666
  * @summary Update a context
7161
7667
  * @param {UpdateContextRequest} updateContextRequest
7162
7668
  * @param {*} [options] Override http request option.
@@ -7370,11 +7876,12 @@ export declare const Scout9ApiFactory: (configuration?: Configuration, basePath?
7370
7876
  *
7371
7877
  * @summary Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.
7372
7878
  * @param {File} file
7373
- * @param {string} [purpose] The intended purpose of the uploaded documents. This allows us to validate the format of the uploaded file.
7879
+ * @param {PurposeEnum} [purpose]
7880
+ * @param {string} [entity]
7374
7881
  * @param {*} [options] Override http request option.
7375
7882
  * @throws {RequiredError}
7376
7883
  */
7377
- fileCreate(file: File | Buffer | Blob, purpose?: string, options?: any): AxiosPromise<Scout9File>;
7884
+ fileCreate(file: File | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob, purpose?: PurposeEnum, entity?: string, options?: any): AxiosPromise<Scout9File>;
7378
7885
  /**
7379
7886
  *
7380
7887
  * @summary Delete a file.
@@ -7723,7 +8230,7 @@ export declare class Scout9Api extends BaseAPI {
7723
8230
  */
7724
8231
  contextTest(contextTestRequest: ContextTestRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ContextTestResponse, any>>;
7725
8232
  /**
7726
- *
8233
+ * Update a context
7727
8234
  * @summary Update a context
7728
8235
  * @param {UpdateContextRequest} updateContextRequest
7729
8236
  * @param {*} [options] Override http request option.
@@ -7963,12 +8470,13 @@ export declare class Scout9Api extends BaseAPI {
7963
8470
  *
7964
8471
  * @summary Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB. Please contact us if you need to increase the storage limit.
7965
8472
  * @param {File} file
7966
- * @param {string} [purpose] The intended purpose of the uploaded documents. This allows us to validate the format of the uploaded file.
8473
+ * @param {PurposeEnum} [purpose]
8474
+ * @param {string} [entity]
7967
8475
  * @param {*} [options] Override http request option.
7968
8476
  * @throws {RequiredError}
7969
8477
  * @memberof Scout9Api
7970
8478
  */
7971
- fileCreate(file: File | Buffer | Blob, purpose?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Scout9File, any>>;
8479
+ fileCreate(file: File | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob | Buffer | Blob, purpose?: PurposeEnum, entity?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Scout9File, any>>;
7972
8480
  /**
7973
8481
  *
7974
8482
  * @summary Delete a file.