@iblai/iblai-api 4.267.2-ai → 4.268.0-ai
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +562 -33
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +563 -34
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +562 -33
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +32 -2
- package/dist/types/models/ClawConfigGetResponse.d.ts +19 -0
- package/dist/types/models/ClawRpcError.d.ts +7 -0
- package/dist/types/models/CronDelivery.d.ts +12 -0
- package/dist/types/models/CronDeliveryModeEnum.d.ts +10 -0
- package/dist/types/models/CronJobCreate.d.ts +22 -0
- package/dist/types/models/CronJobListResponse.d.ts +10 -0
- package/dist/types/models/CronJobResponse.d.ts +28 -0
- package/dist/types/models/CronPayload.d.ts +19 -0
- package/dist/types/models/CronPayloadKindEnum.d.ts +8 -0
- package/dist/types/models/CronRunAction.d.ts +7 -0
- package/dist/types/models/CronRunActionModeEnum.d.ts +8 -0
- package/dist/types/models/CronRunLogEntry.d.ts +25 -0
- package/dist/types/models/CronRunLogEntryStatusEnum.d.ts +10 -0
- package/dist/types/models/CronRunResult.d.ts +8 -0
- package/dist/types/models/CronRunsResponse.d.ts +10 -0
- package/dist/types/models/CronSchedule.d.ts +17 -0
- package/dist/types/models/CronScheduleKindEnum.d.ts +10 -0
- package/dist/types/models/CronStatusResponse.d.ts +14 -0
- package/dist/types/models/DeliveryStatusEnum.d.ts +12 -0
- package/dist/types/models/MCPServer.d.ts +2 -2
- package/dist/types/models/{TransportEnum.d.ts → MCPServerTransportEnum.d.ts} +1 -1
- package/dist/types/models/McpServerConfig.d.ts +17 -0
- package/dist/types/models/McpServerConfigTransportEnum.d.ts +8 -0
- package/dist/types/models/McpServerCreate.d.ts +8 -0
- package/dist/types/models/McpServerEntry.d.ts +8 -0
- package/dist/types/models/McpServerListResponse.d.ts +4 -0
- package/dist/types/models/MemoryComponentData.d.ts +2 -2
- package/dist/types/models/{KindEnum.d.ts → MemoryComponentDataKindEnum.d.ts} +1 -1
- package/dist/types/models/PatchedClawConfigPatchRequest.d.ts +14 -0
- package/dist/types/models/PatchedCronJobPatch.d.ts +24 -0
- package/dist/types/models/PatchedMCPServer.d.ts +2 -2
- package/dist/types/models/PatchedMcpServerUpdate.d.ts +8 -0
- package/dist/types/models/WakeModeEnum.d.ts +8 -0
- package/dist/types/models/WakeRequest.d.ts +8 -0
- package/dist/types/models/WakeResponse.d.ts +14 -0
- package/dist/types/services/AiMentorService.d.ts +263 -0
- package/package.json +1 -1
- package/sdk_schema.yml +1550 -24
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +32 -2
- package/src/models/ClawConfigGetResponse.ts +24 -0
- package/src/models/ClawRpcError.ts +12 -0
- package/src/models/CronDelivery.ts +17 -0
- package/src/models/CronDeliveryModeEnum.ts +14 -0
- package/src/models/CronJobCreate.ts +27 -0
- package/src/models/CronJobListResponse.ts +15 -0
- package/src/models/CronJobResponse.ts +33 -0
- package/src/models/CronPayload.ts +24 -0
- package/src/models/CronPayloadKindEnum.ts +12 -0
- package/src/models/CronRunAction.ts +12 -0
- package/src/models/CronRunActionModeEnum.ts +12 -0
- package/src/models/CronRunLogEntry.ts +30 -0
- package/src/models/CronRunLogEntryStatusEnum.ts +14 -0
- package/src/models/CronRunResult.ts +13 -0
- package/src/models/CronRunsResponse.ts +15 -0
- package/src/models/CronSchedule.ts +22 -0
- package/src/models/CronScheduleKindEnum.ts +14 -0
- package/src/models/CronStatusResponse.ts +19 -0
- package/src/models/DeliveryStatusEnum.ts +16 -0
- package/src/models/MCPServer.ts +2 -2
- package/src/models/{TransportEnum.ts → MCPServerTransportEnum.ts} +1 -1
- package/src/models/McpServerConfig.ts +22 -0
- package/src/models/McpServerConfigTransportEnum.ts +12 -0
- package/src/models/McpServerCreate.ts +13 -0
- package/src/models/McpServerEntry.ts +13 -0
- package/src/models/McpServerListResponse.ts +9 -0
- package/src/models/MemoryComponentData.ts +2 -2
- package/src/models/{KindEnum.ts → MemoryComponentDataKindEnum.ts} +1 -1
- package/src/models/PatchedClawConfigPatchRequest.ts +19 -0
- package/src/models/PatchedCronJobPatch.ts +29 -0
- package/src/models/PatchedMCPServer.ts +2 -2
- package/src/models/PatchedMcpServerUpdate.ts +13 -0
- package/src/models/WakeModeEnum.ts +12 -0
- package/src/models/WakeRequest.ts +13 -0
- package/src/models/WakeResponse.ts +19 -0
- package/src/services/AiMentorService.ts +538 -0
package/dist/index.cjs.js
CHANGED
|
@@ -110,7 +110,7 @@ class CancelablePromise {
|
|
|
110
110
|
|
|
111
111
|
const OpenAPI = {
|
|
112
112
|
BASE: 'https://base.manager.iblai.app',
|
|
113
|
-
VERSION: '4.
|
|
113
|
+
VERSION: '4.268.0-ai-plus',
|
|
114
114
|
WITH_CREDENTIALS: false,
|
|
115
115
|
CREDENTIALS: 'include',
|
|
116
116
|
TOKEN: undefined,
|
|
@@ -445,6 +445,82 @@ exports.CreditTransactionHistoryStatusEnum = void 0;
|
|
|
445
445
|
CreditTransactionHistoryStatusEnum["CANCELLED"] = "cancelled";
|
|
446
446
|
})(exports.CreditTransactionHistoryStatusEnum || (exports.CreditTransactionHistoryStatusEnum = {}));
|
|
447
447
|
|
|
448
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
449
|
+
/* istanbul ignore file */
|
|
450
|
+
/* tslint:disable */
|
|
451
|
+
/* eslint-disable */
|
|
452
|
+
/**
|
|
453
|
+
* * `none` - none
|
|
454
|
+
* * `announce` - announce
|
|
455
|
+
* * `webhook` - webhook
|
|
456
|
+
*/
|
|
457
|
+
exports.CronDeliveryModeEnum = void 0;
|
|
458
|
+
(function (CronDeliveryModeEnum) {
|
|
459
|
+
CronDeliveryModeEnum["NONE"] = "none";
|
|
460
|
+
CronDeliveryModeEnum["ANNOUNCE"] = "announce";
|
|
461
|
+
CronDeliveryModeEnum["WEBHOOK"] = "webhook";
|
|
462
|
+
})(exports.CronDeliveryModeEnum || (exports.CronDeliveryModeEnum = {}));
|
|
463
|
+
|
|
464
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
465
|
+
/* istanbul ignore file */
|
|
466
|
+
/* tslint:disable */
|
|
467
|
+
/* eslint-disable */
|
|
468
|
+
/**
|
|
469
|
+
* * `systemEvent` - systemEvent
|
|
470
|
+
* * `agentTurn` - agentTurn
|
|
471
|
+
*/
|
|
472
|
+
exports.CronPayloadKindEnum = void 0;
|
|
473
|
+
(function (CronPayloadKindEnum) {
|
|
474
|
+
CronPayloadKindEnum["SYSTEM_EVENT"] = "systemEvent";
|
|
475
|
+
CronPayloadKindEnum["AGENT_TURN"] = "agentTurn";
|
|
476
|
+
})(exports.CronPayloadKindEnum || (exports.CronPayloadKindEnum = {}));
|
|
477
|
+
|
|
478
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
479
|
+
/* istanbul ignore file */
|
|
480
|
+
/* tslint:disable */
|
|
481
|
+
/* eslint-disable */
|
|
482
|
+
/**
|
|
483
|
+
* * `due` - due
|
|
484
|
+
* * `force` - force
|
|
485
|
+
*/
|
|
486
|
+
exports.CronRunActionModeEnum = void 0;
|
|
487
|
+
(function (CronRunActionModeEnum) {
|
|
488
|
+
CronRunActionModeEnum["DUE"] = "due";
|
|
489
|
+
CronRunActionModeEnum["FORCE"] = "force";
|
|
490
|
+
})(exports.CronRunActionModeEnum || (exports.CronRunActionModeEnum = {}));
|
|
491
|
+
|
|
492
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
493
|
+
/* istanbul ignore file */
|
|
494
|
+
/* tslint:disable */
|
|
495
|
+
/* eslint-disable */
|
|
496
|
+
/**
|
|
497
|
+
* * `ok` - ok
|
|
498
|
+
* * `error` - error
|
|
499
|
+
* * `skipped` - skipped
|
|
500
|
+
*/
|
|
501
|
+
exports.CronRunLogEntryStatusEnum = void 0;
|
|
502
|
+
(function (CronRunLogEntryStatusEnum) {
|
|
503
|
+
CronRunLogEntryStatusEnum["OK"] = "ok";
|
|
504
|
+
CronRunLogEntryStatusEnum["ERROR"] = "error";
|
|
505
|
+
CronRunLogEntryStatusEnum["SKIPPED"] = "skipped";
|
|
506
|
+
})(exports.CronRunLogEntryStatusEnum || (exports.CronRunLogEntryStatusEnum = {}));
|
|
507
|
+
|
|
508
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
509
|
+
/* istanbul ignore file */
|
|
510
|
+
/* tslint:disable */
|
|
511
|
+
/* eslint-disable */
|
|
512
|
+
/**
|
|
513
|
+
* * `at` - at
|
|
514
|
+
* * `every` - every
|
|
515
|
+
* * `cron` - cron
|
|
516
|
+
*/
|
|
517
|
+
exports.CronScheduleKindEnum = void 0;
|
|
518
|
+
(function (CronScheduleKindEnum) {
|
|
519
|
+
CronScheduleKindEnum["AT"] = "at";
|
|
520
|
+
CronScheduleKindEnum["EVERY"] = "every";
|
|
521
|
+
CronScheduleKindEnum["CRON"] = "cron";
|
|
522
|
+
})(exports.CronScheduleKindEnum || (exports.CronScheduleKindEnum = {}));
|
|
523
|
+
|
|
448
524
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
449
525
|
/* istanbul ignore file */
|
|
450
526
|
/* tslint:disable */
|
|
@@ -491,6 +567,24 @@ exports.DealStatusEnum = void 0;
|
|
|
491
567
|
DealStatusEnum["LOST"] = "lost";
|
|
492
568
|
})(exports.DealStatusEnum || (exports.DealStatusEnum = {}));
|
|
493
569
|
|
|
570
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
571
|
+
/* istanbul ignore file */
|
|
572
|
+
/* tslint:disable */
|
|
573
|
+
/* eslint-disable */
|
|
574
|
+
/**
|
|
575
|
+
* * `delivered` - delivered
|
|
576
|
+
* * `not-delivered` - not-delivered
|
|
577
|
+
* * `unknown` - unknown
|
|
578
|
+
* * `not-requested` - not-requested
|
|
579
|
+
*/
|
|
580
|
+
exports.DeliveryStatusEnum = void 0;
|
|
581
|
+
(function (DeliveryStatusEnum) {
|
|
582
|
+
DeliveryStatusEnum["DELIVERED"] = "delivered";
|
|
583
|
+
DeliveryStatusEnum["NOT_DELIVERED"] = "not-delivered";
|
|
584
|
+
DeliveryStatusEnum["UNKNOWN"] = "unknown";
|
|
585
|
+
DeliveryStatusEnum["NOT_REQUESTED"] = "not-requested";
|
|
586
|
+
})(exports.DeliveryStatusEnum || (exports.DeliveryStatusEnum = {}));
|
|
587
|
+
|
|
494
588
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
495
589
|
/* istanbul ignore file */
|
|
496
590
|
/* tslint:disable */
|
|
@@ -927,22 +1021,6 @@ exports.ItemTypeEnum = void 0;
|
|
|
927
1021
|
ItemTypeEnum["ALL"] = "all";
|
|
928
1022
|
})(exports.ItemTypeEnum || (exports.ItemTypeEnum = {}));
|
|
929
1023
|
|
|
930
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
931
|
-
/* istanbul ignore file */
|
|
932
|
-
/* tslint:disable */
|
|
933
|
-
/* eslint-disable */
|
|
934
|
-
/**
|
|
935
|
-
* * `KnowledgeGap` - KnowledgeGap
|
|
936
|
-
* * `LessonsLearned` - LessonsLearned
|
|
937
|
-
* * `HelpRequest` - HelpRequest
|
|
938
|
-
*/
|
|
939
|
-
exports.KindEnum = void 0;
|
|
940
|
-
(function (KindEnum) {
|
|
941
|
-
KindEnum["KNOWLEDGE_GAP"] = "KnowledgeGap";
|
|
942
|
-
KindEnum["LESSONS_LEARNED"] = "LessonsLearned";
|
|
943
|
-
KindEnum["HELP_REQUEST"] = "HelpRequest";
|
|
944
|
-
})(exports.KindEnum || (exports.KindEnum = {}));
|
|
945
|
-
|
|
946
1024
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
947
1025
|
/* istanbul ignore file */
|
|
948
1026
|
/* tslint:disable */
|
|
@@ -979,6 +1057,20 @@ exports.LlmProviderEnum = void 0;
|
|
|
979
1057
|
LlmProviderEnum["AZURE_OPENAI"] = "azure_openai";
|
|
980
1058
|
})(exports.LlmProviderEnum || (exports.LlmProviderEnum = {}));
|
|
981
1059
|
|
|
1060
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
1061
|
+
/* istanbul ignore file */
|
|
1062
|
+
/* tslint:disable */
|
|
1063
|
+
/* eslint-disable */
|
|
1064
|
+
/**
|
|
1065
|
+
* * `sse` - sse
|
|
1066
|
+
* * `streamable-http` - streamable-http
|
|
1067
|
+
*/
|
|
1068
|
+
exports.McpServerConfigTransportEnum = void 0;
|
|
1069
|
+
(function (McpServerConfigTransportEnum) {
|
|
1070
|
+
McpServerConfigTransportEnum["SSE"] = "sse";
|
|
1071
|
+
McpServerConfigTransportEnum["STREAMABLE_HTTP"] = "streamable-http";
|
|
1072
|
+
})(exports.McpServerConfigTransportEnum || (exports.McpServerConfigTransportEnum = {}));
|
|
1073
|
+
|
|
982
1074
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
983
1075
|
/* istanbul ignore file */
|
|
984
1076
|
/* tslint:disable */
|
|
@@ -995,6 +1087,22 @@ exports.MCPServerConnectionScopeEnum = void 0;
|
|
|
995
1087
|
MCPServerConnectionScopeEnum["PLATFORM"] = "platform";
|
|
996
1088
|
})(exports.MCPServerConnectionScopeEnum || (exports.MCPServerConnectionScopeEnum = {}));
|
|
997
1089
|
|
|
1090
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
1091
|
+
/* istanbul ignore file */
|
|
1092
|
+
/* tslint:disable */
|
|
1093
|
+
/* eslint-disable */
|
|
1094
|
+
/**
|
|
1095
|
+
* * `sse` - Sse
|
|
1096
|
+
* * `websocket` - Websocket
|
|
1097
|
+
* * `streamable_http` - Streamable Http
|
|
1098
|
+
*/
|
|
1099
|
+
exports.MCPServerTransportEnum = void 0;
|
|
1100
|
+
(function (MCPServerTransportEnum) {
|
|
1101
|
+
MCPServerTransportEnum["SSE"] = "sse";
|
|
1102
|
+
MCPServerTransportEnum["WEBSOCKET"] = "websocket";
|
|
1103
|
+
MCPServerTransportEnum["STREAMABLE_HTTP"] = "streamable_http";
|
|
1104
|
+
})(exports.MCPServerTransportEnum || (exports.MCPServerTransportEnum = {}));
|
|
1105
|
+
|
|
998
1106
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
999
1107
|
/* istanbul ignore file */
|
|
1000
1108
|
/* tslint:disable */
|
|
@@ -1015,6 +1123,22 @@ exports.MediaTypeEnum = void 0;
|
|
|
1015
1123
|
MediaTypeEnum["OTHER"] = "other";
|
|
1016
1124
|
})(exports.MediaTypeEnum || (exports.MediaTypeEnum = {}));
|
|
1017
1125
|
|
|
1126
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
1127
|
+
/* istanbul ignore file */
|
|
1128
|
+
/* tslint:disable */
|
|
1129
|
+
/* eslint-disable */
|
|
1130
|
+
/**
|
|
1131
|
+
* * `KnowledgeGap` - KnowledgeGap
|
|
1132
|
+
* * `LessonsLearned` - LessonsLearned
|
|
1133
|
+
* * `HelpRequest` - HelpRequest
|
|
1134
|
+
*/
|
|
1135
|
+
exports.MemoryComponentDataKindEnum = void 0;
|
|
1136
|
+
(function (MemoryComponentDataKindEnum) {
|
|
1137
|
+
MemoryComponentDataKindEnum["KNOWLEDGE_GAP"] = "KnowledgeGap";
|
|
1138
|
+
MemoryComponentDataKindEnum["LESSONS_LEARNED"] = "LessonsLearned";
|
|
1139
|
+
MemoryComponentDataKindEnum["HELP_REQUEST"] = "HelpRequest";
|
|
1140
|
+
})(exports.MemoryComponentDataKindEnum || (exports.MemoryComponentDataKindEnum = {}));
|
|
1141
|
+
|
|
1018
1142
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
1019
1143
|
/* istanbul ignore file */
|
|
1020
1144
|
/* tslint:disable */
|
|
@@ -1671,22 +1795,6 @@ exports.TransactionTypeEnum = void 0;
|
|
|
1671
1795
|
TransactionTypeEnum["REFUND"] = "refund";
|
|
1672
1796
|
})(exports.TransactionTypeEnum || (exports.TransactionTypeEnum = {}));
|
|
1673
1797
|
|
|
1674
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
1675
|
-
/* istanbul ignore file */
|
|
1676
|
-
/* tslint:disable */
|
|
1677
|
-
/* eslint-disable */
|
|
1678
|
-
/**
|
|
1679
|
-
* * `sse` - Sse
|
|
1680
|
-
* * `websocket` - Websocket
|
|
1681
|
-
* * `streamable_http` - Streamable Http
|
|
1682
|
-
*/
|
|
1683
|
-
exports.TransportEnum = void 0;
|
|
1684
|
-
(function (TransportEnum) {
|
|
1685
|
-
TransportEnum["SSE"] = "sse";
|
|
1686
|
-
TransportEnum["WEBSOCKET"] = "websocket";
|
|
1687
|
-
TransportEnum["STREAMABLE_HTTP"] = "streamable_http";
|
|
1688
|
-
})(exports.TransportEnum || (exports.TransportEnum = {}));
|
|
1689
|
-
|
|
1690
1798
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
1691
1799
|
/* istanbul ignore file */
|
|
1692
1800
|
/* tslint:disable */
|
|
@@ -1819,6 +1927,20 @@ exports.VoiceProviderEnum = void 0;
|
|
|
1819
1927
|
VoiceProviderEnum["ELEVENLABS"] = "elevenlabs";
|
|
1820
1928
|
})(exports.VoiceProviderEnum || (exports.VoiceProviderEnum = {}));
|
|
1821
1929
|
|
|
1930
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
1931
|
+
/* istanbul ignore file */
|
|
1932
|
+
/* tslint:disable */
|
|
1933
|
+
/* eslint-disable */
|
|
1934
|
+
/**
|
|
1935
|
+
* * `now` - now
|
|
1936
|
+
* * `next-heartbeat` - next-heartbeat
|
|
1937
|
+
*/
|
|
1938
|
+
exports.WakeModeEnum = void 0;
|
|
1939
|
+
(function (WakeModeEnum) {
|
|
1940
|
+
WakeModeEnum["NOW"] = "now";
|
|
1941
|
+
WakeModeEnum["NEXT_HEARTBEAT"] = "next-heartbeat";
|
|
1942
|
+
})(exports.WakeModeEnum || (exports.WakeModeEnum = {}));
|
|
1943
|
+
|
|
1822
1944
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
1823
1945
|
/* istanbul ignore file */
|
|
1824
1946
|
/* tslint:disable */
|
|
@@ -15178,6 +15300,413 @@ class AiMentorService {
|
|
|
15178
15300
|
}
|
|
15179
15301
|
});
|
|
15180
15302
|
}
|
|
15303
|
+
/**
|
|
15304
|
+
* Fetch the OpenClaw config
|
|
15305
|
+
* Returns the openclaw.json snapshot from the worker, with secret values replaced by the literal `__OPENCLAW_REDACTED__` sentinel. The `hash` field is the optimistic-concurrency token required by subsequent `PATCH config/` calls.
|
|
15306
|
+
* @returns ClawConfigGetResponse
|
|
15307
|
+
* @throws ApiError
|
|
15308
|
+
*/
|
|
15309
|
+
static aiMentorOrgsClawInstancesConfigRetrieve({
|
|
15310
|
+
org,
|
|
15311
|
+
serverPk
|
|
15312
|
+
}) {
|
|
15313
|
+
return request(OpenAPI, {
|
|
15314
|
+
method: 'GET',
|
|
15315
|
+
url: '/api/ai-mentor/orgs/{org}/claw/instances/{server_pk}/config/',
|
|
15316
|
+
path: {
|
|
15317
|
+
'org': org,
|
|
15318
|
+
'server_pk': serverPk
|
|
15319
|
+
}
|
|
15320
|
+
});
|
|
15321
|
+
}
|
|
15322
|
+
/**
|
|
15323
|
+
* Merge-patch the OpenClaw config
|
|
15324
|
+
* Deep-merges the supplied `patch` into the current openclaw.json. Nulls delete keys, arrays replace wholesale. Pass `__OPENCLAW_REDACTED__` at a secret path to leave the secret unchanged. Rate limit: 3 writes / 60 s per deviceId+clientIp on the worker.
|
|
15325
|
+
* @returns ClawConfigGetResponse
|
|
15326
|
+
* @throws ApiError
|
|
15327
|
+
*/
|
|
15328
|
+
static aiMentorOrgsClawInstancesConfigPartialUpdate({
|
|
15329
|
+
org,
|
|
15330
|
+
serverPk,
|
|
15331
|
+
requestBody
|
|
15332
|
+
}) {
|
|
15333
|
+
return request(OpenAPI, {
|
|
15334
|
+
method: 'PATCH',
|
|
15335
|
+
url: '/api/ai-mentor/orgs/{org}/claw/instances/{server_pk}/config/',
|
|
15336
|
+
path: {
|
|
15337
|
+
'org': org,
|
|
15338
|
+
'server_pk': serverPk
|
|
15339
|
+
},
|
|
15340
|
+
body: requestBody,
|
|
15341
|
+
mediaType: 'application/json'
|
|
15342
|
+
});
|
|
15343
|
+
}
|
|
15344
|
+
/**
|
|
15345
|
+
* List cron jobs
|
|
15346
|
+
* Manage scheduled cron jobs on a ClawInstance.
|
|
15347
|
+
* @returns CronJobListResponse
|
|
15348
|
+
* @throws ApiError
|
|
15349
|
+
*/
|
|
15350
|
+
static aiMentorOrgsClawInstancesCronJobsList({
|
|
15351
|
+
org,
|
|
15352
|
+
serverPk,
|
|
15353
|
+
enabled,
|
|
15354
|
+
includeDisabled,
|
|
15355
|
+
limit,
|
|
15356
|
+
offset,
|
|
15357
|
+
query,
|
|
15358
|
+
sortBy,
|
|
15359
|
+
sortDir = 'desc'
|
|
15360
|
+
}) {
|
|
15361
|
+
return request(OpenAPI, {
|
|
15362
|
+
method: 'GET',
|
|
15363
|
+
url: '/api/ai-mentor/orgs/{org}/claw/instances/{server_pk}/cron-jobs/',
|
|
15364
|
+
path: {
|
|
15365
|
+
'org': org,
|
|
15366
|
+
'server_pk': serverPk
|
|
15367
|
+
},
|
|
15368
|
+
query: {
|
|
15369
|
+
'enabled': enabled,
|
|
15370
|
+
'include_disabled': includeDisabled,
|
|
15371
|
+
'limit': limit,
|
|
15372
|
+
'offset': offset,
|
|
15373
|
+
'query': query,
|
|
15374
|
+
'sort_by': sortBy,
|
|
15375
|
+
'sort_dir': sortDir
|
|
15376
|
+
}
|
|
15377
|
+
});
|
|
15378
|
+
}
|
|
15379
|
+
/**
|
|
15380
|
+
* Create a cron job
|
|
15381
|
+
* Sends `cron.add` to the worker. Required scope: `operator.admin`. The worker echoes back the assigned `jobId`.
|
|
15382
|
+
* @returns CronJobResponse
|
|
15383
|
+
* @throws ApiError
|
|
15384
|
+
*/
|
|
15385
|
+
static aiMentorOrgsClawInstancesCronJobsCreate({
|
|
15386
|
+
org,
|
|
15387
|
+
serverPk,
|
|
15388
|
+
requestBody
|
|
15389
|
+
}) {
|
|
15390
|
+
return request(OpenAPI, {
|
|
15391
|
+
method: 'POST',
|
|
15392
|
+
url: '/api/ai-mentor/orgs/{org}/claw/instances/{server_pk}/cron-jobs/',
|
|
15393
|
+
path: {
|
|
15394
|
+
'org': org,
|
|
15395
|
+
'server_pk': serverPk
|
|
15396
|
+
},
|
|
15397
|
+
body: requestBody,
|
|
15398
|
+
mediaType: 'application/json'
|
|
15399
|
+
});
|
|
15400
|
+
}
|
|
15401
|
+
/**
|
|
15402
|
+
* Manage scheduled cron jobs on a ClawInstance.
|
|
15403
|
+
* @returns any No response body
|
|
15404
|
+
* @throws ApiError
|
|
15405
|
+
*/
|
|
15406
|
+
static aiMentorOrgsClawInstancesCronJobsUpdate({
|
|
15407
|
+
jobId,
|
|
15408
|
+
org,
|
|
15409
|
+
serverPk
|
|
15410
|
+
}) {
|
|
15411
|
+
return request(OpenAPI, {
|
|
15412
|
+
method: 'PUT',
|
|
15413
|
+
url: '/api/ai-mentor/orgs/{org}/claw/instances/{server_pk}/cron-jobs/{job_id}/',
|
|
15414
|
+
path: {
|
|
15415
|
+
'job_id': jobId,
|
|
15416
|
+
'org': org,
|
|
15417
|
+
'server_pk': serverPk
|
|
15418
|
+
}
|
|
15419
|
+
});
|
|
15420
|
+
}
|
|
15421
|
+
/**
|
|
15422
|
+
* Patch a cron job
|
|
15423
|
+
* Forwards the body verbatim as `cron.update.params.patch`.
|
|
15424
|
+
* @returns CronJobResponse
|
|
15425
|
+
* @throws ApiError
|
|
15426
|
+
*/
|
|
15427
|
+
static aiMentorOrgsClawInstancesCronJobsPartialUpdate({
|
|
15428
|
+
jobId,
|
|
15429
|
+
org,
|
|
15430
|
+
serverPk,
|
|
15431
|
+
requestBody
|
|
15432
|
+
}) {
|
|
15433
|
+
return request(OpenAPI, {
|
|
15434
|
+
method: 'PATCH',
|
|
15435
|
+
url: '/api/ai-mentor/orgs/{org}/claw/instances/{server_pk}/cron-jobs/{job_id}/',
|
|
15436
|
+
path: {
|
|
15437
|
+
'job_id': jobId,
|
|
15438
|
+
'org': org,
|
|
15439
|
+
'server_pk': serverPk
|
|
15440
|
+
},
|
|
15441
|
+
body: requestBody,
|
|
15442
|
+
mediaType: 'application/json'
|
|
15443
|
+
});
|
|
15444
|
+
}
|
|
15445
|
+
/**
|
|
15446
|
+
* Remove a cron job
|
|
15447
|
+
* Manage scheduled cron jobs on a ClawInstance.
|
|
15448
|
+
* @returns void
|
|
15449
|
+
* @throws ApiError
|
|
15450
|
+
*/
|
|
15451
|
+
static aiMentorOrgsClawInstancesCronJobsDestroy({
|
|
15452
|
+
jobId,
|
|
15453
|
+
org,
|
|
15454
|
+
serverPk
|
|
15455
|
+
}) {
|
|
15456
|
+
return request(OpenAPI, {
|
|
15457
|
+
method: 'DELETE',
|
|
15458
|
+
url: '/api/ai-mentor/orgs/{org}/claw/instances/{server_pk}/cron-jobs/{job_id}/',
|
|
15459
|
+
path: {
|
|
15460
|
+
'job_id': jobId,
|
|
15461
|
+
'org': org,
|
|
15462
|
+
'server_pk': serverPk
|
|
15463
|
+
}
|
|
15464
|
+
});
|
|
15465
|
+
}
|
|
15466
|
+
/**
|
|
15467
|
+
* Trigger a cron job to run now
|
|
15468
|
+
* Calls `cron.run` on the worker. Mode `force` (default) runs unconditionally; `due` only runs if the schedule says it's due.
|
|
15469
|
+
* @returns CronRunResult
|
|
15470
|
+
* @throws ApiError
|
|
15471
|
+
*/
|
|
15472
|
+
static aiMentorOrgsClawInstancesCronJobsRunCreate({
|
|
15473
|
+
jobId,
|
|
15474
|
+
org,
|
|
15475
|
+
serverPk,
|
|
15476
|
+
requestBody
|
|
15477
|
+
}) {
|
|
15478
|
+
return request(OpenAPI, {
|
|
15479
|
+
method: 'POST',
|
|
15480
|
+
url: '/api/ai-mentor/orgs/{org}/claw/instances/{server_pk}/cron-jobs/{job_id}/run/',
|
|
15481
|
+
path: {
|
|
15482
|
+
'job_id': jobId,
|
|
15483
|
+
'org': org,
|
|
15484
|
+
'server_pk': serverPk
|
|
15485
|
+
},
|
|
15486
|
+
body: requestBody,
|
|
15487
|
+
mediaType: 'application/json'
|
|
15488
|
+
});
|
|
15489
|
+
}
|
|
15490
|
+
/**
|
|
15491
|
+
* List cron run history
|
|
15492
|
+
* ``GET /claw/instances/<pk>/cron-runs/`` — paginated run-log entries.
|
|
15493
|
+
* @returns CronRunsResponse
|
|
15494
|
+
* @throws ApiError
|
|
15495
|
+
*/
|
|
15496
|
+
static aiMentorOrgsClawInstancesCronRunsRetrieve({
|
|
15497
|
+
org,
|
|
15498
|
+
serverPk,
|
|
15499
|
+
deliveryStatus,
|
|
15500
|
+
jobId,
|
|
15501
|
+
limit,
|
|
15502
|
+
offset,
|
|
15503
|
+
query,
|
|
15504
|
+
scope,
|
|
15505
|
+
sortDir = 'desc',
|
|
15506
|
+
status
|
|
15507
|
+
}) {
|
|
15508
|
+
return request(OpenAPI, {
|
|
15509
|
+
method: 'GET',
|
|
15510
|
+
url: '/api/ai-mentor/orgs/{org}/claw/instances/{server_pk}/cron-runs/',
|
|
15511
|
+
path: {
|
|
15512
|
+
'org': org,
|
|
15513
|
+
'server_pk': serverPk
|
|
15514
|
+
},
|
|
15515
|
+
query: {
|
|
15516
|
+
'delivery_status': deliveryStatus,
|
|
15517
|
+
'job_id': jobId,
|
|
15518
|
+
'limit': limit,
|
|
15519
|
+
'offset': offset,
|
|
15520
|
+
'query': query,
|
|
15521
|
+
'scope': scope,
|
|
15522
|
+
'sort_dir': sortDir,
|
|
15523
|
+
'status': status
|
|
15524
|
+
}
|
|
15525
|
+
});
|
|
15526
|
+
}
|
|
15527
|
+
/**
|
|
15528
|
+
* Cron scheduler health
|
|
15529
|
+
* Returns the worker's `cron.status` summary.
|
|
15530
|
+
* @returns CronStatusResponse
|
|
15531
|
+
* @throws ApiError
|
|
15532
|
+
*/
|
|
15533
|
+
static aiMentorOrgsClawInstancesCronStatusRetrieve({
|
|
15534
|
+
org,
|
|
15535
|
+
serverPk
|
|
15536
|
+
}) {
|
|
15537
|
+
return request(OpenAPI, {
|
|
15538
|
+
method: 'GET',
|
|
15539
|
+
url: '/api/ai-mentor/orgs/{org}/claw/instances/{server_pk}/cron-status/',
|
|
15540
|
+
path: {
|
|
15541
|
+
'org': org,
|
|
15542
|
+
'server_pk': serverPk
|
|
15543
|
+
}
|
|
15544
|
+
});
|
|
15545
|
+
}
|
|
15546
|
+
/**
|
|
15547
|
+
* List MCP servers configured on this ClawInstance
|
|
15548
|
+
* Reads `mcp.servers.*` from the worker config and returns each entry's name + config. Secret values are surfaced as `__OPENCLAW_REDACTED__`.
|
|
15549
|
+
* @returns McpServerListResponse
|
|
15550
|
+
* @throws ApiError
|
|
15551
|
+
*/
|
|
15552
|
+
static aiMentorOrgsClawInstancesMcpServersList({
|
|
15553
|
+
org,
|
|
15554
|
+
serverPk
|
|
15555
|
+
}) {
|
|
15556
|
+
return request(OpenAPI, {
|
|
15557
|
+
method: 'GET',
|
|
15558
|
+
url: '/api/ai-mentor/orgs/{org}/claw/instances/{server_pk}/mcp-servers/',
|
|
15559
|
+
path: {
|
|
15560
|
+
'org': org,
|
|
15561
|
+
'server_pk': serverPk
|
|
15562
|
+
}
|
|
15563
|
+
});
|
|
15564
|
+
}
|
|
15565
|
+
/**
|
|
15566
|
+
* Add a new MCP server
|
|
15567
|
+
* Inserts a new entry at `mcp.servers.<name>` and writes the full config back via `config.set` with the current `baseHash`. Fails with 409 if the name already exists.
|
|
15568
|
+
* @returns McpServerEntry
|
|
15569
|
+
* @throws ApiError
|
|
15570
|
+
*/
|
|
15571
|
+
static aiMentorOrgsClawInstancesMcpServersCreate({
|
|
15572
|
+
org,
|
|
15573
|
+
serverPk,
|
|
15574
|
+
requestBody
|
|
15575
|
+
}) {
|
|
15576
|
+
return request(OpenAPI, {
|
|
15577
|
+
method: 'POST',
|
|
15578
|
+
url: '/api/ai-mentor/orgs/{org}/claw/instances/{server_pk}/mcp-servers/',
|
|
15579
|
+
path: {
|
|
15580
|
+
'org': org,
|
|
15581
|
+
'server_pk': serverPk
|
|
15582
|
+
},
|
|
15583
|
+
body: requestBody,
|
|
15584
|
+
mediaType: 'application/json'
|
|
15585
|
+
});
|
|
15586
|
+
}
|
|
15587
|
+
/**
|
|
15588
|
+
* Retrieve a single MCP server
|
|
15589
|
+
* Manage MCP server entries on a ClawInstance.
|
|
15590
|
+
*
|
|
15591
|
+
* All operations round-trip the worker's config (read → modify → write
|
|
15592
|
+
* with baseHash), so existing entries — including
|
|
15593
|
+
* `__OPENCLAW_REDACTED__` secret placeholders — are preserved verbatim.
|
|
15594
|
+
* The canonical config path is `mcp.servers.<name>`.
|
|
15595
|
+
* @returns McpServerEntry
|
|
15596
|
+
* @throws ApiError
|
|
15597
|
+
*/
|
|
15598
|
+
static aiMentorOrgsClawInstancesMcpServersRetrieve({
|
|
15599
|
+
mcpName,
|
|
15600
|
+
org,
|
|
15601
|
+
serverPk
|
|
15602
|
+
}) {
|
|
15603
|
+
return request(OpenAPI, {
|
|
15604
|
+
method: 'GET',
|
|
15605
|
+
url: '/api/ai-mentor/orgs/{org}/claw/instances/{server_pk}/mcp-servers/{mcp_name}/',
|
|
15606
|
+
path: {
|
|
15607
|
+
'mcp_name': mcpName,
|
|
15608
|
+
'org': org,
|
|
15609
|
+
'server_pk': serverPk
|
|
15610
|
+
}
|
|
15611
|
+
});
|
|
15612
|
+
}
|
|
15613
|
+
/**
|
|
15614
|
+
* Manage MCP server entries on a ClawInstance.
|
|
15615
|
+
*
|
|
15616
|
+
* All operations round-trip the worker's config (read → modify → write
|
|
15617
|
+
* with baseHash), so existing entries — including
|
|
15618
|
+
* `__OPENCLAW_REDACTED__` secret placeholders — are preserved verbatim.
|
|
15619
|
+
* The canonical config path is `mcp.servers.<name>`.
|
|
15620
|
+
* @returns any No response body
|
|
15621
|
+
* @throws ApiError
|
|
15622
|
+
*/
|
|
15623
|
+
static aiMentorOrgsClawInstancesMcpServersUpdate({
|
|
15624
|
+
mcpName,
|
|
15625
|
+
org,
|
|
15626
|
+
serverPk
|
|
15627
|
+
}) {
|
|
15628
|
+
return request(OpenAPI, {
|
|
15629
|
+
method: 'PUT',
|
|
15630
|
+
url: '/api/ai-mentor/orgs/{org}/claw/instances/{server_pk}/mcp-servers/{mcp_name}/',
|
|
15631
|
+
path: {
|
|
15632
|
+
'mcp_name': mcpName,
|
|
15633
|
+
'org': org,
|
|
15634
|
+
'server_pk': serverPk
|
|
15635
|
+
}
|
|
15636
|
+
});
|
|
15637
|
+
}
|
|
15638
|
+
/**
|
|
15639
|
+
* Update an MCP server (deep-merge by default)
|
|
15640
|
+
* Deep-merges the `config` patch into the existing entry, preserving fields the caller didn't supply — including redacted secret values. Set `replace=true` for a full overwrite of the entry.
|
|
15641
|
+
* @returns McpServerEntry
|
|
15642
|
+
* @throws ApiError
|
|
15643
|
+
*/
|
|
15644
|
+
static aiMentorOrgsClawInstancesMcpServersPartialUpdate({
|
|
15645
|
+
mcpName,
|
|
15646
|
+
org,
|
|
15647
|
+
serverPk,
|
|
15648
|
+
requestBody
|
|
15649
|
+
}) {
|
|
15650
|
+
return request(OpenAPI, {
|
|
15651
|
+
method: 'PATCH',
|
|
15652
|
+
url: '/api/ai-mentor/orgs/{org}/claw/instances/{server_pk}/mcp-servers/{mcp_name}/',
|
|
15653
|
+
path: {
|
|
15654
|
+
'mcp_name': mcpName,
|
|
15655
|
+
'org': org,
|
|
15656
|
+
'server_pk': serverPk
|
|
15657
|
+
},
|
|
15658
|
+
body: requestBody,
|
|
15659
|
+
mediaType: 'application/json'
|
|
15660
|
+
});
|
|
15661
|
+
}
|
|
15662
|
+
/**
|
|
15663
|
+
* Remove an MCP server entry
|
|
15664
|
+
* Manage MCP server entries on a ClawInstance.
|
|
15665
|
+
*
|
|
15666
|
+
* All operations round-trip the worker's config (read → modify → write
|
|
15667
|
+
* with baseHash), so existing entries — including
|
|
15668
|
+
* `__OPENCLAW_REDACTED__` secret placeholders — are preserved verbatim.
|
|
15669
|
+
* The canonical config path is `mcp.servers.<name>`.
|
|
15670
|
+
* @returns void
|
|
15671
|
+
* @throws ApiError
|
|
15672
|
+
*/
|
|
15673
|
+
static aiMentorOrgsClawInstancesMcpServersDestroy({
|
|
15674
|
+
mcpName,
|
|
15675
|
+
org,
|
|
15676
|
+
serverPk
|
|
15677
|
+
}) {
|
|
15678
|
+
return request(OpenAPI, {
|
|
15679
|
+
method: 'DELETE',
|
|
15680
|
+
url: '/api/ai-mentor/orgs/{org}/claw/instances/{server_pk}/mcp-servers/{mcp_name}/',
|
|
15681
|
+
path: {
|
|
15682
|
+
'mcp_name': mcpName,
|
|
15683
|
+
'org': org,
|
|
15684
|
+
'server_pk': serverPk
|
|
15685
|
+
}
|
|
15686
|
+
});
|
|
15687
|
+
}
|
|
15688
|
+
/**
|
|
15689
|
+
* Inject a wake message into a session
|
|
15690
|
+
* Sends the `wake` RPC. `mode="now"` (default) injects immediately; `mode="next-heartbeat"` defers until the next heartbeat. Required scope: `operator.write`.
|
|
15691
|
+
* @returns WakeResponse
|
|
15692
|
+
* @throws ApiError
|
|
15693
|
+
*/
|
|
15694
|
+
static aiMentorOrgsClawInstancesWakeCreate({
|
|
15695
|
+
org,
|
|
15696
|
+
serverPk,
|
|
15697
|
+
requestBody
|
|
15698
|
+
}) {
|
|
15699
|
+
return request(OpenAPI, {
|
|
15700
|
+
method: 'POST',
|
|
15701
|
+
url: '/api/ai-mentor/orgs/{org}/claw/instances/{server_pk}/wake/',
|
|
15702
|
+
path: {
|
|
15703
|
+
'org': org,
|
|
15704
|
+
'server_pk': serverPk
|
|
15705
|
+
},
|
|
15706
|
+
body: requestBody,
|
|
15707
|
+
mediaType: 'application/json'
|
|
15708
|
+
});
|
|
15709
|
+
}
|
|
15181
15710
|
/**
|
|
15182
15711
|
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
15183
15712
|
* @returns PaginatedClawModelProviderList
|