@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/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* QuantCDN API
|
|
6
6
|
* Unified API for QuantCDN Admin and QuantCloud Platform services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 4.
|
|
8
|
+
* The version of the OpenAPI document: 4.12.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,11 +22,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.VolumesApi = exports.VolumesApiFactory = exports.VolumesApiFp = exports.VolumesApiAxiosParamCreator = exports.VariablesApi = exports.VariablesApiFactory = exports.VariablesApiFp = void 0;
|
|
25
|
+
exports.UpdateAISessionRequestNewMessagesInnerRoleEnum = exports.UpdateAISessionRequestStatusEnum = exports.SpotConfigurationStrategyEnum = exports.ScalingPolicyMetricEnum = exports.QueryVectorCollectionRequestSortOrderEnum = exports.QueryVectorCollectionRequestSortByEnum = exports.QueryVectorCollection200ResponsePaginationSortOrderEnum = exports.QueryVectorCollection200ResponsePaginationSortByEnum = exports.QueryVectorCollection200ResponseSearchModeEnum = exports.PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = exports.ListTasks200ResponseTasksInnerStatusEnum = exports.ListOrchestrationBatches200ResponseBatchesInnerStatusEnum = exports.ImportSkillRequestSourceTypeEnum = exports.ImportSkillCollectionRequestSourceTypeEnum = exports.ImageGenerationRequestTextToImageParamsControlModeEnum = exports.ImageGenerationRequestTextToImageParamsStyleEnum = exports.ImageGenerationRequestOutPaintingParamsOutPaintingModeEnum = exports.ImageGenerationRequestImageGenerationConfigQualityEnum = exports.ImageGenerationRequestRegionEnum = exports.ImageGenerationRequestTaskTypeEnum = exports.GetTask200ResponseStatusEnum = exports.GetDurableExecutionStatus200ResponseStatusEnum = exports.GetAIOrchestrationStatus200ResponseToolsInnerStatusEnum = exports.GetAIOrchestrationStatus200ResponseStatusEnum = exports.EnvironmentSummaryDeploymentStatusEnum = exports.EnvironmentResponseDeploymentStatusEnum = exports.EmbeddingsRequestDimensionsEnum = exports.CronRunStatusEnum = exports.CronRunRunTypeEnum = exports.CreateTaskRequestStatusEnum = exports.CreateOrchestrationRequestStopConditionTypeEnum = exports.CreateOrchestrationRequestInputSourceTypeEnum = exports.CreateApplicationRequestDatabaseEngineEnum = exports.CreateAISessionRequestInitialMessagesInnerRoleEnum = exports.CreateAISession201ResponseStatusEnum = exports.ContainerImageReferenceTypeEnum = exports.ContainerDependsOnInnerConditionEnum = exports.ChatWithAIAgent202ResponseStatusEnum = exports.ChatInferenceStreamRequestMessagesInnerRoleEnum = exports.ChatInferenceRequestResponseFormatTypeEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3DocumentFormatEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2VideoFormatEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1ImageFormatEnum = exports.ChatInferenceRequestMessagesInnerRoleEnum = exports.ChatInferenceRequestGuardrailsTraceEnum = exports.ChatInference202ResponseStatusEnum = exports.ChatInference200ResponseResponseRoleEnum = exports.ChatInference200ResponseFinishReasonEnum = exports.ApplicationImageReferenceTypeEnum = exports.ApplicationDatabaseRdsInstanceEngineEnum = void 0;
|
|
26
|
+
exports.AITaskManagementApi = exports.AITaskManagementApiFactory = exports.AITaskManagementApiFp = exports.AITaskManagementApiAxiosParamCreator = exports.AISkillsApi = exports.AISkillsApiFactory = exports.AISkillsApiFp = exports.AISkillsApiAxiosParamCreator = exports.AISessionsApi = exports.AISessionsApiFactory = exports.AISessionsApiFp = exports.AISessionsApiAxiosParamCreator = exports.ListOrchestrationsStatusEnum = exports.AIOrchestrationsApi = exports.AIOrchestrationsApiFactory = exports.AIOrchestrationsApiFp = exports.AIOrchestrationsApiAxiosParamCreator = exports.AIMonitoringApi = exports.AIMonitoringApiFactory = exports.AIMonitoringApiFp = exports.AIMonitoringApiAxiosParamCreator = exports.ListAIModelsFeatureEnum = exports.AIModelsApi = exports.AIModelsApiFactory = exports.AIModelsApiFp = exports.AIModelsApiAxiosParamCreator = exports.AIInferenceApi = exports.AIInferenceApiFactory = exports.AIInferenceApiFp = exports.AIInferenceApiAxiosParamCreator = exports.AIFileStorageApi = exports.AIFileStorageApiFactory = exports.AIFileStorageApiFp = exports.AIFileStorageApiAxiosParamCreator = exports.AICustomToolsApi = exports.AICustomToolsApiFactory = exports.AICustomToolsApiFp = exports.AICustomToolsApiAxiosParamCreator = exports.AIAgentsApi = exports.AIAgentsApiFactory = exports.AIAgentsApiFp = exports.AIAgentsApiAxiosParamCreator = exports.WafConfigThresholdsInnerModeEnum = exports.WafConfigThresholdsInnerTypeEnum = exports.WafConfigModeEnum = exports.V2RuleProxyActionNotifyEnum = exports.V2MetricsMetaGranularityEnum = exports.V2MetricsMetaPeriodEnum = exports.V1TransitionStateEnum = exports.UpdateTaskRequestStatusEnum = void 0;
|
|
27
|
+
exports.CrawlerSchedulesApi = exports.CrawlerSchedulesApiFactory = exports.CrawlerSchedulesApiFp = exports.CrawlerSchedulesApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.ComposeApi = exports.ComposeApiFactory = exports.ComposeApiFp = exports.ComposeApiAxiosParamCreator = exports.CommandsApi = exports.CommandsApiFactory = exports.CommandsApiFp = exports.CommandsApiAxiosParamCreator = exports.GetMonthlyMetricsTimestampFormatEnum = exports.GetMonthlyMetricsMetricsEnum = exports.GetHourlyMetricsTimestampFormatEnum = exports.GetHourlyMetricsMetricsEnum = exports.GetDailyMetricsTimestampFormatEnum = exports.GetDailyMetricsMetricsEnum = exports.CDNMetricsApi = exports.CDNMetricsApiFactory = exports.CDNMetricsApiFp = exports.CDNMetricsApiAxiosParamCreator = exports.ListBackupsStatusEnum = exports.ListBackupsOrderEnum = exports.ListBackupsTypeEnum = exports.DownloadBackupTypeEnum = exports.DeleteBackupTypeEnum = exports.CreateBackupTypeEnum = exports.BackupManagementApi = exports.BackupManagementApiFactory = exports.BackupManagementApiFp = exports.BackupManagementApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.AIVectorDatabaseApi = exports.AIVectorDatabaseApiFactory = exports.AIVectorDatabaseApiFp = exports.AIVectorDatabaseApiAxiosParamCreator = exports.ListAIToolExecutionsStatusEnum = exports.AIToolsApi = exports.AIToolsApiFactory = exports.AIToolsApiFp = exports.AIToolsApiAxiosParamCreator = exports.ListTasksStatusEnum = void 0;
|
|
28
|
+
exports.ScalingPolicyApi = exports.ScalingPolicyApiFactory = exports.ScalingPolicyApiFp = exports.ScalingPolicyApiAxiosParamCreator = exports.SSHAccessApi = exports.SSHAccessApiFactory = exports.SSHAccessApiFp = exports.SSHAccessApiAxiosParamCreator = exports.RulesApi = exports.RulesApiFactory = exports.RulesApiFp = exports.RulesApiAxiosParamCreator = exports.PurgeApi = exports.PurgeApiFactory = exports.PurgeApiFp = exports.PurgeApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.KVApi = exports.KVApiFactory = exports.KVApiFp = exports.KVApiAxiosParamCreator = exports.HeadersApi = exports.HeadersApiFactory = exports.HeadersApiFp = exports.HeadersApiAxiosParamCreator = exports.SyncToEnvironmentTypeEnum = exports.ListSyncOperationsTypeEnum = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.DomainsApi = exports.DomainsApiFactory = exports.DomainsApiFp = exports.DomainsApiAxiosParamCreator = exports.CronApi = exports.CronApiFactory = exports.CronApiFp = exports.CronApiAxiosParamCreator = exports.CrawlersApi = exports.CrawlersApiFactory = exports.CrawlersApiFp = exports.CrawlersApiAxiosParamCreator = void 0;
|
|
29
|
+
exports.VolumesApi = exports.VolumesApiFactory = exports.VolumesApiFp = exports.VolumesApiAxiosParamCreator = exports.VariablesApi = exports.VariablesApiFactory = exports.VariablesApiFp = exports.VariablesApiAxiosParamCreator = exports.TokensApi = exports.TokensApiFactory = exports.TokensApiFp = exports.TokensApiAxiosParamCreator = void 0;
|
|
30
30
|
const axios_1 = require("axios");
|
|
31
31
|
// Some imports not used depending on template conditions
|
|
32
32
|
// @ts-ignore
|
|
@@ -224,6 +224,13 @@ exports.ImageGenerationRequestTextToImageParamsControlModeEnum = {
|
|
|
224
224
|
CannyEdge: 'CANNY_EDGE',
|
|
225
225
|
Segmentation: 'SEGMENTATION'
|
|
226
226
|
};
|
|
227
|
+
exports.ImportSkillCollectionRequestSourceTypeEnum = {
|
|
228
|
+
Github: 'github'
|
|
229
|
+
};
|
|
230
|
+
exports.ImportSkillRequestSourceTypeEnum = {
|
|
231
|
+
SkillsSh: 'skills.sh',
|
|
232
|
+
Github: 'github'
|
|
233
|
+
};
|
|
227
234
|
exports.ListOrchestrationBatches200ResponseBatchesInnerStatusEnum = {
|
|
228
235
|
Pending: 'pending',
|
|
229
236
|
Running: 'running',
|
|
@@ -3357,213 +3364,1105 @@ const AISessionsApiFp = function (configuration) {
|
|
|
3357
3364
|
* 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
|
|
3358
3365
|
* @summary List chat sessions with multi-tenant filtering
|
|
3359
3366
|
* @param {string} organisation The organisation ID
|
|
3360
|
-
* @param {string} [userId] Filter sessions by user ID
|
|
3361
|
-
* @param {string} [sessionGroup] Filter by session group. Returns only sessions matching the specified group.
|
|
3362
|
-
* @param {number} [limit] Maximum number of sessions to return (default 50, max 100)
|
|
3363
|
-
* @param {number} [offset] Offset for pagination
|
|
3364
|
-
* @param {string} [model] Filter by model ID
|
|
3367
|
+
* @param {string} [userId] Filter sessions by user ID
|
|
3368
|
+
* @param {string} [sessionGroup] Filter by session group. Returns only sessions matching the specified group.
|
|
3369
|
+
* @param {number} [limit] Maximum number of sessions to return (default 50, max 100)
|
|
3370
|
+
* @param {number} [offset] Offset for pagination
|
|
3371
|
+
* @param {string} [model] Filter by model ID
|
|
3372
|
+
* @param {*} [options] Override http request option.
|
|
3373
|
+
* @throws {RequiredError}
|
|
3374
|
+
*/
|
|
3375
|
+
listAISessions(organisation, userId, sessionGroup, limit, offset, model, options) {
|
|
3376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3377
|
+
var _a, _b, _c;
|
|
3378
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAISessions(organisation, userId, sessionGroup, limit, offset, model, options);
|
|
3379
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3380
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISessionsApi.listAISessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3381
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3382
|
+
});
|
|
3383
|
+
},
|
|
3384
|
+
/**
|
|
3385
|
+
* 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
|
|
3386
|
+
* @summary Update Session
|
|
3387
|
+
* @param {string} organisation The organisation ID
|
|
3388
|
+
* @param {string} sessionId The session ID
|
|
3389
|
+
* @param {UpdateAISessionRequest} updateAISessionRequest
|
|
3390
|
+
* @param {*} [options] Override http request option.
|
|
3391
|
+
* @throws {RequiredError}
|
|
3392
|
+
*/
|
|
3393
|
+
updateAISession(organisation, sessionId, updateAISessionRequest, options) {
|
|
3394
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3395
|
+
var _a, _b, _c;
|
|
3396
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAISession(organisation, sessionId, updateAISessionRequest, options);
|
|
3397
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3398
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISessionsApi.updateAISession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3399
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3400
|
+
});
|
|
3401
|
+
},
|
|
3402
|
+
};
|
|
3403
|
+
};
|
|
3404
|
+
exports.AISessionsApiFp = AISessionsApiFp;
|
|
3405
|
+
/**
|
|
3406
|
+
* AISessionsApi - factory interface
|
|
3407
|
+
* @export
|
|
3408
|
+
*/
|
|
3409
|
+
const AISessionsApiFactory = function (configuration, basePath, axios) {
|
|
3410
|
+
const localVarFp = (0, exports.AISessionsApiFp)(configuration);
|
|
3411
|
+
return {
|
|
3412
|
+
/**
|
|
3413
|
+
* 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.
|
|
3414
|
+
* @summary Create a new chat session with multi-tenant isolation
|
|
3415
|
+
* @param {string} organisation The organisation ID
|
|
3416
|
+
* @param {CreateAISessionRequest} createAISessionRequest
|
|
3417
|
+
* @param {*} [options] Override http request option.
|
|
3418
|
+
* @throws {RequiredError}
|
|
3419
|
+
*/
|
|
3420
|
+
createAISession(organisation, createAISessionRequest, options) {
|
|
3421
|
+
return localVarFp.createAISession(organisation, createAISessionRequest, options).then((request) => request(axios, basePath));
|
|
3422
|
+
},
|
|
3423
|
+
/**
|
|
3424
|
+
*
|
|
3425
|
+
* @summary Delete a chat session
|
|
3426
|
+
* @param {string} organisation The organisation ID
|
|
3427
|
+
* @param {string} sessionId The session ID
|
|
3428
|
+
* @param {*} [options] Override http request option.
|
|
3429
|
+
* @throws {RequiredError}
|
|
3430
|
+
*/
|
|
3431
|
+
deleteAISession(organisation, sessionId, options) {
|
|
3432
|
+
return localVarFp.deleteAISession(organisation, sessionId, options).then((request) => request(axios, basePath));
|
|
3433
|
+
},
|
|
3434
|
+
/**
|
|
3435
|
+
* Extends the expiration time of an active session. Useful for keeping long-running conversations alive.
|
|
3436
|
+
* @summary Extend Session Expiration
|
|
3437
|
+
* @param {string} organisation The organisation ID
|
|
3438
|
+
* @param {string} sessionId The session ID
|
|
3439
|
+
* @param {ExtendAISessionRequest} [extendAISessionRequest]
|
|
3440
|
+
* @param {*} [options] Override http request option.
|
|
3441
|
+
* @throws {RequiredError}
|
|
3442
|
+
*/
|
|
3443
|
+
extendAISession(organisation, sessionId, extendAISessionRequest, options) {
|
|
3444
|
+
return localVarFp.extendAISession(organisation, sessionId, extendAISessionRequest, options).then((request) => request(axios, basePath));
|
|
3445
|
+
},
|
|
3446
|
+
/**
|
|
3447
|
+
*
|
|
3448
|
+
* @summary Get a specific chat session
|
|
3449
|
+
* @param {string} organisation The organisation ID
|
|
3450
|
+
* @param {string} sessionId The session ID
|
|
3451
|
+
* @param {*} [options] Override http request option.
|
|
3452
|
+
* @throws {RequiredError}
|
|
3453
|
+
*/
|
|
3454
|
+
getAISession(organisation, sessionId, options) {
|
|
3455
|
+
return localVarFp.getAISession(organisation, sessionId, options).then((request) => request(axios, basePath));
|
|
3456
|
+
},
|
|
3457
|
+
/**
|
|
3458
|
+
* 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
|
|
3459
|
+
* @summary List chat sessions with multi-tenant filtering
|
|
3460
|
+
* @param {string} organisation The organisation ID
|
|
3461
|
+
* @param {string} [userId] Filter sessions by user ID
|
|
3462
|
+
* @param {string} [sessionGroup] Filter by session group. Returns only sessions matching the specified group.
|
|
3463
|
+
* @param {number} [limit] Maximum number of sessions to return (default 50, max 100)
|
|
3464
|
+
* @param {number} [offset] Offset for pagination
|
|
3465
|
+
* @param {string} [model] Filter by model ID
|
|
3466
|
+
* @param {*} [options] Override http request option.
|
|
3467
|
+
* @throws {RequiredError}
|
|
3468
|
+
*/
|
|
3469
|
+
listAISessions(organisation, userId, sessionGroup, limit, offset, model, options) {
|
|
3470
|
+
return localVarFp.listAISessions(organisation, userId, sessionGroup, limit, offset, model, options).then((request) => request(axios, basePath));
|
|
3471
|
+
},
|
|
3472
|
+
/**
|
|
3473
|
+
* 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
|
|
3474
|
+
* @summary Update Session
|
|
3475
|
+
* @param {string} organisation The organisation ID
|
|
3476
|
+
* @param {string} sessionId The session ID
|
|
3477
|
+
* @param {UpdateAISessionRequest} updateAISessionRequest
|
|
3478
|
+
* @param {*} [options] Override http request option.
|
|
3479
|
+
* @throws {RequiredError}
|
|
3480
|
+
*/
|
|
3481
|
+
updateAISession(organisation, sessionId, updateAISessionRequest, options) {
|
|
3482
|
+
return localVarFp.updateAISession(organisation, sessionId, updateAISessionRequest, options).then((request) => request(axios, basePath));
|
|
3483
|
+
},
|
|
3484
|
+
};
|
|
3485
|
+
};
|
|
3486
|
+
exports.AISessionsApiFactory = AISessionsApiFactory;
|
|
3487
|
+
/**
|
|
3488
|
+
* AISessionsApi - object-oriented interface
|
|
3489
|
+
* @export
|
|
3490
|
+
* @class AISessionsApi
|
|
3491
|
+
* @extends {BaseAPI}
|
|
3492
|
+
*/
|
|
3493
|
+
class AISessionsApi extends base_1.BaseAPI {
|
|
3494
|
+
/**
|
|
3495
|
+
* 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.
|
|
3496
|
+
* @summary Create a new chat session with multi-tenant isolation
|
|
3497
|
+
* @param {string} organisation The organisation ID
|
|
3498
|
+
* @param {CreateAISessionRequest} createAISessionRequest
|
|
3499
|
+
* @param {*} [options] Override http request option.
|
|
3500
|
+
* @throws {RequiredError}
|
|
3501
|
+
* @memberof AISessionsApi
|
|
3502
|
+
*/
|
|
3503
|
+
createAISession(organisation, createAISessionRequest, options) {
|
|
3504
|
+
return (0, exports.AISessionsApiFp)(this.configuration).createAISession(organisation, createAISessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3505
|
+
}
|
|
3506
|
+
/**
|
|
3507
|
+
*
|
|
3508
|
+
* @summary Delete a chat session
|
|
3509
|
+
* @param {string} organisation The organisation ID
|
|
3510
|
+
* @param {string} sessionId The session ID
|
|
3511
|
+
* @param {*} [options] Override http request option.
|
|
3512
|
+
* @throws {RequiredError}
|
|
3513
|
+
* @memberof AISessionsApi
|
|
3514
|
+
*/
|
|
3515
|
+
deleteAISession(organisation, sessionId, options) {
|
|
3516
|
+
return (0, exports.AISessionsApiFp)(this.configuration).deleteAISession(organisation, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3517
|
+
}
|
|
3518
|
+
/**
|
|
3519
|
+
* Extends the expiration time of an active session. Useful for keeping long-running conversations alive.
|
|
3520
|
+
* @summary Extend Session Expiration
|
|
3521
|
+
* @param {string} organisation The organisation ID
|
|
3522
|
+
* @param {string} sessionId The session ID
|
|
3523
|
+
* @param {ExtendAISessionRequest} [extendAISessionRequest]
|
|
3524
|
+
* @param {*} [options] Override http request option.
|
|
3525
|
+
* @throws {RequiredError}
|
|
3526
|
+
* @memberof AISessionsApi
|
|
3527
|
+
*/
|
|
3528
|
+
extendAISession(organisation, sessionId, extendAISessionRequest, options) {
|
|
3529
|
+
return (0, exports.AISessionsApiFp)(this.configuration).extendAISession(organisation, sessionId, extendAISessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3530
|
+
}
|
|
3531
|
+
/**
|
|
3532
|
+
*
|
|
3533
|
+
* @summary Get a specific chat session
|
|
3534
|
+
* @param {string} organisation The organisation ID
|
|
3535
|
+
* @param {string} sessionId The session ID
|
|
3536
|
+
* @param {*} [options] Override http request option.
|
|
3537
|
+
* @throws {RequiredError}
|
|
3538
|
+
* @memberof AISessionsApi
|
|
3539
|
+
*/
|
|
3540
|
+
getAISession(organisation, sessionId, options) {
|
|
3541
|
+
return (0, exports.AISessionsApiFp)(this.configuration).getAISession(organisation, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3542
|
+
}
|
|
3543
|
+
/**
|
|
3544
|
+
* 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
|
|
3545
|
+
* @summary List chat sessions with multi-tenant filtering
|
|
3546
|
+
* @param {string} organisation The organisation ID
|
|
3547
|
+
* @param {string} [userId] Filter sessions by user ID
|
|
3548
|
+
* @param {string} [sessionGroup] Filter by session group. Returns only sessions matching the specified group.
|
|
3549
|
+
* @param {number} [limit] Maximum number of sessions to return (default 50, max 100)
|
|
3550
|
+
* @param {number} [offset] Offset for pagination
|
|
3551
|
+
* @param {string} [model] Filter by model ID
|
|
3552
|
+
* @param {*} [options] Override http request option.
|
|
3553
|
+
* @throws {RequiredError}
|
|
3554
|
+
* @memberof AISessionsApi
|
|
3555
|
+
*/
|
|
3556
|
+
listAISessions(organisation, userId, sessionGroup, limit, offset, model, options) {
|
|
3557
|
+
return (0, exports.AISessionsApiFp)(this.configuration).listAISessions(organisation, userId, sessionGroup, limit, offset, model, options).then((request) => request(this.axios, this.basePath));
|
|
3558
|
+
}
|
|
3559
|
+
/**
|
|
3560
|
+
* 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
|
|
3561
|
+
* @summary Update Session
|
|
3562
|
+
* @param {string} organisation The organisation ID
|
|
3563
|
+
* @param {string} sessionId The session ID
|
|
3564
|
+
* @param {UpdateAISessionRequest} updateAISessionRequest
|
|
3565
|
+
* @param {*} [options] Override http request option.
|
|
3566
|
+
* @throws {RequiredError}
|
|
3567
|
+
* @memberof AISessionsApi
|
|
3568
|
+
*/
|
|
3569
|
+
updateAISession(organisation, sessionId, updateAISessionRequest, options) {
|
|
3570
|
+
return (0, exports.AISessionsApiFp)(this.configuration).updateAISession(organisation, sessionId, updateAISessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3571
|
+
}
|
|
3572
|
+
}
|
|
3573
|
+
exports.AISessionsApi = AISessionsApi;
|
|
3574
|
+
/**
|
|
3575
|
+
* AISkillsApi - axios parameter creator
|
|
3576
|
+
* @export
|
|
3577
|
+
*/
|
|
3578
|
+
const AISkillsApiAxiosParamCreator = function (configuration) {
|
|
3579
|
+
return {
|
|
3580
|
+
/**
|
|
3581
|
+
* 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\'
|
|
3582
|
+
* @summary Create Inline Skill
|
|
3583
|
+
* @param {string} organisation The organisation ID
|
|
3584
|
+
* @param {CreateSkillRequest} createSkillRequest
|
|
3585
|
+
* @param {*} [options] Override http request option.
|
|
3586
|
+
* @throws {RequiredError}
|
|
3587
|
+
*/
|
|
3588
|
+
createSkill: (organisation_1, createSkillRequest_1, ...args_1) => __awaiter(this, [organisation_1, createSkillRequest_1, ...args_1], void 0, function* (organisation, createSkillRequest, options = {}) {
|
|
3589
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
3590
|
+
(0, common_1.assertParamExists)('createSkill', 'organisation', organisation);
|
|
3591
|
+
// verify required parameter 'createSkillRequest' is not null or undefined
|
|
3592
|
+
(0, common_1.assertParamExists)('createSkill', 'createSkillRequest', createSkillRequest);
|
|
3593
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills`
|
|
3594
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
3595
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3596
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3597
|
+
let baseOptions;
|
|
3598
|
+
if (configuration) {
|
|
3599
|
+
baseOptions = configuration.baseOptions;
|
|
3600
|
+
}
|
|
3601
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3602
|
+
const localVarHeaderParameter = {};
|
|
3603
|
+
const localVarQueryParameter = {};
|
|
3604
|
+
// authentication BearerAuth required
|
|
3605
|
+
// http bearer authentication required
|
|
3606
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3607
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3608
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3609
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3610
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3611
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSkillRequest, localVarRequestOptions, configuration);
|
|
3612
|
+
return {
|
|
3613
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3614
|
+
options: localVarRequestOptions,
|
|
3615
|
+
};
|
|
3616
|
+
}),
|
|
3617
|
+
/**
|
|
3618
|
+
* Permanently deletes a skill. This will also remove it from any agents that have it assigned.
|
|
3619
|
+
* @summary Delete Skill
|
|
3620
|
+
* @param {string} organisation The organisation ID
|
|
3621
|
+
* @param {string} skillId The skill ID
|
|
3622
|
+
* @param {*} [options] Override http request option.
|
|
3623
|
+
* @throws {RequiredError}
|
|
3624
|
+
*/
|
|
3625
|
+
deleteSkill: (organisation_1, skillId_1, ...args_1) => __awaiter(this, [organisation_1, skillId_1, ...args_1], void 0, function* (organisation, skillId, options = {}) {
|
|
3626
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
3627
|
+
(0, common_1.assertParamExists)('deleteSkill', 'organisation', organisation);
|
|
3628
|
+
// verify required parameter 'skillId' is not null or undefined
|
|
3629
|
+
(0, common_1.assertParamExists)('deleteSkill', 'skillId', skillId);
|
|
3630
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/{skillId}`
|
|
3631
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
3632
|
+
.replace(`{${"skillId"}}`, encodeURIComponent(String(skillId)));
|
|
3633
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3634
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3635
|
+
let baseOptions;
|
|
3636
|
+
if (configuration) {
|
|
3637
|
+
baseOptions = configuration.baseOptions;
|
|
3638
|
+
}
|
|
3639
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3640
|
+
const localVarHeaderParameter = {};
|
|
3641
|
+
const localVarQueryParameter = {};
|
|
3642
|
+
// authentication BearerAuth required
|
|
3643
|
+
// http bearer authentication required
|
|
3644
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3645
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3646
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3647
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3648
|
+
return {
|
|
3649
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3650
|
+
options: localVarRequestOptions,
|
|
3651
|
+
};
|
|
3652
|
+
}),
|
|
3653
|
+
/**
|
|
3654
|
+
* Permanently deletes all skills in the specified namespace.
|
|
3655
|
+
* @summary Delete Skill Collection
|
|
3656
|
+
* @param {string} organisation The organisation ID
|
|
3657
|
+
* @param {string} namespace Collection namespace
|
|
3658
|
+
* @param {*} [options] Override http request option.
|
|
3659
|
+
* @throws {RequiredError}
|
|
3660
|
+
*/
|
|
3661
|
+
deleteSkillCollection: (organisation_1, namespace_1, ...args_1) => __awaiter(this, [organisation_1, namespace_1, ...args_1], void 0, function* (organisation, namespace, options = {}) {
|
|
3662
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
3663
|
+
(0, common_1.assertParamExists)('deleteSkillCollection', 'organisation', organisation);
|
|
3664
|
+
// verify required parameter 'namespace' is not null or undefined
|
|
3665
|
+
(0, common_1.assertParamExists)('deleteSkillCollection', 'namespace', namespace);
|
|
3666
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/collections/{namespace}`
|
|
3667
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
3668
|
+
.replace(`{${"namespace"}}`, encodeURIComponent(String(namespace)));
|
|
3669
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3670
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3671
|
+
let baseOptions;
|
|
3672
|
+
if (configuration) {
|
|
3673
|
+
baseOptions = configuration.baseOptions;
|
|
3674
|
+
}
|
|
3675
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3676
|
+
const localVarHeaderParameter = {};
|
|
3677
|
+
const localVarQueryParameter = {};
|
|
3678
|
+
// authentication BearerAuth required
|
|
3679
|
+
// http bearer authentication required
|
|
3680
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3681
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3682
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3683
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3684
|
+
return {
|
|
3685
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3686
|
+
options: localVarRequestOptions,
|
|
3687
|
+
};
|
|
3688
|
+
}),
|
|
3689
|
+
/**
|
|
3690
|
+
* Retrieves full details of a skill including its content, source information, and metadata.
|
|
3691
|
+
* @summary Get Skill Details
|
|
3692
|
+
* @param {string} organisation The organisation ID
|
|
3693
|
+
* @param {string} skillId The skill ID
|
|
3694
|
+
* @param {*} [options] Override http request option.
|
|
3695
|
+
* @throws {RequiredError}
|
|
3696
|
+
*/
|
|
3697
|
+
getSkill: (organisation_1, skillId_1, ...args_1) => __awaiter(this, [organisation_1, skillId_1, ...args_1], void 0, function* (organisation, skillId, options = {}) {
|
|
3698
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
3699
|
+
(0, common_1.assertParamExists)('getSkill', 'organisation', organisation);
|
|
3700
|
+
// verify required parameter 'skillId' is not null or undefined
|
|
3701
|
+
(0, common_1.assertParamExists)('getSkill', 'skillId', skillId);
|
|
3702
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/{skillId}`
|
|
3703
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
3704
|
+
.replace(`{${"skillId"}}`, encodeURIComponent(String(skillId)));
|
|
3705
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3706
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3707
|
+
let baseOptions;
|
|
3708
|
+
if (configuration) {
|
|
3709
|
+
baseOptions = configuration.baseOptions;
|
|
3710
|
+
}
|
|
3711
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3712
|
+
const localVarHeaderParameter = {};
|
|
3713
|
+
const localVarQueryParameter = {};
|
|
3714
|
+
// authentication BearerAuth required
|
|
3715
|
+
// http bearer authentication required
|
|
3716
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3717
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3718
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3719
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3720
|
+
return {
|
|
3721
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3722
|
+
options: localVarRequestOptions,
|
|
3723
|
+
};
|
|
3724
|
+
}),
|
|
3725
|
+
/**
|
|
3726
|
+
* 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
|
|
3727
|
+
* @summary Import Skill from External Source
|
|
3728
|
+
* @param {string} organisation The organisation ID
|
|
3729
|
+
* @param {ImportSkillRequest} importSkillRequest
|
|
3730
|
+
* @param {*} [options] Override http request option.
|
|
3731
|
+
* @throws {RequiredError}
|
|
3732
|
+
*/
|
|
3733
|
+
importSkill: (organisation_1, importSkillRequest_1, ...args_1) => __awaiter(this, [organisation_1, importSkillRequest_1, ...args_1], void 0, function* (organisation, importSkillRequest, options = {}) {
|
|
3734
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
3735
|
+
(0, common_1.assertParamExists)('importSkill', 'organisation', organisation);
|
|
3736
|
+
// verify required parameter 'importSkillRequest' is not null or undefined
|
|
3737
|
+
(0, common_1.assertParamExists)('importSkill', 'importSkillRequest', importSkillRequest);
|
|
3738
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/import`
|
|
3739
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
3740
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3741
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3742
|
+
let baseOptions;
|
|
3743
|
+
if (configuration) {
|
|
3744
|
+
baseOptions = configuration.baseOptions;
|
|
3745
|
+
}
|
|
3746
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3747
|
+
const localVarHeaderParameter = {};
|
|
3748
|
+
const localVarQueryParameter = {};
|
|
3749
|
+
// authentication BearerAuth required
|
|
3750
|
+
// http bearer authentication required
|
|
3751
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3752
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3753
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3754
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3755
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3756
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(importSkillRequest, localVarRequestOptions, configuration);
|
|
3757
|
+
return {
|
|
3758
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3759
|
+
options: localVarRequestOptions,
|
|
3760
|
+
};
|
|
3761
|
+
}),
|
|
3762
|
+
/**
|
|
3763
|
+
* 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.
|
|
3764
|
+
* @summary Import Skill Collection from GitHub
|
|
3765
|
+
* @param {string} organisation The organisation ID
|
|
3766
|
+
* @param {ImportSkillCollectionRequest} importSkillCollectionRequest
|
|
3767
|
+
* @param {*} [options] Override http request option.
|
|
3768
|
+
* @throws {RequiredError}
|
|
3769
|
+
*/
|
|
3770
|
+
importSkillCollection: (organisation_1, importSkillCollectionRequest_1, ...args_1) => __awaiter(this, [organisation_1, importSkillCollectionRequest_1, ...args_1], void 0, function* (organisation, importSkillCollectionRequest, options = {}) {
|
|
3771
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
3772
|
+
(0, common_1.assertParamExists)('importSkillCollection', 'organisation', organisation);
|
|
3773
|
+
// verify required parameter 'importSkillCollectionRequest' is not null or undefined
|
|
3774
|
+
(0, common_1.assertParamExists)('importSkillCollection', 'importSkillCollectionRequest', importSkillCollectionRequest);
|
|
3775
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/import-collection`
|
|
3776
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
3777
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3778
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3779
|
+
let baseOptions;
|
|
3780
|
+
if (configuration) {
|
|
3781
|
+
baseOptions = configuration.baseOptions;
|
|
3782
|
+
}
|
|
3783
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3784
|
+
const localVarHeaderParameter = {};
|
|
3785
|
+
const localVarQueryParameter = {};
|
|
3786
|
+
// authentication BearerAuth required
|
|
3787
|
+
// http bearer authentication required
|
|
3788
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3789
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3790
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3791
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3792
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3793
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(importSkillCollectionRequest, localVarRequestOptions, configuration);
|
|
3794
|
+
return {
|
|
3795
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3796
|
+
options: localVarRequestOptions,
|
|
3797
|
+
};
|
|
3798
|
+
}),
|
|
3799
|
+
/**
|
|
3800
|
+
* Lists distinct namespaces (collections) for the organization, with skill counts and skill names for each collection.
|
|
3801
|
+
* @summary List Skill Collections
|
|
3802
|
+
* @param {string} organisation The organisation ID
|
|
3803
|
+
* @param {*} [options] Override http request option.
|
|
3804
|
+
* @throws {RequiredError}
|
|
3805
|
+
*/
|
|
3806
|
+
listSkillCollections: (organisation_1, ...args_1) => __awaiter(this, [organisation_1, ...args_1], void 0, function* (organisation, options = {}) {
|
|
3807
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
3808
|
+
(0, common_1.assertParamExists)('listSkillCollections', 'organisation', organisation);
|
|
3809
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/collections`
|
|
3810
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
3811
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3812
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3813
|
+
let baseOptions;
|
|
3814
|
+
if (configuration) {
|
|
3815
|
+
baseOptions = configuration.baseOptions;
|
|
3816
|
+
}
|
|
3817
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3818
|
+
const localVarHeaderParameter = {};
|
|
3819
|
+
const localVarQueryParameter = {};
|
|
3820
|
+
// authentication BearerAuth required
|
|
3821
|
+
// http bearer authentication required
|
|
3822
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3823
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3824
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3825
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3826
|
+
return {
|
|
3827
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3828
|
+
options: localVarRequestOptions,
|
|
3829
|
+
};
|
|
3830
|
+
}),
|
|
3831
|
+
/**
|
|
3832
|
+
* 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
|
|
3833
|
+
* @summary List Organization\'s Skills
|
|
3834
|
+
* @param {string} organisation The organisation ID
|
|
3835
|
+
* @param {string} [tag] Filter skills by tag
|
|
3836
|
+
* @param {string} [namespace] Filter skills by collection namespace (e.g. \'superpowers\')
|
|
3837
|
+
* @param {number} [limit] Maximum number of skills to return
|
|
3838
|
+
* @param {*} [options] Override http request option.
|
|
3839
|
+
* @throws {RequiredError}
|
|
3840
|
+
*/
|
|
3841
|
+
listSkills: (organisation_1, tag_1, namespace_1, limit_1, ...args_1) => __awaiter(this, [organisation_1, tag_1, namespace_1, limit_1, ...args_1], void 0, function* (organisation, tag, namespace, limit, options = {}) {
|
|
3842
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
3843
|
+
(0, common_1.assertParamExists)('listSkills', 'organisation', organisation);
|
|
3844
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills`
|
|
3845
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
3846
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3847
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3848
|
+
let baseOptions;
|
|
3849
|
+
if (configuration) {
|
|
3850
|
+
baseOptions = configuration.baseOptions;
|
|
3851
|
+
}
|
|
3852
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3853
|
+
const localVarHeaderParameter = {};
|
|
3854
|
+
const localVarQueryParameter = {};
|
|
3855
|
+
// authentication BearerAuth required
|
|
3856
|
+
// http bearer authentication required
|
|
3857
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3858
|
+
if (tag !== undefined) {
|
|
3859
|
+
localVarQueryParameter['tag'] = tag;
|
|
3860
|
+
}
|
|
3861
|
+
if (namespace !== undefined) {
|
|
3862
|
+
localVarQueryParameter['namespace'] = namespace;
|
|
3863
|
+
}
|
|
3864
|
+
if (limit !== undefined) {
|
|
3865
|
+
localVarQueryParameter['limit'] = limit;
|
|
3866
|
+
}
|
|
3867
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3868
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3869
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3870
|
+
return {
|
|
3871
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3872
|
+
options: localVarRequestOptions,
|
|
3873
|
+
};
|
|
3874
|
+
}),
|
|
3875
|
+
/**
|
|
3876
|
+
* 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
|
|
3877
|
+
* @summary Sync Skill from Source
|
|
3878
|
+
* @param {string} organisation The organisation ID
|
|
3879
|
+
* @param {string} skillId The skill ID
|
|
3880
|
+
* @param {*} [options] Override http request option.
|
|
3881
|
+
* @throws {RequiredError}
|
|
3882
|
+
*/
|
|
3883
|
+
syncSkill: (organisation_1, skillId_1, ...args_1) => __awaiter(this, [organisation_1, skillId_1, ...args_1], void 0, function* (organisation, skillId, options = {}) {
|
|
3884
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
3885
|
+
(0, common_1.assertParamExists)('syncSkill', 'organisation', organisation);
|
|
3886
|
+
// verify required parameter 'skillId' is not null or undefined
|
|
3887
|
+
(0, common_1.assertParamExists)('syncSkill', 'skillId', skillId);
|
|
3888
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/{skillId}/sync`
|
|
3889
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
3890
|
+
.replace(`{${"skillId"}}`, encodeURIComponent(String(skillId)));
|
|
3891
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3892
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3893
|
+
let baseOptions;
|
|
3894
|
+
if (configuration) {
|
|
3895
|
+
baseOptions = configuration.baseOptions;
|
|
3896
|
+
}
|
|
3897
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3898
|
+
const localVarHeaderParameter = {};
|
|
3899
|
+
const localVarQueryParameter = {};
|
|
3900
|
+
// authentication BearerAuth required
|
|
3901
|
+
// http bearer authentication required
|
|
3902
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3903
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3904
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3905
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3906
|
+
return {
|
|
3907
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3908
|
+
options: localVarRequestOptions,
|
|
3909
|
+
};
|
|
3910
|
+
}),
|
|
3911
|
+
/**
|
|
3912
|
+
* 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.
|
|
3913
|
+
* @summary Sync Skill Collection
|
|
3914
|
+
* @param {string} organisation The organisation ID
|
|
3915
|
+
* @param {string} namespace Collection namespace
|
|
3916
|
+
* @param {*} [options] Override http request option.
|
|
3917
|
+
* @throws {RequiredError}
|
|
3918
|
+
*/
|
|
3919
|
+
syncSkillCollection: (organisation_1, namespace_1, ...args_1) => __awaiter(this, [organisation_1, namespace_1, ...args_1], void 0, function* (organisation, namespace, options = {}) {
|
|
3920
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
3921
|
+
(0, common_1.assertParamExists)('syncSkillCollection', 'organisation', organisation);
|
|
3922
|
+
// verify required parameter 'namespace' is not null or undefined
|
|
3923
|
+
(0, common_1.assertParamExists)('syncSkillCollection', 'namespace', namespace);
|
|
3924
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/collections/{namespace}/sync`
|
|
3925
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
3926
|
+
.replace(`{${"namespace"}}`, encodeURIComponent(String(namespace)));
|
|
3927
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3928
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3929
|
+
let baseOptions;
|
|
3930
|
+
if (configuration) {
|
|
3931
|
+
baseOptions = configuration.baseOptions;
|
|
3932
|
+
}
|
|
3933
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3934
|
+
const localVarHeaderParameter = {};
|
|
3935
|
+
const localVarQueryParameter = {};
|
|
3936
|
+
// authentication BearerAuth required
|
|
3937
|
+
// http bearer authentication required
|
|
3938
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3939
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3940
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3941
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3942
|
+
return {
|
|
3943
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3944
|
+
options: localVarRequestOptions,
|
|
3945
|
+
};
|
|
3946
|
+
}),
|
|
3947
|
+
/**
|
|
3948
|
+
* 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.
|
|
3949
|
+
* @summary Update Skill
|
|
3950
|
+
* @param {string} organisation The organisation ID
|
|
3951
|
+
* @param {string} skillId The skill ID
|
|
3952
|
+
* @param {UpdateSkillRequest} updateSkillRequest
|
|
3953
|
+
* @param {*} [options] Override http request option.
|
|
3954
|
+
* @throws {RequiredError}
|
|
3955
|
+
*/
|
|
3956
|
+
updateSkill: (organisation_1, skillId_1, updateSkillRequest_1, ...args_1) => __awaiter(this, [organisation_1, skillId_1, updateSkillRequest_1, ...args_1], void 0, function* (organisation, skillId, updateSkillRequest, options = {}) {
|
|
3957
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
3958
|
+
(0, common_1.assertParamExists)('updateSkill', 'organisation', organisation);
|
|
3959
|
+
// verify required parameter 'skillId' is not null or undefined
|
|
3960
|
+
(0, common_1.assertParamExists)('updateSkill', 'skillId', skillId);
|
|
3961
|
+
// verify required parameter 'updateSkillRequest' is not null or undefined
|
|
3962
|
+
(0, common_1.assertParamExists)('updateSkill', 'updateSkillRequest', updateSkillRequest);
|
|
3963
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/skills/{skillId}`
|
|
3964
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
3965
|
+
.replace(`{${"skillId"}}`, encodeURIComponent(String(skillId)));
|
|
3966
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3967
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3968
|
+
let baseOptions;
|
|
3969
|
+
if (configuration) {
|
|
3970
|
+
baseOptions = configuration.baseOptions;
|
|
3971
|
+
}
|
|
3972
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3973
|
+
const localVarHeaderParameter = {};
|
|
3974
|
+
const localVarQueryParameter = {};
|
|
3975
|
+
// authentication BearerAuth required
|
|
3976
|
+
// http bearer authentication required
|
|
3977
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3978
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3979
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3980
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3981
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3982
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSkillRequest, localVarRequestOptions, configuration);
|
|
3983
|
+
return {
|
|
3984
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3985
|
+
options: localVarRequestOptions,
|
|
3986
|
+
};
|
|
3987
|
+
}),
|
|
3988
|
+
};
|
|
3989
|
+
};
|
|
3990
|
+
exports.AISkillsApiAxiosParamCreator = AISkillsApiAxiosParamCreator;
|
|
3991
|
+
/**
|
|
3992
|
+
* AISkillsApi - functional programming interface
|
|
3993
|
+
* @export
|
|
3994
|
+
*/
|
|
3995
|
+
const AISkillsApiFp = function (configuration) {
|
|
3996
|
+
const localVarAxiosParamCreator = (0, exports.AISkillsApiAxiosParamCreator)(configuration);
|
|
3997
|
+
return {
|
|
3998
|
+
/**
|
|
3999
|
+
* 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\'
|
|
4000
|
+
* @summary Create Inline Skill
|
|
4001
|
+
* @param {string} organisation The organisation ID
|
|
4002
|
+
* @param {CreateSkillRequest} createSkillRequest
|
|
4003
|
+
* @param {*} [options] Override http request option.
|
|
4004
|
+
* @throws {RequiredError}
|
|
4005
|
+
*/
|
|
4006
|
+
createSkill(organisation, createSkillRequest, options) {
|
|
4007
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4008
|
+
var _a, _b, _c;
|
|
4009
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSkill(organisation, createSkillRequest, options);
|
|
4010
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4011
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISkillsApi.createSkill']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4012
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4013
|
+
});
|
|
4014
|
+
},
|
|
4015
|
+
/**
|
|
4016
|
+
* Permanently deletes a skill. This will also remove it from any agents that have it assigned.
|
|
4017
|
+
* @summary Delete Skill
|
|
4018
|
+
* @param {string} organisation The organisation ID
|
|
4019
|
+
* @param {string} skillId The skill ID
|
|
4020
|
+
* @param {*} [options] Override http request option.
|
|
4021
|
+
* @throws {RequiredError}
|
|
4022
|
+
*/
|
|
4023
|
+
deleteSkill(organisation, skillId, options) {
|
|
4024
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4025
|
+
var _a, _b, _c;
|
|
4026
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSkill(organisation, skillId, options);
|
|
4027
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4028
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISkillsApi.deleteSkill']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4029
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4030
|
+
});
|
|
4031
|
+
},
|
|
4032
|
+
/**
|
|
4033
|
+
* Permanently deletes all skills in the specified namespace.
|
|
4034
|
+
* @summary Delete Skill Collection
|
|
4035
|
+
* @param {string} organisation The organisation ID
|
|
4036
|
+
* @param {string} namespace Collection namespace
|
|
4037
|
+
* @param {*} [options] Override http request option.
|
|
4038
|
+
* @throws {RequiredError}
|
|
4039
|
+
*/
|
|
4040
|
+
deleteSkillCollection(organisation, namespace, options) {
|
|
4041
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4042
|
+
var _a, _b, _c;
|
|
4043
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSkillCollection(organisation, namespace, options);
|
|
4044
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4045
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISkillsApi.deleteSkillCollection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4046
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4047
|
+
});
|
|
4048
|
+
},
|
|
4049
|
+
/**
|
|
4050
|
+
* Retrieves full details of a skill including its content, source information, and metadata.
|
|
4051
|
+
* @summary Get Skill Details
|
|
4052
|
+
* @param {string} organisation The organisation ID
|
|
4053
|
+
* @param {string} skillId The skill ID
|
|
4054
|
+
* @param {*} [options] Override http request option.
|
|
4055
|
+
* @throws {RequiredError}
|
|
4056
|
+
*/
|
|
4057
|
+
getSkill(organisation, skillId, options) {
|
|
4058
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4059
|
+
var _a, _b, _c;
|
|
4060
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSkill(organisation, skillId, options);
|
|
4061
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4062
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISkillsApi.getSkill']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4063
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4064
|
+
});
|
|
4065
|
+
},
|
|
4066
|
+
/**
|
|
4067
|
+
* 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
|
|
4068
|
+
* @summary Import Skill from External Source
|
|
4069
|
+
* @param {string} organisation The organisation ID
|
|
4070
|
+
* @param {ImportSkillRequest} importSkillRequest
|
|
4071
|
+
* @param {*} [options] Override http request option.
|
|
4072
|
+
* @throws {RequiredError}
|
|
4073
|
+
*/
|
|
4074
|
+
importSkill(organisation, importSkillRequest, options) {
|
|
4075
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4076
|
+
var _a, _b, _c;
|
|
4077
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.importSkill(organisation, importSkillRequest, options);
|
|
4078
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4079
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISkillsApi.importSkill']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4080
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4081
|
+
});
|
|
4082
|
+
},
|
|
4083
|
+
/**
|
|
4084
|
+
* 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.
|
|
4085
|
+
* @summary Import Skill Collection from GitHub
|
|
4086
|
+
* @param {string} organisation The organisation ID
|
|
4087
|
+
* @param {ImportSkillCollectionRequest} importSkillCollectionRequest
|
|
4088
|
+
* @param {*} [options] Override http request option.
|
|
4089
|
+
* @throws {RequiredError}
|
|
4090
|
+
*/
|
|
4091
|
+
importSkillCollection(organisation, importSkillCollectionRequest, options) {
|
|
4092
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4093
|
+
var _a, _b, _c;
|
|
4094
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.importSkillCollection(organisation, importSkillCollectionRequest, options);
|
|
4095
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4096
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISkillsApi.importSkillCollection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4097
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4098
|
+
});
|
|
4099
|
+
},
|
|
4100
|
+
/**
|
|
4101
|
+
* Lists distinct namespaces (collections) for the organization, with skill counts and skill names for each collection.
|
|
4102
|
+
* @summary List Skill Collections
|
|
4103
|
+
* @param {string} organisation The organisation ID
|
|
4104
|
+
* @param {*} [options] Override http request option.
|
|
4105
|
+
* @throws {RequiredError}
|
|
4106
|
+
*/
|
|
4107
|
+
listSkillCollections(organisation, options) {
|
|
4108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4109
|
+
var _a, _b, _c;
|
|
4110
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSkillCollections(organisation, options);
|
|
4111
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4112
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISkillsApi.listSkillCollections']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4113
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4114
|
+
});
|
|
4115
|
+
},
|
|
4116
|
+
/**
|
|
4117
|
+
* 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
|
|
4118
|
+
* @summary List Organization\'s Skills
|
|
4119
|
+
* @param {string} organisation The organisation ID
|
|
4120
|
+
* @param {string} [tag] Filter skills by tag
|
|
4121
|
+
* @param {string} [namespace] Filter skills by collection namespace (e.g. \'superpowers\')
|
|
4122
|
+
* @param {number} [limit] Maximum number of skills to return
|
|
4123
|
+
* @param {*} [options] Override http request option.
|
|
4124
|
+
* @throws {RequiredError}
|
|
4125
|
+
*/
|
|
4126
|
+
listSkills(organisation, tag, namespace, limit, options) {
|
|
4127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4128
|
+
var _a, _b, _c;
|
|
4129
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSkills(organisation, tag, namespace, limit, options);
|
|
4130
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4131
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISkillsApi.listSkills']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4132
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4133
|
+
});
|
|
4134
|
+
},
|
|
4135
|
+
/**
|
|
4136
|
+
* 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
|
|
4137
|
+
* @summary Sync Skill from Source
|
|
4138
|
+
* @param {string} organisation The organisation ID
|
|
4139
|
+
* @param {string} skillId The skill ID
|
|
4140
|
+
* @param {*} [options] Override http request option.
|
|
4141
|
+
* @throws {RequiredError}
|
|
4142
|
+
*/
|
|
4143
|
+
syncSkill(organisation, skillId, options) {
|
|
4144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4145
|
+
var _a, _b, _c;
|
|
4146
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.syncSkill(organisation, skillId, options);
|
|
4147
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4148
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISkillsApi.syncSkill']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4149
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4150
|
+
});
|
|
4151
|
+
},
|
|
4152
|
+
/**
|
|
4153
|
+
* 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.
|
|
4154
|
+
* @summary Sync Skill Collection
|
|
4155
|
+
* @param {string} organisation The organisation ID
|
|
4156
|
+
* @param {string} namespace Collection namespace
|
|
4157
|
+
* @param {*} [options] Override http request option.
|
|
4158
|
+
* @throws {RequiredError}
|
|
4159
|
+
*/
|
|
4160
|
+
syncSkillCollection(organisation, namespace, options) {
|
|
4161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4162
|
+
var _a, _b, _c;
|
|
4163
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.syncSkillCollection(organisation, namespace, options);
|
|
4164
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4165
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISkillsApi.syncSkillCollection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4166
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4167
|
+
});
|
|
4168
|
+
},
|
|
4169
|
+
/**
|
|
4170
|
+
* 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.
|
|
4171
|
+
* @summary Update Skill
|
|
4172
|
+
* @param {string} organisation The organisation ID
|
|
4173
|
+
* @param {string} skillId The skill ID
|
|
4174
|
+
* @param {UpdateSkillRequest} updateSkillRequest
|
|
4175
|
+
* @param {*} [options] Override http request option.
|
|
4176
|
+
* @throws {RequiredError}
|
|
4177
|
+
*/
|
|
4178
|
+
updateSkill(organisation, skillId, updateSkillRequest, options) {
|
|
4179
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4180
|
+
var _a, _b, _c;
|
|
4181
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSkill(organisation, skillId, updateSkillRequest, options);
|
|
4182
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4183
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISkillsApi.updateSkill']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4184
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4185
|
+
});
|
|
4186
|
+
},
|
|
4187
|
+
};
|
|
4188
|
+
};
|
|
4189
|
+
exports.AISkillsApiFp = AISkillsApiFp;
|
|
4190
|
+
/**
|
|
4191
|
+
* AISkillsApi - factory interface
|
|
4192
|
+
* @export
|
|
4193
|
+
*/
|
|
4194
|
+
const AISkillsApiFactory = function (configuration, basePath, axios) {
|
|
4195
|
+
const localVarFp = (0, exports.AISkillsApiFp)(configuration);
|
|
4196
|
+
return {
|
|
4197
|
+
/**
|
|
4198
|
+
* 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\'
|
|
4199
|
+
* @summary Create Inline Skill
|
|
4200
|
+
* @param {string} organisation The organisation ID
|
|
4201
|
+
* @param {CreateSkillRequest} createSkillRequest
|
|
4202
|
+
* @param {*} [options] Override http request option.
|
|
4203
|
+
* @throws {RequiredError}
|
|
4204
|
+
*/
|
|
4205
|
+
createSkill(organisation, createSkillRequest, options) {
|
|
4206
|
+
return localVarFp.createSkill(organisation, createSkillRequest, options).then((request) => request(axios, basePath));
|
|
4207
|
+
},
|
|
4208
|
+
/**
|
|
4209
|
+
* Permanently deletes a skill. This will also remove it from any agents that have it assigned.
|
|
4210
|
+
* @summary Delete Skill
|
|
4211
|
+
* @param {string} organisation The organisation ID
|
|
4212
|
+
* @param {string} skillId The skill ID
|
|
4213
|
+
* @param {*} [options] Override http request option.
|
|
4214
|
+
* @throws {RequiredError}
|
|
4215
|
+
*/
|
|
4216
|
+
deleteSkill(organisation, skillId, options) {
|
|
4217
|
+
return localVarFp.deleteSkill(organisation, skillId, options).then((request) => request(axios, basePath));
|
|
4218
|
+
},
|
|
4219
|
+
/**
|
|
4220
|
+
* Permanently deletes all skills in the specified namespace.
|
|
4221
|
+
* @summary Delete Skill Collection
|
|
4222
|
+
* @param {string} organisation The organisation ID
|
|
4223
|
+
* @param {string} namespace Collection namespace
|
|
4224
|
+
* @param {*} [options] Override http request option.
|
|
4225
|
+
* @throws {RequiredError}
|
|
4226
|
+
*/
|
|
4227
|
+
deleteSkillCollection(organisation, namespace, options) {
|
|
4228
|
+
return localVarFp.deleteSkillCollection(organisation, namespace, options).then((request) => request(axios, basePath));
|
|
4229
|
+
},
|
|
4230
|
+
/**
|
|
4231
|
+
* Retrieves full details of a skill including its content, source information, and metadata.
|
|
4232
|
+
* @summary Get Skill Details
|
|
4233
|
+
* @param {string} organisation The organisation ID
|
|
4234
|
+
* @param {string} skillId The skill ID
|
|
3365
4235
|
* @param {*} [options] Override http request option.
|
|
3366
4236
|
* @throws {RequiredError}
|
|
3367
4237
|
*/
|
|
3368
|
-
|
|
3369
|
-
return
|
|
3370
|
-
var _a, _b, _c;
|
|
3371
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAISessions(organisation, userId, sessionGroup, limit, offset, model, options);
|
|
3372
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3373
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISessionsApi.listAISessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3374
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3375
|
-
});
|
|
4238
|
+
getSkill(organisation, skillId, options) {
|
|
4239
|
+
return localVarFp.getSkill(organisation, skillId, options).then((request) => request(axios, basePath));
|
|
3376
4240
|
},
|
|
3377
4241
|
/**
|
|
3378
|
-
*
|
|
3379
|
-
* @summary
|
|
4242
|
+
* 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
|
|
4243
|
+
* @summary Import Skill from External Source
|
|
3380
4244
|
* @param {string} organisation The organisation ID
|
|
3381
|
-
* @param {
|
|
3382
|
-
* @param {UpdateAISessionRequest} updateAISessionRequest
|
|
4245
|
+
* @param {ImportSkillRequest} importSkillRequest
|
|
3383
4246
|
* @param {*} [options] Override http request option.
|
|
3384
4247
|
* @throws {RequiredError}
|
|
3385
4248
|
*/
|
|
3386
|
-
|
|
3387
|
-
return
|
|
3388
|
-
var _a, _b, _c;
|
|
3389
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAISession(organisation, sessionId, updateAISessionRequest, options);
|
|
3390
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3391
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISessionsApi.updateAISession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3392
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3393
|
-
});
|
|
4249
|
+
importSkill(organisation, importSkillRequest, options) {
|
|
4250
|
+
return localVarFp.importSkill(organisation, importSkillRequest, options).then((request) => request(axios, basePath));
|
|
3394
4251
|
},
|
|
3395
|
-
};
|
|
3396
|
-
};
|
|
3397
|
-
exports.AISessionsApiFp = AISessionsApiFp;
|
|
3398
|
-
/**
|
|
3399
|
-
* AISessionsApi - factory interface
|
|
3400
|
-
* @export
|
|
3401
|
-
*/
|
|
3402
|
-
const AISessionsApiFactory = function (configuration, basePath, axios) {
|
|
3403
|
-
const localVarFp = (0, exports.AISessionsApiFp)(configuration);
|
|
3404
|
-
return {
|
|
3405
4252
|
/**
|
|
3406
|
-
*
|
|
3407
|
-
* @summary
|
|
4253
|
+
* 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.
|
|
4254
|
+
* @summary Import Skill Collection from GitHub
|
|
3408
4255
|
* @param {string} organisation The organisation ID
|
|
3409
|
-
* @param {
|
|
4256
|
+
* @param {ImportSkillCollectionRequest} importSkillCollectionRequest
|
|
3410
4257
|
* @param {*} [options] Override http request option.
|
|
3411
4258
|
* @throws {RequiredError}
|
|
3412
4259
|
*/
|
|
3413
|
-
|
|
3414
|
-
return localVarFp.
|
|
4260
|
+
importSkillCollection(organisation, importSkillCollectionRequest, options) {
|
|
4261
|
+
return localVarFp.importSkillCollection(organisation, importSkillCollectionRequest, options).then((request) => request(axios, basePath));
|
|
3415
4262
|
},
|
|
3416
4263
|
/**
|
|
3417
|
-
*
|
|
3418
|
-
* @summary
|
|
4264
|
+
* Lists distinct namespaces (collections) for the organization, with skill counts and skill names for each collection.
|
|
4265
|
+
* @summary List Skill Collections
|
|
3419
4266
|
* @param {string} organisation The organisation ID
|
|
3420
|
-
* @param {string} sessionId The session ID
|
|
3421
4267
|
* @param {*} [options] Override http request option.
|
|
3422
4268
|
* @throws {RequiredError}
|
|
3423
4269
|
*/
|
|
3424
|
-
|
|
3425
|
-
return localVarFp.
|
|
4270
|
+
listSkillCollections(organisation, options) {
|
|
4271
|
+
return localVarFp.listSkillCollections(organisation, options).then((request) => request(axios, basePath));
|
|
3426
4272
|
},
|
|
3427
4273
|
/**
|
|
3428
|
-
*
|
|
3429
|
-
* @summary
|
|
4274
|
+
* 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
|
|
4275
|
+
* @summary List Organization\'s Skills
|
|
3430
4276
|
* @param {string} organisation The organisation ID
|
|
3431
|
-
* @param {string}
|
|
3432
|
-
* @param {
|
|
4277
|
+
* @param {string} [tag] Filter skills by tag
|
|
4278
|
+
* @param {string} [namespace] Filter skills by collection namespace (e.g. \'superpowers\')
|
|
4279
|
+
* @param {number} [limit] Maximum number of skills to return
|
|
3433
4280
|
* @param {*} [options] Override http request option.
|
|
3434
4281
|
* @throws {RequiredError}
|
|
3435
4282
|
*/
|
|
3436
|
-
|
|
3437
|
-
return localVarFp.
|
|
4283
|
+
listSkills(organisation, tag, namespace, limit, options) {
|
|
4284
|
+
return localVarFp.listSkills(organisation, tag, namespace, limit, options).then((request) => request(axios, basePath));
|
|
3438
4285
|
},
|
|
3439
4286
|
/**
|
|
3440
|
-
*
|
|
3441
|
-
* @summary
|
|
4287
|
+
* 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
|
|
4288
|
+
* @summary Sync Skill from Source
|
|
3442
4289
|
* @param {string} organisation The organisation ID
|
|
3443
|
-
* @param {string}
|
|
4290
|
+
* @param {string} skillId The skill ID
|
|
3444
4291
|
* @param {*} [options] Override http request option.
|
|
3445
4292
|
* @throws {RequiredError}
|
|
3446
4293
|
*/
|
|
3447
|
-
|
|
3448
|
-
return localVarFp.
|
|
4294
|
+
syncSkill(organisation, skillId, options) {
|
|
4295
|
+
return localVarFp.syncSkill(organisation, skillId, options).then((request) => request(axios, basePath));
|
|
3449
4296
|
},
|
|
3450
4297
|
/**
|
|
3451
|
-
*
|
|
3452
|
-
* @summary
|
|
4298
|
+
* 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.
|
|
4299
|
+
* @summary Sync Skill Collection
|
|
3453
4300
|
* @param {string} organisation The organisation ID
|
|
3454
|
-
* @param {string}
|
|
3455
|
-
* @param {string} [sessionGroup] Filter by session group. Returns only sessions matching the specified group.
|
|
3456
|
-
* @param {number} [limit] Maximum number of sessions to return (default 50, max 100)
|
|
3457
|
-
* @param {number} [offset] Offset for pagination
|
|
3458
|
-
* @param {string} [model] Filter by model ID
|
|
4301
|
+
* @param {string} namespace Collection namespace
|
|
3459
4302
|
* @param {*} [options] Override http request option.
|
|
3460
4303
|
* @throws {RequiredError}
|
|
3461
4304
|
*/
|
|
3462
|
-
|
|
3463
|
-
return localVarFp.
|
|
4305
|
+
syncSkillCollection(organisation, namespace, options) {
|
|
4306
|
+
return localVarFp.syncSkillCollection(organisation, namespace, options).then((request) => request(axios, basePath));
|
|
3464
4307
|
},
|
|
3465
4308
|
/**
|
|
3466
|
-
* Updates
|
|
3467
|
-
* @summary Update
|
|
4309
|
+
* 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.
|
|
4310
|
+
* @summary Update Skill
|
|
3468
4311
|
* @param {string} organisation The organisation ID
|
|
3469
|
-
* @param {string}
|
|
3470
|
-
* @param {
|
|
4312
|
+
* @param {string} skillId The skill ID
|
|
4313
|
+
* @param {UpdateSkillRequest} updateSkillRequest
|
|
3471
4314
|
* @param {*} [options] Override http request option.
|
|
3472
4315
|
* @throws {RequiredError}
|
|
3473
4316
|
*/
|
|
3474
|
-
|
|
3475
|
-
return localVarFp.
|
|
4317
|
+
updateSkill(organisation, skillId, updateSkillRequest, options) {
|
|
4318
|
+
return localVarFp.updateSkill(organisation, skillId, updateSkillRequest, options).then((request) => request(axios, basePath));
|
|
3476
4319
|
},
|
|
3477
4320
|
};
|
|
3478
4321
|
};
|
|
3479
|
-
exports.
|
|
4322
|
+
exports.AISkillsApiFactory = AISkillsApiFactory;
|
|
3480
4323
|
/**
|
|
3481
|
-
*
|
|
4324
|
+
* AISkillsApi - object-oriented interface
|
|
3482
4325
|
* @export
|
|
3483
|
-
* @class
|
|
4326
|
+
* @class AISkillsApi
|
|
3484
4327
|
* @extends {BaseAPI}
|
|
3485
4328
|
*/
|
|
3486
|
-
class
|
|
4329
|
+
class AISkillsApi extends base_1.BaseAPI {
|
|
3487
4330
|
/**
|
|
3488
|
-
* Creates
|
|
3489
|
-
* @summary Create
|
|
4331
|
+
* 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\'
|
|
4332
|
+
* @summary Create Inline Skill
|
|
3490
4333
|
* @param {string} organisation The organisation ID
|
|
3491
|
-
* @param {
|
|
4334
|
+
* @param {CreateSkillRequest} createSkillRequest
|
|
3492
4335
|
* @param {*} [options] Override http request option.
|
|
3493
4336
|
* @throws {RequiredError}
|
|
3494
|
-
* @memberof
|
|
4337
|
+
* @memberof AISkillsApi
|
|
3495
4338
|
*/
|
|
3496
|
-
|
|
3497
|
-
return (0, exports.
|
|
4339
|
+
createSkill(organisation, createSkillRequest, options) {
|
|
4340
|
+
return (0, exports.AISkillsApiFp)(this.configuration).createSkill(organisation, createSkillRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3498
4341
|
}
|
|
3499
4342
|
/**
|
|
3500
|
-
*
|
|
3501
|
-
* @summary Delete
|
|
4343
|
+
* Permanently deletes a skill. This will also remove it from any agents that have it assigned.
|
|
4344
|
+
* @summary Delete Skill
|
|
3502
4345
|
* @param {string} organisation The organisation ID
|
|
3503
|
-
* @param {string}
|
|
4346
|
+
* @param {string} skillId The skill ID
|
|
3504
4347
|
* @param {*} [options] Override http request option.
|
|
3505
4348
|
* @throws {RequiredError}
|
|
3506
|
-
* @memberof
|
|
4349
|
+
* @memberof AISkillsApi
|
|
3507
4350
|
*/
|
|
3508
|
-
|
|
3509
|
-
return (0, exports.
|
|
4351
|
+
deleteSkill(organisation, skillId, options) {
|
|
4352
|
+
return (0, exports.AISkillsApiFp)(this.configuration).deleteSkill(organisation, skillId, options).then((request) => request(this.axios, this.basePath));
|
|
3510
4353
|
}
|
|
3511
4354
|
/**
|
|
3512
|
-
*
|
|
3513
|
-
* @summary
|
|
4355
|
+
* Permanently deletes all skills in the specified namespace.
|
|
4356
|
+
* @summary Delete Skill Collection
|
|
3514
4357
|
* @param {string} organisation The organisation ID
|
|
3515
|
-
* @param {string}
|
|
3516
|
-
* @param {ExtendAISessionRequest} [extendAISessionRequest]
|
|
4358
|
+
* @param {string} namespace Collection namespace
|
|
3517
4359
|
* @param {*} [options] Override http request option.
|
|
3518
4360
|
* @throws {RequiredError}
|
|
3519
|
-
* @memberof
|
|
4361
|
+
* @memberof AISkillsApi
|
|
3520
4362
|
*/
|
|
3521
|
-
|
|
3522
|
-
return (0, exports.
|
|
4363
|
+
deleteSkillCollection(organisation, namespace, options) {
|
|
4364
|
+
return (0, exports.AISkillsApiFp)(this.configuration).deleteSkillCollection(organisation, namespace, options).then((request) => request(this.axios, this.basePath));
|
|
3523
4365
|
}
|
|
3524
4366
|
/**
|
|
3525
|
-
*
|
|
3526
|
-
* @summary Get
|
|
4367
|
+
* Retrieves full details of a skill including its content, source information, and metadata.
|
|
4368
|
+
* @summary Get Skill Details
|
|
3527
4369
|
* @param {string} organisation The organisation ID
|
|
3528
|
-
* @param {string}
|
|
4370
|
+
* @param {string} skillId The skill ID
|
|
3529
4371
|
* @param {*} [options] Override http request option.
|
|
3530
4372
|
* @throws {RequiredError}
|
|
3531
|
-
* @memberof
|
|
4373
|
+
* @memberof AISkillsApi
|
|
3532
4374
|
*/
|
|
3533
|
-
|
|
3534
|
-
return (0, exports.
|
|
4375
|
+
getSkill(organisation, skillId, options) {
|
|
4376
|
+
return (0, exports.AISkillsApiFp)(this.configuration).getSkill(organisation, skillId, options).then((request) => request(this.axios, this.basePath));
|
|
3535
4377
|
}
|
|
3536
4378
|
/**
|
|
3537
|
-
*
|
|
3538
|
-
* @summary
|
|
4379
|
+
* 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
|
|
4380
|
+
* @summary Import Skill from External Source
|
|
3539
4381
|
* @param {string} organisation The organisation ID
|
|
3540
|
-
* @param {
|
|
3541
|
-
* @param {string} [sessionGroup] Filter by session group. Returns only sessions matching the specified group.
|
|
3542
|
-
* @param {number} [limit] Maximum number of sessions to return (default 50, max 100)
|
|
3543
|
-
* @param {number} [offset] Offset for pagination
|
|
3544
|
-
* @param {string} [model] Filter by model ID
|
|
4382
|
+
* @param {ImportSkillRequest} importSkillRequest
|
|
3545
4383
|
* @param {*} [options] Override http request option.
|
|
3546
4384
|
* @throws {RequiredError}
|
|
3547
|
-
* @memberof
|
|
4385
|
+
* @memberof AISkillsApi
|
|
3548
4386
|
*/
|
|
3549
|
-
|
|
3550
|
-
return (0, exports.
|
|
4387
|
+
importSkill(organisation, importSkillRequest, options) {
|
|
4388
|
+
return (0, exports.AISkillsApiFp)(this.configuration).importSkill(organisation, importSkillRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3551
4389
|
}
|
|
3552
4390
|
/**
|
|
3553
|
-
*
|
|
3554
|
-
* @summary
|
|
4391
|
+
* 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.
|
|
4392
|
+
* @summary Import Skill Collection from GitHub
|
|
3555
4393
|
* @param {string} organisation The organisation ID
|
|
3556
|
-
* @param {
|
|
3557
|
-
* @param {UpdateAISessionRequest} updateAISessionRequest
|
|
4394
|
+
* @param {ImportSkillCollectionRequest} importSkillCollectionRequest
|
|
3558
4395
|
* @param {*} [options] Override http request option.
|
|
3559
4396
|
* @throws {RequiredError}
|
|
3560
|
-
* @memberof
|
|
4397
|
+
* @memberof AISkillsApi
|
|
3561
4398
|
*/
|
|
3562
|
-
|
|
3563
|
-
return (0, exports.
|
|
4399
|
+
importSkillCollection(organisation, importSkillCollectionRequest, options) {
|
|
4400
|
+
return (0, exports.AISkillsApiFp)(this.configuration).importSkillCollection(organisation, importSkillCollectionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4401
|
+
}
|
|
4402
|
+
/**
|
|
4403
|
+
* Lists distinct namespaces (collections) for the organization, with skill counts and skill names for each collection.
|
|
4404
|
+
* @summary List Skill Collections
|
|
4405
|
+
* @param {string} organisation The organisation ID
|
|
4406
|
+
* @param {*} [options] Override http request option.
|
|
4407
|
+
* @throws {RequiredError}
|
|
4408
|
+
* @memberof AISkillsApi
|
|
4409
|
+
*/
|
|
4410
|
+
listSkillCollections(organisation, options) {
|
|
4411
|
+
return (0, exports.AISkillsApiFp)(this.configuration).listSkillCollections(organisation, options).then((request) => request(this.axios, this.basePath));
|
|
4412
|
+
}
|
|
4413
|
+
/**
|
|
4414
|
+
* 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
|
|
4415
|
+
* @summary List Organization\'s Skills
|
|
4416
|
+
* @param {string} organisation The organisation ID
|
|
4417
|
+
* @param {string} [tag] Filter skills by tag
|
|
4418
|
+
* @param {string} [namespace] Filter skills by collection namespace (e.g. \'superpowers\')
|
|
4419
|
+
* @param {number} [limit] Maximum number of skills to return
|
|
4420
|
+
* @param {*} [options] Override http request option.
|
|
4421
|
+
* @throws {RequiredError}
|
|
4422
|
+
* @memberof AISkillsApi
|
|
4423
|
+
*/
|
|
4424
|
+
listSkills(organisation, tag, namespace, limit, options) {
|
|
4425
|
+
return (0, exports.AISkillsApiFp)(this.configuration).listSkills(organisation, tag, namespace, limit, options).then((request) => request(this.axios, this.basePath));
|
|
4426
|
+
}
|
|
4427
|
+
/**
|
|
4428
|
+
* 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
|
|
4429
|
+
* @summary Sync Skill from Source
|
|
4430
|
+
* @param {string} organisation The organisation ID
|
|
4431
|
+
* @param {string} skillId The skill ID
|
|
4432
|
+
* @param {*} [options] Override http request option.
|
|
4433
|
+
* @throws {RequiredError}
|
|
4434
|
+
* @memberof AISkillsApi
|
|
4435
|
+
*/
|
|
4436
|
+
syncSkill(organisation, skillId, options) {
|
|
4437
|
+
return (0, exports.AISkillsApiFp)(this.configuration).syncSkill(organisation, skillId, options).then((request) => request(this.axios, this.basePath));
|
|
4438
|
+
}
|
|
4439
|
+
/**
|
|
4440
|
+
* 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.
|
|
4441
|
+
* @summary Sync Skill Collection
|
|
4442
|
+
* @param {string} organisation The organisation ID
|
|
4443
|
+
* @param {string} namespace Collection namespace
|
|
4444
|
+
* @param {*} [options] Override http request option.
|
|
4445
|
+
* @throws {RequiredError}
|
|
4446
|
+
* @memberof AISkillsApi
|
|
4447
|
+
*/
|
|
4448
|
+
syncSkillCollection(organisation, namespace, options) {
|
|
4449
|
+
return (0, exports.AISkillsApiFp)(this.configuration).syncSkillCollection(organisation, namespace, options).then((request) => request(this.axios, this.basePath));
|
|
4450
|
+
}
|
|
4451
|
+
/**
|
|
4452
|
+
* 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.
|
|
4453
|
+
* @summary Update Skill
|
|
4454
|
+
* @param {string} organisation The organisation ID
|
|
4455
|
+
* @param {string} skillId The skill ID
|
|
4456
|
+
* @param {UpdateSkillRequest} updateSkillRequest
|
|
4457
|
+
* @param {*} [options] Override http request option.
|
|
4458
|
+
* @throws {RequiredError}
|
|
4459
|
+
* @memberof AISkillsApi
|
|
4460
|
+
*/
|
|
4461
|
+
updateSkill(organisation, skillId, updateSkillRequest, options) {
|
|
4462
|
+
return (0, exports.AISkillsApiFp)(this.configuration).updateSkill(organisation, skillId, updateSkillRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3564
4463
|
}
|
|
3565
4464
|
}
|
|
3566
|
-
exports.
|
|
4465
|
+
exports.AISkillsApi = AISkillsApi;
|
|
3567
4466
|
/**
|
|
3568
4467
|
* AITaskManagementApi - axios parameter creator
|
|
3569
4468
|
* @export
|
|
@@ -6052,7 +6951,7 @@ const CDNMetricsApiAxiosParamCreator = function (configuration) {
|
|
|
6052
6951
|
* @param {string} organization Organization identifier
|
|
6053
6952
|
* @param {string} project Project identifier
|
|
6054
6953
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
6055
|
-
* @param {Array<
|
|
6954
|
+
* @param {Array<GetDailyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
6056
6955
|
* @param {GetDailyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
6057
6956
|
* @param {*} [options] Override http request option.
|
|
6058
6957
|
* @throws {RequiredError}
|
|
@@ -6100,7 +6999,7 @@ const CDNMetricsApiAxiosParamCreator = function (configuration) {
|
|
|
6100
6999
|
* @param {string} organization Organization identifier
|
|
6101
7000
|
* @param {string} project Project identifier
|
|
6102
7001
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
6103
|
-
* @param {Array<
|
|
7002
|
+
* @param {Array<GetHourlyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
6104
7003
|
* @param {GetHourlyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
6105
7004
|
* @param {*} [options] Override http request option.
|
|
6106
7005
|
* @throws {RequiredError}
|
|
@@ -6148,7 +7047,7 @@ const CDNMetricsApiAxiosParamCreator = function (configuration) {
|
|
|
6148
7047
|
* @param {string} organization Organization identifier
|
|
6149
7048
|
* @param {string} project Project identifier
|
|
6150
7049
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
6151
|
-
* @param {Array<
|
|
7050
|
+
* @param {Array<GetMonthlyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
6152
7051
|
* @param {GetMonthlyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
6153
7052
|
* @param {*} [options] Override http request option.
|
|
6154
7053
|
* @throws {RequiredError}
|
|
@@ -6206,7 +7105,7 @@ const CDNMetricsApiFp = function (configuration) {
|
|
|
6206
7105
|
* @param {string} organization Organization identifier
|
|
6207
7106
|
* @param {string} project Project identifier
|
|
6208
7107
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
6209
|
-
* @param {Array<
|
|
7108
|
+
* @param {Array<GetDailyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
6210
7109
|
* @param {GetDailyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
6211
7110
|
* @param {*} [options] Override http request option.
|
|
6212
7111
|
* @throws {RequiredError}
|
|
@@ -6226,7 +7125,7 @@ const CDNMetricsApiFp = function (configuration) {
|
|
|
6226
7125
|
* @param {string} organization Organization identifier
|
|
6227
7126
|
* @param {string} project Project identifier
|
|
6228
7127
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
6229
|
-
* @param {Array<
|
|
7128
|
+
* @param {Array<GetHourlyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
6230
7129
|
* @param {GetHourlyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
6231
7130
|
* @param {*} [options] Override http request option.
|
|
6232
7131
|
* @throws {RequiredError}
|
|
@@ -6246,7 +7145,7 @@ const CDNMetricsApiFp = function (configuration) {
|
|
|
6246
7145
|
* @param {string} organization Organization identifier
|
|
6247
7146
|
* @param {string} project Project identifier
|
|
6248
7147
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
6249
|
-
* @param {Array<
|
|
7148
|
+
* @param {Array<GetMonthlyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
6250
7149
|
* @param {GetMonthlyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
6251
7150
|
* @param {*} [options] Override http request option.
|
|
6252
7151
|
* @throws {RequiredError}
|
|
@@ -6276,7 +7175,7 @@ const CDNMetricsApiFactory = function (configuration, basePath, axios) {
|
|
|
6276
7175
|
* @param {string} organization Organization identifier
|
|
6277
7176
|
* @param {string} project Project identifier
|
|
6278
7177
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
6279
|
-
* @param {Array<
|
|
7178
|
+
* @param {Array<GetDailyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
6280
7179
|
* @param {GetDailyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
6281
7180
|
* @param {*} [options] Override http request option.
|
|
6282
7181
|
* @throws {RequiredError}
|
|
@@ -6290,7 +7189,7 @@ const CDNMetricsApiFactory = function (configuration, basePath, axios) {
|
|
|
6290
7189
|
* @param {string} organization Organization identifier
|
|
6291
7190
|
* @param {string} project Project identifier
|
|
6292
7191
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
6293
|
-
* @param {Array<
|
|
7192
|
+
* @param {Array<GetHourlyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
6294
7193
|
* @param {GetHourlyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
6295
7194
|
* @param {*} [options] Override http request option.
|
|
6296
7195
|
* @throws {RequiredError}
|
|
@@ -6304,7 +7203,7 @@ const CDNMetricsApiFactory = function (configuration, basePath, axios) {
|
|
|
6304
7203
|
* @param {string} organization Organization identifier
|
|
6305
7204
|
* @param {string} project Project identifier
|
|
6306
7205
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
6307
|
-
* @param {Array<
|
|
7206
|
+
* @param {Array<GetMonthlyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
6308
7207
|
* @param {GetMonthlyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
6309
7208
|
* @param {*} [options] Override http request option.
|
|
6310
7209
|
* @throws {RequiredError}
|
|
@@ -6328,7 +7227,7 @@ class CDNMetricsApi extends base_1.BaseAPI {
|
|
|
6328
7227
|
* @param {string} organization Organization identifier
|
|
6329
7228
|
* @param {string} project Project identifier
|
|
6330
7229
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
6331
|
-
* @param {Array<
|
|
7230
|
+
* @param {Array<GetDailyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
6332
7231
|
* @param {GetDailyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
6333
7232
|
* @param {*} [options] Override http request option.
|
|
6334
7233
|
* @throws {RequiredError}
|
|
@@ -6343,7 +7242,7 @@ class CDNMetricsApi extends base_1.BaseAPI {
|
|
|
6343
7242
|
* @param {string} organization Organization identifier
|
|
6344
7243
|
* @param {string} project Project identifier
|
|
6345
7244
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
6346
|
-
* @param {Array<
|
|
7245
|
+
* @param {Array<GetHourlyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
6347
7246
|
* @param {GetHourlyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
6348
7247
|
* @param {*} [options] Override http request option.
|
|
6349
7248
|
* @throws {RequiredError}
|
|
@@ -6358,7 +7257,7 @@ class CDNMetricsApi extends base_1.BaseAPI {
|
|
|
6358
7257
|
* @param {string} organization Organization identifier
|
|
6359
7258
|
* @param {string} project Project identifier
|
|
6360
7259
|
* @param {string} [domain] Filter by domain ID or domain name
|
|
6361
|
-
* @param {Array<
|
|
7260
|
+
* @param {Array<GetMonthlyMetricsMetricsEnum>} [metrics] Metrics to return (default: hits, bytes). Use the /metrics/available endpoint to list all metrics by category.
|
|
6362
7261
|
* @param {GetMonthlyMetricsTimestampFormatEnum} [timestampFormat] Timestamp format in response
|
|
6363
7262
|
* @param {*} [options] Override http request option.
|
|
6364
7263
|
* @throws {RequiredError}
|
|
@@ -6369,6 +7268,34 @@ class CDNMetricsApi extends base_1.BaseAPI {
|
|
|
6369
7268
|
}
|
|
6370
7269
|
}
|
|
6371
7270
|
exports.CDNMetricsApi = CDNMetricsApi;
|
|
7271
|
+
/**
|
|
7272
|
+
* @export
|
|
7273
|
+
*/
|
|
7274
|
+
exports.GetDailyMetricsMetricsEnum = {
|
|
7275
|
+
Hits: 'hits',
|
|
7276
|
+
Bytes: 'bytes',
|
|
7277
|
+
EdgeRespHeaderBytes: 'edge_resp_header_bytes',
|
|
7278
|
+
BereqBodyBytes: 'bereq_body_bytes',
|
|
7279
|
+
BereqHeaderBytes: 'bereq_header_bytes',
|
|
7280
|
+
Bandwidth: 'bandwidth',
|
|
7281
|
+
EdgeHitRatio: 'edge_hit_ratio',
|
|
7282
|
+
EdgeHitRequests: 'edge_hit_requests',
|
|
7283
|
+
EdgeMissRequests: 'edge_miss_requests',
|
|
7284
|
+
OriginFetches: 'origin_fetches',
|
|
7285
|
+
OriginFetchRespBodyBytes: 'origin_fetch_resp_body_bytes',
|
|
7286
|
+
OriginFetchRespHeaderBytes: 'origin_fetch_resp_header_bytes',
|
|
7287
|
+
OriginOffload: 'origin_offload',
|
|
7288
|
+
Status1xx: 'status_1xx',
|
|
7289
|
+
Status2xx: 'status_2xx',
|
|
7290
|
+
Status3xx: 'status_3xx',
|
|
7291
|
+
Status4xx: 'status_4xx',
|
|
7292
|
+
Status5xx: 'status_5xx',
|
|
7293
|
+
OriginStatus1xx: 'origin_status_1xx',
|
|
7294
|
+
OriginStatus2xx: 'origin_status_2xx',
|
|
7295
|
+
OriginStatus3xx: 'origin_status_3xx',
|
|
7296
|
+
OriginStatus4xx: 'origin_status_4xx',
|
|
7297
|
+
OriginStatus5xx: 'origin_status_5xx'
|
|
7298
|
+
};
|
|
6372
7299
|
/**
|
|
6373
7300
|
* @export
|
|
6374
7301
|
*/
|
|
@@ -6376,6 +7303,34 @@ exports.GetDailyMetricsTimestampFormatEnum = {
|
|
|
6376
7303
|
Iso8601: 'iso8601',
|
|
6377
7304
|
Unix: 'unix'
|
|
6378
7305
|
};
|
|
7306
|
+
/**
|
|
7307
|
+
* @export
|
|
7308
|
+
*/
|
|
7309
|
+
exports.GetHourlyMetricsMetricsEnum = {
|
|
7310
|
+
Hits: 'hits',
|
|
7311
|
+
Bytes: 'bytes',
|
|
7312
|
+
EdgeRespHeaderBytes: 'edge_resp_header_bytes',
|
|
7313
|
+
BereqBodyBytes: 'bereq_body_bytes',
|
|
7314
|
+
BereqHeaderBytes: 'bereq_header_bytes',
|
|
7315
|
+
Bandwidth: 'bandwidth',
|
|
7316
|
+
EdgeHitRatio: 'edge_hit_ratio',
|
|
7317
|
+
EdgeHitRequests: 'edge_hit_requests',
|
|
7318
|
+
EdgeMissRequests: 'edge_miss_requests',
|
|
7319
|
+
OriginFetches: 'origin_fetches',
|
|
7320
|
+
OriginFetchRespBodyBytes: 'origin_fetch_resp_body_bytes',
|
|
7321
|
+
OriginFetchRespHeaderBytes: 'origin_fetch_resp_header_bytes',
|
|
7322
|
+
OriginOffload: 'origin_offload',
|
|
7323
|
+
Status1xx: 'status_1xx',
|
|
7324
|
+
Status2xx: 'status_2xx',
|
|
7325
|
+
Status3xx: 'status_3xx',
|
|
7326
|
+
Status4xx: 'status_4xx',
|
|
7327
|
+
Status5xx: 'status_5xx',
|
|
7328
|
+
OriginStatus1xx: 'origin_status_1xx',
|
|
7329
|
+
OriginStatus2xx: 'origin_status_2xx',
|
|
7330
|
+
OriginStatus3xx: 'origin_status_3xx',
|
|
7331
|
+
OriginStatus4xx: 'origin_status_4xx',
|
|
7332
|
+
OriginStatus5xx: 'origin_status_5xx'
|
|
7333
|
+
};
|
|
6379
7334
|
/**
|
|
6380
7335
|
* @export
|
|
6381
7336
|
*/
|
|
@@ -6383,6 +7338,34 @@ exports.GetHourlyMetricsTimestampFormatEnum = {
|
|
|
6383
7338
|
Iso8601: 'iso8601',
|
|
6384
7339
|
Unix: 'unix'
|
|
6385
7340
|
};
|
|
7341
|
+
/**
|
|
7342
|
+
* @export
|
|
7343
|
+
*/
|
|
7344
|
+
exports.GetMonthlyMetricsMetricsEnum = {
|
|
7345
|
+
Hits: 'hits',
|
|
7346
|
+
Bytes: 'bytes',
|
|
7347
|
+
EdgeRespHeaderBytes: 'edge_resp_header_bytes',
|
|
7348
|
+
BereqBodyBytes: 'bereq_body_bytes',
|
|
7349
|
+
BereqHeaderBytes: 'bereq_header_bytes',
|
|
7350
|
+
Bandwidth: 'bandwidth',
|
|
7351
|
+
EdgeHitRatio: 'edge_hit_ratio',
|
|
7352
|
+
EdgeHitRequests: 'edge_hit_requests',
|
|
7353
|
+
EdgeMissRequests: 'edge_miss_requests',
|
|
7354
|
+
OriginFetches: 'origin_fetches',
|
|
7355
|
+
OriginFetchRespBodyBytes: 'origin_fetch_resp_body_bytes',
|
|
7356
|
+
OriginFetchRespHeaderBytes: 'origin_fetch_resp_header_bytes',
|
|
7357
|
+
OriginOffload: 'origin_offload',
|
|
7358
|
+
Status1xx: 'status_1xx',
|
|
7359
|
+
Status2xx: 'status_2xx',
|
|
7360
|
+
Status3xx: 'status_3xx',
|
|
7361
|
+
Status4xx: 'status_4xx',
|
|
7362
|
+
Status5xx: 'status_5xx',
|
|
7363
|
+
OriginStatus1xx: 'origin_status_1xx',
|
|
7364
|
+
OriginStatus2xx: 'origin_status_2xx',
|
|
7365
|
+
OriginStatus3xx: 'origin_status_3xx',
|
|
7366
|
+
OriginStatus4xx: 'origin_status_4xx',
|
|
7367
|
+
OriginStatus5xx: 'origin_status_5xx'
|
|
7368
|
+
};
|
|
6386
7369
|
/**
|
|
6387
7370
|
* @export
|
|
6388
7371
|
*/
|
|
@@ -11808,120 +12791,6 @@ class KVApi extends base_1.BaseAPI {
|
|
|
11808
12791
|
}
|
|
11809
12792
|
}
|
|
11810
12793
|
exports.KVApi = KVApi;
|
|
11811
|
-
/**
|
|
11812
|
-
* OrchestrationApi - axios parameter creator
|
|
11813
|
-
* @export
|
|
11814
|
-
*/
|
|
11815
|
-
const OrchestrationApiAxiosParamCreator = function (configuration) {
|
|
11816
|
-
return {
|
|
11817
|
-
/**
|
|
11818
|
-
* 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
|
|
11819
|
-
* @summary Get Tool Orchestration Status (Async Tool Polling)
|
|
11820
|
-
* @param {string} organisation The organisation ID
|
|
11821
|
-
* @param {string} orchestrationId Orchestration identifier for aggregated async tool executions
|
|
11822
|
-
* @param {*} [options] Override http request option.
|
|
11823
|
-
* @throws {RequiredError}
|
|
11824
|
-
*/
|
|
11825
|
-
getAIOrchestrationStatus: (organisation_1, orchestrationId_1, ...args_1) => __awaiter(this, [organisation_1, orchestrationId_1, ...args_1], void 0, function* (organisation, orchestrationId, options = {}) {
|
|
11826
|
-
// verify required parameter 'organisation' is not null or undefined
|
|
11827
|
-
(0, common_1.assertParamExists)('getAIOrchestrationStatus', 'organisation', organisation);
|
|
11828
|
-
// verify required parameter 'orchestrationId' is not null or undefined
|
|
11829
|
-
(0, common_1.assertParamExists)('getAIOrchestrationStatus', 'orchestrationId', orchestrationId);
|
|
11830
|
-
const localVarPath = `/api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId}`
|
|
11831
|
-
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
11832
|
-
.replace(`{${"orchestrationId"}}`, encodeURIComponent(String(orchestrationId)));
|
|
11833
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11834
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11835
|
-
let baseOptions;
|
|
11836
|
-
if (configuration) {
|
|
11837
|
-
baseOptions = configuration.baseOptions;
|
|
11838
|
-
}
|
|
11839
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11840
|
-
const localVarHeaderParameter = {};
|
|
11841
|
-
const localVarQueryParameter = {};
|
|
11842
|
-
// authentication BearerAuth required
|
|
11843
|
-
// http bearer authentication required
|
|
11844
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11845
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11846
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11847
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11848
|
-
return {
|
|
11849
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11850
|
-
options: localVarRequestOptions,
|
|
11851
|
-
};
|
|
11852
|
-
}),
|
|
11853
|
-
};
|
|
11854
|
-
};
|
|
11855
|
-
exports.OrchestrationApiAxiosParamCreator = OrchestrationApiAxiosParamCreator;
|
|
11856
|
-
/**
|
|
11857
|
-
* OrchestrationApi - functional programming interface
|
|
11858
|
-
* @export
|
|
11859
|
-
*/
|
|
11860
|
-
const OrchestrationApiFp = function (configuration) {
|
|
11861
|
-
const localVarAxiosParamCreator = (0, exports.OrchestrationApiAxiosParamCreator)(configuration);
|
|
11862
|
-
return {
|
|
11863
|
-
/**
|
|
11864
|
-
* 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
|
|
11865
|
-
* @summary Get Tool Orchestration Status (Async Tool Polling)
|
|
11866
|
-
* @param {string} organisation The organisation ID
|
|
11867
|
-
* @param {string} orchestrationId Orchestration identifier for aggregated async tool executions
|
|
11868
|
-
* @param {*} [options] Override http request option.
|
|
11869
|
-
* @throws {RequiredError}
|
|
11870
|
-
*/
|
|
11871
|
-
getAIOrchestrationStatus(organisation, orchestrationId, options) {
|
|
11872
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11873
|
-
var _a, _b, _c;
|
|
11874
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAIOrchestrationStatus(organisation, orchestrationId, options);
|
|
11875
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11876
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrchestrationApi.getAIOrchestrationStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11877
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11878
|
-
});
|
|
11879
|
-
},
|
|
11880
|
-
};
|
|
11881
|
-
};
|
|
11882
|
-
exports.OrchestrationApiFp = OrchestrationApiFp;
|
|
11883
|
-
/**
|
|
11884
|
-
* OrchestrationApi - factory interface
|
|
11885
|
-
* @export
|
|
11886
|
-
*/
|
|
11887
|
-
const OrchestrationApiFactory = function (configuration, basePath, axios) {
|
|
11888
|
-
const localVarFp = (0, exports.OrchestrationApiFp)(configuration);
|
|
11889
|
-
return {
|
|
11890
|
-
/**
|
|
11891
|
-
* 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
|
|
11892
|
-
* @summary Get Tool Orchestration Status (Async Tool Polling)
|
|
11893
|
-
* @param {string} organisation The organisation ID
|
|
11894
|
-
* @param {string} orchestrationId Orchestration identifier for aggregated async tool executions
|
|
11895
|
-
* @param {*} [options] Override http request option.
|
|
11896
|
-
* @throws {RequiredError}
|
|
11897
|
-
*/
|
|
11898
|
-
getAIOrchestrationStatus(organisation, orchestrationId, options) {
|
|
11899
|
-
return localVarFp.getAIOrchestrationStatus(organisation, orchestrationId, options).then((request) => request(axios, basePath));
|
|
11900
|
-
},
|
|
11901
|
-
};
|
|
11902
|
-
};
|
|
11903
|
-
exports.OrchestrationApiFactory = OrchestrationApiFactory;
|
|
11904
|
-
/**
|
|
11905
|
-
* OrchestrationApi - object-oriented interface
|
|
11906
|
-
* @export
|
|
11907
|
-
* @class OrchestrationApi
|
|
11908
|
-
* @extends {BaseAPI}
|
|
11909
|
-
*/
|
|
11910
|
-
class OrchestrationApi extends base_1.BaseAPI {
|
|
11911
|
-
/**
|
|
11912
|
-
* 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
|
|
11913
|
-
* @summary Get Tool Orchestration Status (Async Tool Polling)
|
|
11914
|
-
* @param {string} organisation The organisation ID
|
|
11915
|
-
* @param {string} orchestrationId Orchestration identifier for aggregated async tool executions
|
|
11916
|
-
* @param {*} [options] Override http request option.
|
|
11917
|
-
* @throws {RequiredError}
|
|
11918
|
-
* @memberof OrchestrationApi
|
|
11919
|
-
*/
|
|
11920
|
-
getAIOrchestrationStatus(organisation, orchestrationId, options) {
|
|
11921
|
-
return (0, exports.OrchestrationApiFp)(this.configuration).getAIOrchestrationStatus(organisation, orchestrationId, options).then((request) => request(this.axios, this.basePath));
|
|
11922
|
-
}
|
|
11923
|
-
}
|
|
11924
|
-
exports.OrchestrationApi = OrchestrationApi;
|
|
11925
12794
|
/**
|
|
11926
12795
|
* OrganizationsApi - axios parameter creator
|
|
11927
12796
|
* @export
|