@quantcdn/quant-client 4.11.1 → 4.12.1
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/api.ts +1926 -303
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1510 -340
- package/dist/api.js +1119 -250
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1510 -340
- package/dist/esm/api.js +1079 -210
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* QuantCDN API
|
|
5
5
|
* Unified API for QuantCDN Admin and QuantCloud Platform services
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.12.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2513,6 +2513,104 @@ export const CreateOrchestrationRequestStopConditionTypeEnum = {
|
|
|
2513
2513
|
|
|
2514
2514
|
export type CreateOrchestrationRequestStopConditionTypeEnum = typeof CreateOrchestrationRequestStopConditionTypeEnum[keyof typeof CreateOrchestrationRequestStopConditionTypeEnum];
|
|
2515
2515
|
|
|
2516
|
+
/**
|
|
2517
|
+
*
|
|
2518
|
+
* @export
|
|
2519
|
+
* @interface CreateSkill201Response
|
|
2520
|
+
*/
|
|
2521
|
+
export interface CreateSkill201Response {
|
|
2522
|
+
/**
|
|
2523
|
+
*
|
|
2524
|
+
* @type {boolean}
|
|
2525
|
+
* @memberof CreateSkill201Response
|
|
2526
|
+
*/
|
|
2527
|
+
'success'?: boolean;
|
|
2528
|
+
/**
|
|
2529
|
+
*
|
|
2530
|
+
* @type {object}
|
|
2531
|
+
* @memberof CreateSkill201Response
|
|
2532
|
+
*/
|
|
2533
|
+
'skill'?: object;
|
|
2534
|
+
/**
|
|
2535
|
+
*
|
|
2536
|
+
* @type {string}
|
|
2537
|
+
* @memberof CreateSkill201Response
|
|
2538
|
+
*/
|
|
2539
|
+
'message'?: string;
|
|
2540
|
+
}
|
|
2541
|
+
/**
|
|
2542
|
+
*
|
|
2543
|
+
* @export
|
|
2544
|
+
* @interface CreateSkillRequest
|
|
2545
|
+
*/
|
|
2546
|
+
export interface CreateSkillRequest {
|
|
2547
|
+
/**
|
|
2548
|
+
*
|
|
2549
|
+
* @type {string}
|
|
2550
|
+
* @memberof CreateSkillRequest
|
|
2551
|
+
*/
|
|
2552
|
+
'name': string;
|
|
2553
|
+
/**
|
|
2554
|
+
*
|
|
2555
|
+
* @type {string}
|
|
2556
|
+
* @memberof CreateSkillRequest
|
|
2557
|
+
*/
|
|
2558
|
+
'description'?: string;
|
|
2559
|
+
/**
|
|
2560
|
+
*
|
|
2561
|
+
* @type {string}
|
|
2562
|
+
* @memberof CreateSkillRequest
|
|
2563
|
+
*/
|
|
2564
|
+
'content': string;
|
|
2565
|
+
/**
|
|
2566
|
+
*
|
|
2567
|
+
* @type {string}
|
|
2568
|
+
* @memberof CreateSkillRequest
|
|
2569
|
+
*/
|
|
2570
|
+
'triggerCondition': string;
|
|
2571
|
+
/**
|
|
2572
|
+
*
|
|
2573
|
+
* @type {Array<string>}
|
|
2574
|
+
* @memberof CreateSkillRequest
|
|
2575
|
+
*/
|
|
2576
|
+
'tags'?: Array<string>;
|
|
2577
|
+
/**
|
|
2578
|
+
*
|
|
2579
|
+
* @type {Array<string>}
|
|
2580
|
+
* @memberof CreateSkillRequest
|
|
2581
|
+
*/
|
|
2582
|
+
'requiredTools'?: Array<string>;
|
|
2583
|
+
/**
|
|
2584
|
+
*
|
|
2585
|
+
* @type {string}
|
|
2586
|
+
* @memberof CreateSkillRequest
|
|
2587
|
+
*/
|
|
2588
|
+
'namespace'?: string;
|
|
2589
|
+
/**
|
|
2590
|
+
*
|
|
2591
|
+
* @type {object}
|
|
2592
|
+
* @memberof CreateSkillRequest
|
|
2593
|
+
*/
|
|
2594
|
+
'files'?: object;
|
|
2595
|
+
/**
|
|
2596
|
+
*
|
|
2597
|
+
* @type {boolean}
|
|
2598
|
+
* @memberof CreateSkillRequest
|
|
2599
|
+
*/
|
|
2600
|
+
'disableModelInvocation'?: boolean;
|
|
2601
|
+
/**
|
|
2602
|
+
*
|
|
2603
|
+
* @type {Array<string>}
|
|
2604
|
+
* @memberof CreateSkillRequest
|
|
2605
|
+
*/
|
|
2606
|
+
'allowedTools'?: Array<string>;
|
|
2607
|
+
/**
|
|
2608
|
+
*
|
|
2609
|
+
* @type {string}
|
|
2610
|
+
* @memberof CreateSkillRequest
|
|
2611
|
+
*/
|
|
2612
|
+
'installedBy'?: string;
|
|
2613
|
+
}
|
|
2516
2614
|
/**
|
|
2517
2615
|
*
|
|
2518
2616
|
* @export
|
|
@@ -2952,6 +3050,44 @@ export interface DeleteFile200Response {
|
|
|
2952
3050
|
*/
|
|
2953
3051
|
'fileId'?: string;
|
|
2954
3052
|
}
|
|
3053
|
+
/**
|
|
3054
|
+
*
|
|
3055
|
+
* @export
|
|
3056
|
+
* @interface DeleteSkill200Response
|
|
3057
|
+
*/
|
|
3058
|
+
export interface DeleteSkill200Response {
|
|
3059
|
+
/**
|
|
3060
|
+
*
|
|
3061
|
+
* @type {boolean}
|
|
3062
|
+
* @memberof DeleteSkill200Response
|
|
3063
|
+
*/
|
|
3064
|
+
'success'?: boolean;
|
|
3065
|
+
/**
|
|
3066
|
+
*
|
|
3067
|
+
* @type {string}
|
|
3068
|
+
* @memberof DeleteSkill200Response
|
|
3069
|
+
*/
|
|
3070
|
+
'message'?: string;
|
|
3071
|
+
}
|
|
3072
|
+
/**
|
|
3073
|
+
*
|
|
3074
|
+
* @export
|
|
3075
|
+
* @interface DeleteSkillCollection200Response
|
|
3076
|
+
*/
|
|
3077
|
+
export interface DeleteSkillCollection200Response {
|
|
3078
|
+
/**
|
|
3079
|
+
*
|
|
3080
|
+
* @type {boolean}
|
|
3081
|
+
* @memberof DeleteSkillCollection200Response
|
|
3082
|
+
*/
|
|
3083
|
+
'success'?: boolean;
|
|
3084
|
+
/**
|
|
3085
|
+
*
|
|
3086
|
+
* @type {string}
|
|
3087
|
+
* @memberof DeleteSkillCollection200Response
|
|
3088
|
+
*/
|
|
3089
|
+
'message'?: string;
|
|
3090
|
+
}
|
|
2955
3091
|
/**
|
|
2956
3092
|
*
|
|
2957
3093
|
* @export
|
|
@@ -3002,25 +3138,6 @@ export interface DeleteTask409Response {
|
|
|
3002
3138
|
*/
|
|
3003
3139
|
'dependentTaskIds'?: Array<string>;
|
|
3004
3140
|
}
|
|
3005
|
-
/**
|
|
3006
|
-
*
|
|
3007
|
-
* @export
|
|
3008
|
-
* @interface DeleteVectorCollection200Response
|
|
3009
|
-
*/
|
|
3010
|
-
export interface DeleteVectorCollection200Response {
|
|
3011
|
-
/**
|
|
3012
|
-
*
|
|
3013
|
-
* @type {boolean}
|
|
3014
|
-
* @memberof DeleteVectorCollection200Response
|
|
3015
|
-
*/
|
|
3016
|
-
'success'?: boolean;
|
|
3017
|
-
/**
|
|
3018
|
-
*
|
|
3019
|
-
* @type {string}
|
|
3020
|
-
* @memberof DeleteVectorCollection200Response
|
|
3021
|
-
*/
|
|
3022
|
-
'message'?: string;
|
|
3023
|
-
}
|
|
3024
3141
|
/**
|
|
3025
3142
|
*
|
|
3026
3143
|
* @export
|
|
@@ -4417,6 +4534,110 @@ export interface GetFile200Response {
|
|
|
4417
4534
|
*/
|
|
4418
4535
|
'createdAt'?: string;
|
|
4419
4536
|
}
|
|
4537
|
+
/**
|
|
4538
|
+
*
|
|
4539
|
+
* @export
|
|
4540
|
+
* @interface GetSkill200Response
|
|
4541
|
+
*/
|
|
4542
|
+
export interface GetSkill200Response {
|
|
4543
|
+
/**
|
|
4544
|
+
*
|
|
4545
|
+
* @type {GetSkill200ResponseSkill}
|
|
4546
|
+
* @memberof GetSkill200Response
|
|
4547
|
+
*/
|
|
4548
|
+
'skill'?: GetSkill200ResponseSkill;
|
|
4549
|
+
}
|
|
4550
|
+
/**
|
|
4551
|
+
*
|
|
4552
|
+
* @export
|
|
4553
|
+
* @interface GetSkill200ResponseSkill
|
|
4554
|
+
*/
|
|
4555
|
+
export interface GetSkill200ResponseSkill {
|
|
4556
|
+
/**
|
|
4557
|
+
*
|
|
4558
|
+
* @type {string}
|
|
4559
|
+
* @memberof GetSkill200ResponseSkill
|
|
4560
|
+
*/
|
|
4561
|
+
'skillId'?: string;
|
|
4562
|
+
/**
|
|
4563
|
+
*
|
|
4564
|
+
* @type {string}
|
|
4565
|
+
* @memberof GetSkill200ResponseSkill
|
|
4566
|
+
*/
|
|
4567
|
+
'name'?: string;
|
|
4568
|
+
/**
|
|
4569
|
+
*
|
|
4570
|
+
* @type {string}
|
|
4571
|
+
* @memberof GetSkill200ResponseSkill
|
|
4572
|
+
*/
|
|
4573
|
+
'description'?: string;
|
|
4574
|
+
/**
|
|
4575
|
+
*
|
|
4576
|
+
* @type {string}
|
|
4577
|
+
* @memberof GetSkill200ResponseSkill
|
|
4578
|
+
*/
|
|
4579
|
+
'content'?: string;
|
|
4580
|
+
/**
|
|
4581
|
+
*
|
|
4582
|
+
* @type {string}
|
|
4583
|
+
* @memberof GetSkill200ResponseSkill
|
|
4584
|
+
*/
|
|
4585
|
+
'triggerCondition'?: string;
|
|
4586
|
+
/**
|
|
4587
|
+
*
|
|
4588
|
+
* @type {Array<string>}
|
|
4589
|
+
* @memberof GetSkill200ResponseSkill
|
|
4590
|
+
*/
|
|
4591
|
+
'tags'?: Array<string>;
|
|
4592
|
+
/**
|
|
4593
|
+
*
|
|
4594
|
+
* @type {object}
|
|
4595
|
+
* @memberof GetSkill200ResponseSkill
|
|
4596
|
+
*/
|
|
4597
|
+
'source'?: object;
|
|
4598
|
+
/**
|
|
4599
|
+
*
|
|
4600
|
+
* @type {Array<string>}
|
|
4601
|
+
* @memberof GetSkill200ResponseSkill
|
|
4602
|
+
*/
|
|
4603
|
+
'requiredTools'?: Array<string>;
|
|
4604
|
+
/**
|
|
4605
|
+
*
|
|
4606
|
+
* @type {object}
|
|
4607
|
+
* @memberof GetSkill200ResponseSkill
|
|
4608
|
+
*/
|
|
4609
|
+
'files'?: object;
|
|
4610
|
+
/**
|
|
4611
|
+
*
|
|
4612
|
+
* @type {string}
|
|
4613
|
+
* @memberof GetSkill200ResponseSkill
|
|
4614
|
+
*/
|
|
4615
|
+
'namespace'?: string;
|
|
4616
|
+
/**
|
|
4617
|
+
*
|
|
4618
|
+
* @type {boolean}
|
|
4619
|
+
* @memberof GetSkill200ResponseSkill
|
|
4620
|
+
*/
|
|
4621
|
+
'disableModelInvocation'?: boolean;
|
|
4622
|
+
/**
|
|
4623
|
+
*
|
|
4624
|
+
* @type {Array<string>}
|
|
4625
|
+
* @memberof GetSkill200ResponseSkill
|
|
4626
|
+
*/
|
|
4627
|
+
'allowedTools'?: Array<string>;
|
|
4628
|
+
/**
|
|
4629
|
+
*
|
|
4630
|
+
* @type {string}
|
|
4631
|
+
* @memberof GetSkill200ResponseSkill
|
|
4632
|
+
*/
|
|
4633
|
+
'installedAt'?: string;
|
|
4634
|
+
/**
|
|
4635
|
+
*
|
|
4636
|
+
* @type {string}
|
|
4637
|
+
* @memberof GetSkill200ResponseSkill
|
|
4638
|
+
*/
|
|
4639
|
+
'updatedAt'?: string;
|
|
4640
|
+
}
|
|
4420
4641
|
/**
|
|
4421
4642
|
*
|
|
4422
4643
|
* @export
|
|
@@ -5138,79 +5359,310 @@ export type ImageGenerationRequestTextToImageParamsControlModeEnum = typeof Imag
|
|
|
5138
5359
|
/**
|
|
5139
5360
|
*
|
|
5140
5361
|
* @export
|
|
5141
|
-
* @interface
|
|
5362
|
+
* @interface ImportSkill201Response
|
|
5142
5363
|
*/
|
|
5143
|
-
export interface
|
|
5144
|
-
/**
|
|
5145
|
-
*
|
|
5146
|
-
* @type {boolean}
|
|
5147
|
-
* @memberof KVItemsCreate200Response
|
|
5148
|
-
*/
|
|
5149
|
-
'success'?: boolean;
|
|
5364
|
+
export interface ImportSkill201Response {
|
|
5150
5365
|
/**
|
|
5151
5366
|
*
|
|
5152
|
-
* @type {
|
|
5153
|
-
* @memberof
|
|
5367
|
+
* @type {object}
|
|
5368
|
+
* @memberof ImportSkill201Response
|
|
5154
5369
|
*/
|
|
5155
|
-
'
|
|
5370
|
+
'skill'?: object;
|
|
5156
5371
|
/**
|
|
5157
5372
|
*
|
|
5158
5373
|
* @type {string}
|
|
5159
|
-
* @memberof
|
|
5374
|
+
* @memberof ImportSkill201Response
|
|
5160
5375
|
*/
|
|
5161
|
-
'
|
|
5376
|
+
'message'?: string;
|
|
5162
5377
|
}
|
|
5163
5378
|
/**
|
|
5164
5379
|
*
|
|
5165
5380
|
* @export
|
|
5166
|
-
* @interface
|
|
5381
|
+
* @interface ImportSkillCollection201Response
|
|
5167
5382
|
*/
|
|
5168
|
-
export interface
|
|
5383
|
+
export interface ImportSkillCollection201Response {
|
|
5169
5384
|
/**
|
|
5170
5385
|
*
|
|
5171
|
-
* @type {
|
|
5172
|
-
* @memberof
|
|
5386
|
+
* @type {string}
|
|
5387
|
+
* @memberof ImportSkillCollection201Response
|
|
5173
5388
|
*/
|
|
5174
|
-
'
|
|
5389
|
+
'namespace'?: string;
|
|
5175
5390
|
/**
|
|
5176
5391
|
*
|
|
5177
|
-
* @type {
|
|
5178
|
-
* @memberof
|
|
5392
|
+
* @type {number}
|
|
5393
|
+
* @memberof ImportSkillCollection201Response
|
|
5179
5394
|
*/
|
|
5180
|
-
'
|
|
5395
|
+
'imported'?: number;
|
|
5396
|
+
/**
|
|
5397
|
+
*
|
|
5398
|
+
* @type {number}
|
|
5399
|
+
* @memberof ImportSkillCollection201Response
|
|
5400
|
+
*/
|
|
5401
|
+
'failed'?: number;
|
|
5402
|
+
/**
|
|
5403
|
+
*
|
|
5404
|
+
* @type {Array<object>}
|
|
5405
|
+
* @memberof ImportSkillCollection201Response
|
|
5406
|
+
*/
|
|
5407
|
+
'skills'?: Array<object>;
|
|
5408
|
+
/**
|
|
5409
|
+
*
|
|
5410
|
+
* @type {Array<object>}
|
|
5411
|
+
* @memberof ImportSkillCollection201Response
|
|
5412
|
+
*/
|
|
5413
|
+
'errors'?: Array<object>;
|
|
5181
5414
|
}
|
|
5182
5415
|
/**
|
|
5183
5416
|
*
|
|
5184
5417
|
* @export
|
|
5185
|
-
* @interface
|
|
5418
|
+
* @interface ImportSkillCollectionRequest
|
|
5186
5419
|
*/
|
|
5187
|
-
export interface
|
|
5420
|
+
export interface ImportSkillCollectionRequest {
|
|
5188
5421
|
/**
|
|
5189
5422
|
*
|
|
5190
5423
|
* @type {string}
|
|
5191
|
-
* @memberof
|
|
5424
|
+
* @memberof ImportSkillCollectionRequest
|
|
5192
5425
|
*/
|
|
5193
|
-
'
|
|
5426
|
+
'namespace': string;
|
|
5194
5427
|
/**
|
|
5195
5428
|
*
|
|
5196
|
-
* @type {
|
|
5197
|
-
* @memberof
|
|
5429
|
+
* @type {ImportSkillCollectionRequestSource}
|
|
5430
|
+
* @memberof ImportSkillCollectionRequest
|
|
5198
5431
|
*/
|
|
5199
|
-
'
|
|
5432
|
+
'source': ImportSkillCollectionRequestSource;
|
|
5433
|
+
/**
|
|
5434
|
+
*
|
|
5435
|
+
* @type {Array<string>}
|
|
5436
|
+
* @memberof ImportSkillCollectionRequest
|
|
5437
|
+
*/
|
|
5438
|
+
'tags'?: Array<string>;
|
|
5439
|
+
/**
|
|
5440
|
+
*
|
|
5441
|
+
* @type {string}
|
|
5442
|
+
* @memberof ImportSkillCollectionRequest
|
|
5443
|
+
*/
|
|
5444
|
+
'installedBy'?: string;
|
|
5200
5445
|
}
|
|
5201
|
-
/**
|
|
5202
|
-
* @type KVItemsShow200ResponseValue
|
|
5203
|
-
* Item value (decoded from JSON if applicable). Returns \'[ENCRYPTED]\' for secret items.
|
|
5204
|
-
* @export
|
|
5205
|
-
*/
|
|
5206
|
-
export type KVItemsShow200ResponseValue = object | string;
|
|
5207
|
-
|
|
5208
5446
|
/**
|
|
5209
5447
|
*
|
|
5210
5448
|
* @export
|
|
5211
|
-
* @interface
|
|
5449
|
+
* @interface ImportSkillCollectionRequestSource
|
|
5212
5450
|
*/
|
|
5213
|
-
export interface
|
|
5451
|
+
export interface ImportSkillCollectionRequestSource {
|
|
5452
|
+
/**
|
|
5453
|
+
*
|
|
5454
|
+
* @type {string}
|
|
5455
|
+
* @memberof ImportSkillCollectionRequestSource
|
|
5456
|
+
*/
|
|
5457
|
+
'type': ImportSkillCollectionRequestSourceTypeEnum;
|
|
5458
|
+
/**
|
|
5459
|
+
*
|
|
5460
|
+
* @type {string}
|
|
5461
|
+
* @memberof ImportSkillCollectionRequestSource
|
|
5462
|
+
*/
|
|
5463
|
+
'repo': string;
|
|
5464
|
+
/**
|
|
5465
|
+
*
|
|
5466
|
+
* @type {string}
|
|
5467
|
+
* @memberof ImportSkillCollectionRequestSource
|
|
5468
|
+
*/
|
|
5469
|
+
'path'?: string;
|
|
5470
|
+
/**
|
|
5471
|
+
*
|
|
5472
|
+
* @type {string}
|
|
5473
|
+
* @memberof ImportSkillCollectionRequestSource
|
|
5474
|
+
*/
|
|
5475
|
+
'version'?: string;
|
|
5476
|
+
}
|
|
5477
|
+
|
|
5478
|
+
export const ImportSkillCollectionRequestSourceTypeEnum = {
|
|
5479
|
+
Github: 'github'
|
|
5480
|
+
} as const;
|
|
5481
|
+
|
|
5482
|
+
export type ImportSkillCollectionRequestSourceTypeEnum = typeof ImportSkillCollectionRequestSourceTypeEnum[keyof typeof ImportSkillCollectionRequestSourceTypeEnum];
|
|
5483
|
+
|
|
5484
|
+
/**
|
|
5485
|
+
*
|
|
5486
|
+
* @export
|
|
5487
|
+
* @interface ImportSkillRequest
|
|
5488
|
+
*/
|
|
5489
|
+
export interface ImportSkillRequest {
|
|
5490
|
+
/**
|
|
5491
|
+
*
|
|
5492
|
+
* @type {ImportSkillRequestSource}
|
|
5493
|
+
* @memberof ImportSkillRequest
|
|
5494
|
+
*/
|
|
5495
|
+
'source': ImportSkillRequestSource;
|
|
5496
|
+
/**
|
|
5497
|
+
*
|
|
5498
|
+
* @type {string}
|
|
5499
|
+
* @memberof ImportSkillRequest
|
|
5500
|
+
*/
|
|
5501
|
+
'name'?: string;
|
|
5502
|
+
/**
|
|
5503
|
+
*
|
|
5504
|
+
* @type {string}
|
|
5505
|
+
* @memberof ImportSkillRequest
|
|
5506
|
+
*/
|
|
5507
|
+
'description'?: string;
|
|
5508
|
+
/**
|
|
5509
|
+
*
|
|
5510
|
+
* @type {Array<string>}
|
|
5511
|
+
* @memberof ImportSkillRequest
|
|
5512
|
+
*/
|
|
5513
|
+
'tags'?: Array<string>;
|
|
5514
|
+
/**
|
|
5515
|
+
*
|
|
5516
|
+
* @type {string}
|
|
5517
|
+
* @memberof ImportSkillRequest
|
|
5518
|
+
*/
|
|
5519
|
+
'triggerCondition'?: string;
|
|
5520
|
+
/**
|
|
5521
|
+
*
|
|
5522
|
+
* @type {Array<string>}
|
|
5523
|
+
* @memberof ImportSkillRequest
|
|
5524
|
+
*/
|
|
5525
|
+
'requiredTools'?: Array<string>;
|
|
5526
|
+
/**
|
|
5527
|
+
*
|
|
5528
|
+
* @type {boolean}
|
|
5529
|
+
* @memberof ImportSkillRequest
|
|
5530
|
+
*/
|
|
5531
|
+
'disableModelInvocation'?: boolean;
|
|
5532
|
+
/**
|
|
5533
|
+
*
|
|
5534
|
+
* @type {Array<string>}
|
|
5535
|
+
* @memberof ImportSkillRequest
|
|
5536
|
+
*/
|
|
5537
|
+
'allowedTools'?: Array<string>;
|
|
5538
|
+
/**
|
|
5539
|
+
*
|
|
5540
|
+
* @type {string}
|
|
5541
|
+
* @memberof ImportSkillRequest
|
|
5542
|
+
*/
|
|
5543
|
+
'installedBy'?: string;
|
|
5544
|
+
}
|
|
5545
|
+
/**
|
|
5546
|
+
*
|
|
5547
|
+
* @export
|
|
5548
|
+
* @interface ImportSkillRequestSource
|
|
5549
|
+
*/
|
|
5550
|
+
export interface ImportSkillRequestSource {
|
|
5551
|
+
/**
|
|
5552
|
+
*
|
|
5553
|
+
* @type {string}
|
|
5554
|
+
* @memberof ImportSkillRequestSource
|
|
5555
|
+
*/
|
|
5556
|
+
'type': ImportSkillRequestSourceTypeEnum;
|
|
5557
|
+
/**
|
|
5558
|
+
*
|
|
5559
|
+
* @type {string}
|
|
5560
|
+
* @memberof ImportSkillRequestSource
|
|
5561
|
+
*/
|
|
5562
|
+
'url'?: string;
|
|
5563
|
+
/**
|
|
5564
|
+
*
|
|
5565
|
+
* @type {string}
|
|
5566
|
+
* @memberof ImportSkillRequestSource
|
|
5567
|
+
*/
|
|
5568
|
+
'repo'?: string;
|
|
5569
|
+
/**
|
|
5570
|
+
*
|
|
5571
|
+
* @type {string}
|
|
5572
|
+
* @memberof ImportSkillRequestSource
|
|
5573
|
+
*/
|
|
5574
|
+
'path'?: string;
|
|
5575
|
+
/**
|
|
5576
|
+
*
|
|
5577
|
+
* @type {string}
|
|
5578
|
+
* @memberof ImportSkillRequestSource
|
|
5579
|
+
*/
|
|
5580
|
+
'version'?: string;
|
|
5581
|
+
}
|
|
5582
|
+
|
|
5583
|
+
export const ImportSkillRequestSourceTypeEnum = {
|
|
5584
|
+
SkillsSh: 'skills.sh',
|
|
5585
|
+
Github: 'github'
|
|
5586
|
+
} as const;
|
|
5587
|
+
|
|
5588
|
+
export type ImportSkillRequestSourceTypeEnum = typeof ImportSkillRequestSourceTypeEnum[keyof typeof ImportSkillRequestSourceTypeEnum];
|
|
5589
|
+
|
|
5590
|
+
/**
|
|
5591
|
+
*
|
|
5592
|
+
* @export
|
|
5593
|
+
* @interface KVItemsCreate200Response
|
|
5594
|
+
*/
|
|
5595
|
+
export interface KVItemsCreate200Response {
|
|
5596
|
+
/**
|
|
5597
|
+
*
|
|
5598
|
+
* @type {boolean}
|
|
5599
|
+
* @memberof KVItemsCreate200Response
|
|
5600
|
+
*/
|
|
5601
|
+
'success'?: boolean;
|
|
5602
|
+
/**
|
|
5603
|
+
*
|
|
5604
|
+
* @type {string}
|
|
5605
|
+
* @memberof KVItemsCreate200Response
|
|
5606
|
+
*/
|
|
5607
|
+
'key'?: string;
|
|
5608
|
+
/**
|
|
5609
|
+
*
|
|
5610
|
+
* @type {string}
|
|
5611
|
+
* @memberof KVItemsCreate200Response
|
|
5612
|
+
*/
|
|
5613
|
+
'value'?: string;
|
|
5614
|
+
}
|
|
5615
|
+
/**
|
|
5616
|
+
*
|
|
5617
|
+
* @export
|
|
5618
|
+
* @interface KVItemsDelete200Response
|
|
5619
|
+
*/
|
|
5620
|
+
export interface KVItemsDelete200Response {
|
|
5621
|
+
/**
|
|
5622
|
+
*
|
|
5623
|
+
* @type {boolean}
|
|
5624
|
+
* @memberof KVItemsDelete200Response
|
|
5625
|
+
*/
|
|
5626
|
+
'success'?: boolean;
|
|
5627
|
+
/**
|
|
5628
|
+
*
|
|
5629
|
+
* @type {string}
|
|
5630
|
+
* @memberof KVItemsDelete200Response
|
|
5631
|
+
*/
|
|
5632
|
+
'key'?: string;
|
|
5633
|
+
}
|
|
5634
|
+
/**
|
|
5635
|
+
*
|
|
5636
|
+
* @export
|
|
5637
|
+
* @interface KVItemsShow200Response
|
|
5638
|
+
*/
|
|
5639
|
+
export interface KVItemsShow200Response {
|
|
5640
|
+
/**
|
|
5641
|
+
*
|
|
5642
|
+
* @type {string}
|
|
5643
|
+
* @memberof KVItemsShow200Response
|
|
5644
|
+
*/
|
|
5645
|
+
'key'?: string;
|
|
5646
|
+
/**
|
|
5647
|
+
*
|
|
5648
|
+
* @type {KVItemsShow200ResponseValue}
|
|
5649
|
+
* @memberof KVItemsShow200Response
|
|
5650
|
+
*/
|
|
5651
|
+
'value'?: KVItemsShow200ResponseValue;
|
|
5652
|
+
}
|
|
5653
|
+
/**
|
|
5654
|
+
* @type KVItemsShow200ResponseValue
|
|
5655
|
+
* Item value (decoded from JSON if applicable). Returns \'[ENCRYPTED]\' for secret items.
|
|
5656
|
+
* @export
|
|
5657
|
+
*/
|
|
5658
|
+
export type KVItemsShow200ResponseValue = object | string;
|
|
5659
|
+
|
|
5660
|
+
/**
|
|
5661
|
+
*
|
|
5662
|
+
* @export
|
|
5663
|
+
* @interface KVLinkToProject200Response
|
|
5664
|
+
*/
|
|
5665
|
+
export interface KVLinkToProject200Response {
|
|
5214
5666
|
/**
|
|
5215
5667
|
*
|
|
5216
5668
|
* @type {boolean}
|
|
@@ -5972,6 +6424,124 @@ export interface ListOrchestrations200Response {
|
|
|
5972
6424
|
*/
|
|
5973
6425
|
'nextCursor'?: string | null;
|
|
5974
6426
|
}
|
|
6427
|
+
/**
|
|
6428
|
+
*
|
|
6429
|
+
* @export
|
|
6430
|
+
* @interface ListSkillCollections200Response
|
|
6431
|
+
*/
|
|
6432
|
+
export interface ListSkillCollections200Response {
|
|
6433
|
+
/**
|
|
6434
|
+
*
|
|
6435
|
+
* @type {Array<ListSkillCollections200ResponseCollectionsInner>}
|
|
6436
|
+
* @memberof ListSkillCollections200Response
|
|
6437
|
+
*/
|
|
6438
|
+
'collections'?: Array<ListSkillCollections200ResponseCollectionsInner>;
|
|
6439
|
+
}
|
|
6440
|
+
/**
|
|
6441
|
+
*
|
|
6442
|
+
* @export
|
|
6443
|
+
* @interface ListSkillCollections200ResponseCollectionsInner
|
|
6444
|
+
*/
|
|
6445
|
+
export interface ListSkillCollections200ResponseCollectionsInner {
|
|
6446
|
+
/**
|
|
6447
|
+
*
|
|
6448
|
+
* @type {string}
|
|
6449
|
+
* @memberof ListSkillCollections200ResponseCollectionsInner
|
|
6450
|
+
*/
|
|
6451
|
+
'namespace'?: string;
|
|
6452
|
+
/**
|
|
6453
|
+
*
|
|
6454
|
+
* @type {number}
|
|
6455
|
+
* @memberof ListSkillCollections200ResponseCollectionsInner
|
|
6456
|
+
*/
|
|
6457
|
+
'count'?: number;
|
|
6458
|
+
/**
|
|
6459
|
+
*
|
|
6460
|
+
* @type {Array<string>}
|
|
6461
|
+
* @memberof ListSkillCollections200ResponseCollectionsInner
|
|
6462
|
+
*/
|
|
6463
|
+
'skills'?: Array<string>;
|
|
6464
|
+
}
|
|
6465
|
+
/**
|
|
6466
|
+
*
|
|
6467
|
+
* @export
|
|
6468
|
+
* @interface ListSkills200Response
|
|
6469
|
+
*/
|
|
6470
|
+
export interface ListSkills200Response {
|
|
6471
|
+
/**
|
|
6472
|
+
*
|
|
6473
|
+
* @type {Array<ListSkills200ResponseSkillsInner>}
|
|
6474
|
+
* @memberof ListSkills200Response
|
|
6475
|
+
*/
|
|
6476
|
+
'skills'?: Array<ListSkills200ResponseSkillsInner>;
|
|
6477
|
+
/**
|
|
6478
|
+
*
|
|
6479
|
+
* @type {number}
|
|
6480
|
+
* @memberof ListSkills200Response
|
|
6481
|
+
*/
|
|
6482
|
+
'count'?: number;
|
|
6483
|
+
}
|
|
6484
|
+
/**
|
|
6485
|
+
*
|
|
6486
|
+
* @export
|
|
6487
|
+
* @interface ListSkills200ResponseSkillsInner
|
|
6488
|
+
*/
|
|
6489
|
+
export interface ListSkills200ResponseSkillsInner {
|
|
6490
|
+
/**
|
|
6491
|
+
*
|
|
6492
|
+
* @type {string}
|
|
6493
|
+
* @memberof ListSkills200ResponseSkillsInner
|
|
6494
|
+
*/
|
|
6495
|
+
'skillId'?: string;
|
|
6496
|
+
/**
|
|
6497
|
+
*
|
|
6498
|
+
* @type {string}
|
|
6499
|
+
* @memberof ListSkills200ResponseSkillsInner
|
|
6500
|
+
*/
|
|
6501
|
+
'name'?: string;
|
|
6502
|
+
/**
|
|
6503
|
+
*
|
|
6504
|
+
* @type {string}
|
|
6505
|
+
* @memberof ListSkills200ResponseSkillsInner
|
|
6506
|
+
*/
|
|
6507
|
+
'description'?: string;
|
|
6508
|
+
/**
|
|
6509
|
+
*
|
|
6510
|
+
* @type {Array<string>}
|
|
6511
|
+
* @memberof ListSkills200ResponseSkillsInner
|
|
6512
|
+
*/
|
|
6513
|
+
'tags'?: Array<string>;
|
|
6514
|
+
/**
|
|
6515
|
+
*
|
|
6516
|
+
* @type {object}
|
|
6517
|
+
* @memberof ListSkills200ResponseSkillsInner
|
|
6518
|
+
*/
|
|
6519
|
+
'source'?: object;
|
|
6520
|
+
/**
|
|
6521
|
+
*
|
|
6522
|
+
* @type {string}
|
|
6523
|
+
* @memberof ListSkills200ResponseSkillsInner
|
|
6524
|
+
*/
|
|
6525
|
+
'triggerCondition'?: string;
|
|
6526
|
+
/**
|
|
6527
|
+
*
|
|
6528
|
+
* @type {string}
|
|
6529
|
+
* @memberof ListSkills200ResponseSkillsInner
|
|
6530
|
+
*/
|
|
6531
|
+
'namespace'?: string;
|
|
6532
|
+
/**
|
|
6533
|
+
*
|
|
6534
|
+
* @type {string}
|
|
6535
|
+
* @memberof ListSkills200ResponseSkillsInner
|
|
6536
|
+
*/
|
|
6537
|
+
'installedAt'?: string;
|
|
6538
|
+
/**
|
|
6539
|
+
*
|
|
6540
|
+
* @type {string}
|
|
6541
|
+
* @memberof ListSkills200ResponseSkillsInner
|
|
6542
|
+
*/
|
|
6543
|
+
'updatedAt'?: string;
|
|
6544
|
+
}
|
|
5975
6545
|
/**
|
|
5976
6546
|
*
|
|
5977
6547
|
* @export
|
|
@@ -6819,7 +7389,50 @@ export interface SyncOperation {
|
|
|
6819
7389
|
/**
|
|
6820
7390
|
*
|
|
6821
7391
|
* @export
|
|
6822
|
-
* @interface
|
|
7392
|
+
* @interface SyncSkillCollection200Response
|
|
7393
|
+
*/
|
|
7394
|
+
export interface SyncSkillCollection200Response {
|
|
7395
|
+
/**
|
|
7396
|
+
*
|
|
7397
|
+
* @type {string}
|
|
7398
|
+
* @memberof SyncSkillCollection200Response
|
|
7399
|
+
*/
|
|
7400
|
+
'namespace'?: string;
|
|
7401
|
+
/**
|
|
7402
|
+
*
|
|
7403
|
+
* @type {number}
|
|
7404
|
+
* @memberof SyncSkillCollection200Response
|
|
7405
|
+
*/
|
|
7406
|
+
'synced'?: number;
|
|
7407
|
+
/**
|
|
7408
|
+
*
|
|
7409
|
+
* @type {number}
|
|
7410
|
+
* @memberof SyncSkillCollection200Response
|
|
7411
|
+
*/
|
|
7412
|
+
'created'?: number;
|
|
7413
|
+
/**
|
|
7414
|
+
*
|
|
7415
|
+
* @type {number}
|
|
7416
|
+
* @memberof SyncSkillCollection200Response
|
|
7417
|
+
*/
|
|
7418
|
+
'failed'?: number;
|
|
7419
|
+
/**
|
|
7420
|
+
*
|
|
7421
|
+
* @type {Array<string>}
|
|
7422
|
+
* @memberof SyncSkillCollection200Response
|
|
7423
|
+
*/
|
|
7424
|
+
'removedFromSource'?: Array<string>;
|
|
7425
|
+
/**
|
|
7426
|
+
*
|
|
7427
|
+
* @type {Array<object>}
|
|
7428
|
+
* @memberof SyncSkillCollection200Response
|
|
7429
|
+
*/
|
|
7430
|
+
'skills'?: Array<object>;
|
|
7431
|
+
}
|
|
7432
|
+
/**
|
|
7433
|
+
*
|
|
7434
|
+
* @export
|
|
7435
|
+
* @interface SyncToEnvironmentRequest
|
|
6823
7436
|
*/
|
|
6824
7437
|
export interface SyncToEnvironmentRequest {
|
|
6825
7438
|
/**
|
|
@@ -7194,6 +7807,104 @@ export interface UpdateEnvironmentVariableRequest {
|
|
|
7194
7807
|
*/
|
|
7195
7808
|
'value'?: string;
|
|
7196
7809
|
}
|
|
7810
|
+
/**
|
|
7811
|
+
*
|
|
7812
|
+
* @export
|
|
7813
|
+
* @interface UpdateSkill200Response
|
|
7814
|
+
*/
|
|
7815
|
+
export interface UpdateSkill200Response {
|
|
7816
|
+
/**
|
|
7817
|
+
*
|
|
7818
|
+
* @type {boolean}
|
|
7819
|
+
* @memberof UpdateSkill200Response
|
|
7820
|
+
*/
|
|
7821
|
+
'success'?: boolean;
|
|
7822
|
+
/**
|
|
7823
|
+
*
|
|
7824
|
+
* @type {object}
|
|
7825
|
+
* @memberof UpdateSkill200Response
|
|
7826
|
+
*/
|
|
7827
|
+
'skill'?: object;
|
|
7828
|
+
/**
|
|
7829
|
+
*
|
|
7830
|
+
* @type {string}
|
|
7831
|
+
* @memberof UpdateSkill200Response
|
|
7832
|
+
*/
|
|
7833
|
+
'message'?: string;
|
|
7834
|
+
}
|
|
7835
|
+
/**
|
|
7836
|
+
*
|
|
7837
|
+
* @export
|
|
7838
|
+
* @interface UpdateSkillRequest
|
|
7839
|
+
*/
|
|
7840
|
+
export interface UpdateSkillRequest {
|
|
7841
|
+
/**
|
|
7842
|
+
*
|
|
7843
|
+
* @type {string}
|
|
7844
|
+
* @memberof UpdateSkillRequest
|
|
7845
|
+
*/
|
|
7846
|
+
'name'?: string;
|
|
7847
|
+
/**
|
|
7848
|
+
*
|
|
7849
|
+
* @type {string}
|
|
7850
|
+
* @memberof UpdateSkillRequest
|
|
7851
|
+
*/
|
|
7852
|
+
'description'?: string;
|
|
7853
|
+
/**
|
|
7854
|
+
*
|
|
7855
|
+
* @type {string}
|
|
7856
|
+
* @memberof UpdateSkillRequest
|
|
7857
|
+
*/
|
|
7858
|
+
'content'?: string;
|
|
7859
|
+
/**
|
|
7860
|
+
*
|
|
7861
|
+
* @type {string}
|
|
7862
|
+
* @memberof UpdateSkillRequest
|
|
7863
|
+
*/
|
|
7864
|
+
'triggerCondition'?: string;
|
|
7865
|
+
/**
|
|
7866
|
+
*
|
|
7867
|
+
* @type {Array<string>}
|
|
7868
|
+
* @memberof UpdateSkillRequest
|
|
7869
|
+
*/
|
|
7870
|
+
'tags'?: Array<string>;
|
|
7871
|
+
/**
|
|
7872
|
+
*
|
|
7873
|
+
* @type {Array<string>}
|
|
7874
|
+
* @memberof UpdateSkillRequest
|
|
7875
|
+
*/
|
|
7876
|
+
'requiredTools'?: Array<string>;
|
|
7877
|
+
/**
|
|
7878
|
+
*
|
|
7879
|
+
* @type {object}
|
|
7880
|
+
* @memberof UpdateSkillRequest
|
|
7881
|
+
*/
|
|
7882
|
+
'source'?: object;
|
|
7883
|
+
/**
|
|
7884
|
+
*
|
|
7885
|
+
* @type {object}
|
|
7886
|
+
* @memberof UpdateSkillRequest
|
|
7887
|
+
*/
|
|
7888
|
+
'files'?: object;
|
|
7889
|
+
/**
|
|
7890
|
+
*
|
|
7891
|
+
* @type {boolean}
|
|
7892
|
+
* @memberof UpdateSkillRequest
|
|
7893
|
+
*/
|
|
7894
|
+
'disableModelInvocation'?: boolean;
|
|
7895
|
+
/**
|
|
7896
|
+
*
|
|
7897
|
+
* @type {Array<string>}
|
|
7898
|
+
* @memberof UpdateSkillRequest
|
|
7899
|
+
*/
|
|
7900
|
+
'allowedTools'?: Array<string>;
|
|
7901
|
+
/**
|
|
7902
|
+
*
|
|
7903
|
+
* @type {string}
|
|
7904
|
+
* @memberof UpdateSkillRequest
|
|
7905
|
+
*/
|
|
7906
|
+
'namespace'?: string;
|
|
7907
|
+
}
|
|
7197
7908
|
/**
|
|
7198
7909
|
*
|
|
7199
7910
|
* @export
|
|
@@ -16388,194 +17099,1138 @@ export const AISessionsApiFp = function(configuration?: Configuration) {
|
|
|
16388
17099
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16389
17100
|
},
|
|
16390
17101
|
/**
|
|
16391
|
-
* Updates session with new conversation messages and tracks token usage. Appends new messages to conversation history and updates session stats. * * **Typical Flow:** * 1. Get session to retrieve conversation history * 2. Call AI inference with full message history * 3. Update session with new user + assistant messages
|
|
16392
|
-
* @summary Update Session
|
|
17102
|
+
* Updates session with new conversation messages and tracks token usage. Appends new messages to conversation history and updates session stats. * * **Typical Flow:** * 1. Get session to retrieve conversation history * 2. Call AI inference with full message history * 3. Update session with new user + assistant messages
|
|
17103
|
+
* @summary Update Session
|
|
17104
|
+
* @param {string} organisation The organisation ID
|
|
17105
|
+
* @param {string} sessionId The session ID
|
|
17106
|
+
* @param {UpdateAISessionRequest} updateAISessionRequest
|
|
17107
|
+
* @param {*} [options] Override http request option.
|
|
17108
|
+
* @throws {RequiredError}
|
|
17109
|
+
*/
|
|
17110
|
+
async updateAISession(organisation: string, sessionId: string, updateAISessionRequest: UpdateAISessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateAISession200Response>> {
|
|
17111
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAISession(organisation, sessionId, updateAISessionRequest, options);
|
|
17112
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17113
|
+
const localVarOperationServerBasePath = operationServerMap['AISessionsApi.updateAISession']?.[localVarOperationServerIndex]?.url;
|
|
17114
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17115
|
+
},
|
|
17116
|
+
}
|
|
17117
|
+
};
|
|
17118
|
+
|
|
17119
|
+
/**
|
|
17120
|
+
* AISessionsApi - factory interface
|
|
17121
|
+
* @export
|
|
17122
|
+
*/
|
|
17123
|
+
export const AISessionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
17124
|
+
const localVarFp = AISessionsApiFp(configuration)
|
|
17125
|
+
return {
|
|
17126
|
+
/**
|
|
17127
|
+
* Creates an AI session with automatic expiration (60 min default, 24h max). Sessions are isolated by organization. Use userId to identify the user creating the session. Use sessionGroup for logical grouping. Use metadata for additional custom data. Filter sessions by userId or sessionGroup when listing.
|
|
17128
|
+
* @summary Create a new chat session with multi-tenant isolation
|
|
17129
|
+
* @param {string} organisation The organisation ID
|
|
17130
|
+
* @param {CreateAISessionRequest} createAISessionRequest
|
|
17131
|
+
* @param {*} [options] Override http request option.
|
|
17132
|
+
* @throws {RequiredError}
|
|
17133
|
+
*/
|
|
17134
|
+
createAISession(organisation: string, createAISessionRequest: CreateAISessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAISession201Response> {
|
|
17135
|
+
return localVarFp.createAISession(organisation, createAISessionRequest, options).then((request) => request(axios, basePath));
|
|
17136
|
+
},
|
|
17137
|
+
/**
|
|
17138
|
+
*
|
|
17139
|
+
* @summary Delete a chat session
|
|
17140
|
+
* @param {string} organisation The organisation ID
|
|
17141
|
+
* @param {string} sessionId The session ID
|
|
17142
|
+
* @param {*} [options] Override http request option.
|
|
17143
|
+
* @throws {RequiredError}
|
|
17144
|
+
*/
|
|
17145
|
+
deleteAISession(organisation: string, sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise<DeleteAISession200Response> {
|
|
17146
|
+
return localVarFp.deleteAISession(organisation, sessionId, options).then((request) => request(axios, basePath));
|
|
17147
|
+
},
|
|
17148
|
+
/**
|
|
17149
|
+
* Extends the expiration time of an active session. Useful for keeping long-running conversations alive.
|
|
17150
|
+
* @summary Extend Session Expiration
|
|
17151
|
+
* @param {string} organisation The organisation ID
|
|
17152
|
+
* @param {string} sessionId The session ID
|
|
17153
|
+
* @param {ExtendAISessionRequest} [extendAISessionRequest]
|
|
17154
|
+
* @param {*} [options] Override http request option.
|
|
17155
|
+
* @throws {RequiredError}
|
|
17156
|
+
*/
|
|
17157
|
+
extendAISession(organisation: string, sessionId: string, extendAISessionRequest?: ExtendAISessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExtendAISession200Response> {
|
|
17158
|
+
return localVarFp.extendAISession(organisation, sessionId, extendAISessionRequest, options).then((request) => request(axios, basePath));
|
|
17159
|
+
},
|
|
17160
|
+
/**
|
|
17161
|
+
*
|
|
17162
|
+
* @summary Get a specific chat session
|
|
17163
|
+
* @param {string} organisation The organisation ID
|
|
17164
|
+
* @param {string} sessionId The session ID
|
|
17165
|
+
* @param {*} [options] Override http request option.
|
|
17166
|
+
* @throws {RequiredError}
|
|
17167
|
+
*/
|
|
17168
|
+
getAISession(organisation: string, sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetAISession200Response> {
|
|
17169
|
+
return localVarFp.getAISession(organisation, sessionId, options).then((request) => request(axios, basePath));
|
|
17170
|
+
},
|
|
17171
|
+
/**
|
|
17172
|
+
* Lists active sessions for an organization with flexible filtering options. * * **Query Combinations:** * 1. By Organization (default): Returns all sessions in the organization * 2. By Organization + Group: `?sessionGroup=drupal-prod` - Sessions in a specific group * 3. By User: `?userId=user-123` - All sessions for a user * 4. By User + Group: `?userId=user-123&sessionGroup=drupal-prod` - User\'s sessions in a specific group * * **Use Cases:** * - List user\'s conversations in a specific app/environment * - Admin view of all sessions in a customer/tenant group * - User profile showing all AI conversations across apps
|
|
17173
|
+
* @summary List chat sessions with multi-tenant filtering
|
|
17174
|
+
* @param {string} organisation The organisation ID
|
|
17175
|
+
* @param {string} [userId] Filter sessions by user ID
|
|
17176
|
+
* @param {string} [sessionGroup] Filter by session group. Returns only sessions matching the specified group.
|
|
17177
|
+
* @param {number} [limit] Maximum number of sessions to return (default 50, max 100)
|
|
17178
|
+
* @param {number} [offset] Offset for pagination
|
|
17179
|
+
* @param {string} [model] Filter by model ID
|
|
17180
|
+
* @param {*} [options] Override http request option.
|
|
17181
|
+
* @throws {RequiredError}
|
|
17182
|
+
*/
|
|
17183
|
+
listAISessions(organisation: string, userId?: string, sessionGroup?: string, limit?: number, offset?: number, model?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ListAISessions200ResponseInner>> {
|
|
17184
|
+
return localVarFp.listAISessions(organisation, userId, sessionGroup, limit, offset, model, options).then((request) => request(axios, basePath));
|
|
17185
|
+
},
|
|
17186
|
+
/**
|
|
17187
|
+
* Updates session with new conversation messages and tracks token usage. Appends new messages to conversation history and updates session stats. * * **Typical Flow:** * 1. Get session to retrieve conversation history * 2. Call AI inference with full message history * 3. Update session with new user + assistant messages
|
|
17188
|
+
* @summary Update Session
|
|
17189
|
+
* @param {string} organisation The organisation ID
|
|
17190
|
+
* @param {string} sessionId The session ID
|
|
17191
|
+
* @param {UpdateAISessionRequest} updateAISessionRequest
|
|
17192
|
+
* @param {*} [options] Override http request option.
|
|
17193
|
+
* @throws {RequiredError}
|
|
17194
|
+
*/
|
|
17195
|
+
updateAISession(organisation: string, sessionId: string, updateAISessionRequest: UpdateAISessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateAISession200Response> {
|
|
17196
|
+
return localVarFp.updateAISession(organisation, sessionId, updateAISessionRequest, options).then((request) => request(axios, basePath));
|
|
17197
|
+
},
|
|
17198
|
+
};
|
|
17199
|
+
};
|
|
17200
|
+
|
|
17201
|
+
/**
|
|
17202
|
+
* AISessionsApi - object-oriented interface
|
|
17203
|
+
* @export
|
|
17204
|
+
* @class AISessionsApi
|
|
17205
|
+
* @extends {BaseAPI}
|
|
17206
|
+
*/
|
|
17207
|
+
export class AISessionsApi extends BaseAPI {
|
|
17208
|
+
/**
|
|
17209
|
+
* Creates an AI session with automatic expiration (60 min default, 24h max). Sessions are isolated by organization. Use userId to identify the user creating the session. Use sessionGroup for logical grouping. Use metadata for additional custom data. Filter sessions by userId or sessionGroup when listing.
|
|
17210
|
+
* @summary Create a new chat session with multi-tenant isolation
|
|
17211
|
+
* @param {string} organisation The organisation ID
|
|
17212
|
+
* @param {CreateAISessionRequest} createAISessionRequest
|
|
17213
|
+
* @param {*} [options] Override http request option.
|
|
17214
|
+
* @throws {RequiredError}
|
|
17215
|
+
* @memberof AISessionsApi
|
|
17216
|
+
*/
|
|
17217
|
+
public createAISession(organisation: string, createAISessionRequest: CreateAISessionRequest, options?: RawAxiosRequestConfig) {
|
|
17218
|
+
return AISessionsApiFp(this.configuration).createAISession(organisation, createAISessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17219
|
+
}
|
|
17220
|
+
|
|
17221
|
+
/**
|
|
17222
|
+
*
|
|
17223
|
+
* @summary Delete a chat session
|
|
17224
|
+
* @param {string} organisation The organisation ID
|
|
17225
|
+
* @param {string} sessionId The session ID
|
|
17226
|
+
* @param {*} [options] Override http request option.
|
|
17227
|
+
* @throws {RequiredError}
|
|
17228
|
+
* @memberof AISessionsApi
|
|
17229
|
+
*/
|
|
17230
|
+
public deleteAISession(organisation: string, sessionId: string, options?: RawAxiosRequestConfig) {
|
|
17231
|
+
return AISessionsApiFp(this.configuration).deleteAISession(organisation, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
17232
|
+
}
|
|
17233
|
+
|
|
17234
|
+
/**
|
|
17235
|
+
* Extends the expiration time of an active session. Useful for keeping long-running conversations alive.
|
|
17236
|
+
* @summary Extend Session Expiration
|
|
17237
|
+
* @param {string} organisation The organisation ID
|
|
17238
|
+
* @param {string} sessionId The session ID
|
|
17239
|
+
* @param {ExtendAISessionRequest} [extendAISessionRequest]
|
|
17240
|
+
* @param {*} [options] Override http request option.
|
|
17241
|
+
* @throws {RequiredError}
|
|
17242
|
+
* @memberof AISessionsApi
|
|
17243
|
+
*/
|
|
17244
|
+
public extendAISession(organisation: string, sessionId: string, extendAISessionRequest?: ExtendAISessionRequest, options?: RawAxiosRequestConfig) {
|
|
17245
|
+
return AISessionsApiFp(this.configuration).extendAISession(organisation, sessionId, extendAISessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17246
|
+
}
|
|
17247
|
+
|
|
17248
|
+
/**
|
|
17249
|
+
*
|
|
17250
|
+
* @summary Get a specific chat session
|
|
17251
|
+
* @param {string} organisation The organisation ID
|
|
17252
|
+
* @param {string} sessionId The session ID
|
|
17253
|
+
* @param {*} [options] Override http request option.
|
|
17254
|
+
* @throws {RequiredError}
|
|
17255
|
+
* @memberof AISessionsApi
|
|
17256
|
+
*/
|
|
17257
|
+
public getAISession(organisation: string, sessionId: string, options?: RawAxiosRequestConfig) {
|
|
17258
|
+
return AISessionsApiFp(this.configuration).getAISession(organisation, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
17259
|
+
}
|
|
17260
|
+
|
|
17261
|
+
/**
|
|
17262
|
+
* Lists active sessions for an organization with flexible filtering options. * * **Query Combinations:** * 1. By Organization (default): Returns all sessions in the organization * 2. By Organization + Group: `?sessionGroup=drupal-prod` - Sessions in a specific group * 3. By User: `?userId=user-123` - All sessions for a user * 4. By User + Group: `?userId=user-123&sessionGroup=drupal-prod` - User\'s sessions in a specific group * * **Use Cases:** * - List user\'s conversations in a specific app/environment * - Admin view of all sessions in a customer/tenant group * - User profile showing all AI conversations across apps
|
|
17263
|
+
* @summary List chat sessions with multi-tenant filtering
|
|
17264
|
+
* @param {string} organisation The organisation ID
|
|
17265
|
+
* @param {string} [userId] Filter sessions by user ID
|
|
17266
|
+
* @param {string} [sessionGroup] Filter by session group. Returns only sessions matching the specified group.
|
|
17267
|
+
* @param {number} [limit] Maximum number of sessions to return (default 50, max 100)
|
|
17268
|
+
* @param {number} [offset] Offset for pagination
|
|
17269
|
+
* @param {string} [model] Filter by model ID
|
|
17270
|
+
* @param {*} [options] Override http request option.
|
|
17271
|
+
* @throws {RequiredError}
|
|
17272
|
+
* @memberof AISessionsApi
|
|
17273
|
+
*/
|
|
17274
|
+
public listAISessions(organisation: string, userId?: string, sessionGroup?: string, limit?: number, offset?: number, model?: string, options?: RawAxiosRequestConfig) {
|
|
17275
|
+
return AISessionsApiFp(this.configuration).listAISessions(organisation, userId, sessionGroup, limit, offset, model, options).then((request) => request(this.axios, this.basePath));
|
|
17276
|
+
}
|
|
17277
|
+
|
|
17278
|
+
/**
|
|
17279
|
+
* Updates session with new conversation messages and tracks token usage. Appends new messages to conversation history and updates session stats. * * **Typical Flow:** * 1. Get session to retrieve conversation history * 2. Call AI inference with full message history * 3. Update session with new user + assistant messages
|
|
17280
|
+
* @summary Update Session
|
|
17281
|
+
* @param {string} organisation The organisation ID
|
|
17282
|
+
* @param {string} sessionId The session ID
|
|
17283
|
+
* @param {UpdateAISessionRequest} updateAISessionRequest
|
|
17284
|
+
* @param {*} [options] Override http request option.
|
|
17285
|
+
* @throws {RequiredError}
|
|
17286
|
+
* @memberof AISessionsApi
|
|
17287
|
+
*/
|
|
17288
|
+
public updateAISession(organisation: string, sessionId: string, updateAISessionRequest: UpdateAISessionRequest, options?: RawAxiosRequestConfig) {
|
|
17289
|
+
return AISessionsApiFp(this.configuration).updateAISession(organisation, sessionId, updateAISessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17290
|
+
}
|
|
17291
|
+
}
|
|
17292
|
+
|
|
17293
|
+
|
|
17294
|
+
|
|
17295
|
+
/**
|
|
17296
|
+
* AISkillsApi - axios parameter creator
|
|
17297
|
+
* @export
|
|
17298
|
+
*/
|
|
17299
|
+
export const AISkillsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
17300
|
+
return {
|
|
17301
|
+
/**
|
|
17302
|
+
* Creates a new skill with inline content. Use this for custom skills * that are defined directly in your organization. * * **Trigger Conditions:** * - Natural language description of when to use the skill * - Used by AI to determine when to suggest or apply the skill * - Example: \'When the user asks about code review or security analysis\'
|
|
17303
|
+
* @summary Create Inline Skill
|
|
17304
|
+
* @param {string} organisation The organisation ID
|
|
17305
|
+
* @param {CreateSkillRequest} createSkillRequest
|
|
17306
|
+
* @param {*} [options] Override http request option.
|
|
17307
|
+
* @throws {RequiredError}
|
|
17308
|
+
*/
|
|
17309
|
+
createSkill: async (organisation: string, createSkillRequest: CreateSkillRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17310
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17311
|
+
assertParamExists('createSkill', 'organisation', organisation)
|
|
17312
|
+
// verify required parameter 'createSkillRequest' is not null or undefined
|
|
17313
|
+
assertParamExists('createSkill', 'createSkillRequest', createSkillRequest)
|
|
17314
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills`
|
|
17315
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
17316
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17317
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17318
|
+
let baseOptions;
|
|
17319
|
+
if (configuration) {
|
|
17320
|
+
baseOptions = configuration.baseOptions;
|
|
17321
|
+
}
|
|
17322
|
+
|
|
17323
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
17324
|
+
const localVarHeaderParameter = {} as any;
|
|
17325
|
+
const localVarQueryParameter = {} as any;
|
|
17326
|
+
|
|
17327
|
+
// authentication BearerAuth required
|
|
17328
|
+
// http bearer authentication required
|
|
17329
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
17330
|
+
|
|
17331
|
+
|
|
17332
|
+
|
|
17333
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17334
|
+
|
|
17335
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17336
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17337
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17338
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSkillRequest, localVarRequestOptions, configuration)
|
|
17339
|
+
|
|
17340
|
+
return {
|
|
17341
|
+
url: toPathString(localVarUrlObj),
|
|
17342
|
+
options: localVarRequestOptions,
|
|
17343
|
+
};
|
|
17344
|
+
},
|
|
17345
|
+
/**
|
|
17346
|
+
* Permanently deletes a skill. This will also remove it from any agents that have it assigned.
|
|
17347
|
+
* @summary Delete Skill
|
|
17348
|
+
* @param {string} organisation The organisation ID
|
|
17349
|
+
* @param {string} skillId The skill ID
|
|
17350
|
+
* @param {*} [options] Override http request option.
|
|
17351
|
+
* @throws {RequiredError}
|
|
17352
|
+
*/
|
|
17353
|
+
deleteSkill: async (organisation: string, skillId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17354
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17355
|
+
assertParamExists('deleteSkill', 'organisation', organisation)
|
|
17356
|
+
// verify required parameter 'skillId' is not null or undefined
|
|
17357
|
+
assertParamExists('deleteSkill', 'skillId', skillId)
|
|
17358
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/{skillId}`
|
|
17359
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
17360
|
+
.replace(`{${"skillId"}}`, encodeURIComponent(String(skillId)));
|
|
17361
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17362
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17363
|
+
let baseOptions;
|
|
17364
|
+
if (configuration) {
|
|
17365
|
+
baseOptions = configuration.baseOptions;
|
|
17366
|
+
}
|
|
17367
|
+
|
|
17368
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
17369
|
+
const localVarHeaderParameter = {} as any;
|
|
17370
|
+
const localVarQueryParameter = {} as any;
|
|
17371
|
+
|
|
17372
|
+
// authentication BearerAuth required
|
|
17373
|
+
// http bearer authentication required
|
|
17374
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
17375
|
+
|
|
17376
|
+
|
|
17377
|
+
|
|
17378
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17379
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17380
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17381
|
+
|
|
17382
|
+
return {
|
|
17383
|
+
url: toPathString(localVarUrlObj),
|
|
17384
|
+
options: localVarRequestOptions,
|
|
17385
|
+
};
|
|
17386
|
+
},
|
|
17387
|
+
/**
|
|
17388
|
+
* Permanently deletes all skills in the specified namespace.
|
|
17389
|
+
* @summary Delete Skill Collection
|
|
17390
|
+
* @param {string} organisation The organisation ID
|
|
17391
|
+
* @param {string} namespace Collection namespace
|
|
17392
|
+
* @param {*} [options] Override http request option.
|
|
17393
|
+
* @throws {RequiredError}
|
|
17394
|
+
*/
|
|
17395
|
+
deleteSkillCollection: async (organisation: string, namespace: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17396
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17397
|
+
assertParamExists('deleteSkillCollection', 'organisation', organisation)
|
|
17398
|
+
// verify required parameter 'namespace' is not null or undefined
|
|
17399
|
+
assertParamExists('deleteSkillCollection', 'namespace', namespace)
|
|
17400
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/collections/{namespace}`
|
|
17401
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
17402
|
+
.replace(`{${"namespace"}}`, encodeURIComponent(String(namespace)));
|
|
17403
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17404
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17405
|
+
let baseOptions;
|
|
17406
|
+
if (configuration) {
|
|
17407
|
+
baseOptions = configuration.baseOptions;
|
|
17408
|
+
}
|
|
17409
|
+
|
|
17410
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
17411
|
+
const localVarHeaderParameter = {} as any;
|
|
17412
|
+
const localVarQueryParameter = {} as any;
|
|
17413
|
+
|
|
17414
|
+
// authentication BearerAuth required
|
|
17415
|
+
// http bearer authentication required
|
|
17416
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
17417
|
+
|
|
17418
|
+
|
|
17419
|
+
|
|
17420
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17421
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17422
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17423
|
+
|
|
17424
|
+
return {
|
|
17425
|
+
url: toPathString(localVarUrlObj),
|
|
17426
|
+
options: localVarRequestOptions,
|
|
17427
|
+
};
|
|
17428
|
+
},
|
|
17429
|
+
/**
|
|
17430
|
+
* Retrieves full details of a skill including its content, source information, and metadata.
|
|
17431
|
+
* @summary Get Skill Details
|
|
17432
|
+
* @param {string} organisation The organisation ID
|
|
17433
|
+
* @param {string} skillId The skill ID
|
|
17434
|
+
* @param {*} [options] Override http request option.
|
|
17435
|
+
* @throws {RequiredError}
|
|
17436
|
+
*/
|
|
17437
|
+
getSkill: async (organisation: string, skillId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17438
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17439
|
+
assertParamExists('getSkill', 'organisation', organisation)
|
|
17440
|
+
// verify required parameter 'skillId' is not null or undefined
|
|
17441
|
+
assertParamExists('getSkill', 'skillId', skillId)
|
|
17442
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/{skillId}`
|
|
17443
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
17444
|
+
.replace(`{${"skillId"}}`, encodeURIComponent(String(skillId)));
|
|
17445
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17446
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17447
|
+
let baseOptions;
|
|
17448
|
+
if (configuration) {
|
|
17449
|
+
baseOptions = configuration.baseOptions;
|
|
17450
|
+
}
|
|
17451
|
+
|
|
17452
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17453
|
+
const localVarHeaderParameter = {} as any;
|
|
17454
|
+
const localVarQueryParameter = {} as any;
|
|
17455
|
+
|
|
17456
|
+
// authentication BearerAuth required
|
|
17457
|
+
// http bearer authentication required
|
|
17458
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
17459
|
+
|
|
17460
|
+
|
|
17461
|
+
|
|
17462
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17463
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17464
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17465
|
+
|
|
17466
|
+
return {
|
|
17467
|
+
url: toPathString(localVarUrlObj),
|
|
17468
|
+
options: localVarRequestOptions,
|
|
17469
|
+
};
|
|
17470
|
+
},
|
|
17471
|
+
/**
|
|
17472
|
+
* Imports a skill from an external source like skills.sh registry or GitHub repository. * * **Supported Sources:** * - `skills.sh`: Import from the skills.sh community registry * - `github`: Import from a GitHub repository (public or private) * * **Version Control:** * - Skills can be pinned to specific versions * - Use the sync endpoint to update to latest version
|
|
17473
|
+
* @summary Import Skill from External Source
|
|
17474
|
+
* @param {string} organisation The organisation ID
|
|
17475
|
+
* @param {ImportSkillRequest} importSkillRequest
|
|
17476
|
+
* @param {*} [options] Override http request option.
|
|
17477
|
+
* @throws {RequiredError}
|
|
17478
|
+
*/
|
|
17479
|
+
importSkill: async (organisation: string, importSkillRequest: ImportSkillRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17480
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17481
|
+
assertParamExists('importSkill', 'organisation', organisation)
|
|
17482
|
+
// verify required parameter 'importSkillRequest' is not null or undefined
|
|
17483
|
+
assertParamExists('importSkill', 'importSkillRequest', importSkillRequest)
|
|
17484
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/import`
|
|
17485
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
17486
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17487
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17488
|
+
let baseOptions;
|
|
17489
|
+
if (configuration) {
|
|
17490
|
+
baseOptions = configuration.baseOptions;
|
|
17491
|
+
}
|
|
17492
|
+
|
|
17493
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
17494
|
+
const localVarHeaderParameter = {} as any;
|
|
17495
|
+
const localVarQueryParameter = {} as any;
|
|
17496
|
+
|
|
17497
|
+
// authentication BearerAuth required
|
|
17498
|
+
// http bearer authentication required
|
|
17499
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
17500
|
+
|
|
17501
|
+
|
|
17502
|
+
|
|
17503
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17504
|
+
|
|
17505
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17506
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17507
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17508
|
+
localVarRequestOptions.data = serializeDataIfNeeded(importSkillRequest, localVarRequestOptions, configuration)
|
|
17509
|
+
|
|
17510
|
+
return {
|
|
17511
|
+
url: toPathString(localVarUrlObj),
|
|
17512
|
+
options: localVarRequestOptions,
|
|
17513
|
+
};
|
|
17514
|
+
},
|
|
17515
|
+
/**
|
|
17516
|
+
* Discovers all skill directories under a given path in a GitHub repository * and imports each as a skill within the specified namespace. Each subdirectory must contain a SKILL.md file. * * **Namespace:** Used for grouping and slash-command invocation (e.g., `/superpowers:brainstorming`). * * **Idempotent:** If a skill with the same namespace + name already exists, it is updated.
|
|
17517
|
+
* @summary Import Skill Collection from GitHub
|
|
17518
|
+
* @param {string} organisation The organisation ID
|
|
17519
|
+
* @param {ImportSkillCollectionRequest} importSkillCollectionRequest
|
|
17520
|
+
* @param {*} [options] Override http request option.
|
|
17521
|
+
* @throws {RequiredError}
|
|
17522
|
+
*/
|
|
17523
|
+
importSkillCollection: async (organisation: string, importSkillCollectionRequest: ImportSkillCollectionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17524
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17525
|
+
assertParamExists('importSkillCollection', 'organisation', organisation)
|
|
17526
|
+
// verify required parameter 'importSkillCollectionRequest' is not null or undefined
|
|
17527
|
+
assertParamExists('importSkillCollection', 'importSkillCollectionRequest', importSkillCollectionRequest)
|
|
17528
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/import-collection`
|
|
17529
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
17530
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17531
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17532
|
+
let baseOptions;
|
|
17533
|
+
if (configuration) {
|
|
17534
|
+
baseOptions = configuration.baseOptions;
|
|
17535
|
+
}
|
|
17536
|
+
|
|
17537
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
17538
|
+
const localVarHeaderParameter = {} as any;
|
|
17539
|
+
const localVarQueryParameter = {} as any;
|
|
17540
|
+
|
|
17541
|
+
// authentication BearerAuth required
|
|
17542
|
+
// http bearer authentication required
|
|
17543
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
17544
|
+
|
|
17545
|
+
|
|
17546
|
+
|
|
17547
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17548
|
+
|
|
17549
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17550
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17551
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17552
|
+
localVarRequestOptions.data = serializeDataIfNeeded(importSkillCollectionRequest, localVarRequestOptions, configuration)
|
|
17553
|
+
|
|
17554
|
+
return {
|
|
17555
|
+
url: toPathString(localVarUrlObj),
|
|
17556
|
+
options: localVarRequestOptions,
|
|
17557
|
+
};
|
|
17558
|
+
},
|
|
17559
|
+
/**
|
|
17560
|
+
* Lists distinct namespaces (collections) for the organization, with skill counts and skill names for each collection.
|
|
17561
|
+
* @summary List Skill Collections
|
|
17562
|
+
* @param {string} organisation The organisation ID
|
|
17563
|
+
* @param {*} [options] Override http request option.
|
|
17564
|
+
* @throws {RequiredError}
|
|
17565
|
+
*/
|
|
17566
|
+
listSkillCollections: async (organisation: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17567
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17568
|
+
assertParamExists('listSkillCollections', 'organisation', organisation)
|
|
17569
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/collections`
|
|
17570
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
17571
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17572
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17573
|
+
let baseOptions;
|
|
17574
|
+
if (configuration) {
|
|
17575
|
+
baseOptions = configuration.baseOptions;
|
|
17576
|
+
}
|
|
17577
|
+
|
|
17578
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17579
|
+
const localVarHeaderParameter = {} as any;
|
|
17580
|
+
const localVarQueryParameter = {} as any;
|
|
17581
|
+
|
|
17582
|
+
// authentication BearerAuth required
|
|
17583
|
+
// http bearer authentication required
|
|
17584
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
17585
|
+
|
|
17586
|
+
|
|
17587
|
+
|
|
17588
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17589
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17590
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17591
|
+
|
|
17592
|
+
return {
|
|
17593
|
+
url: toPathString(localVarUrlObj),
|
|
17594
|
+
options: localVarRequestOptions,
|
|
17595
|
+
};
|
|
17596
|
+
},
|
|
17597
|
+
/**
|
|
17598
|
+
* Lists all skills available to the organization. Skills are reusable prompts, * workflows, or instructions that can be assigned to agents or invoked directly. * * **Skill Sources:** * - `inline`: Created directly via the API * - `skills.sh`: Imported from skills.sh registry * - `github`: Imported from a GitHub repository * - `local`: Uploaded from local file
|
|
17599
|
+
* @summary List Organization\'s Skills
|
|
17600
|
+
* @param {string} organisation The organisation ID
|
|
17601
|
+
* @param {string} [tag] Filter skills by tag
|
|
17602
|
+
* @param {string} [namespace] Filter skills by collection namespace (e.g. \'superpowers\')
|
|
17603
|
+
* @param {number} [limit] Maximum number of skills to return
|
|
17604
|
+
* @param {*} [options] Override http request option.
|
|
17605
|
+
* @throws {RequiredError}
|
|
17606
|
+
*/
|
|
17607
|
+
listSkills: async (organisation: string, tag?: string, namespace?: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17608
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17609
|
+
assertParamExists('listSkills', 'organisation', organisation)
|
|
17610
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills`
|
|
17611
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
17612
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17613
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17614
|
+
let baseOptions;
|
|
17615
|
+
if (configuration) {
|
|
17616
|
+
baseOptions = configuration.baseOptions;
|
|
17617
|
+
}
|
|
17618
|
+
|
|
17619
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17620
|
+
const localVarHeaderParameter = {} as any;
|
|
17621
|
+
const localVarQueryParameter = {} as any;
|
|
17622
|
+
|
|
17623
|
+
// authentication BearerAuth required
|
|
17624
|
+
// http bearer authentication required
|
|
17625
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
17626
|
+
|
|
17627
|
+
if (tag !== undefined) {
|
|
17628
|
+
localVarQueryParameter['tag'] = tag;
|
|
17629
|
+
}
|
|
17630
|
+
|
|
17631
|
+
if (namespace !== undefined) {
|
|
17632
|
+
localVarQueryParameter['namespace'] = namespace;
|
|
17633
|
+
}
|
|
17634
|
+
|
|
17635
|
+
if (limit !== undefined) {
|
|
17636
|
+
localVarQueryParameter['limit'] = limit;
|
|
17637
|
+
}
|
|
17638
|
+
|
|
17639
|
+
|
|
17640
|
+
|
|
17641
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17642
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17643
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17644
|
+
|
|
17645
|
+
return {
|
|
17646
|
+
url: toPathString(localVarUrlObj),
|
|
17647
|
+
options: localVarRequestOptions,
|
|
17648
|
+
};
|
|
17649
|
+
},
|
|
17650
|
+
/**
|
|
17651
|
+
* Re-fetches skill content from its original source. * Only applicable to skills imported from external sources (skills.sh, github). * Inline skills cannot be synced. * * **Version Behavior:** * - If version is pinned, fetches that specific version * - If no version specified, fetches latest
|
|
17652
|
+
* @summary Sync Skill from Source
|
|
17653
|
+
* @param {string} organisation The organisation ID
|
|
17654
|
+
* @param {string} skillId The skill ID
|
|
17655
|
+
* @param {*} [options] Override http request option.
|
|
17656
|
+
* @throws {RequiredError}
|
|
17657
|
+
*/
|
|
17658
|
+
syncSkill: async (organisation: string, skillId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17659
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17660
|
+
assertParamExists('syncSkill', 'organisation', organisation)
|
|
17661
|
+
// verify required parameter 'skillId' is not null or undefined
|
|
17662
|
+
assertParamExists('syncSkill', 'skillId', skillId)
|
|
17663
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/{skillId}/sync`
|
|
17664
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
17665
|
+
.replace(`{${"skillId"}}`, encodeURIComponent(String(skillId)));
|
|
17666
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17667
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17668
|
+
let baseOptions;
|
|
17669
|
+
if (configuration) {
|
|
17670
|
+
baseOptions = configuration.baseOptions;
|
|
17671
|
+
}
|
|
17672
|
+
|
|
17673
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
17674
|
+
const localVarHeaderParameter = {} as any;
|
|
17675
|
+
const localVarQueryParameter = {} as any;
|
|
17676
|
+
|
|
17677
|
+
// authentication BearerAuth required
|
|
17678
|
+
// http bearer authentication required
|
|
17679
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
17680
|
+
|
|
17681
|
+
|
|
17682
|
+
|
|
17683
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17684
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17685
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17686
|
+
|
|
17687
|
+
return {
|
|
17688
|
+
url: toPathString(localVarUrlObj),
|
|
17689
|
+
options: localVarRequestOptions,
|
|
17690
|
+
};
|
|
17691
|
+
},
|
|
17692
|
+
/**
|
|
17693
|
+
* Re-syncs all skills in a namespace from their GitHub source. Detects new * skills added to the repository and flags skills removed from the source. Does NOT auto-delete removed skills.
|
|
17694
|
+
* @summary Sync Skill Collection
|
|
17695
|
+
* @param {string} organisation The organisation ID
|
|
17696
|
+
* @param {string} namespace Collection namespace
|
|
17697
|
+
* @param {*} [options] Override http request option.
|
|
17698
|
+
* @throws {RequiredError}
|
|
17699
|
+
*/
|
|
17700
|
+
syncSkillCollection: async (organisation: string, namespace: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17701
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17702
|
+
assertParamExists('syncSkillCollection', 'organisation', organisation)
|
|
17703
|
+
// verify required parameter 'namespace' is not null or undefined
|
|
17704
|
+
assertParamExists('syncSkillCollection', 'namespace', namespace)
|
|
17705
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/collections/{namespace}/sync`
|
|
17706
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
17707
|
+
.replace(`{${"namespace"}}`, encodeURIComponent(String(namespace)));
|
|
17708
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17709
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17710
|
+
let baseOptions;
|
|
17711
|
+
if (configuration) {
|
|
17712
|
+
baseOptions = configuration.baseOptions;
|
|
17713
|
+
}
|
|
17714
|
+
|
|
17715
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
17716
|
+
const localVarHeaderParameter = {} as any;
|
|
17717
|
+
const localVarQueryParameter = {} as any;
|
|
17718
|
+
|
|
17719
|
+
// authentication BearerAuth required
|
|
17720
|
+
// http bearer authentication required
|
|
17721
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
17722
|
+
|
|
17723
|
+
|
|
17724
|
+
|
|
17725
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17726
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17727
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17728
|
+
|
|
17729
|
+
return {
|
|
17730
|
+
url: toPathString(localVarUrlObj),
|
|
17731
|
+
options: localVarRequestOptions,
|
|
17732
|
+
};
|
|
17733
|
+
},
|
|
17734
|
+
/**
|
|
17735
|
+
* Updates an existing skill. For imported skills, this updates * local overrides (name, tags, triggerCondition) but not the source content. * Use the sync endpoint to update source content.
|
|
17736
|
+
* @summary Update Skill
|
|
17737
|
+
* @param {string} organisation The organisation ID
|
|
17738
|
+
* @param {string} skillId The skill ID
|
|
17739
|
+
* @param {UpdateSkillRequest} updateSkillRequest
|
|
17740
|
+
* @param {*} [options] Override http request option.
|
|
17741
|
+
* @throws {RequiredError}
|
|
17742
|
+
*/
|
|
17743
|
+
updateSkill: async (organisation: string, skillId: string, updateSkillRequest: UpdateSkillRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17744
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17745
|
+
assertParamExists('updateSkill', 'organisation', organisation)
|
|
17746
|
+
// verify required parameter 'skillId' is not null or undefined
|
|
17747
|
+
assertParamExists('updateSkill', 'skillId', skillId)
|
|
17748
|
+
// verify required parameter 'updateSkillRequest' is not null or undefined
|
|
17749
|
+
assertParamExists('updateSkill', 'updateSkillRequest', updateSkillRequest)
|
|
17750
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/{skillId}`
|
|
17751
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
17752
|
+
.replace(`{${"skillId"}}`, encodeURIComponent(String(skillId)));
|
|
17753
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17754
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17755
|
+
let baseOptions;
|
|
17756
|
+
if (configuration) {
|
|
17757
|
+
baseOptions = configuration.baseOptions;
|
|
17758
|
+
}
|
|
17759
|
+
|
|
17760
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
17761
|
+
const localVarHeaderParameter = {} as any;
|
|
17762
|
+
const localVarQueryParameter = {} as any;
|
|
17763
|
+
|
|
17764
|
+
// authentication BearerAuth required
|
|
17765
|
+
// http bearer authentication required
|
|
17766
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
17767
|
+
|
|
17768
|
+
|
|
17769
|
+
|
|
17770
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17771
|
+
|
|
17772
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17773
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17774
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17775
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateSkillRequest, localVarRequestOptions, configuration)
|
|
17776
|
+
|
|
17777
|
+
return {
|
|
17778
|
+
url: toPathString(localVarUrlObj),
|
|
17779
|
+
options: localVarRequestOptions,
|
|
17780
|
+
};
|
|
17781
|
+
},
|
|
17782
|
+
}
|
|
17783
|
+
};
|
|
17784
|
+
|
|
17785
|
+
/**
|
|
17786
|
+
* AISkillsApi - functional programming interface
|
|
17787
|
+
* @export
|
|
17788
|
+
*/
|
|
17789
|
+
export const AISkillsApiFp = function(configuration?: Configuration) {
|
|
17790
|
+
const localVarAxiosParamCreator = AISkillsApiAxiosParamCreator(configuration)
|
|
17791
|
+
return {
|
|
17792
|
+
/**
|
|
17793
|
+
* Creates a new skill with inline content. Use this for custom skills * that are defined directly in your organization. * * **Trigger Conditions:** * - Natural language description of when to use the skill * - Used by AI to determine when to suggest or apply the skill * - Example: \'When the user asks about code review or security analysis\'
|
|
17794
|
+
* @summary Create Inline Skill
|
|
17795
|
+
* @param {string} organisation The organisation ID
|
|
17796
|
+
* @param {CreateSkillRequest} createSkillRequest
|
|
17797
|
+
* @param {*} [options] Override http request option.
|
|
17798
|
+
* @throws {RequiredError}
|
|
17799
|
+
*/
|
|
17800
|
+
async createSkill(organisation: string, createSkillRequest: CreateSkillRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSkill201Response>> {
|
|
17801
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSkill(organisation, createSkillRequest, options);
|
|
17802
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17803
|
+
const localVarOperationServerBasePath = operationServerMap['AISkillsApi.createSkill']?.[localVarOperationServerIndex]?.url;
|
|
17804
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17805
|
+
},
|
|
17806
|
+
/**
|
|
17807
|
+
* Permanently deletes a skill. This will also remove it from any agents that have it assigned.
|
|
17808
|
+
* @summary Delete Skill
|
|
17809
|
+
* @param {string} organisation The organisation ID
|
|
17810
|
+
* @param {string} skillId The skill ID
|
|
17811
|
+
* @param {*} [options] Override http request option.
|
|
17812
|
+
* @throws {RequiredError}
|
|
17813
|
+
*/
|
|
17814
|
+
async deleteSkill(organisation: string, skillId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSkill200Response>> {
|
|
17815
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSkill(organisation, skillId, options);
|
|
17816
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17817
|
+
const localVarOperationServerBasePath = operationServerMap['AISkillsApi.deleteSkill']?.[localVarOperationServerIndex]?.url;
|
|
17818
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17819
|
+
},
|
|
17820
|
+
/**
|
|
17821
|
+
* Permanently deletes all skills in the specified namespace.
|
|
17822
|
+
* @summary Delete Skill Collection
|
|
17823
|
+
* @param {string} organisation The organisation ID
|
|
17824
|
+
* @param {string} namespace Collection namespace
|
|
17825
|
+
* @param {*} [options] Override http request option.
|
|
17826
|
+
* @throws {RequiredError}
|
|
17827
|
+
*/
|
|
17828
|
+
async deleteSkillCollection(organisation: string, namespace: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSkillCollection200Response>> {
|
|
17829
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSkillCollection(organisation, namespace, options);
|
|
17830
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17831
|
+
const localVarOperationServerBasePath = operationServerMap['AISkillsApi.deleteSkillCollection']?.[localVarOperationServerIndex]?.url;
|
|
17832
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17833
|
+
},
|
|
17834
|
+
/**
|
|
17835
|
+
* Retrieves full details of a skill including its content, source information, and metadata.
|
|
17836
|
+
* @summary Get Skill Details
|
|
17837
|
+
* @param {string} organisation The organisation ID
|
|
17838
|
+
* @param {string} skillId The skill ID
|
|
17839
|
+
* @param {*} [options] Override http request option.
|
|
17840
|
+
* @throws {RequiredError}
|
|
17841
|
+
*/
|
|
17842
|
+
async getSkill(organisation: string, skillId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSkill200Response>> {
|
|
17843
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSkill(organisation, skillId, options);
|
|
17844
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17845
|
+
const localVarOperationServerBasePath = operationServerMap['AISkillsApi.getSkill']?.[localVarOperationServerIndex]?.url;
|
|
17846
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17847
|
+
},
|
|
17848
|
+
/**
|
|
17849
|
+
* Imports a skill from an external source like skills.sh registry or GitHub repository. * * **Supported Sources:** * - `skills.sh`: Import from the skills.sh community registry * - `github`: Import from a GitHub repository (public or private) * * **Version Control:** * - Skills can be pinned to specific versions * - Use the sync endpoint to update to latest version
|
|
17850
|
+
* @summary Import Skill from External Source
|
|
17851
|
+
* @param {string} organisation The organisation ID
|
|
17852
|
+
* @param {ImportSkillRequest} importSkillRequest
|
|
17853
|
+
* @param {*} [options] Override http request option.
|
|
17854
|
+
* @throws {RequiredError}
|
|
17855
|
+
*/
|
|
17856
|
+
async importSkill(organisation: string, importSkillRequest: ImportSkillRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportSkill201Response>> {
|
|
17857
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.importSkill(organisation, importSkillRequest, options);
|
|
17858
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17859
|
+
const localVarOperationServerBasePath = operationServerMap['AISkillsApi.importSkill']?.[localVarOperationServerIndex]?.url;
|
|
17860
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17861
|
+
},
|
|
17862
|
+
/**
|
|
17863
|
+
* Discovers all skill directories under a given path in a GitHub repository * and imports each as a skill within the specified namespace. Each subdirectory must contain a SKILL.md file. * * **Namespace:** Used for grouping and slash-command invocation (e.g., `/superpowers:brainstorming`). * * **Idempotent:** If a skill with the same namespace + name already exists, it is updated.
|
|
17864
|
+
* @summary Import Skill Collection from GitHub
|
|
17865
|
+
* @param {string} organisation The organisation ID
|
|
17866
|
+
* @param {ImportSkillCollectionRequest} importSkillCollectionRequest
|
|
17867
|
+
* @param {*} [options] Override http request option.
|
|
17868
|
+
* @throws {RequiredError}
|
|
17869
|
+
*/
|
|
17870
|
+
async importSkillCollection(organisation: string, importSkillCollectionRequest: ImportSkillCollectionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportSkillCollection201Response>> {
|
|
17871
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.importSkillCollection(organisation, importSkillCollectionRequest, options);
|
|
17872
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17873
|
+
const localVarOperationServerBasePath = operationServerMap['AISkillsApi.importSkillCollection']?.[localVarOperationServerIndex]?.url;
|
|
17874
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17875
|
+
},
|
|
17876
|
+
/**
|
|
17877
|
+
* Lists distinct namespaces (collections) for the organization, with skill counts and skill names for each collection.
|
|
17878
|
+
* @summary List Skill Collections
|
|
17879
|
+
* @param {string} organisation The organisation ID
|
|
17880
|
+
* @param {*} [options] Override http request option.
|
|
17881
|
+
* @throws {RequiredError}
|
|
17882
|
+
*/
|
|
17883
|
+
async listSkillCollections(organisation: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSkillCollections200Response>> {
|
|
17884
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSkillCollections(organisation, options);
|
|
17885
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17886
|
+
const localVarOperationServerBasePath = operationServerMap['AISkillsApi.listSkillCollections']?.[localVarOperationServerIndex]?.url;
|
|
17887
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17888
|
+
},
|
|
17889
|
+
/**
|
|
17890
|
+
* Lists all skills available to the organization. Skills are reusable prompts, * workflows, or instructions that can be assigned to agents or invoked directly. * * **Skill Sources:** * - `inline`: Created directly via the API * - `skills.sh`: Imported from skills.sh registry * - `github`: Imported from a GitHub repository * - `local`: Uploaded from local file
|
|
17891
|
+
* @summary List Organization\'s Skills
|
|
17892
|
+
* @param {string} organisation The organisation ID
|
|
17893
|
+
* @param {string} [tag] Filter skills by tag
|
|
17894
|
+
* @param {string} [namespace] Filter skills by collection namespace (e.g. \'superpowers\')
|
|
17895
|
+
* @param {number} [limit] Maximum number of skills to return
|
|
17896
|
+
* @param {*} [options] Override http request option.
|
|
17897
|
+
* @throws {RequiredError}
|
|
17898
|
+
*/
|
|
17899
|
+
async listSkills(organisation: string, tag?: string, namespace?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSkills200Response>> {
|
|
17900
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSkills(organisation, tag, namespace, limit, options);
|
|
17901
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17902
|
+
const localVarOperationServerBasePath = operationServerMap['AISkillsApi.listSkills']?.[localVarOperationServerIndex]?.url;
|
|
17903
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17904
|
+
},
|
|
17905
|
+
/**
|
|
17906
|
+
* Re-fetches skill content from its original source. * Only applicable to skills imported from external sources (skills.sh, github). * Inline skills cannot be synced. * * **Version Behavior:** * - If version is pinned, fetches that specific version * - If no version specified, fetches latest
|
|
17907
|
+
* @summary Sync Skill from Source
|
|
17908
|
+
* @param {string} organisation The organisation ID
|
|
17909
|
+
* @param {string} skillId The skill ID
|
|
17910
|
+
* @param {*} [options] Override http request option.
|
|
17911
|
+
* @throws {RequiredError}
|
|
17912
|
+
*/
|
|
17913
|
+
async syncSkill(organisation: string, skillId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportSkill201Response>> {
|
|
17914
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.syncSkill(organisation, skillId, options);
|
|
17915
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17916
|
+
const localVarOperationServerBasePath = operationServerMap['AISkillsApi.syncSkill']?.[localVarOperationServerIndex]?.url;
|
|
17917
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17918
|
+
},
|
|
17919
|
+
/**
|
|
17920
|
+
* Re-syncs all skills in a namespace from their GitHub source. Detects new * skills added to the repository and flags skills removed from the source. Does NOT auto-delete removed skills.
|
|
17921
|
+
* @summary Sync Skill Collection
|
|
17922
|
+
* @param {string} organisation The organisation ID
|
|
17923
|
+
* @param {string} namespace Collection namespace
|
|
17924
|
+
* @param {*} [options] Override http request option.
|
|
17925
|
+
* @throws {RequiredError}
|
|
17926
|
+
*/
|
|
17927
|
+
async syncSkillCollection(organisation: string, namespace: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncSkillCollection200Response>> {
|
|
17928
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.syncSkillCollection(organisation, namespace, options);
|
|
17929
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17930
|
+
const localVarOperationServerBasePath = operationServerMap['AISkillsApi.syncSkillCollection']?.[localVarOperationServerIndex]?.url;
|
|
17931
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17932
|
+
},
|
|
17933
|
+
/**
|
|
17934
|
+
* Updates an existing skill. For imported skills, this updates * local overrides (name, tags, triggerCondition) but not the source content. * Use the sync endpoint to update source content.
|
|
17935
|
+
* @summary Update Skill
|
|
17936
|
+
* @param {string} organisation The organisation ID
|
|
17937
|
+
* @param {string} skillId The skill ID
|
|
17938
|
+
* @param {UpdateSkillRequest} updateSkillRequest
|
|
17939
|
+
* @param {*} [options] Override http request option.
|
|
17940
|
+
* @throws {RequiredError}
|
|
17941
|
+
*/
|
|
17942
|
+
async updateSkill(organisation: string, skillId: string, updateSkillRequest: UpdateSkillRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSkill200Response>> {
|
|
17943
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSkill(organisation, skillId, updateSkillRequest, options);
|
|
17944
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17945
|
+
const localVarOperationServerBasePath = operationServerMap['AISkillsApi.updateSkill']?.[localVarOperationServerIndex]?.url;
|
|
17946
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17947
|
+
},
|
|
17948
|
+
}
|
|
17949
|
+
};
|
|
17950
|
+
|
|
17951
|
+
/**
|
|
17952
|
+
* AISkillsApi - factory interface
|
|
17953
|
+
* @export
|
|
17954
|
+
*/
|
|
17955
|
+
export const AISkillsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
17956
|
+
const localVarFp = AISkillsApiFp(configuration)
|
|
17957
|
+
return {
|
|
17958
|
+
/**
|
|
17959
|
+
* Creates a new skill with inline content. Use this for custom skills * that are defined directly in your organization. * * **Trigger Conditions:** * - Natural language description of when to use the skill * - Used by AI to determine when to suggest or apply the skill * - Example: \'When the user asks about code review or security analysis\'
|
|
17960
|
+
* @summary Create Inline Skill
|
|
17961
|
+
* @param {string} organisation The organisation ID
|
|
17962
|
+
* @param {CreateSkillRequest} createSkillRequest
|
|
17963
|
+
* @param {*} [options] Override http request option.
|
|
17964
|
+
* @throws {RequiredError}
|
|
17965
|
+
*/
|
|
17966
|
+
createSkill(organisation: string, createSkillRequest: CreateSkillRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateSkill201Response> {
|
|
17967
|
+
return localVarFp.createSkill(organisation, createSkillRequest, options).then((request) => request(axios, basePath));
|
|
17968
|
+
},
|
|
17969
|
+
/**
|
|
17970
|
+
* Permanently deletes a skill. This will also remove it from any agents that have it assigned.
|
|
17971
|
+
* @summary Delete Skill
|
|
17972
|
+
* @param {string} organisation The organisation ID
|
|
17973
|
+
* @param {string} skillId The skill ID
|
|
17974
|
+
* @param {*} [options] Override http request option.
|
|
17975
|
+
* @throws {RequiredError}
|
|
17976
|
+
*/
|
|
17977
|
+
deleteSkill(organisation: string, skillId: string, options?: RawAxiosRequestConfig): AxiosPromise<DeleteSkill200Response> {
|
|
17978
|
+
return localVarFp.deleteSkill(organisation, skillId, options).then((request) => request(axios, basePath));
|
|
17979
|
+
},
|
|
17980
|
+
/**
|
|
17981
|
+
* Permanently deletes all skills in the specified namespace.
|
|
17982
|
+
* @summary Delete Skill Collection
|
|
17983
|
+
* @param {string} organisation The organisation ID
|
|
17984
|
+
* @param {string} namespace Collection namespace
|
|
17985
|
+
* @param {*} [options] Override http request option.
|
|
17986
|
+
* @throws {RequiredError}
|
|
17987
|
+
*/
|
|
17988
|
+
deleteSkillCollection(organisation: string, namespace: string, options?: RawAxiosRequestConfig): AxiosPromise<DeleteSkillCollection200Response> {
|
|
17989
|
+
return localVarFp.deleteSkillCollection(organisation, namespace, options).then((request) => request(axios, basePath));
|
|
17990
|
+
},
|
|
17991
|
+
/**
|
|
17992
|
+
* Retrieves full details of a skill including its content, source information, and metadata.
|
|
17993
|
+
* @summary Get Skill Details
|
|
17994
|
+
* @param {string} organisation The organisation ID
|
|
17995
|
+
* @param {string} skillId The skill ID
|
|
17996
|
+
* @param {*} [options] Override http request option.
|
|
17997
|
+
* @throws {RequiredError}
|
|
17998
|
+
*/
|
|
17999
|
+
getSkill(organisation: string, skillId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetSkill200Response> {
|
|
18000
|
+
return localVarFp.getSkill(organisation, skillId, options).then((request) => request(axios, basePath));
|
|
18001
|
+
},
|
|
18002
|
+
/**
|
|
18003
|
+
* Imports a skill from an external source like skills.sh registry or GitHub repository. * * **Supported Sources:** * - `skills.sh`: Import from the skills.sh community registry * - `github`: Import from a GitHub repository (public or private) * * **Version Control:** * - Skills can be pinned to specific versions * - Use the sync endpoint to update to latest version
|
|
18004
|
+
* @summary Import Skill from External Source
|
|
16393
18005
|
* @param {string} organisation The organisation ID
|
|
16394
|
-
* @param {
|
|
16395
|
-
* @param {UpdateAISessionRequest} updateAISessionRequest
|
|
18006
|
+
* @param {ImportSkillRequest} importSkillRequest
|
|
16396
18007
|
* @param {*} [options] Override http request option.
|
|
16397
18008
|
* @throws {RequiredError}
|
|
16398
18009
|
*/
|
|
16399
|
-
|
|
16400
|
-
|
|
16401
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16402
|
-
const localVarOperationServerBasePath = operationServerMap['AISessionsApi.updateAISession']?.[localVarOperationServerIndex]?.url;
|
|
16403
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18010
|
+
importSkill(organisation: string, importSkillRequest: ImportSkillRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImportSkill201Response> {
|
|
18011
|
+
return localVarFp.importSkill(organisation, importSkillRequest, options).then((request) => request(axios, basePath));
|
|
16404
18012
|
},
|
|
16405
|
-
}
|
|
16406
|
-
};
|
|
16407
|
-
|
|
16408
|
-
/**
|
|
16409
|
-
* AISessionsApi - factory interface
|
|
16410
|
-
* @export
|
|
16411
|
-
*/
|
|
16412
|
-
export const AISessionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
16413
|
-
const localVarFp = AISessionsApiFp(configuration)
|
|
16414
|
-
return {
|
|
16415
18013
|
/**
|
|
16416
|
-
*
|
|
16417
|
-
* @summary
|
|
18014
|
+
* Discovers all skill directories under a given path in a GitHub repository * and imports each as a skill within the specified namespace. Each subdirectory must contain a SKILL.md file. * * **Namespace:** Used for grouping and slash-command invocation (e.g., `/superpowers:brainstorming`). * * **Idempotent:** If a skill with the same namespace + name already exists, it is updated.
|
|
18015
|
+
* @summary Import Skill Collection from GitHub
|
|
16418
18016
|
* @param {string} organisation The organisation ID
|
|
16419
|
-
* @param {
|
|
18017
|
+
* @param {ImportSkillCollectionRequest} importSkillCollectionRequest
|
|
16420
18018
|
* @param {*} [options] Override http request option.
|
|
16421
18019
|
* @throws {RequiredError}
|
|
16422
18020
|
*/
|
|
16423
|
-
|
|
16424
|
-
return localVarFp.
|
|
18021
|
+
importSkillCollection(organisation: string, importSkillCollectionRequest: ImportSkillCollectionRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImportSkillCollection201Response> {
|
|
18022
|
+
return localVarFp.importSkillCollection(organisation, importSkillCollectionRequest, options).then((request) => request(axios, basePath));
|
|
16425
18023
|
},
|
|
16426
18024
|
/**
|
|
16427
|
-
*
|
|
16428
|
-
* @summary
|
|
18025
|
+
* Lists distinct namespaces (collections) for the organization, with skill counts and skill names for each collection.
|
|
18026
|
+
* @summary List Skill Collections
|
|
16429
18027
|
* @param {string} organisation The organisation ID
|
|
16430
|
-
* @param {string} sessionId The session ID
|
|
16431
18028
|
* @param {*} [options] Override http request option.
|
|
16432
18029
|
* @throws {RequiredError}
|
|
16433
18030
|
*/
|
|
16434
|
-
|
|
16435
|
-
return localVarFp.
|
|
18031
|
+
listSkillCollections(organisation: string, options?: RawAxiosRequestConfig): AxiosPromise<ListSkillCollections200Response> {
|
|
18032
|
+
return localVarFp.listSkillCollections(organisation, options).then((request) => request(axios, basePath));
|
|
16436
18033
|
},
|
|
16437
18034
|
/**
|
|
16438
|
-
*
|
|
16439
|
-
* @summary
|
|
18035
|
+
* Lists all skills available to the organization. Skills are reusable prompts, * workflows, or instructions that can be assigned to agents or invoked directly. * * **Skill Sources:** * - `inline`: Created directly via the API * - `skills.sh`: Imported from skills.sh registry * - `github`: Imported from a GitHub repository * - `local`: Uploaded from local file
|
|
18036
|
+
* @summary List Organization\'s Skills
|
|
16440
18037
|
* @param {string} organisation The organisation ID
|
|
16441
|
-
* @param {string}
|
|
16442
|
-
* @param {
|
|
18038
|
+
* @param {string} [tag] Filter skills by tag
|
|
18039
|
+
* @param {string} [namespace] Filter skills by collection namespace (e.g. \'superpowers\')
|
|
18040
|
+
* @param {number} [limit] Maximum number of skills to return
|
|
16443
18041
|
* @param {*} [options] Override http request option.
|
|
16444
18042
|
* @throws {RequiredError}
|
|
16445
18043
|
*/
|
|
16446
|
-
|
|
16447
|
-
return localVarFp.
|
|
18044
|
+
listSkills(organisation: string, tag?: string, namespace?: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ListSkills200Response> {
|
|
18045
|
+
return localVarFp.listSkills(organisation, tag, namespace, limit, options).then((request) => request(axios, basePath));
|
|
16448
18046
|
},
|
|
16449
18047
|
/**
|
|
16450
|
-
*
|
|
16451
|
-
* @summary
|
|
18048
|
+
* Re-fetches skill content from its original source. * Only applicable to skills imported from external sources (skills.sh, github). * Inline skills cannot be synced. * * **Version Behavior:** * - If version is pinned, fetches that specific version * - If no version specified, fetches latest
|
|
18049
|
+
* @summary Sync Skill from Source
|
|
16452
18050
|
* @param {string} organisation The organisation ID
|
|
16453
|
-
* @param {string}
|
|
18051
|
+
* @param {string} skillId The skill ID
|
|
16454
18052
|
* @param {*} [options] Override http request option.
|
|
16455
18053
|
* @throws {RequiredError}
|
|
16456
18054
|
*/
|
|
16457
|
-
|
|
16458
|
-
return localVarFp.
|
|
18055
|
+
syncSkill(organisation: string, skillId: string, options?: RawAxiosRequestConfig): AxiosPromise<ImportSkill201Response> {
|
|
18056
|
+
return localVarFp.syncSkill(organisation, skillId, options).then((request) => request(axios, basePath));
|
|
16459
18057
|
},
|
|
16460
18058
|
/**
|
|
16461
|
-
*
|
|
16462
|
-
* @summary
|
|
18059
|
+
* Re-syncs all skills in a namespace from their GitHub source. Detects new * skills added to the repository and flags skills removed from the source. Does NOT auto-delete removed skills.
|
|
18060
|
+
* @summary Sync Skill Collection
|
|
16463
18061
|
* @param {string} organisation The organisation ID
|
|
16464
|
-
* @param {string}
|
|
16465
|
-
* @param {string} [sessionGroup] Filter by session group. Returns only sessions matching the specified group.
|
|
16466
|
-
* @param {number} [limit] Maximum number of sessions to return (default 50, max 100)
|
|
16467
|
-
* @param {number} [offset] Offset for pagination
|
|
16468
|
-
* @param {string} [model] Filter by model ID
|
|
18062
|
+
* @param {string} namespace Collection namespace
|
|
16469
18063
|
* @param {*} [options] Override http request option.
|
|
16470
18064
|
* @throws {RequiredError}
|
|
16471
18065
|
*/
|
|
16472
|
-
|
|
16473
|
-
return localVarFp.
|
|
18066
|
+
syncSkillCollection(organisation: string, namespace: string, options?: RawAxiosRequestConfig): AxiosPromise<SyncSkillCollection200Response> {
|
|
18067
|
+
return localVarFp.syncSkillCollection(organisation, namespace, options).then((request) => request(axios, basePath));
|
|
16474
18068
|
},
|
|
16475
18069
|
/**
|
|
16476
|
-
* Updates
|
|
16477
|
-
* @summary Update
|
|
18070
|
+
* Updates an existing skill. For imported skills, this updates * local overrides (name, tags, triggerCondition) but not the source content. * Use the sync endpoint to update source content.
|
|
18071
|
+
* @summary Update Skill
|
|
16478
18072
|
* @param {string} organisation The organisation ID
|
|
16479
|
-
* @param {string}
|
|
16480
|
-
* @param {
|
|
18073
|
+
* @param {string} skillId The skill ID
|
|
18074
|
+
* @param {UpdateSkillRequest} updateSkillRequest
|
|
16481
18075
|
* @param {*} [options] Override http request option.
|
|
16482
18076
|
* @throws {RequiredError}
|
|
16483
18077
|
*/
|
|
16484
|
-
|
|
16485
|
-
return localVarFp.
|
|
18078
|
+
updateSkill(organisation: string, skillId: string, updateSkillRequest: UpdateSkillRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateSkill200Response> {
|
|
18079
|
+
return localVarFp.updateSkill(organisation, skillId, updateSkillRequest, options).then((request) => request(axios, basePath));
|
|
16486
18080
|
},
|
|
16487
18081
|
};
|
|
16488
18082
|
};
|
|
16489
18083
|
|
|
16490
18084
|
/**
|
|
16491
|
-
*
|
|
18085
|
+
* AISkillsApi - object-oriented interface
|
|
16492
18086
|
* @export
|
|
16493
|
-
* @class
|
|
18087
|
+
* @class AISkillsApi
|
|
16494
18088
|
* @extends {BaseAPI}
|
|
16495
18089
|
*/
|
|
16496
|
-
export class
|
|
18090
|
+
export class AISkillsApi extends BaseAPI {
|
|
16497
18091
|
/**
|
|
16498
|
-
* Creates
|
|
16499
|
-
* @summary Create
|
|
18092
|
+
* Creates a new skill with inline content. Use this for custom skills * that are defined directly in your organization. * * **Trigger Conditions:** * - Natural language description of when to use the skill * - Used by AI to determine when to suggest or apply the skill * - Example: \'When the user asks about code review or security analysis\'
|
|
18093
|
+
* @summary Create Inline Skill
|
|
16500
18094
|
* @param {string} organisation The organisation ID
|
|
16501
|
-
* @param {
|
|
18095
|
+
* @param {CreateSkillRequest} createSkillRequest
|
|
16502
18096
|
* @param {*} [options] Override http request option.
|
|
16503
18097
|
* @throws {RequiredError}
|
|
16504
|
-
* @memberof
|
|
18098
|
+
* @memberof AISkillsApi
|
|
16505
18099
|
*/
|
|
16506
|
-
public
|
|
16507
|
-
return
|
|
18100
|
+
public createSkill(organisation: string, createSkillRequest: CreateSkillRequest, options?: RawAxiosRequestConfig) {
|
|
18101
|
+
return AISkillsApiFp(this.configuration).createSkill(organisation, createSkillRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16508
18102
|
}
|
|
16509
18103
|
|
|
16510
18104
|
/**
|
|
16511
|
-
*
|
|
16512
|
-
* @summary Delete
|
|
18105
|
+
* Permanently deletes a skill. This will also remove it from any agents that have it assigned.
|
|
18106
|
+
* @summary Delete Skill
|
|
16513
18107
|
* @param {string} organisation The organisation ID
|
|
16514
|
-
* @param {string}
|
|
18108
|
+
* @param {string} skillId The skill ID
|
|
16515
18109
|
* @param {*} [options] Override http request option.
|
|
16516
18110
|
* @throws {RequiredError}
|
|
16517
|
-
* @memberof
|
|
18111
|
+
* @memberof AISkillsApi
|
|
16518
18112
|
*/
|
|
16519
|
-
public
|
|
16520
|
-
return
|
|
18113
|
+
public deleteSkill(organisation: string, skillId: string, options?: RawAxiosRequestConfig) {
|
|
18114
|
+
return AISkillsApiFp(this.configuration).deleteSkill(organisation, skillId, options).then((request) => request(this.axios, this.basePath));
|
|
16521
18115
|
}
|
|
16522
18116
|
|
|
16523
18117
|
/**
|
|
16524
|
-
*
|
|
16525
|
-
* @summary
|
|
18118
|
+
* Permanently deletes all skills in the specified namespace.
|
|
18119
|
+
* @summary Delete Skill Collection
|
|
16526
18120
|
* @param {string} organisation The organisation ID
|
|
16527
|
-
* @param {string}
|
|
16528
|
-
* @param {ExtendAISessionRequest} [extendAISessionRequest]
|
|
18121
|
+
* @param {string} namespace Collection namespace
|
|
16529
18122
|
* @param {*} [options] Override http request option.
|
|
16530
18123
|
* @throws {RequiredError}
|
|
16531
|
-
* @memberof
|
|
18124
|
+
* @memberof AISkillsApi
|
|
16532
18125
|
*/
|
|
16533
|
-
public
|
|
16534
|
-
return
|
|
18126
|
+
public deleteSkillCollection(organisation: string, namespace: string, options?: RawAxiosRequestConfig) {
|
|
18127
|
+
return AISkillsApiFp(this.configuration).deleteSkillCollection(organisation, namespace, options).then((request) => request(this.axios, this.basePath));
|
|
16535
18128
|
}
|
|
16536
18129
|
|
|
16537
18130
|
/**
|
|
16538
|
-
*
|
|
16539
|
-
* @summary Get
|
|
18131
|
+
* Retrieves full details of a skill including its content, source information, and metadata.
|
|
18132
|
+
* @summary Get Skill Details
|
|
16540
18133
|
* @param {string} organisation The organisation ID
|
|
16541
|
-
* @param {string}
|
|
18134
|
+
* @param {string} skillId The skill ID
|
|
16542
18135
|
* @param {*} [options] Override http request option.
|
|
16543
18136
|
* @throws {RequiredError}
|
|
16544
|
-
* @memberof
|
|
18137
|
+
* @memberof AISkillsApi
|
|
16545
18138
|
*/
|
|
16546
|
-
public
|
|
16547
|
-
return
|
|
18139
|
+
public getSkill(organisation: string, skillId: string, options?: RawAxiosRequestConfig) {
|
|
18140
|
+
return AISkillsApiFp(this.configuration).getSkill(organisation, skillId, options).then((request) => request(this.axios, this.basePath));
|
|
16548
18141
|
}
|
|
16549
18142
|
|
|
16550
18143
|
/**
|
|
16551
|
-
*
|
|
16552
|
-
* @summary
|
|
18144
|
+
* Imports a skill from an external source like skills.sh registry or GitHub repository. * * **Supported Sources:** * - `skills.sh`: Import from the skills.sh community registry * - `github`: Import from a GitHub repository (public or private) * * **Version Control:** * - Skills can be pinned to specific versions * - Use the sync endpoint to update to latest version
|
|
18145
|
+
* @summary Import Skill from External Source
|
|
16553
18146
|
* @param {string} organisation The organisation ID
|
|
16554
|
-
* @param {
|
|
16555
|
-
* @param {string} [sessionGroup] Filter by session group. Returns only sessions matching the specified group.
|
|
16556
|
-
* @param {number} [limit] Maximum number of sessions to return (default 50, max 100)
|
|
16557
|
-
* @param {number} [offset] Offset for pagination
|
|
16558
|
-
* @param {string} [model] Filter by model ID
|
|
18147
|
+
* @param {ImportSkillRequest} importSkillRequest
|
|
16559
18148
|
* @param {*} [options] Override http request option.
|
|
16560
18149
|
* @throws {RequiredError}
|
|
16561
|
-
* @memberof
|
|
18150
|
+
* @memberof AISkillsApi
|
|
16562
18151
|
*/
|
|
16563
|
-
public
|
|
16564
|
-
return
|
|
18152
|
+
public importSkill(organisation: string, importSkillRequest: ImportSkillRequest, options?: RawAxiosRequestConfig) {
|
|
18153
|
+
return AISkillsApiFp(this.configuration).importSkill(organisation, importSkillRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16565
18154
|
}
|
|
16566
18155
|
|
|
16567
18156
|
/**
|
|
16568
|
-
*
|
|
16569
|
-
* @summary
|
|
18157
|
+
* Discovers all skill directories under a given path in a GitHub repository * and imports each as a skill within the specified namespace. Each subdirectory must contain a SKILL.md file. * * **Namespace:** Used for grouping and slash-command invocation (e.g., `/superpowers:brainstorming`). * * **Idempotent:** If a skill with the same namespace + name already exists, it is updated.
|
|
18158
|
+
* @summary Import Skill Collection from GitHub
|
|
16570
18159
|
* @param {string} organisation The organisation ID
|
|
16571
|
-
* @param {
|
|
16572
|
-
* @param {UpdateAISessionRequest} updateAISessionRequest
|
|
18160
|
+
* @param {ImportSkillCollectionRequest} importSkillCollectionRequest
|
|
16573
18161
|
* @param {*} [options] Override http request option.
|
|
16574
18162
|
* @throws {RequiredError}
|
|
16575
|
-
* @memberof
|
|
18163
|
+
* @memberof AISkillsApi
|
|
16576
18164
|
*/
|
|
16577
|
-
public
|
|
16578
|
-
return
|
|
18165
|
+
public importSkillCollection(organisation: string, importSkillCollectionRequest: ImportSkillCollectionRequest, options?: RawAxiosRequestConfig) {
|
|
18166
|
+
return AISkillsApiFp(this.configuration).importSkillCollection(organisation, importSkillCollectionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18167
|
+
}
|
|
18168
|
+
|
|
18169
|
+
/**
|
|
18170
|
+
* Lists distinct namespaces (collections) for the organization, with skill counts and skill names for each collection.
|
|
18171
|
+
* @summary List Skill Collections
|
|
18172
|
+
* @param {string} organisation The organisation ID
|
|
18173
|
+
* @param {*} [options] Override http request option.
|
|
18174
|
+
* @throws {RequiredError}
|
|
18175
|
+
* @memberof AISkillsApi
|
|
18176
|
+
*/
|
|
18177
|
+
public listSkillCollections(organisation: string, options?: RawAxiosRequestConfig) {
|
|
18178
|
+
return AISkillsApiFp(this.configuration).listSkillCollections(organisation, options).then((request) => request(this.axios, this.basePath));
|
|
18179
|
+
}
|
|
18180
|
+
|
|
18181
|
+
/**
|
|
18182
|
+
* Lists all skills available to the organization. Skills are reusable prompts, * workflows, or instructions that can be assigned to agents or invoked directly. * * **Skill Sources:** * - `inline`: Created directly via the API * - `skills.sh`: Imported from skills.sh registry * - `github`: Imported from a GitHub repository * - `local`: Uploaded from local file
|
|
18183
|
+
* @summary List Organization\'s Skills
|
|
18184
|
+
* @param {string} organisation The organisation ID
|
|
18185
|
+
* @param {string} [tag] Filter skills by tag
|
|
18186
|
+
* @param {string} [namespace] Filter skills by collection namespace (e.g. \'superpowers\')
|
|
18187
|
+
* @param {number} [limit] Maximum number of skills to return
|
|
18188
|
+
* @param {*} [options] Override http request option.
|
|
18189
|
+
* @throws {RequiredError}
|
|
18190
|
+
* @memberof AISkillsApi
|
|
18191
|
+
*/
|
|
18192
|
+
public listSkills(organisation: string, tag?: string, namespace?: string, limit?: number, options?: RawAxiosRequestConfig) {
|
|
18193
|
+
return AISkillsApiFp(this.configuration).listSkills(organisation, tag, namespace, limit, options).then((request) => request(this.axios, this.basePath));
|
|
18194
|
+
}
|
|
18195
|
+
|
|
18196
|
+
/**
|
|
18197
|
+
* Re-fetches skill content from its original source. * Only applicable to skills imported from external sources (skills.sh, github). * Inline skills cannot be synced. * * **Version Behavior:** * - If version is pinned, fetches that specific version * - If no version specified, fetches latest
|
|
18198
|
+
* @summary Sync Skill from Source
|
|
18199
|
+
* @param {string} organisation The organisation ID
|
|
18200
|
+
* @param {string} skillId The skill ID
|
|
18201
|
+
* @param {*} [options] Override http request option.
|
|
18202
|
+
* @throws {RequiredError}
|
|
18203
|
+
* @memberof AISkillsApi
|
|
18204
|
+
*/
|
|
18205
|
+
public syncSkill(organisation: string, skillId: string, options?: RawAxiosRequestConfig) {
|
|
18206
|
+
return AISkillsApiFp(this.configuration).syncSkill(organisation, skillId, options).then((request) => request(this.axios, this.basePath));
|
|
18207
|
+
}
|
|
18208
|
+
|
|
18209
|
+
/**
|
|
18210
|
+
* Re-syncs all skills in a namespace from their GitHub source. Detects new * skills added to the repository and flags skills removed from the source. Does NOT auto-delete removed skills.
|
|
18211
|
+
* @summary Sync Skill Collection
|
|
18212
|
+
* @param {string} organisation The organisation ID
|
|
18213
|
+
* @param {string} namespace Collection namespace
|
|
18214
|
+
* @param {*} [options] Override http request option.
|
|
18215
|
+
* @throws {RequiredError}
|
|
18216
|
+
* @memberof AISkillsApi
|
|
18217
|
+
*/
|
|
18218
|
+
public syncSkillCollection(organisation: string, namespace: string, options?: RawAxiosRequestConfig) {
|
|
18219
|
+
return AISkillsApiFp(this.configuration).syncSkillCollection(organisation, namespace, options).then((request) => request(this.axios, this.basePath));
|
|
18220
|
+
}
|
|
18221
|
+
|
|
18222
|
+
/**
|
|
18223
|
+
* Updates an existing skill. For imported skills, this updates * local overrides (name, tags, triggerCondition) but not the source content. * Use the sync endpoint to update source content.
|
|
18224
|
+
* @summary Update Skill
|
|
18225
|
+
* @param {string} organisation The organisation ID
|
|
18226
|
+
* @param {string} skillId The skill ID
|
|
18227
|
+
* @param {UpdateSkillRequest} updateSkillRequest
|
|
18228
|
+
* @param {*} [options] Override http request option.
|
|
18229
|
+
* @throws {RequiredError}
|
|
18230
|
+
* @memberof AISkillsApi
|
|
18231
|
+
*/
|
|
18232
|
+
public updateSkill(organisation: string, skillId: string, updateSkillRequest: UpdateSkillRequest, options?: RawAxiosRequestConfig) {
|
|
18233
|
+
return AISkillsApiFp(this.configuration).updateSkill(organisation, skillId, updateSkillRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16579
18234
|
}
|
|
16580
18235
|
}
|
|
16581
18236
|
|
|
@@ -17964,7 +19619,7 @@ export const AIVectorDatabaseApiFp = function(configuration?: Configuration) {
|
|
|
17964
19619
|
* @param {*} [options] Override http request option.
|
|
17965
19620
|
* @throws {RequiredError}
|
|
17966
19621
|
*/
|
|
17967
|
-
async deleteVectorCollection(organisation: string, collectionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
19622
|
+
async deleteVectorCollection(organisation: string, collectionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSkillCollection200Response>> {
|
|
17968
19623
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteVectorCollection(organisation, collectionId, options);
|
|
17969
19624
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17970
19625
|
const localVarOperationServerBasePath = operationServerMap['AIVectorDatabaseApi.deleteVectorCollection']?.[localVarOperationServerIndex]?.url;
|
|
@@ -18071,7 +19726,7 @@ export const AIVectorDatabaseApiFactory = function (configuration?: Configuratio
|
|
|
18071
19726
|
* @param {*} [options] Override http request option.
|
|
18072
19727
|
* @throws {RequiredError}
|
|
18073
19728
|
*/
|
|
18074
|
-
deleteVectorCollection(organisation: string, collectionId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
19729
|
+
deleteVectorCollection(organisation: string, collectionId: string, options?: RawAxiosRequestConfig): AxiosPromise<DeleteSkillCollection200Response> {
|
|
18075
19730
|
return localVarFp.deleteVectorCollection(organisation, collectionId, options).then((request) => request(axios, basePath));
|
|
18076
19731
|
},
|
|
18077
19732
|
/**
|
|
@@ -19213,12 +20868,12 @@ export const CDNMetricsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
19213
20868
|
* @param {string} organization Organization identifier
|
|
19214
20869
|
* @param {string} project Project identifier
|
|
19215
20870
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
19216
|
-
* @param {Array<
|
|
20871
|
+
* @param {Array<GetDailyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
19217
20872
|
* @param {GetDailyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
19218
20873
|
* @param {*} [options] Override http request option.
|
|
19219
20874
|
* @throws {RequiredError}
|
|
19220
20875
|
*/
|
|
19221
|
-
getDailyMetrics: async (organization: string, project: string, domain?: string, metrics?: Array<
|
|
20876
|
+
getDailyMetrics: async (organization: string, project: string, domain?: string, metrics?: Array<GetDailyMetricsMetricsEnum>, timestampFormat?: GetDailyMetricsTimestampFormatEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19222
20877
|
// verify required parameter 'organization' is not null or undefined
|
|
19223
20878
|
assertParamExists('getDailyMetrics', 'organization', organization)
|
|
19224
20879
|
// verify required parameter 'project' is not null or undefined
|
|
@@ -19270,12 +20925,12 @@ export const CDNMetricsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
19270
20925
|
* @param {string} organization Organization identifier
|
|
19271
20926
|
* @param {string} project Project identifier
|
|
19272
20927
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
19273
|
-
* @param {Array<
|
|
20928
|
+
* @param {Array<GetHourlyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
19274
20929
|
* @param {GetHourlyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
19275
20930
|
* @param {*} [options] Override http request option.
|
|
19276
20931
|
* @throws {RequiredError}
|
|
19277
20932
|
*/
|
|
19278
|
-
getHourlyMetrics: async (organization: string, project: string, domain?: string, metrics?: Array<
|
|
20933
|
+
getHourlyMetrics: async (organization: string, project: string, domain?: string, metrics?: Array<GetHourlyMetricsMetricsEnum>, timestampFormat?: GetHourlyMetricsTimestampFormatEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19279
20934
|
// verify required parameter 'organization' is not null or undefined
|
|
19280
20935
|
assertParamExists('getHourlyMetrics', 'organization', organization)
|
|
19281
20936
|
// verify required parameter 'project' is not null or undefined
|
|
@@ -19327,12 +20982,12 @@ export const CDNMetricsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
19327
20982
|
* @param {string} organization Organization identifier
|
|
19328
20983
|
* @param {string} project Project identifier
|
|
19329
20984
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
19330
|
-
* @param {Array<
|
|
20985
|
+
* @param {Array<GetMonthlyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
19331
20986
|
* @param {GetMonthlyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
19332
20987
|
* @param {*} [options] Override http request option.
|
|
19333
20988
|
* @throws {RequiredError}
|
|
19334
20989
|
*/
|
|
19335
|
-
getMonthlyMetrics: async (organization: string, project: string, domain?: string, metrics?: Array<
|
|
20990
|
+
getMonthlyMetrics: async (organization: string, project: string, domain?: string, metrics?: Array<GetMonthlyMetricsMetricsEnum>, timestampFormat?: GetMonthlyMetricsTimestampFormatEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19336
20991
|
// verify required parameter 'organization' is not null or undefined
|
|
19337
20992
|
assertParamExists('getMonthlyMetrics', 'organization', organization)
|
|
19338
20993
|
// verify required parameter 'project' is not null or undefined
|
|
@@ -19394,12 +21049,12 @@ export const CDNMetricsApiFp = function(configuration?: Configuration) {
|
|
|
19394
21049
|
* @param {string} organization Organization identifier
|
|
19395
21050
|
* @param {string} project Project identifier
|
|
19396
21051
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
19397
|
-
* @param {Array<
|
|
21052
|
+
* @param {Array<GetDailyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
19398
21053
|
* @param {GetDailyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
19399
21054
|
* @param {*} [options] Override http request option.
|
|
19400
21055
|
* @throws {RequiredError}
|
|
19401
21056
|
*/
|
|
19402
|
-
async getDailyMetrics(organization: string, project: string, domain?: string, metrics?: Array<
|
|
21057
|
+
async getDailyMetrics(organization: string, project: string, domain?: string, metrics?: Array<GetDailyMetricsMetricsEnum>, timestampFormat?: GetDailyMetricsTimestampFormatEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V2MetricsResponse>> {
|
|
19403
21058
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getDailyMetrics(organization, project, domain, metrics, timestampFormat, options);
|
|
19404
21059
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19405
21060
|
const localVarOperationServerBasePath = operationServerMap['CDNMetricsApi.getDailyMetrics']?.[localVarOperationServerIndex]?.url;
|
|
@@ -19411,12 +21066,12 @@ export const CDNMetricsApiFp = function(configuration?: Configuration) {
|
|
|
19411
21066
|
* @param {string} organization Organization identifier
|
|
19412
21067
|
* @param {string} project Project identifier
|
|
19413
21068
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
19414
|
-
* @param {Array<
|
|
21069
|
+
* @param {Array<GetHourlyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
19415
21070
|
* @param {GetHourlyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
19416
21071
|
* @param {*} [options] Override http request option.
|
|
19417
21072
|
* @throws {RequiredError}
|
|
19418
21073
|
*/
|
|
19419
|
-
async getHourlyMetrics(organization: string, project: string, domain?: string, metrics?: Array<
|
|
21074
|
+
async getHourlyMetrics(organization: string, project: string, domain?: string, metrics?: Array<GetHourlyMetricsMetricsEnum>, timestampFormat?: GetHourlyMetricsTimestampFormatEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V2MetricsResponse>> {
|
|
19420
21075
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getHourlyMetrics(organization, project, domain, metrics, timestampFormat, options);
|
|
19421
21076
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19422
21077
|
const localVarOperationServerBasePath = operationServerMap['CDNMetricsApi.getHourlyMetrics']?.[localVarOperationServerIndex]?.url;
|
|
@@ -19428,12 +21083,12 @@ export const CDNMetricsApiFp = function(configuration?: Configuration) {
|
|
|
19428
21083
|
* @param {string} organization Organization identifier
|
|
19429
21084
|
* @param {string} project Project identifier
|
|
19430
21085
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
19431
|
-
* @param {Array<
|
|
21086
|
+
* @param {Array<GetMonthlyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
19432
21087
|
* @param {GetMonthlyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
19433
21088
|
* @param {*} [options] Override http request option.
|
|
19434
21089
|
* @throws {RequiredError}
|
|
19435
21090
|
*/
|
|
19436
|
-
async getMonthlyMetrics(organization: string, project: string, domain?: string, metrics?: Array<
|
|
21091
|
+
async getMonthlyMetrics(organization: string, project: string, domain?: string, metrics?: Array<GetMonthlyMetricsMetricsEnum>, timestampFormat?: GetMonthlyMetricsTimestampFormatEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V2MetricsResponse>> {
|
|
19437
21092
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getMonthlyMetrics(organization, project, domain, metrics, timestampFormat, options);
|
|
19438
21093
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19439
21094
|
const localVarOperationServerBasePath = operationServerMap['CDNMetricsApi.getMonthlyMetrics']?.[localVarOperationServerIndex]?.url;
|
|
@@ -19455,12 +21110,12 @@ export const CDNMetricsApiFactory = function (configuration?: Configuration, bas
|
|
|
19455
21110
|
* @param {string} organization Organization identifier
|
|
19456
21111
|
* @param {string} project Project identifier
|
|
19457
21112
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
19458
|
-
* @param {Array<
|
|
21113
|
+
* @param {Array<GetDailyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
19459
21114
|
* @param {GetDailyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
19460
21115
|
* @param {*} [options] Override http request option.
|
|
19461
21116
|
* @throws {RequiredError}
|
|
19462
21117
|
*/
|
|
19463
|
-
getDailyMetrics(organization: string, project: string, domain?: string, metrics?: Array<
|
|
21118
|
+
getDailyMetrics(organization: string, project: string, domain?: string, metrics?: Array<GetDailyMetricsMetricsEnum>, timestampFormat?: GetDailyMetricsTimestampFormatEnum, options?: RawAxiosRequestConfig): AxiosPromise<V2MetricsResponse> {
|
|
19464
21119
|
return localVarFp.getDailyMetrics(organization, project, domain, metrics, timestampFormat, options).then((request) => request(axios, basePath));
|
|
19465
21120
|
},
|
|
19466
21121
|
/**
|
|
@@ -19469,12 +21124,12 @@ export const CDNMetricsApiFactory = function (configuration?: Configuration, bas
|
|
|
19469
21124
|
* @param {string} organization Organization identifier
|
|
19470
21125
|
* @param {string} project Project identifier
|
|
19471
21126
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
19472
|
-
* @param {Array<
|
|
21127
|
+
* @param {Array<GetHourlyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
19473
21128
|
* @param {GetHourlyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
19474
21129
|
* @param {*} [options] Override http request option.
|
|
19475
21130
|
* @throws {RequiredError}
|
|
19476
21131
|
*/
|
|
19477
|
-
getHourlyMetrics(organization: string, project: string, domain?: string, metrics?: Array<
|
|
21132
|
+
getHourlyMetrics(organization: string, project: string, domain?: string, metrics?: Array<GetHourlyMetricsMetricsEnum>, timestampFormat?: GetHourlyMetricsTimestampFormatEnum, options?: RawAxiosRequestConfig): AxiosPromise<V2MetricsResponse> {
|
|
19478
21133
|
return localVarFp.getHourlyMetrics(organization, project, domain, metrics, timestampFormat, options).then((request) => request(axios, basePath));
|
|
19479
21134
|
},
|
|
19480
21135
|
/**
|
|
@@ -19483,12 +21138,12 @@ export const CDNMetricsApiFactory = function (configuration?: Configuration, bas
|
|
|
19483
21138
|
* @param {string} organization Organization identifier
|
|
19484
21139
|
* @param {string} project Project identifier
|
|
19485
21140
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
19486
|
-
* @param {Array<
|
|
21141
|
+
* @param {Array<GetMonthlyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
19487
21142
|
* @param {GetMonthlyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
19488
21143
|
* @param {*} [options] Override http request option.
|
|
19489
21144
|
* @throws {RequiredError}
|
|
19490
21145
|
*/
|
|
19491
|
-
getMonthlyMetrics(organization: string, project: string, domain?: string, metrics?: Array<
|
|
21146
|
+
getMonthlyMetrics(organization: string, project: string, domain?: string, metrics?: Array<GetMonthlyMetricsMetricsEnum>, timestampFormat?: GetMonthlyMetricsTimestampFormatEnum, options?: RawAxiosRequestConfig): AxiosPromise<V2MetricsResponse> {
|
|
19492
21147
|
return localVarFp.getMonthlyMetrics(organization, project, domain, metrics, timestampFormat, options).then((request) => request(axios, basePath));
|
|
19493
21148
|
},
|
|
19494
21149
|
};
|
|
@@ -19507,13 +21162,13 @@ export class CDNMetricsApi extends BaseAPI {
|
|
|
19507
21162
|
* @param {string} organization Organization identifier
|
|
19508
21163
|
* @param {string} project Project identifier
|
|
19509
21164
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
19510
|
-
* @param {Array<
|
|
21165
|
+
* @param {Array<GetDailyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
19511
21166
|
* @param {GetDailyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
19512
21167
|
* @param {*} [options] Override http request option.
|
|
19513
21168
|
* @throws {RequiredError}
|
|
19514
21169
|
* @memberof CDNMetricsApi
|
|
19515
21170
|
*/
|
|
19516
|
-
public getDailyMetrics(organization: string, project: string, domain?: string, metrics?: Array<
|
|
21171
|
+
public getDailyMetrics(organization: string, project: string, domain?: string, metrics?: Array<GetDailyMetricsMetricsEnum>, timestampFormat?: GetDailyMetricsTimestampFormatEnum, options?: RawAxiosRequestConfig) {
|
|
19517
21172
|
return CDNMetricsApiFp(this.configuration).getDailyMetrics(organization, project, domain, metrics, timestampFormat, options).then((request) => request(this.axios, this.basePath));
|
|
19518
21173
|
}
|
|
19519
21174
|
|
|
@@ -19523,13 +21178,13 @@ export class CDNMetricsApi extends BaseAPI {
|
|
|
19523
21178
|
* @param {string} organization Organization identifier
|
|
19524
21179
|
* @param {string} project Project identifier
|
|
19525
21180
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
19526
|
-
* @param {Array<
|
|
21181
|
+
* @param {Array<GetHourlyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
19527
21182
|
* @param {GetHourlyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
19528
21183
|
* @param {*} [options] Override http request option.
|
|
19529
21184
|
* @throws {RequiredError}
|
|
19530
21185
|
* @memberof CDNMetricsApi
|
|
19531
21186
|
*/
|
|
19532
|
-
public getHourlyMetrics(organization: string, project: string, domain?: string, metrics?: Array<
|
|
21187
|
+
public getHourlyMetrics(organization: string, project: string, domain?: string, metrics?: Array<GetHourlyMetricsMetricsEnum>, timestampFormat?: GetHourlyMetricsTimestampFormatEnum, options?: RawAxiosRequestConfig) {
|
|
19533
21188
|
return CDNMetricsApiFp(this.configuration).getHourlyMetrics(organization, project, domain, metrics, timestampFormat, options).then((request) => request(this.axios, this.basePath));
|
|
19534
21189
|
}
|
|
19535
21190
|
|
|
@@ -19539,17 +21194,46 @@ export class CDNMetricsApi extends BaseAPI {
|
|
|
19539
21194
|
* @param {string} organization Organization identifier
|
|
19540
21195
|
* @param {string} project Project identifier
|
|
19541
21196
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
19542
|
-
* @param {Array<
|
|
21197
|
+
* @param {Array<GetMonthlyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
19543
21198
|
* @param {GetMonthlyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
19544
21199
|
* @param {*} [options] Override http request option.
|
|
19545
21200
|
* @throws {RequiredError}
|
|
19546
21201
|
* @memberof CDNMetricsApi
|
|
19547
21202
|
*/
|
|
19548
|
-
public getMonthlyMetrics(organization: string, project: string, domain?: string, metrics?: Array<
|
|
21203
|
+
public getMonthlyMetrics(organization: string, project: string, domain?: string, metrics?: Array<GetMonthlyMetricsMetricsEnum>, timestampFormat?: GetMonthlyMetricsTimestampFormatEnum, options?: RawAxiosRequestConfig) {
|
|
19549
21204
|
return CDNMetricsApiFp(this.configuration).getMonthlyMetrics(organization, project, domain, metrics, timestampFormat, options).then((request) => request(this.axios, this.basePath));
|
|
19550
21205
|
}
|
|
19551
21206
|
}
|
|
19552
21207
|
|
|
21208
|
+
/**
|
|
21209
|
+
* @export
|
|
21210
|
+
*/
|
|
21211
|
+
export const GetDailyMetricsMetricsEnum = {
|
|
21212
|
+
Hits: 'hits',
|
|
21213
|
+
Bytes: 'bytes',
|
|
21214
|
+
EdgeRespHeaderBytes: 'edge_resp_header_bytes',
|
|
21215
|
+
BereqBodyBytes: 'bereq_body_bytes',
|
|
21216
|
+
BereqHeaderBytes: 'bereq_header_bytes',
|
|
21217
|
+
Bandwidth: 'bandwidth',
|
|
21218
|
+
EdgeHitRatio: 'edge_hit_ratio',
|
|
21219
|
+
EdgeHitRequests: 'edge_hit_requests',
|
|
21220
|
+
EdgeMissRequests: 'edge_miss_requests',
|
|
21221
|
+
OriginFetches: 'origin_fetches',
|
|
21222
|
+
OriginFetchRespBodyBytes: 'origin_fetch_resp_body_bytes',
|
|
21223
|
+
OriginFetchRespHeaderBytes: 'origin_fetch_resp_header_bytes',
|
|
21224
|
+
OriginOffload: 'origin_offload',
|
|
21225
|
+
Status1xx: 'status_1xx',
|
|
21226
|
+
Status2xx: 'status_2xx',
|
|
21227
|
+
Status3xx: 'status_3xx',
|
|
21228
|
+
Status4xx: 'status_4xx',
|
|
21229
|
+
Status5xx: 'status_5xx',
|
|
21230
|
+
OriginStatus1xx: 'origin_status_1xx',
|
|
21231
|
+
OriginStatus2xx: 'origin_status_2xx',
|
|
21232
|
+
OriginStatus3xx: 'origin_status_3xx',
|
|
21233
|
+
OriginStatus4xx: 'origin_status_4xx',
|
|
21234
|
+
OriginStatus5xx: 'origin_status_5xx'
|
|
21235
|
+
} as const;
|
|
21236
|
+
export type GetDailyMetricsMetricsEnum = typeof GetDailyMetricsMetricsEnum[keyof typeof GetDailyMetricsMetricsEnum];
|
|
19553
21237
|
/**
|
|
19554
21238
|
* @export
|
|
19555
21239
|
*/
|
|
@@ -19558,6 +21242,35 @@ export const GetDailyMetricsTimestampFormatEnum = {
|
|
|
19558
21242
|
Unix: 'unix'
|
|
19559
21243
|
} as const;
|
|
19560
21244
|
export type GetDailyMetricsTimestampFormatEnum = typeof GetDailyMetricsTimestampFormatEnum[keyof typeof GetDailyMetricsTimestampFormatEnum];
|
|
21245
|
+
/**
|
|
21246
|
+
* @export
|
|
21247
|
+
*/
|
|
21248
|
+
export const GetHourlyMetricsMetricsEnum = {
|
|
21249
|
+
Hits: 'hits',
|
|
21250
|
+
Bytes: 'bytes',
|
|
21251
|
+
EdgeRespHeaderBytes: 'edge_resp_header_bytes',
|
|
21252
|
+
BereqBodyBytes: 'bereq_body_bytes',
|
|
21253
|
+
BereqHeaderBytes: 'bereq_header_bytes',
|
|
21254
|
+
Bandwidth: 'bandwidth',
|
|
21255
|
+
EdgeHitRatio: 'edge_hit_ratio',
|
|
21256
|
+
EdgeHitRequests: 'edge_hit_requests',
|
|
21257
|
+
EdgeMissRequests: 'edge_miss_requests',
|
|
21258
|
+
OriginFetches: 'origin_fetches',
|
|
21259
|
+
OriginFetchRespBodyBytes: 'origin_fetch_resp_body_bytes',
|
|
21260
|
+
OriginFetchRespHeaderBytes: 'origin_fetch_resp_header_bytes',
|
|
21261
|
+
OriginOffload: 'origin_offload',
|
|
21262
|
+
Status1xx: 'status_1xx',
|
|
21263
|
+
Status2xx: 'status_2xx',
|
|
21264
|
+
Status3xx: 'status_3xx',
|
|
21265
|
+
Status4xx: 'status_4xx',
|
|
21266
|
+
Status5xx: 'status_5xx',
|
|
21267
|
+
OriginStatus1xx: 'origin_status_1xx',
|
|
21268
|
+
OriginStatus2xx: 'origin_status_2xx',
|
|
21269
|
+
OriginStatus3xx: 'origin_status_3xx',
|
|
21270
|
+
OriginStatus4xx: 'origin_status_4xx',
|
|
21271
|
+
OriginStatus5xx: 'origin_status_5xx'
|
|
21272
|
+
} as const;
|
|
21273
|
+
export type GetHourlyMetricsMetricsEnum = typeof GetHourlyMetricsMetricsEnum[keyof typeof GetHourlyMetricsMetricsEnum];
|
|
19561
21274
|
/**
|
|
19562
21275
|
* @export
|
|
19563
21276
|
*/
|
|
@@ -19566,6 +21279,35 @@ export const GetHourlyMetricsTimestampFormatEnum = {
|
|
|
19566
21279
|
Unix: 'unix'
|
|
19567
21280
|
} as const;
|
|
19568
21281
|
export type GetHourlyMetricsTimestampFormatEnum = typeof GetHourlyMetricsTimestampFormatEnum[keyof typeof GetHourlyMetricsTimestampFormatEnum];
|
|
21282
|
+
/**
|
|
21283
|
+
* @export
|
|
21284
|
+
*/
|
|
21285
|
+
export const GetMonthlyMetricsMetricsEnum = {
|
|
21286
|
+
Hits: 'hits',
|
|
21287
|
+
Bytes: 'bytes',
|
|
21288
|
+
EdgeRespHeaderBytes: 'edge_resp_header_bytes',
|
|
21289
|
+
BereqBodyBytes: 'bereq_body_bytes',
|
|
21290
|
+
BereqHeaderBytes: 'bereq_header_bytes',
|
|
21291
|
+
Bandwidth: 'bandwidth',
|
|
21292
|
+
EdgeHitRatio: 'edge_hit_ratio',
|
|
21293
|
+
EdgeHitRequests: 'edge_hit_requests',
|
|
21294
|
+
EdgeMissRequests: 'edge_miss_requests',
|
|
21295
|
+
OriginFetches: 'origin_fetches',
|
|
21296
|
+
OriginFetchRespBodyBytes: 'origin_fetch_resp_body_bytes',
|
|
21297
|
+
OriginFetchRespHeaderBytes: 'origin_fetch_resp_header_bytes',
|
|
21298
|
+
OriginOffload: 'origin_offload',
|
|
21299
|
+
Status1xx: 'status_1xx',
|
|
21300
|
+
Status2xx: 'status_2xx',
|
|
21301
|
+
Status3xx: 'status_3xx',
|
|
21302
|
+
Status4xx: 'status_4xx',
|
|
21303
|
+
Status5xx: 'status_5xx',
|
|
21304
|
+
OriginStatus1xx: 'origin_status_1xx',
|
|
21305
|
+
OriginStatus2xx: 'origin_status_2xx',
|
|
21306
|
+
OriginStatus3xx: 'origin_status_3xx',
|
|
21307
|
+
OriginStatus4xx: 'origin_status_4xx',
|
|
21308
|
+
OriginStatus5xx: 'origin_status_5xx'
|
|
21309
|
+
} as const;
|
|
21310
|
+
export type GetMonthlyMetricsMetricsEnum = typeof GetMonthlyMetricsMetricsEnum[keyof typeof GetMonthlyMetricsMetricsEnum];
|
|
19569
21311
|
/**
|
|
19570
21312
|
* @export
|
|
19571
21313
|
*/
|
|
@@ -25272,125 +27014,6 @@ export class KVApi extends BaseAPI {
|
|
|
25272
27014
|
|
|
25273
27015
|
|
|
25274
27016
|
|
|
25275
|
-
/**
|
|
25276
|
-
* OrchestrationApi - axios parameter creator
|
|
25277
|
-
* @export
|
|
25278
|
-
*/
|
|
25279
|
-
export const OrchestrationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
25280
|
-
return {
|
|
25281
|
-
/**
|
|
25282
|
-
* Retrieves the status and synthesized result of a multi-tool async execution orchestration. * * **Note:** This endpoint is for async tool execution polling (`/tools/orchestrations`). * For durable batch processing orchestrations, see `GET /orchestrations` endpoints. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries
|
|
25283
|
-
* @summary Get Tool Orchestration Status (Async Tool Polling)
|
|
25284
|
-
* @param {string} organisation The organisation ID
|
|
25285
|
-
* @param {string} orchestrationId Orchestration identifier for aggregated async tool executions
|
|
25286
|
-
* @param {*} [options] Override http request option.
|
|
25287
|
-
* @throws {RequiredError}
|
|
25288
|
-
*/
|
|
25289
|
-
getAIOrchestrationStatus: async (organisation: string, orchestrationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25290
|
-
// verify required parameter 'organisation' is not null or undefined
|
|
25291
|
-
assertParamExists('getAIOrchestrationStatus', 'organisation', organisation)
|
|
25292
|
-
// verify required parameter 'orchestrationId' is not null or undefined
|
|
25293
|
-
assertParamExists('getAIOrchestrationStatus', 'orchestrationId', orchestrationId)
|
|
25294
|
-
const localVarPath = `/api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId}`
|
|
25295
|
-
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
25296
|
-
.replace(`{${"orchestrationId"}}`, encodeURIComponent(String(orchestrationId)));
|
|
25297
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25298
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25299
|
-
let baseOptions;
|
|
25300
|
-
if (configuration) {
|
|
25301
|
-
baseOptions = configuration.baseOptions;
|
|
25302
|
-
}
|
|
25303
|
-
|
|
25304
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
25305
|
-
const localVarHeaderParameter = {} as any;
|
|
25306
|
-
const localVarQueryParameter = {} as any;
|
|
25307
|
-
|
|
25308
|
-
// authentication BearerAuth required
|
|
25309
|
-
// http bearer authentication required
|
|
25310
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
25311
|
-
|
|
25312
|
-
|
|
25313
|
-
|
|
25314
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25315
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25316
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
25317
|
-
|
|
25318
|
-
return {
|
|
25319
|
-
url: toPathString(localVarUrlObj),
|
|
25320
|
-
options: localVarRequestOptions,
|
|
25321
|
-
};
|
|
25322
|
-
},
|
|
25323
|
-
}
|
|
25324
|
-
};
|
|
25325
|
-
|
|
25326
|
-
/**
|
|
25327
|
-
* OrchestrationApi - functional programming interface
|
|
25328
|
-
* @export
|
|
25329
|
-
*/
|
|
25330
|
-
export const OrchestrationApiFp = function(configuration?: Configuration) {
|
|
25331
|
-
const localVarAxiosParamCreator = OrchestrationApiAxiosParamCreator(configuration)
|
|
25332
|
-
return {
|
|
25333
|
-
/**
|
|
25334
|
-
* Retrieves the status and synthesized result of a multi-tool async execution orchestration. * * **Note:** This endpoint is for async tool execution polling (`/tools/orchestrations`). * For durable batch processing orchestrations, see `GET /orchestrations` endpoints. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries
|
|
25335
|
-
* @summary Get Tool Orchestration Status (Async Tool Polling)
|
|
25336
|
-
* @param {string} organisation The organisation ID
|
|
25337
|
-
* @param {string} orchestrationId Orchestration identifier for aggregated async tool executions
|
|
25338
|
-
* @param {*} [options] Override http request option.
|
|
25339
|
-
* @throws {RequiredError}
|
|
25340
|
-
*/
|
|
25341
|
-
async getAIOrchestrationStatus(organisation: string, orchestrationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAIOrchestrationStatus200Response>> {
|
|
25342
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAIOrchestrationStatus(organisation, orchestrationId, options);
|
|
25343
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25344
|
-
const localVarOperationServerBasePath = operationServerMap['OrchestrationApi.getAIOrchestrationStatus']?.[localVarOperationServerIndex]?.url;
|
|
25345
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25346
|
-
},
|
|
25347
|
-
}
|
|
25348
|
-
};
|
|
25349
|
-
|
|
25350
|
-
/**
|
|
25351
|
-
* OrchestrationApi - factory interface
|
|
25352
|
-
* @export
|
|
25353
|
-
*/
|
|
25354
|
-
export const OrchestrationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
25355
|
-
const localVarFp = OrchestrationApiFp(configuration)
|
|
25356
|
-
return {
|
|
25357
|
-
/**
|
|
25358
|
-
* Retrieves the status and synthesized result of a multi-tool async execution orchestration. * * **Note:** This endpoint is for async tool execution polling (`/tools/orchestrations`). * For durable batch processing orchestrations, see `GET /orchestrations` endpoints. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries
|
|
25359
|
-
* @summary Get Tool Orchestration Status (Async Tool Polling)
|
|
25360
|
-
* @param {string} organisation The organisation ID
|
|
25361
|
-
* @param {string} orchestrationId Orchestration identifier for aggregated async tool executions
|
|
25362
|
-
* @param {*} [options] Override http request option.
|
|
25363
|
-
* @throws {RequiredError}
|
|
25364
|
-
*/
|
|
25365
|
-
getAIOrchestrationStatus(organisation: string, orchestrationId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetAIOrchestrationStatus200Response> {
|
|
25366
|
-
return localVarFp.getAIOrchestrationStatus(organisation, orchestrationId, options).then((request) => request(axios, basePath));
|
|
25367
|
-
},
|
|
25368
|
-
};
|
|
25369
|
-
};
|
|
25370
|
-
|
|
25371
|
-
/**
|
|
25372
|
-
* OrchestrationApi - object-oriented interface
|
|
25373
|
-
* @export
|
|
25374
|
-
* @class OrchestrationApi
|
|
25375
|
-
* @extends {BaseAPI}
|
|
25376
|
-
*/
|
|
25377
|
-
export class OrchestrationApi extends BaseAPI {
|
|
25378
|
-
/**
|
|
25379
|
-
* Retrieves the status and synthesized result of a multi-tool async execution orchestration. * * **Note:** This endpoint is for async tool execution polling (`/tools/orchestrations`). * For durable batch processing orchestrations, see `GET /orchestrations` endpoints. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries
|
|
25380
|
-
* @summary Get Tool Orchestration Status (Async Tool Polling)
|
|
25381
|
-
* @param {string} organisation The organisation ID
|
|
25382
|
-
* @param {string} orchestrationId Orchestration identifier for aggregated async tool executions
|
|
25383
|
-
* @param {*} [options] Override http request option.
|
|
25384
|
-
* @throws {RequiredError}
|
|
25385
|
-
* @memberof OrchestrationApi
|
|
25386
|
-
*/
|
|
25387
|
-
public getAIOrchestrationStatus(organisation: string, orchestrationId: string, options?: RawAxiosRequestConfig) {
|
|
25388
|
-
return OrchestrationApiFp(this.configuration).getAIOrchestrationStatus(organisation, orchestrationId, options).then((request) => request(this.axios, this.basePath));
|
|
25389
|
-
}
|
|
25390
|
-
}
|
|
25391
|
-
|
|
25392
|
-
|
|
25393
|
-
|
|
25394
27017
|
/**
|
|
25395
27018
|
* OrganizationsApi - axios parameter creator
|
|
25396
27019
|
* @export
|