@operla-ai/sdk 0.3.6 → 0.4.0
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/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +2 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/sdk.gen.d.ts +49 -11
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +84 -1
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +672 -49
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/index.d.ts +86 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -3268,6 +3268,629 @@ export type Update2Responses = {
|
|
|
3268
3268
|
};
|
|
3269
3269
|
export type Update2Response = Update2Responses[keyof Update2Responses];
|
|
3270
3270
|
export type List4Data = {
|
|
3271
|
+
body?: never;
|
|
3272
|
+
path?: never;
|
|
3273
|
+
query?: {
|
|
3274
|
+
/**
|
|
3275
|
+
* Target a specific entity (under the caller's organization).
|
|
3276
|
+
*/
|
|
3277
|
+
entityId?: string;
|
|
3278
|
+
};
|
|
3279
|
+
url: '/intents';
|
|
3280
|
+
};
|
|
3281
|
+
export type List4Errors = {
|
|
3282
|
+
/**
|
|
3283
|
+
* Bad request
|
|
3284
|
+
*/
|
|
3285
|
+
400: {
|
|
3286
|
+
statusCode: number;
|
|
3287
|
+
error: {
|
|
3288
|
+
code: 'MISSING-ORG' | 'VALIDATION' | 'INVALID-JSON';
|
|
3289
|
+
message: string;
|
|
3290
|
+
};
|
|
3291
|
+
};
|
|
3292
|
+
/**
|
|
3293
|
+
* Authentication required
|
|
3294
|
+
*/
|
|
3295
|
+
401: {
|
|
3296
|
+
statusCode: number;
|
|
3297
|
+
error: {
|
|
3298
|
+
code: 'AUTH';
|
|
3299
|
+
message: string;
|
|
3300
|
+
};
|
|
3301
|
+
};
|
|
3302
|
+
/**
|
|
3303
|
+
* Insufficient permissions
|
|
3304
|
+
*/
|
|
3305
|
+
403: {
|
|
3306
|
+
statusCode: number;
|
|
3307
|
+
error: {
|
|
3308
|
+
code: 'FORBIDDEN' | 'SCOPE-FORBIDDEN';
|
|
3309
|
+
message: string;
|
|
3310
|
+
};
|
|
3311
|
+
};
|
|
3312
|
+
};
|
|
3313
|
+
export type List4Error = List4Errors[keyof List4Errors];
|
|
3314
|
+
export type List4Responses = {
|
|
3315
|
+
/**
|
|
3316
|
+
* Successful response
|
|
3317
|
+
*/
|
|
3318
|
+
200: {
|
|
3319
|
+
/**
|
|
3320
|
+
* Intents visible at the caller's scope.
|
|
3321
|
+
*/
|
|
3322
|
+
intents: Array<{
|
|
3323
|
+
/**
|
|
3324
|
+
* Opaque intent id (prefixed `int_`).
|
|
3325
|
+
*/
|
|
3326
|
+
id: string;
|
|
3327
|
+
/**
|
|
3328
|
+
* Machine name — stable identifier used across the API.
|
|
3329
|
+
*/
|
|
3330
|
+
intent: string;
|
|
3331
|
+
/**
|
|
3332
|
+
* Human-readable label.
|
|
3333
|
+
*/
|
|
3334
|
+
label: string;
|
|
3335
|
+
/**
|
|
3336
|
+
* Description the orchestrator uses to classify user messages.
|
|
3337
|
+
*/
|
|
3338
|
+
description: string;
|
|
3339
|
+
/**
|
|
3340
|
+
* Where the intent is routed once detected — response agent, human escalation, or a specialist.
|
|
3341
|
+
*/
|
|
3342
|
+
route: {
|
|
3343
|
+
/**
|
|
3344
|
+
* Routing target — `response` (straight to the response agent), `human` (escalation), or `specialist`.
|
|
3345
|
+
*/
|
|
3346
|
+
type: 'response' | 'human' | 'specialist';
|
|
3347
|
+
/**
|
|
3348
|
+
* Machine name of the specialist agent — required when `type` is `specialist`, ignored otherwise.
|
|
3349
|
+
*/
|
|
3350
|
+
agentName?: string;
|
|
3351
|
+
};
|
|
3352
|
+
/**
|
|
3353
|
+
* Effective processing mode at the request scope.
|
|
3354
|
+
*/
|
|
3355
|
+
mode: 'disabled' | 'copilot' | 'autopilot';
|
|
3356
|
+
/**
|
|
3357
|
+
* Whether the user must be identified before processing.
|
|
3358
|
+
*/
|
|
3359
|
+
requiresUserInfo: boolean;
|
|
3360
|
+
/**
|
|
3361
|
+
* Display order in the intent list.
|
|
3362
|
+
*/
|
|
3363
|
+
order: number;
|
|
3364
|
+
/**
|
|
3365
|
+
* Cascade level this view was resolved at.
|
|
3366
|
+
*/
|
|
3367
|
+
scope: {
|
|
3368
|
+
/**
|
|
3369
|
+
* Cascade level of this view — `global` (applies everywhere), `organization`, or `entity`.
|
|
3370
|
+
*/
|
|
3371
|
+
level: 'global' | 'organization' | 'entity';
|
|
3372
|
+
/**
|
|
3373
|
+
* Organization id when `level` is `organization` or `entity`.
|
|
3374
|
+
*/
|
|
3375
|
+
organizationId?: string;
|
|
3376
|
+
/**
|
|
3377
|
+
* Entity id when `level` is `entity`.
|
|
3378
|
+
*/
|
|
3379
|
+
entityId?: string;
|
|
3380
|
+
};
|
|
3381
|
+
}>;
|
|
3382
|
+
};
|
|
3383
|
+
};
|
|
3384
|
+
export type List4Response = List4Responses[keyof List4Responses];
|
|
3385
|
+
export type Create3Data = {
|
|
3386
|
+
body?: {
|
|
3387
|
+
/**
|
|
3388
|
+
* Human-readable label. The intent's machine name is derived from it (lower-cased, words joined by `_`).
|
|
3389
|
+
*/
|
|
3390
|
+
label: string;
|
|
3391
|
+
/**
|
|
3392
|
+
* Description the orchestrator uses to classify user messages.
|
|
3393
|
+
*/
|
|
3394
|
+
description: string;
|
|
3395
|
+
/**
|
|
3396
|
+
* Where the intent is routed once detected — response agent, human escalation, or a specialist. Defaults to direct response.
|
|
3397
|
+
*/
|
|
3398
|
+
route?: {
|
|
3399
|
+
/**
|
|
3400
|
+
* Routing target — `response` (straight to the response agent), `human` (escalation), or `specialist`.
|
|
3401
|
+
*/
|
|
3402
|
+
type: 'response' | 'human' | 'specialist';
|
|
3403
|
+
/**
|
|
3404
|
+
* Machine name of the specialist agent — required when `type` is `specialist`, ignored otherwise.
|
|
3405
|
+
*/
|
|
3406
|
+
agentName?: string;
|
|
3407
|
+
};
|
|
3408
|
+
/**
|
|
3409
|
+
* Processing mode (`disabled` / `copilot` / `autopilot`). Defaults to `copilot`.
|
|
3410
|
+
*/
|
|
3411
|
+
mode?: 'disabled' | 'copilot' | 'autopilot';
|
|
3412
|
+
/**
|
|
3413
|
+
* Whether the user must be identified before the intent is processed. Defaults to `true`.
|
|
3414
|
+
*/
|
|
3415
|
+
requiresUserInfo?: boolean;
|
|
3416
|
+
/**
|
|
3417
|
+
* Display order in the intent list (lower first). Defaults to 0.
|
|
3418
|
+
*/
|
|
3419
|
+
order?: number;
|
|
3420
|
+
};
|
|
3421
|
+
path?: never;
|
|
3422
|
+
query?: never;
|
|
3423
|
+
url: '/intents';
|
|
3424
|
+
};
|
|
3425
|
+
export type Create3Errors = {
|
|
3426
|
+
/**
|
|
3427
|
+
* Bad request
|
|
3428
|
+
*/
|
|
3429
|
+
400: {
|
|
3430
|
+
statusCode: number;
|
|
3431
|
+
error: {
|
|
3432
|
+
code: 'MISSING-ORG' | 'VALIDATION' | 'INVALID-JSON';
|
|
3433
|
+
message: string;
|
|
3434
|
+
};
|
|
3435
|
+
};
|
|
3436
|
+
/**
|
|
3437
|
+
* Authentication required
|
|
3438
|
+
*/
|
|
3439
|
+
401: {
|
|
3440
|
+
statusCode: number;
|
|
3441
|
+
error: {
|
|
3442
|
+
code: 'AUTH';
|
|
3443
|
+
message: string;
|
|
3444
|
+
};
|
|
3445
|
+
};
|
|
3446
|
+
/**
|
|
3447
|
+
* Insufficient permissions
|
|
3448
|
+
*/
|
|
3449
|
+
403: {
|
|
3450
|
+
statusCode: number;
|
|
3451
|
+
error: {
|
|
3452
|
+
code: 'FORBIDDEN' | 'SCOPE-FORBIDDEN';
|
|
3453
|
+
message: string;
|
|
3454
|
+
};
|
|
3455
|
+
};
|
|
3456
|
+
};
|
|
3457
|
+
export type Create3Error = Create3Errors[keyof Create3Errors];
|
|
3458
|
+
export type Create3Responses = {
|
|
3459
|
+
/**
|
|
3460
|
+
* Successful response
|
|
3461
|
+
*/
|
|
3462
|
+
200: {
|
|
3463
|
+
/**
|
|
3464
|
+
* Opaque intent id (prefixed `int_`).
|
|
3465
|
+
*/
|
|
3466
|
+
id: string;
|
|
3467
|
+
/**
|
|
3468
|
+
* Machine name — stable identifier used across the API.
|
|
3469
|
+
*/
|
|
3470
|
+
intent: string;
|
|
3471
|
+
/**
|
|
3472
|
+
* Human-readable label.
|
|
3473
|
+
*/
|
|
3474
|
+
label: string;
|
|
3475
|
+
/**
|
|
3476
|
+
* Description the orchestrator uses to classify user messages.
|
|
3477
|
+
*/
|
|
3478
|
+
description: string;
|
|
3479
|
+
/**
|
|
3480
|
+
* Where the intent is routed once detected — response agent, human escalation, or a specialist.
|
|
3481
|
+
*/
|
|
3482
|
+
route: {
|
|
3483
|
+
/**
|
|
3484
|
+
* Routing target — `response` (straight to the response agent), `human` (escalation), or `specialist`.
|
|
3485
|
+
*/
|
|
3486
|
+
type: 'response' | 'human' | 'specialist';
|
|
3487
|
+
/**
|
|
3488
|
+
* Machine name of the specialist agent — required when `type` is `specialist`, ignored otherwise.
|
|
3489
|
+
*/
|
|
3490
|
+
agentName?: string;
|
|
3491
|
+
};
|
|
3492
|
+
/**
|
|
3493
|
+
* Effective processing mode at the request scope.
|
|
3494
|
+
*/
|
|
3495
|
+
mode: 'disabled' | 'copilot' | 'autopilot';
|
|
3496
|
+
/**
|
|
3497
|
+
* Whether the user must be identified before processing.
|
|
3498
|
+
*/
|
|
3499
|
+
requiresUserInfo: boolean;
|
|
3500
|
+
/**
|
|
3501
|
+
* Display order in the intent list.
|
|
3502
|
+
*/
|
|
3503
|
+
order: number;
|
|
3504
|
+
/**
|
|
3505
|
+
* Cascade level this view was resolved at.
|
|
3506
|
+
*/
|
|
3507
|
+
scope: {
|
|
3508
|
+
/**
|
|
3509
|
+
* Cascade level of this view — `global` (applies everywhere), `organization`, or `entity`.
|
|
3510
|
+
*/
|
|
3511
|
+
level: 'global' | 'organization' | 'entity';
|
|
3512
|
+
/**
|
|
3513
|
+
* Organization id when `level` is `organization` or `entity`.
|
|
3514
|
+
*/
|
|
3515
|
+
organizationId?: string;
|
|
3516
|
+
/**
|
|
3517
|
+
* Entity id when `level` is `entity`.
|
|
3518
|
+
*/
|
|
3519
|
+
entityId?: string;
|
|
3520
|
+
};
|
|
3521
|
+
};
|
|
3522
|
+
};
|
|
3523
|
+
export type Create3Response = Create3Responses[keyof Create3Responses];
|
|
3524
|
+
export type Delete3Data = {
|
|
3525
|
+
body?: never;
|
|
3526
|
+
path: {
|
|
3527
|
+
id: string;
|
|
3528
|
+
};
|
|
3529
|
+
query?: never;
|
|
3530
|
+
url: '/intents/{id}';
|
|
3531
|
+
};
|
|
3532
|
+
export type Delete3Errors = {
|
|
3533
|
+
/**
|
|
3534
|
+
* Bad request
|
|
3535
|
+
*/
|
|
3536
|
+
400: {
|
|
3537
|
+
statusCode: number;
|
|
3538
|
+
error: {
|
|
3539
|
+
code: 'MISSING-ORG';
|
|
3540
|
+
message: string;
|
|
3541
|
+
};
|
|
3542
|
+
};
|
|
3543
|
+
/**
|
|
3544
|
+
* Authentication required
|
|
3545
|
+
*/
|
|
3546
|
+
401: {
|
|
3547
|
+
statusCode: number;
|
|
3548
|
+
error: {
|
|
3549
|
+
code: 'AUTH';
|
|
3550
|
+
message: string;
|
|
3551
|
+
};
|
|
3552
|
+
};
|
|
3553
|
+
/**
|
|
3554
|
+
* Insufficient permissions
|
|
3555
|
+
*/
|
|
3556
|
+
403: {
|
|
3557
|
+
statusCode: number;
|
|
3558
|
+
error: {
|
|
3559
|
+
code: 'FORBIDDEN' | 'SCOPE-FORBIDDEN';
|
|
3560
|
+
message: string;
|
|
3561
|
+
};
|
|
3562
|
+
};
|
|
3563
|
+
};
|
|
3564
|
+
export type Delete3Error = Delete3Errors[keyof Delete3Errors];
|
|
3565
|
+
export type Delete3Responses = {
|
|
3566
|
+
/**
|
|
3567
|
+
* Successful response
|
|
3568
|
+
*/
|
|
3569
|
+
200: {
|
|
3570
|
+
/**
|
|
3571
|
+
* Confirmation message describing the outcome.
|
|
3572
|
+
*/
|
|
3573
|
+
message: string;
|
|
3574
|
+
};
|
|
3575
|
+
};
|
|
3576
|
+
export type Delete3Response = Delete3Responses[keyof Delete3Responses];
|
|
3577
|
+
export type Get4Data = {
|
|
3578
|
+
body?: never;
|
|
3579
|
+
path: {
|
|
3580
|
+
id: string;
|
|
3581
|
+
};
|
|
3582
|
+
query?: {
|
|
3583
|
+
/**
|
|
3584
|
+
* Target a specific entity (under the caller's organization).
|
|
3585
|
+
*/
|
|
3586
|
+
entityId?: string;
|
|
3587
|
+
};
|
|
3588
|
+
url: '/intents/{id}';
|
|
3589
|
+
};
|
|
3590
|
+
export type Get4Errors = {
|
|
3591
|
+
/**
|
|
3592
|
+
* Bad request
|
|
3593
|
+
*/
|
|
3594
|
+
400: {
|
|
3595
|
+
statusCode: number;
|
|
3596
|
+
error: {
|
|
3597
|
+
code: 'MISSING-ORG' | 'VALIDATION' | 'INVALID-JSON';
|
|
3598
|
+
message: string;
|
|
3599
|
+
};
|
|
3600
|
+
};
|
|
3601
|
+
/**
|
|
3602
|
+
* Authentication required
|
|
3603
|
+
*/
|
|
3604
|
+
401: {
|
|
3605
|
+
statusCode: number;
|
|
3606
|
+
error: {
|
|
3607
|
+
code: 'AUTH';
|
|
3608
|
+
message: string;
|
|
3609
|
+
};
|
|
3610
|
+
};
|
|
3611
|
+
/**
|
|
3612
|
+
* Insufficient permissions
|
|
3613
|
+
*/
|
|
3614
|
+
403: {
|
|
3615
|
+
statusCode: number;
|
|
3616
|
+
error: {
|
|
3617
|
+
code: 'FORBIDDEN' | 'SCOPE-FORBIDDEN';
|
|
3618
|
+
message: string;
|
|
3619
|
+
};
|
|
3620
|
+
};
|
|
3621
|
+
};
|
|
3622
|
+
export type Get4Error = Get4Errors[keyof Get4Errors];
|
|
3623
|
+
export type Get4Responses = {
|
|
3624
|
+
/**
|
|
3625
|
+
* Successful response
|
|
3626
|
+
*/
|
|
3627
|
+
200: {
|
|
3628
|
+
/**
|
|
3629
|
+
* Opaque intent id (prefixed `int_`).
|
|
3630
|
+
*/
|
|
3631
|
+
id: string;
|
|
3632
|
+
/**
|
|
3633
|
+
* Machine name — stable identifier used across the API.
|
|
3634
|
+
*/
|
|
3635
|
+
intent: string;
|
|
3636
|
+
/**
|
|
3637
|
+
* Human-readable label.
|
|
3638
|
+
*/
|
|
3639
|
+
label: string;
|
|
3640
|
+
/**
|
|
3641
|
+
* Description the orchestrator uses to classify user messages.
|
|
3642
|
+
*/
|
|
3643
|
+
description: string;
|
|
3644
|
+
/**
|
|
3645
|
+
* Where the intent is routed once detected — response agent, human escalation, or a specialist.
|
|
3646
|
+
*/
|
|
3647
|
+
route: {
|
|
3648
|
+
/**
|
|
3649
|
+
* Routing target — `response` (straight to the response agent), `human` (escalation), or `specialist`.
|
|
3650
|
+
*/
|
|
3651
|
+
type: 'response' | 'human' | 'specialist';
|
|
3652
|
+
/**
|
|
3653
|
+
* Machine name of the specialist agent — required when `type` is `specialist`, ignored otherwise.
|
|
3654
|
+
*/
|
|
3655
|
+
agentName?: string;
|
|
3656
|
+
};
|
|
3657
|
+
/**
|
|
3658
|
+
* Effective processing mode at the request scope.
|
|
3659
|
+
*/
|
|
3660
|
+
mode: 'disabled' | 'copilot' | 'autopilot';
|
|
3661
|
+
/**
|
|
3662
|
+
* Whether the user must be identified before processing.
|
|
3663
|
+
*/
|
|
3664
|
+
requiresUserInfo: boolean;
|
|
3665
|
+
/**
|
|
3666
|
+
* Display order in the intent list.
|
|
3667
|
+
*/
|
|
3668
|
+
order: number;
|
|
3669
|
+
/**
|
|
3670
|
+
* Cascade level this view was resolved at.
|
|
3671
|
+
*/
|
|
3672
|
+
scope: {
|
|
3673
|
+
/**
|
|
3674
|
+
* Cascade level of this view — `global` (applies everywhere), `organization`, or `entity`.
|
|
3675
|
+
*/
|
|
3676
|
+
level: 'global' | 'organization' | 'entity';
|
|
3677
|
+
/**
|
|
3678
|
+
* Organization id when `level` is `organization` or `entity`.
|
|
3679
|
+
*/
|
|
3680
|
+
organizationId?: string;
|
|
3681
|
+
/**
|
|
3682
|
+
* Entity id when `level` is `entity`.
|
|
3683
|
+
*/
|
|
3684
|
+
entityId?: string;
|
|
3685
|
+
};
|
|
3686
|
+
};
|
|
3687
|
+
};
|
|
3688
|
+
export type Get4Response = Get4Responses[keyof Get4Responses];
|
|
3689
|
+
export type Update3Data = {
|
|
3690
|
+
body?: {
|
|
3691
|
+
/**
|
|
3692
|
+
* Human-readable label.
|
|
3693
|
+
*/
|
|
3694
|
+
label?: string;
|
|
3695
|
+
/**
|
|
3696
|
+
* Description the orchestrator uses to classify user messages.
|
|
3697
|
+
*/
|
|
3698
|
+
description?: string;
|
|
3699
|
+
/**
|
|
3700
|
+
* Where the intent is routed once detected. Editable at global scope only.
|
|
3701
|
+
*/
|
|
3702
|
+
route?: {
|
|
3703
|
+
/**
|
|
3704
|
+
* Routing target — `response` (straight to the response agent), `human` (escalation), or `specialist`.
|
|
3705
|
+
*/
|
|
3706
|
+
type: 'response' | 'human' | 'specialist';
|
|
3707
|
+
/**
|
|
3708
|
+
* Machine name of the specialist agent — required when `type` is `specialist`, ignored otherwise.
|
|
3709
|
+
*/
|
|
3710
|
+
agentName?: string;
|
|
3711
|
+
};
|
|
3712
|
+
/**
|
|
3713
|
+
* Processing mode (`disabled` / `copilot` / `autopilot`) — the only field accepted at organization/entity scope.
|
|
3714
|
+
*/
|
|
3715
|
+
mode?: 'disabled' | 'copilot' | 'autopilot';
|
|
3716
|
+
/**
|
|
3717
|
+
* Whether the user must be identified before processing.
|
|
3718
|
+
*/
|
|
3719
|
+
requiresUserInfo?: boolean;
|
|
3720
|
+
/**
|
|
3721
|
+
* Display order in the intent list (lower first).
|
|
3722
|
+
*/
|
|
3723
|
+
order?: number;
|
|
3724
|
+
};
|
|
3725
|
+
path: {
|
|
3726
|
+
id: string;
|
|
3727
|
+
};
|
|
3728
|
+
query?: {
|
|
3729
|
+
/**
|
|
3730
|
+
* Target a specific entity (under the caller's organization).
|
|
3731
|
+
*/
|
|
3732
|
+
entityId?: string;
|
|
3733
|
+
};
|
|
3734
|
+
url: '/intents/{id}';
|
|
3735
|
+
};
|
|
3736
|
+
export type Update3Errors = {
|
|
3737
|
+
/**
|
|
3738
|
+
* Bad request
|
|
3739
|
+
*/
|
|
3740
|
+
400: {
|
|
3741
|
+
statusCode: number;
|
|
3742
|
+
error: {
|
|
3743
|
+
code: 'MISSING-ORG' | 'VALIDATION' | 'INVALID-JSON';
|
|
3744
|
+
message: string;
|
|
3745
|
+
};
|
|
3746
|
+
};
|
|
3747
|
+
/**
|
|
3748
|
+
* Authentication required
|
|
3749
|
+
*/
|
|
3750
|
+
401: {
|
|
3751
|
+
statusCode: number;
|
|
3752
|
+
error: {
|
|
3753
|
+
code: 'AUTH';
|
|
3754
|
+
message: string;
|
|
3755
|
+
};
|
|
3756
|
+
};
|
|
3757
|
+
/**
|
|
3758
|
+
* Insufficient permissions
|
|
3759
|
+
*/
|
|
3760
|
+
403: {
|
|
3761
|
+
statusCode: number;
|
|
3762
|
+
error: {
|
|
3763
|
+
code: 'FORBIDDEN' | 'SCOPE-FORBIDDEN';
|
|
3764
|
+
message: string;
|
|
3765
|
+
};
|
|
3766
|
+
};
|
|
3767
|
+
};
|
|
3768
|
+
export type Update3Error = Update3Errors[keyof Update3Errors];
|
|
3769
|
+
export type Update3Responses = {
|
|
3770
|
+
/**
|
|
3771
|
+
* Successful response
|
|
3772
|
+
*/
|
|
3773
|
+
200: {
|
|
3774
|
+
/**
|
|
3775
|
+
* Opaque intent id (prefixed `int_`).
|
|
3776
|
+
*/
|
|
3777
|
+
id: string;
|
|
3778
|
+
/**
|
|
3779
|
+
* Machine name — stable identifier used across the API.
|
|
3780
|
+
*/
|
|
3781
|
+
intent: string;
|
|
3782
|
+
/**
|
|
3783
|
+
* Human-readable label.
|
|
3784
|
+
*/
|
|
3785
|
+
label: string;
|
|
3786
|
+
/**
|
|
3787
|
+
* Description the orchestrator uses to classify user messages.
|
|
3788
|
+
*/
|
|
3789
|
+
description: string;
|
|
3790
|
+
/**
|
|
3791
|
+
* Where the intent is routed once detected — response agent, human escalation, or a specialist.
|
|
3792
|
+
*/
|
|
3793
|
+
route: {
|
|
3794
|
+
/**
|
|
3795
|
+
* Routing target — `response` (straight to the response agent), `human` (escalation), or `specialist`.
|
|
3796
|
+
*/
|
|
3797
|
+
type: 'response' | 'human' | 'specialist';
|
|
3798
|
+
/**
|
|
3799
|
+
* Machine name of the specialist agent — required when `type` is `specialist`, ignored otherwise.
|
|
3800
|
+
*/
|
|
3801
|
+
agentName?: string;
|
|
3802
|
+
};
|
|
3803
|
+
/**
|
|
3804
|
+
* Effective processing mode at the request scope.
|
|
3805
|
+
*/
|
|
3806
|
+
mode: 'disabled' | 'copilot' | 'autopilot';
|
|
3807
|
+
/**
|
|
3808
|
+
* Whether the user must be identified before processing.
|
|
3809
|
+
*/
|
|
3810
|
+
requiresUserInfo: boolean;
|
|
3811
|
+
/**
|
|
3812
|
+
* Display order in the intent list.
|
|
3813
|
+
*/
|
|
3814
|
+
order: number;
|
|
3815
|
+
/**
|
|
3816
|
+
* Cascade level this view was resolved at.
|
|
3817
|
+
*/
|
|
3818
|
+
scope: {
|
|
3819
|
+
/**
|
|
3820
|
+
* Cascade level of this view — `global` (applies everywhere), `organization`, or `entity`.
|
|
3821
|
+
*/
|
|
3822
|
+
level: 'global' | 'organization' | 'entity';
|
|
3823
|
+
/**
|
|
3824
|
+
* Organization id when `level` is `organization` or `entity`.
|
|
3825
|
+
*/
|
|
3826
|
+
organizationId?: string;
|
|
3827
|
+
/**
|
|
3828
|
+
* Entity id when `level` is `entity`.
|
|
3829
|
+
*/
|
|
3830
|
+
entityId?: string;
|
|
3831
|
+
};
|
|
3832
|
+
};
|
|
3833
|
+
};
|
|
3834
|
+
export type Update3Response = Update3Responses[keyof Update3Responses];
|
|
3835
|
+
export type DeleteOverride2Data = {
|
|
3836
|
+
body?: never;
|
|
3837
|
+
path: {
|
|
3838
|
+
id: string;
|
|
3839
|
+
};
|
|
3840
|
+
query?: {
|
|
3841
|
+
/**
|
|
3842
|
+
* Target a specific entity (under the caller's organization).
|
|
3843
|
+
*/
|
|
3844
|
+
entityId?: string;
|
|
3845
|
+
};
|
|
3846
|
+
url: '/intents/{id}/override';
|
|
3847
|
+
};
|
|
3848
|
+
export type DeleteOverride2Errors = {
|
|
3849
|
+
/**
|
|
3850
|
+
* Bad request
|
|
3851
|
+
*/
|
|
3852
|
+
400: {
|
|
3853
|
+
statusCode: number;
|
|
3854
|
+
error: {
|
|
3855
|
+
code: 'MISSING-ORG' | 'VALIDATION' | 'INVALID-JSON';
|
|
3856
|
+
message: string;
|
|
3857
|
+
};
|
|
3858
|
+
};
|
|
3859
|
+
/**
|
|
3860
|
+
* Authentication required
|
|
3861
|
+
*/
|
|
3862
|
+
401: {
|
|
3863
|
+
statusCode: number;
|
|
3864
|
+
error: {
|
|
3865
|
+
code: 'AUTH';
|
|
3866
|
+
message: string;
|
|
3867
|
+
};
|
|
3868
|
+
};
|
|
3869
|
+
/**
|
|
3870
|
+
* Insufficient permissions
|
|
3871
|
+
*/
|
|
3872
|
+
403: {
|
|
3873
|
+
statusCode: number;
|
|
3874
|
+
error: {
|
|
3875
|
+
code: 'FORBIDDEN' | 'SCOPE-FORBIDDEN';
|
|
3876
|
+
message: string;
|
|
3877
|
+
};
|
|
3878
|
+
};
|
|
3879
|
+
};
|
|
3880
|
+
export type DeleteOverride2Error = DeleteOverride2Errors[keyof DeleteOverride2Errors];
|
|
3881
|
+
export type DeleteOverride2Responses = {
|
|
3882
|
+
/**
|
|
3883
|
+
* Successful response
|
|
3884
|
+
*/
|
|
3885
|
+
200: {
|
|
3886
|
+
/**
|
|
3887
|
+
* Confirmation message describing the outcome.
|
|
3888
|
+
*/
|
|
3889
|
+
message: string;
|
|
3890
|
+
};
|
|
3891
|
+
};
|
|
3892
|
+
export type DeleteOverride2Response = DeleteOverride2Responses[keyof DeleteOverride2Responses];
|
|
3893
|
+
export type List5Data = {
|
|
3271
3894
|
body?: never;
|
|
3272
3895
|
path?: never;
|
|
3273
3896
|
query?: {
|
|
@@ -3286,7 +3909,7 @@ export type List4Data = {
|
|
|
3286
3909
|
};
|
|
3287
3910
|
url: '/kb';
|
|
3288
3911
|
};
|
|
3289
|
-
export type
|
|
3912
|
+
export type List5Errors = {
|
|
3290
3913
|
/**
|
|
3291
3914
|
* Bad request
|
|
3292
3915
|
*/
|
|
@@ -3318,8 +3941,8 @@ export type List4Errors = {
|
|
|
3318
3941
|
};
|
|
3319
3942
|
};
|
|
3320
3943
|
};
|
|
3321
|
-
export type
|
|
3322
|
-
export type
|
|
3944
|
+
export type List5Error = List5Errors[keyof List5Errors];
|
|
3945
|
+
export type List5Responses = {
|
|
3323
3946
|
/**
|
|
3324
3947
|
* Successful response
|
|
3325
3948
|
*/
|
|
@@ -3385,8 +4008,8 @@ export type List4Responses = {
|
|
|
3385
4008
|
offset: number;
|
|
3386
4009
|
};
|
|
3387
4010
|
};
|
|
3388
|
-
export type
|
|
3389
|
-
export type
|
|
4011
|
+
export type List5Response = List5Responses[keyof List5Responses];
|
|
4012
|
+
export type Create4Data = {
|
|
3390
4013
|
body?: {
|
|
3391
4014
|
/**
|
|
3392
4015
|
* Article title.
|
|
@@ -3410,7 +4033,7 @@ export type Create3Data = {
|
|
|
3410
4033
|
};
|
|
3411
4034
|
url: '/kb';
|
|
3412
4035
|
};
|
|
3413
|
-
export type
|
|
4036
|
+
export type Create4Errors = {
|
|
3414
4037
|
/**
|
|
3415
4038
|
* Bad request
|
|
3416
4039
|
*/
|
|
@@ -3442,8 +4065,8 @@ export type Create3Errors = {
|
|
|
3442
4065
|
};
|
|
3443
4066
|
};
|
|
3444
4067
|
};
|
|
3445
|
-
export type
|
|
3446
|
-
export type
|
|
4068
|
+
export type Create4Error = Create4Errors[keyof Create4Errors];
|
|
4069
|
+
export type Create4Responses = {
|
|
3447
4070
|
/**
|
|
3448
4071
|
* Successful response
|
|
3449
4072
|
*/
|
|
@@ -3533,8 +4156,8 @@ export type Create3Responses = {
|
|
|
3533
4156
|
updatedAt: string;
|
|
3534
4157
|
};
|
|
3535
4158
|
};
|
|
3536
|
-
export type
|
|
3537
|
-
export type
|
|
4159
|
+
export type Create4Response = Create4Responses[keyof Create4Responses];
|
|
4160
|
+
export type Delete4Data = {
|
|
3538
4161
|
body?: never;
|
|
3539
4162
|
path: {
|
|
3540
4163
|
/**
|
|
@@ -3545,7 +4168,7 @@ export type Delete3Data = {
|
|
|
3545
4168
|
query?: never;
|
|
3546
4169
|
url: '/kb/{id}';
|
|
3547
4170
|
};
|
|
3548
|
-
export type
|
|
4171
|
+
export type Delete4Errors = {
|
|
3549
4172
|
/**
|
|
3550
4173
|
* Bad request
|
|
3551
4174
|
*/
|
|
@@ -3577,8 +4200,8 @@ export type Delete3Errors = {
|
|
|
3577
4200
|
};
|
|
3578
4201
|
};
|
|
3579
4202
|
};
|
|
3580
|
-
export type
|
|
3581
|
-
export type
|
|
4203
|
+
export type Delete4Error = Delete4Errors[keyof Delete4Errors];
|
|
4204
|
+
export type Delete4Responses = {
|
|
3582
4205
|
/**
|
|
3583
4206
|
* Successful response
|
|
3584
4207
|
*/
|
|
@@ -3589,8 +4212,8 @@ export type Delete3Responses = {
|
|
|
3589
4212
|
message: string;
|
|
3590
4213
|
};
|
|
3591
4214
|
};
|
|
3592
|
-
export type
|
|
3593
|
-
export type
|
|
4215
|
+
export type Delete4Response = Delete4Responses[keyof Delete4Responses];
|
|
4216
|
+
export type Get5Data = {
|
|
3594
4217
|
body?: never;
|
|
3595
4218
|
path: {
|
|
3596
4219
|
/**
|
|
@@ -3601,7 +4224,7 @@ export type Get4Data = {
|
|
|
3601
4224
|
query?: never;
|
|
3602
4225
|
url: '/kb/{id}';
|
|
3603
4226
|
};
|
|
3604
|
-
export type
|
|
4227
|
+
export type Get5Errors = {
|
|
3605
4228
|
/**
|
|
3606
4229
|
* Bad request
|
|
3607
4230
|
*/
|
|
@@ -3633,8 +4256,8 @@ export type Get4Errors = {
|
|
|
3633
4256
|
};
|
|
3634
4257
|
};
|
|
3635
4258
|
};
|
|
3636
|
-
export type
|
|
3637
|
-
export type
|
|
4259
|
+
export type Get5Error = Get5Errors[keyof Get5Errors];
|
|
4260
|
+
export type Get5Responses = {
|
|
3638
4261
|
/**
|
|
3639
4262
|
* Successful response
|
|
3640
4263
|
*/
|
|
@@ -3724,8 +4347,8 @@ export type Get4Responses = {
|
|
|
3724
4347
|
updatedAt: string;
|
|
3725
4348
|
};
|
|
3726
4349
|
};
|
|
3727
|
-
export type
|
|
3728
|
-
export type
|
|
4350
|
+
export type Get5Response = Get5Responses[keyof Get5Responses];
|
|
4351
|
+
export type Update4Data = {
|
|
3729
4352
|
body?: {
|
|
3730
4353
|
/**
|
|
3731
4354
|
* New article title.
|
|
@@ -3753,7 +4376,7 @@ export type Update3Data = {
|
|
|
3753
4376
|
query?: never;
|
|
3754
4377
|
url: '/kb/{id}';
|
|
3755
4378
|
};
|
|
3756
|
-
export type
|
|
4379
|
+
export type Update4Errors = {
|
|
3757
4380
|
/**
|
|
3758
4381
|
* Bad request
|
|
3759
4382
|
*/
|
|
@@ -3785,8 +4408,8 @@ export type Update3Errors = {
|
|
|
3785
4408
|
};
|
|
3786
4409
|
};
|
|
3787
4410
|
};
|
|
3788
|
-
export type
|
|
3789
|
-
export type
|
|
4411
|
+
export type Update4Error = Update4Errors[keyof Update4Errors];
|
|
4412
|
+
export type Update4Responses = {
|
|
3790
4413
|
/**
|
|
3791
4414
|
* Successful response
|
|
3792
4415
|
*/
|
|
@@ -3876,7 +4499,7 @@ export type Update3Responses = {
|
|
|
3876
4499
|
updatedAt: string;
|
|
3877
4500
|
};
|
|
3878
4501
|
};
|
|
3879
|
-
export type
|
|
4502
|
+
export type Update4Response = Update4Responses[keyof Update4Responses];
|
|
3880
4503
|
export type Publish2Data = {
|
|
3881
4504
|
body?: never;
|
|
3882
4505
|
path: {
|
|
@@ -4152,7 +4775,7 @@ export type Rollback2Responses = {
|
|
|
4152
4775
|
};
|
|
4153
4776
|
};
|
|
4154
4777
|
export type Rollback2Response = Rollback2Responses[keyof Rollback2Responses];
|
|
4155
|
-
export type
|
|
4778
|
+
export type List6Data = {
|
|
4156
4779
|
body?: never;
|
|
4157
4780
|
path?: never;
|
|
4158
4781
|
query?: {
|
|
@@ -4171,7 +4794,7 @@ export type List5Data = {
|
|
|
4171
4794
|
};
|
|
4172
4795
|
url: '/organizations';
|
|
4173
4796
|
};
|
|
4174
|
-
export type
|
|
4797
|
+
export type List6Errors = {
|
|
4175
4798
|
/**
|
|
4176
4799
|
* Bad request
|
|
4177
4800
|
*/
|
|
@@ -4203,8 +4826,8 @@ export type List5Errors = {
|
|
|
4203
4826
|
};
|
|
4204
4827
|
};
|
|
4205
4828
|
};
|
|
4206
|
-
export type
|
|
4207
|
-
export type
|
|
4829
|
+
export type List6Error = List6Errors[keyof List6Errors];
|
|
4830
|
+
export type List6Responses = {
|
|
4208
4831
|
/**
|
|
4209
4832
|
* Successful response
|
|
4210
4833
|
*/
|
|
@@ -4241,8 +4864,8 @@ export type List5Responses = {
|
|
|
4241
4864
|
offset: number;
|
|
4242
4865
|
};
|
|
4243
4866
|
};
|
|
4244
|
-
export type
|
|
4245
|
-
export type
|
|
4867
|
+
export type List6Response = List6Responses[keyof List6Responses];
|
|
4868
|
+
export type Create5Data = {
|
|
4246
4869
|
body?: {
|
|
4247
4870
|
/**
|
|
4248
4871
|
* Human-readable name of the organization (must be unique).
|
|
@@ -4263,7 +4886,7 @@ export type Create4Data = {
|
|
|
4263
4886
|
query?: never;
|
|
4264
4887
|
url: '/organizations';
|
|
4265
4888
|
};
|
|
4266
|
-
export type
|
|
4889
|
+
export type Create5Errors = {
|
|
4267
4890
|
/**
|
|
4268
4891
|
* Bad request
|
|
4269
4892
|
*/
|
|
@@ -4295,8 +4918,8 @@ export type Create4Errors = {
|
|
|
4295
4918
|
};
|
|
4296
4919
|
};
|
|
4297
4920
|
};
|
|
4298
|
-
export type
|
|
4299
|
-
export type
|
|
4921
|
+
export type Create5Error = Create5Errors[keyof Create5Errors];
|
|
4922
|
+
export type Create5Responses = {
|
|
4300
4923
|
/**
|
|
4301
4924
|
* Successful response
|
|
4302
4925
|
*/
|
|
@@ -4334,8 +4957,8 @@ export type Create4Responses = {
|
|
|
4334
4957
|
apiKey?: string;
|
|
4335
4958
|
};
|
|
4336
4959
|
};
|
|
4337
|
-
export type
|
|
4338
|
-
export type
|
|
4960
|
+
export type Create5Response = Create5Responses[keyof Create5Responses];
|
|
4961
|
+
export type Delete5Data = {
|
|
4339
4962
|
body?: never;
|
|
4340
4963
|
path: {
|
|
4341
4964
|
/**
|
|
@@ -4346,7 +4969,7 @@ export type Delete4Data = {
|
|
|
4346
4969
|
query?: never;
|
|
4347
4970
|
url: '/organizations/{id}';
|
|
4348
4971
|
};
|
|
4349
|
-
export type
|
|
4972
|
+
export type Delete5Errors = {
|
|
4350
4973
|
/**
|
|
4351
4974
|
* Bad request
|
|
4352
4975
|
*/
|
|
@@ -4378,8 +5001,8 @@ export type Delete4Errors = {
|
|
|
4378
5001
|
};
|
|
4379
5002
|
};
|
|
4380
5003
|
};
|
|
4381
|
-
export type
|
|
4382
|
-
export type
|
|
5004
|
+
export type Delete5Error = Delete5Errors[keyof Delete5Errors];
|
|
5005
|
+
export type Delete5Responses = {
|
|
4383
5006
|
/**
|
|
4384
5007
|
* Successful response
|
|
4385
5008
|
*/
|
|
@@ -4390,8 +5013,8 @@ export type Delete4Responses = {
|
|
|
4390
5013
|
message: string;
|
|
4391
5014
|
};
|
|
4392
5015
|
};
|
|
4393
|
-
export type
|
|
4394
|
-
export type
|
|
5016
|
+
export type Delete5Response = Delete5Responses[keyof Delete5Responses];
|
|
5017
|
+
export type Get6Data = {
|
|
4395
5018
|
body?: never;
|
|
4396
5019
|
path: {
|
|
4397
5020
|
/**
|
|
@@ -4402,7 +5025,7 @@ export type Get5Data = {
|
|
|
4402
5025
|
query?: never;
|
|
4403
5026
|
url: '/organizations/{id}';
|
|
4404
5027
|
};
|
|
4405
|
-
export type
|
|
5028
|
+
export type Get6Errors = {
|
|
4406
5029
|
/**
|
|
4407
5030
|
* Bad request
|
|
4408
5031
|
*/
|
|
@@ -4434,8 +5057,8 @@ export type Get5Errors = {
|
|
|
4434
5057
|
};
|
|
4435
5058
|
};
|
|
4436
5059
|
};
|
|
4437
|
-
export type
|
|
4438
|
-
export type
|
|
5060
|
+
export type Get6Error = Get6Errors[keyof Get6Errors];
|
|
5061
|
+
export type Get6Responses = {
|
|
4439
5062
|
/**
|
|
4440
5063
|
* Successful response
|
|
4441
5064
|
*/
|
|
@@ -4464,8 +5087,8 @@ export type Get5Responses = {
|
|
|
4464
5087
|
};
|
|
4465
5088
|
};
|
|
4466
5089
|
};
|
|
4467
|
-
export type
|
|
4468
|
-
export type
|
|
5090
|
+
export type Get6Response = Get6Responses[keyof Get6Responses];
|
|
5091
|
+
export type Update5Data = {
|
|
4469
5092
|
body?: {
|
|
4470
5093
|
/**
|
|
4471
5094
|
* New name for the organization.
|
|
@@ -4487,7 +5110,7 @@ export type Update4Data = {
|
|
|
4487
5110
|
query?: never;
|
|
4488
5111
|
url: '/organizations/{id}';
|
|
4489
5112
|
};
|
|
4490
|
-
export type
|
|
5113
|
+
export type Update5Errors = {
|
|
4491
5114
|
/**
|
|
4492
5115
|
* Bad request
|
|
4493
5116
|
*/
|
|
@@ -4519,8 +5142,8 @@ export type Update4Errors = {
|
|
|
4519
5142
|
};
|
|
4520
5143
|
};
|
|
4521
5144
|
};
|
|
4522
|
-
export type
|
|
4523
|
-
export type
|
|
5145
|
+
export type Update5Error = Update5Errors[keyof Update5Errors];
|
|
5146
|
+
export type Update5Responses = {
|
|
4524
5147
|
/**
|
|
4525
5148
|
* Successful response
|
|
4526
5149
|
*/
|
|
@@ -4549,5 +5172,5 @@ export type Update4Responses = {
|
|
|
4549
5172
|
};
|
|
4550
5173
|
};
|
|
4551
5174
|
};
|
|
4552
|
-
export type
|
|
5175
|
+
export type Update5Response = Update5Responses[keyof Update5Responses];
|
|
4553
5176
|
//# sourceMappingURL=types.gen.d.ts.map
|