@uru-intelligence/cli 0.4.17 → 0.4.19
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/CHANGELOG.md +2 -0
- package/dist/library.mjs +458 -55
- package/dist/uru.mjs +686 -98
- package/package.json +1 -1
package/dist/uru.mjs
CHANGED
|
@@ -225,6 +225,16 @@ function getCliRemoteOperationContract(id) {
|
|
|
225
225
|
function buildGemOperations(op) {
|
|
226
226
|
const gemOperations = [
|
|
227
227
|
op("gem.init", "gems", "Create a Gem project at a visible library/<name>.gem path.", "gem_control_plane", "init", "write"),
|
|
228
|
+
op("gem.git_source_setup", "gems", "Begin the nonce-bound GitHub source connection flow for the current workspace.", "gem_control_plane", "git_source_setup", "write"),
|
|
229
|
+
op("gem.git_source_connections_list", "gems", "List GitHub installations and repositories available to the current workspace actor.", "gem_query", "git_source_connections_list", "read"),
|
|
230
|
+
op("gem.git_source_connection_poll", "gems", "Read the state of a GitHub source setup continuation.", "gem_query", "git_source_connection_poll", "read"),
|
|
231
|
+
op("gem.git_source_connection_callback", "gems", "Complete a nonce-bound GitHub installation or OAuth callback.", "gem_control_plane", "git_source_connection_callback", "write"),
|
|
232
|
+
op("gem.git_source_inspect", "gems", "Inspect an exact GitHub ref before importing it as a Gem.", "gem_query", "git_source_inspect", "read"),
|
|
233
|
+
op("gem.git_source_import", "gems", "Import an inspected exact Git commit as a Git-backed Gem.", "gem_control_plane", "git_source_import", "write"),
|
|
234
|
+
op("gem.git_source_status", "gems", "Read Git source binding, policy, import, preview, and allowed-action state for a Gem.", "gem_query", "git_source_status", "read"),
|
|
235
|
+
op("gem.git_source_command", "gems", "Apply a bounded Git source command such as refresh, retry, policy change, publish, or preview approval.", "gem_control_plane", "git_source_command", "write"),
|
|
236
|
+
op("gem.git_source_preview_inspect", "gems", "Inspect the exact preview head and resource policy before approval.", "gem_query", "git_source_preview_inspect", "read"),
|
|
237
|
+
op("gem.git_source_preview_open", "gems", "Mint an authenticated URL for a ready Git source preview.", "gem_query", "git_source_preview_open", "read"),
|
|
228
238
|
op("gem.inspect", "gems", "Inspect Gem release readiness, bindings, secrets, and setup checks. Thumbnail image bytes are omitted by default; pass include_thumbnail=true to include them.", "gem_query", "inspect", "read"),
|
|
229
239
|
op("gem.fs_tree", "gems", "List files in a Gem project directory.", "gem_query", "fs_tree", "read"),
|
|
230
240
|
op("gem.fs_read", "gems", "Read a file from a Gem project directory.", "gem_query", "fs_read", "read"),
|
|
@@ -921,31 +931,25 @@ var DATASET_MANAGE_OPERATIONS = new Map([
|
|
|
921
931
|
["UPDATE_DATASET", "update"],
|
|
922
932
|
["DATASET_UPDATE", "update"]
|
|
923
933
|
]);
|
|
924
|
-
// ../../packages/platform-operations/src/
|
|
925
|
-
var
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
]
|
|
942
|
-
var
|
|
943
|
-
["LIST_DATASET_ROWS", "window.uru.datasets.queryRows"],
|
|
944
|
-
["DATASET_QUERY", "window.uru.datasets.queryRows"],
|
|
945
|
-
["UPSERT_DATASET_ROWS", "window.uru.datasets.upsertRows"],
|
|
946
|
-
["DELETE_DATASET_ROWS", "window.uru.datasets.deleteRows"],
|
|
947
|
-
["RESTORE_DATASET_ROWS", "window.uru.datasets.restoreRows"]
|
|
948
|
-
]);
|
|
934
|
+
// ../../packages/platform-operations/src/dataset_source_names.ts
|
|
935
|
+
var RETIRED_DATASET_SOURCE_NAMES = [
|
|
936
|
+
"CREATE_DATASET",
|
|
937
|
+
"DATASET_CREATE",
|
|
938
|
+
"UPDATE_DATASET",
|
|
939
|
+
"DATASET_UPDATE",
|
|
940
|
+
"LIST_DATASET_ROWS",
|
|
941
|
+
"DATASET_QUERY",
|
|
942
|
+
"GET_DATASET",
|
|
943
|
+
"DATASET_GET",
|
|
944
|
+
"UPSERT_DATASET_ROWS",
|
|
945
|
+
"DELETE_DATASET_ROWS",
|
|
946
|
+
"RESTORE_DATASET_ROWS",
|
|
947
|
+
"DATASET_ROWS",
|
|
948
|
+
"DATASET_SQL_READ",
|
|
949
|
+
"DATASET_SQL_WRITE",
|
|
950
|
+
"DATASET_SQL"
|
|
951
|
+
];
|
|
952
|
+
var RETIRED_DATASET_SOURCE_PATTERN = new RegExp(`\\b(${RETIRED_DATASET_SOURCE_NAMES.join("|")})\\b`);
|
|
949
953
|
// ../../packages/platform-operations/src/external_company_mcp_policy.ts
|
|
950
954
|
var externalCompanyMcpDeniedToolIds = new Set([
|
|
951
955
|
"MAGUIRE_WRITE_SQL"
|
|
@@ -993,30 +997,211 @@ function parseToolAddress(address) {
|
|
|
993
997
|
}
|
|
994
998
|
var TOOL_SEARCH_MIN_TERM_LENGTH = 2;
|
|
995
999
|
var TOOL_SEARCH_MIN_PENALTY_TERM_LENGTH = 3;
|
|
1000
|
+
var TOOL_SEARCH_STOP_WORDS = new Set([
|
|
1001
|
+
"about",
|
|
1002
|
+
"after",
|
|
1003
|
+
"all",
|
|
1004
|
+
"am",
|
|
1005
|
+
"an",
|
|
1006
|
+
"and",
|
|
1007
|
+
"any",
|
|
1008
|
+
"are",
|
|
1009
|
+
"as",
|
|
1010
|
+
"at",
|
|
1011
|
+
"be",
|
|
1012
|
+
"been",
|
|
1013
|
+
"being",
|
|
1014
|
+
"but",
|
|
1015
|
+
"by",
|
|
1016
|
+
"can",
|
|
1017
|
+
"could",
|
|
1018
|
+
"did",
|
|
1019
|
+
"do",
|
|
1020
|
+
"does",
|
|
1021
|
+
"each",
|
|
1022
|
+
"for",
|
|
1023
|
+
"from",
|
|
1024
|
+
"had",
|
|
1025
|
+
"has",
|
|
1026
|
+
"have",
|
|
1027
|
+
"he",
|
|
1028
|
+
"her",
|
|
1029
|
+
"here",
|
|
1030
|
+
"him",
|
|
1031
|
+
"his",
|
|
1032
|
+
"how",
|
|
1033
|
+
"if",
|
|
1034
|
+
"in",
|
|
1035
|
+
"into",
|
|
1036
|
+
"is",
|
|
1037
|
+
"it",
|
|
1038
|
+
"its",
|
|
1039
|
+
"me",
|
|
1040
|
+
"mine",
|
|
1041
|
+
"my",
|
|
1042
|
+
"of",
|
|
1043
|
+
"on",
|
|
1044
|
+
"once",
|
|
1045
|
+
"onto",
|
|
1046
|
+
"or",
|
|
1047
|
+
"our",
|
|
1048
|
+
"ours",
|
|
1049
|
+
"out",
|
|
1050
|
+
"over",
|
|
1051
|
+
"please",
|
|
1052
|
+
"she",
|
|
1053
|
+
"should",
|
|
1054
|
+
"so",
|
|
1055
|
+
"some",
|
|
1056
|
+
"such",
|
|
1057
|
+
"than",
|
|
1058
|
+
"that",
|
|
1059
|
+
"the",
|
|
1060
|
+
"their",
|
|
1061
|
+
"theirs",
|
|
1062
|
+
"them",
|
|
1063
|
+
"then",
|
|
1064
|
+
"there",
|
|
1065
|
+
"these",
|
|
1066
|
+
"they",
|
|
1067
|
+
"this",
|
|
1068
|
+
"those",
|
|
1069
|
+
"to",
|
|
1070
|
+
"up",
|
|
1071
|
+
"us",
|
|
1072
|
+
"was",
|
|
1073
|
+
"we",
|
|
1074
|
+
"were",
|
|
1075
|
+
"what",
|
|
1076
|
+
"when",
|
|
1077
|
+
"where",
|
|
1078
|
+
"which",
|
|
1079
|
+
"while",
|
|
1080
|
+
"who",
|
|
1081
|
+
"whom",
|
|
1082
|
+
"why",
|
|
1083
|
+
"will",
|
|
1084
|
+
"with",
|
|
1085
|
+
"would",
|
|
1086
|
+
"you",
|
|
1087
|
+
"your",
|
|
1088
|
+
"yours"
|
|
1089
|
+
]);
|
|
1090
|
+
var TOOL_SEARCH_FIELD_WEIGHTS = {
|
|
1091
|
+
tool: 12,
|
|
1092
|
+
title: 8,
|
|
1093
|
+
address: 6,
|
|
1094
|
+
description: 5,
|
|
1095
|
+
category: 4
|
|
1096
|
+
};
|
|
1097
|
+
var PHRASE_EXACT_MULTIPLIER = 14;
|
|
1098
|
+
var PHRASE_PREFIX_MULTIPLIER = 9;
|
|
1099
|
+
var PHRASE_CONTAINS_MULTIPLIER = 6;
|
|
1100
|
+
var TERM_EXACT_MULTIPLIER = 4;
|
|
1101
|
+
var TERM_PARTIAL_MULTIPLIER = 2;
|
|
1102
|
+
var TERM_SUBSTRING_MULTIPLIER = 1;
|
|
1103
|
+
var TERM_PARTIAL_MIN_LENGTH = 4;
|
|
1104
|
+
var TOOL_SEARCH_MISS_PENALTY = 8;
|
|
1105
|
+
var TOOL_SEARCH_FULL_COVERAGE_BONUS = 25;
|
|
1106
|
+
function normalizeToolSearchText(value) {
|
|
1107
|
+
return value.replace(/([a-z0-9])([A-Z])/gu, "$1 $2").replace(/[_./:@-]+/gu, " ").toLowerCase().replace(/\s+/gu, " ").trim();
|
|
1108
|
+
}
|
|
1109
|
+
function stemToolSearchTerm(token) {
|
|
1110
|
+
if (token.length > 4 && token.endsWith("ies")) {
|
|
1111
|
+
return `${token.slice(0, -3)}y`;
|
|
1112
|
+
}
|
|
1113
|
+
if (token.length > 4 && (token.endsWith("ses") || token.endsWith("xes") || token.endsWith("zes") || token.endsWith("ches") || token.endsWith("shes"))) {
|
|
1114
|
+
return token.slice(0, -2);
|
|
1115
|
+
}
|
|
1116
|
+
if (token.length > 3 && token.endsWith("s") && !token.endsWith("ss") && !token.endsWith("us")) {
|
|
1117
|
+
return token.slice(0, -1);
|
|
1118
|
+
}
|
|
1119
|
+
return token;
|
|
1120
|
+
}
|
|
1121
|
+
function tokenizeToolSearchText(value) {
|
|
1122
|
+
return normalizeToolSearchText(value).split(/[^a-z0-9]+/u).filter((token) => token.length >= TOOL_SEARCH_MIN_TERM_LENGTH).map(stemToolSearchTerm);
|
|
1123
|
+
}
|
|
1124
|
+
function prepareToolSearchField(value) {
|
|
1125
|
+
const text = value ?? "";
|
|
1126
|
+
const tokens = tokenizeToolSearchText(text);
|
|
1127
|
+
return { raw: normalizeToolSearchText(text), tokens, phrase: tokens.join(" ") };
|
|
1128
|
+
}
|
|
1129
|
+
function toolSearchQueryTerms(query) {
|
|
1130
|
+
const seen = new Set;
|
|
1131
|
+
const terms = [];
|
|
1132
|
+
for (const token of tokenizeToolSearchText(query)) {
|
|
1133
|
+
if (TOOL_SEARCH_STOP_WORDS.has(token) || seen.has(token)) {
|
|
1134
|
+
continue;
|
|
1135
|
+
}
|
|
1136
|
+
seen.add(token);
|
|
1137
|
+
terms.push(token);
|
|
1138
|
+
}
|
|
1139
|
+
return terms;
|
|
1140
|
+
}
|
|
1141
|
+
function scoreToolSearchField(phrase, terms, field, weight) {
|
|
1142
|
+
if (field.raw === "") {
|
|
1143
|
+
return { score: 0, matched: new Set };
|
|
1144
|
+
}
|
|
1145
|
+
let score = 0;
|
|
1146
|
+
const matched = new Set;
|
|
1147
|
+
if (phrase.length >= TOOL_SEARCH_MIN_TERM_LENGTH) {
|
|
1148
|
+
if (field.phrase === phrase) {
|
|
1149
|
+
score += weight * PHRASE_EXACT_MULTIPLIER;
|
|
1150
|
+
} else if (field.phrase.startsWith(phrase)) {
|
|
1151
|
+
score += weight * PHRASE_PREFIX_MULTIPLIER;
|
|
1152
|
+
} else if (field.phrase.includes(phrase)) {
|
|
1153
|
+
score += weight * PHRASE_CONTAINS_MULTIPLIER;
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
for (const term of terms) {
|
|
1157
|
+
if (field.tokens.includes(term)) {
|
|
1158
|
+
score += weight * TERM_EXACT_MULTIPLIER;
|
|
1159
|
+
matched.add(term);
|
|
1160
|
+
continue;
|
|
1161
|
+
}
|
|
1162
|
+
if (field.tokens.some((candidate) => (candidate.startsWith(term) || term.startsWith(candidate)) && Math.min(candidate.length, term.length) >= TERM_PARTIAL_MIN_LENGTH)) {
|
|
1163
|
+
score += weight * TERM_PARTIAL_MULTIPLIER;
|
|
1164
|
+
matched.add(term);
|
|
1165
|
+
continue;
|
|
1166
|
+
}
|
|
1167
|
+
if (field.raw.includes(term)) {
|
|
1168
|
+
score += weight * TERM_SUBSTRING_MULTIPLIER;
|
|
1169
|
+
matched.add(term);
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
return { score, matched };
|
|
1173
|
+
}
|
|
996
1174
|
function scoreToolRelevance(fields, query, options = {}) {
|
|
997
|
-
const terms = query
|
|
1175
|
+
const terms = toolSearchQueryTerms(query);
|
|
998
1176
|
if (terms.length === 0) {
|
|
999
1177
|
return 0;
|
|
1000
1178
|
}
|
|
1001
|
-
const
|
|
1002
|
-
const
|
|
1003
|
-
|
|
1179
|
+
const phrase = terms.join(" ");
|
|
1180
|
+
const scored = [
|
|
1181
|
+
scoreToolSearchField(phrase, terms, prepareToolSearchField(fields.tool), TOOL_SEARCH_FIELD_WEIGHTS.tool),
|
|
1182
|
+
scoreToolSearchField(phrase, terms, prepareToolSearchField(fields.title), TOOL_SEARCH_FIELD_WEIGHTS.title),
|
|
1183
|
+
scoreToolSearchField(phrase, terms, prepareToolSearchField(fields.address), TOOL_SEARCH_FIELD_WEIGHTS.address),
|
|
1184
|
+
scoreToolSearchField(phrase, terms, prepareToolSearchField(fields.description), TOOL_SEARCH_FIELD_WEIGHTS.description),
|
|
1185
|
+
scoreToolSearchField(phrase, terms, prepareToolSearchField(fields.category), TOOL_SEARCH_FIELD_WEIGHTS.category)
|
|
1186
|
+
];
|
|
1187
|
+
const matched = new Set;
|
|
1004
1188
|
let score = 0;
|
|
1005
|
-
for (const
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
hit = true;
|
|
1010
|
-
} else if (address.includes(term)) {
|
|
1011
|
-
score += 2;
|
|
1012
|
-
hit = true;
|
|
1189
|
+
for (const field of scored) {
|
|
1190
|
+
score += field.score;
|
|
1191
|
+
for (const term of field.matched) {
|
|
1192
|
+
matched.add(term);
|
|
1013
1193
|
}
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1194
|
+
}
|
|
1195
|
+
if (matched.size === 0) {
|
|
1196
|
+
return 0;
|
|
1197
|
+
}
|
|
1198
|
+
if (matched.size === terms.length) {
|
|
1199
|
+
score += TOOL_SEARCH_FULL_COVERAGE_BONUS;
|
|
1200
|
+
} else if (options.missPenalty === true) {
|
|
1201
|
+
for (const term of terms) {
|
|
1202
|
+
if (!matched.has(term) && term.length >= TOOL_SEARCH_MIN_PENALTY_TERM_LENGTH) {
|
|
1203
|
+
score -= TOOL_SEARCH_MISS_PENALTY;
|
|
1204
|
+
}
|
|
1020
1205
|
}
|
|
1021
1206
|
}
|
|
1022
1207
|
return score;
|
|
@@ -2669,7 +2854,7 @@ function spec(id, summary, auth, workspace, safety, outputModes, cancellation =
|
|
|
2669
2854
|
// package.json
|
|
2670
2855
|
var package_default = {
|
|
2671
2856
|
name: "@uru-intelligence/cli",
|
|
2672
|
-
version: "0.4.
|
|
2857
|
+
version: "0.4.19",
|
|
2673
2858
|
private: false,
|
|
2674
2859
|
description: "Uru full-platform command line interface",
|
|
2675
2860
|
repository: {
|
|
@@ -9118,6 +9303,19 @@ var zAppStorageResponse = object({
|
|
|
9118
9303
|
operation: _enum(["get", "put", "delete", "list"]),
|
|
9119
9304
|
value: unknown().optional()
|
|
9120
9305
|
});
|
|
9306
|
+
var zAppSubtoolEntry = object({
|
|
9307
|
+
classification: _enum(["read", "write", "unknown"]),
|
|
9308
|
+
description: string2().nullable(),
|
|
9309
|
+
namespace: string2(),
|
|
9310
|
+
subToolName: string2()
|
|
9311
|
+
});
|
|
9312
|
+
var zAppSubtoolsResponse = object({
|
|
9313
|
+
appName: string2(),
|
|
9314
|
+
message: string2(),
|
|
9315
|
+
subtools: array(zAppSubtoolEntry),
|
|
9316
|
+
success: boolean2(),
|
|
9317
|
+
totalSubtools: int()
|
|
9318
|
+
});
|
|
9121
9319
|
var zAppSupportBundleRecord = object({
|
|
9122
9320
|
artifactId: string2(),
|
|
9123
9321
|
buildId: string2().nullish(),
|
|
@@ -9668,21 +9866,21 @@ var zBacklinkInfo = object({
|
|
|
9668
9866
|
var zBillingSettingsResponse = object({
|
|
9669
9867
|
architectEnabled: boolean2(),
|
|
9670
9868
|
automationsEnabled: boolean2(),
|
|
9671
|
-
automationsHourlyRequestLimit: int(),
|
|
9672
9869
|
automationsMonthlyPriceUsd: number2(),
|
|
9673
9870
|
automationsPlanTier: string2(),
|
|
9674
9871
|
automationsWeeklyBudgetUsd: number2(),
|
|
9675
9872
|
billingEmail: string2().nullable(),
|
|
9676
9873
|
billingName: string2().nullable(),
|
|
9677
9874
|
chatEnabled: boolean2(),
|
|
9678
|
-
chatHourlyRequestLimit: int(),
|
|
9679
9875
|
chatMonthlyPriceUsd: number2(),
|
|
9680
9876
|
chatPlanTier: string2(),
|
|
9681
9877
|
chatWeeklyBudgetUsd: number2(),
|
|
9682
9878
|
isTrial: boolean2(),
|
|
9683
9879
|
markupPercentage: number2(),
|
|
9684
9880
|
planType: string2(),
|
|
9881
|
+
spendingAlertSentAt: string2().nullable(),
|
|
9685
9882
|
spendingAlertThresholdUsd: number2().nullable(),
|
|
9883
|
+
spendingLimitReachedAt: string2().nullable(),
|
|
9686
9884
|
spendingLimitUsd: number2().nullable(),
|
|
9687
9885
|
trialEndsAt: string2().nullable(),
|
|
9688
9886
|
workspaceId: string2()
|
|
@@ -9780,7 +9978,6 @@ var zCanonicalToolCatalogEntry = object({
|
|
|
9780
9978
|
personaLinkId: uuid2().nullish(),
|
|
9781
9979
|
personaName: string2().nullish(),
|
|
9782
9980
|
providerNativeToolName: string2(),
|
|
9783
|
-
providerType: string2(),
|
|
9784
9981
|
serviceSlug: string2(),
|
|
9785
9982
|
sourceUserName: string2().nullish(),
|
|
9786
9983
|
title: string2().nullish(),
|
|
@@ -10139,6 +10336,7 @@ var zConnectResponse = object({
|
|
|
10139
10336
|
connectionId: string2().nullish(),
|
|
10140
10337
|
error: string2().nullish(),
|
|
10141
10338
|
errorType: string2().nullish(),
|
|
10339
|
+
expiresAt: exports_iso.datetime({ offset: true }).nullable(),
|
|
10142
10340
|
message: string2(),
|
|
10143
10341
|
providerNativeId: string2().nullish(),
|
|
10144
10342
|
success: boolean2()
|
|
@@ -10160,10 +10358,12 @@ var zConnectionApproval = object({
|
|
|
10160
10358
|
connectionIntegrationId: string2(),
|
|
10161
10359
|
connectionServiceName: string2(),
|
|
10162
10360
|
effectiveCapabilityIds: array(string2()),
|
|
10361
|
+
healthMessage: string2().nullable(),
|
|
10163
10362
|
id: string2(),
|
|
10164
10363
|
kind: _enum(["offer", "adoption"]),
|
|
10165
10364
|
offerId: string2().nullish(),
|
|
10166
10365
|
ownerCapabilityIds: array(string2()),
|
|
10366
|
+
ownerName: string2().nullable(),
|
|
10167
10367
|
providerType: string2(),
|
|
10168
10368
|
requestedAt: string2().nullish(),
|
|
10169
10369
|
requesterDisplayName: string2().nullish(),
|
|
@@ -10224,13 +10424,6 @@ var zConnectionSubtoolEntry = object({
|
|
|
10224
10424
|
toolSource: string2().nullish(),
|
|
10225
10425
|
wrapperToolName: string2().nullish()
|
|
10226
10426
|
});
|
|
10227
|
-
var zAppSubtoolsResponse = object({
|
|
10228
|
-
appName: string2(),
|
|
10229
|
-
message: string2(),
|
|
10230
|
-
subtools: array(zConnectionSubtoolEntry),
|
|
10231
|
-
success: boolean2(),
|
|
10232
|
-
totalSubtools: int()
|
|
10233
|
-
});
|
|
10234
10427
|
var zConnectionToolSummary = object({
|
|
10235
10428
|
adminBlocked: int().optional().default(0),
|
|
10236
10429
|
byEffectiveAccess: record(string2(), int()).optional(),
|
|
@@ -10764,6 +10957,266 @@ var zGemEditsPage = strictObject({
|
|
|
10764
10957
|
edits: array(zGemEdit),
|
|
10765
10958
|
nextCursor: string2().nullable()
|
|
10766
10959
|
});
|
|
10960
|
+
var zGemGitSourceCallbackRequest = strictObject({
|
|
10961
|
+
code: string2().min(1).max(2048).optional(),
|
|
10962
|
+
installationId: string2().regex(/^[1-9][0-9]{0,19}$\/u/).optional(),
|
|
10963
|
+
setupAction: _enum(["install", "update", "request"]).optional(),
|
|
10964
|
+
state: string2().regex(/^[A-Za-z0-9_-]{43}$\/u/)
|
|
10965
|
+
});
|
|
10966
|
+
var zGemGitSourceCommand = union([
|
|
10967
|
+
strictObject({
|
|
10968
|
+
action: _enum(["refresh"])
|
|
10969
|
+
}),
|
|
10970
|
+
strictObject({
|
|
10971
|
+
action: _enum(["retry"]),
|
|
10972
|
+
idempotencyKey: string2().min(1).max(200).regex(/^[A-Za-z0-9._:-]+$\/u/),
|
|
10973
|
+
importId: uuid2()
|
|
10974
|
+
}),
|
|
10975
|
+
strictObject({
|
|
10976
|
+
action: _enum(["cancel"]),
|
|
10977
|
+
importId: uuid2()
|
|
10978
|
+
}),
|
|
10979
|
+
strictObject({
|
|
10980
|
+
action: _enum(["change_policy"]),
|
|
10981
|
+
automaticPublishing: boolean2(),
|
|
10982
|
+
expectedRevision: int().gte(0),
|
|
10983
|
+
previewsEnabled: boolean2()
|
|
10984
|
+
}),
|
|
10985
|
+
strictObject({
|
|
10986
|
+
action: _enum(["publish"]),
|
|
10987
|
+
expectedRevision: int().gte(0),
|
|
10988
|
+
importId: uuid2()
|
|
10989
|
+
}),
|
|
10990
|
+
strictObject({
|
|
10991
|
+
action: _enum(["create_branch_preview"]),
|
|
10992
|
+
commitSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
|
|
10993
|
+
ref: string2().min(1).max(512)
|
|
10994
|
+
}),
|
|
10995
|
+
strictObject({
|
|
10996
|
+
action: _enum(["approve_preview"]),
|
|
10997
|
+
headSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
|
|
10998
|
+
previewId: uuid2(),
|
|
10999
|
+
resourcePolicyHash: string2().regex(/^[0-9a-f]{64}$\/iu/)
|
|
11000
|
+
}),
|
|
11001
|
+
strictObject({
|
|
11002
|
+
action: _enum(["expire_preview"]),
|
|
11003
|
+
previewId: uuid2()
|
|
11004
|
+
}),
|
|
11005
|
+
strictObject({
|
|
11006
|
+
action: _enum(["disconnect"]),
|
|
11007
|
+
expectedRevision: int().gte(0)
|
|
11008
|
+
}),
|
|
11009
|
+
strictObject({
|
|
11010
|
+
action: _enum(["reconnect"]),
|
|
11011
|
+
expectedRevision: int().gt(0)
|
|
11012
|
+
}),
|
|
11013
|
+
strictObject({
|
|
11014
|
+
action: _enum(["change_source"]),
|
|
11015
|
+
appDirectory: string2().max(240),
|
|
11016
|
+
commitSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
|
|
11017
|
+
expectedRevision: int().gt(0),
|
|
11018
|
+
ref: string2().min(1).max(512)
|
|
11019
|
+
})
|
|
11020
|
+
]);
|
|
11021
|
+
var zGemGitSourceConnectRequest = strictObject({
|
|
11022
|
+
appDirectory: string2().max(240),
|
|
11023
|
+
automaticPublishing: boolean2(),
|
|
11024
|
+
commitSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
|
|
11025
|
+
connectionId: uuid2(),
|
|
11026
|
+
folderId: uuid2().nullish(),
|
|
11027
|
+
idempotencyKey: string2().min(1).max(200).regex(/^[A-Za-z0-9._:-]+$\/u/),
|
|
11028
|
+
previewsEnabled: boolean2(),
|
|
11029
|
+
ref: string2().min(1).max(512),
|
|
11030
|
+
repositoryId: string2().regex(/^[1-9][0-9]{0,19}$\/u/),
|
|
11031
|
+
title: string2().min(1).max(256)
|
|
11032
|
+
});
|
|
11033
|
+
var zGemGitSourceImportError = strictObject({
|
|
11034
|
+
code: string2().min(1).max(128),
|
|
11035
|
+
message: string2().min(1).max(512)
|
|
11036
|
+
}).nullable();
|
|
11037
|
+
var zGemGitSourceImport = strictObject({
|
|
11038
|
+
attempt: int().gte(0),
|
|
11039
|
+
buildId: uuid2().nullable(),
|
|
11040
|
+
commitMessage: string2().max(16384),
|
|
11041
|
+
commitSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
|
|
11042
|
+
completedAt: exports_iso.datetime({ offset: true }).nullable(),
|
|
11043
|
+
createdAt: exports_iso.datetime({ offset: true }),
|
|
11044
|
+
error: zGemGitSourceImportError,
|
|
11045
|
+
generation: int().gte(0),
|
|
11046
|
+
id: uuid2(),
|
|
11047
|
+
publication: _enum([
|
|
11048
|
+
"preparing",
|
|
11049
|
+
"awaiting_review",
|
|
11050
|
+
"authorized",
|
|
11051
|
+
"published",
|
|
11052
|
+
"superseded"
|
|
11053
|
+
]),
|
|
11054
|
+
ref: string2().min(1).max(512),
|
|
11055
|
+
releaseId: uuid2().nullable(),
|
|
11056
|
+
sourceRevisionId: uuid2().nullable(),
|
|
11057
|
+
stage: _enum([
|
|
11058
|
+
"queued",
|
|
11059
|
+
"fetching",
|
|
11060
|
+
"validating",
|
|
11061
|
+
"needs_version",
|
|
11062
|
+
"preparing",
|
|
11063
|
+
"ready",
|
|
11064
|
+
"needs_access",
|
|
11065
|
+
"needs_configuration",
|
|
11066
|
+
"needs_resource_grant",
|
|
11067
|
+
"budget_blocked",
|
|
11068
|
+
"failed",
|
|
11069
|
+
"canceled",
|
|
11070
|
+
"superseded"
|
|
11071
|
+
]),
|
|
11072
|
+
versionId: uuid2().nullable(),
|
|
11073
|
+
versionNumber: int().gte(1).nullable()
|
|
11074
|
+
});
|
|
11075
|
+
var zGemGitSourceInspectRequest = strictObject({
|
|
11076
|
+
appDirectory: string2().max(240),
|
|
11077
|
+
connectionId: uuid2(),
|
|
11078
|
+
ref: string2().min(1).max(512),
|
|
11079
|
+
repositoryId: string2().regex(/^[1-9][0-9]{0,19}$\/u/)
|
|
11080
|
+
});
|
|
11081
|
+
var zGemGitSourceInspectionDiagnostic = strictObject({
|
|
11082
|
+
code: string2().min(1).max(128),
|
|
11083
|
+
message: string2().min(1).max(512),
|
|
11084
|
+
path: string2().max(512).nullable()
|
|
11085
|
+
});
|
|
11086
|
+
var zGemGitSourceInspection = strictObject({
|
|
11087
|
+
appDirectory: string2().max(240),
|
|
11088
|
+
candidateDirectories: array(string2().max(240)).max(5000),
|
|
11089
|
+
commitMessage: string2().max(16384),
|
|
11090
|
+
commitSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
|
|
11091
|
+
connectionId: uuid2(),
|
|
11092
|
+
diagnostics: array(zGemGitSourceInspectionDiagnostic).max(100),
|
|
11093
|
+
fileCount: int().gte(0).lte(5000),
|
|
11094
|
+
framework: string2().max(128).nullable(),
|
|
11095
|
+
proposedConfiguration: string2().max(65536).nullable(),
|
|
11096
|
+
ref: string2().min(1).max(512),
|
|
11097
|
+
repositoryId: string2().regex(/^[1-9][0-9]{0,19}$\/u/),
|
|
11098
|
+
resourceNeeds: array(object({
|
|
11099
|
+
kind: string2().min(1).max(128),
|
|
11100
|
+
name: string2().min(1).max(512)
|
|
11101
|
+
})).max(100),
|
|
11102
|
+
state: _enum(["ready", "needs_configuration", "rejected"]),
|
|
11103
|
+
totalBytes: int().gte(0).lte(25165824)
|
|
11104
|
+
});
|
|
11105
|
+
var zGemGitSourcePreview = strictObject({
|
|
11106
|
+
approvedHeadSha: string2().regex(/^[0-9a-f]{40}$\/iu/).nullable(),
|
|
11107
|
+
canOpen: boolean2(),
|
|
11108
|
+
error: zGemGitSourceImportError,
|
|
11109
|
+
expiresAt: exports_iso.datetime({ offset: true }),
|
|
11110
|
+
fork: boolean2(),
|
|
11111
|
+
headSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
|
|
11112
|
+
id: uuid2(),
|
|
11113
|
+
pullRequestNumber: int().gt(0).nullable(),
|
|
11114
|
+
ref: string2().min(1).max(512),
|
|
11115
|
+
state: _enum([
|
|
11116
|
+
"needs_commit_review",
|
|
11117
|
+
"queued",
|
|
11118
|
+
"building",
|
|
11119
|
+
"ready",
|
|
11120
|
+
"failed",
|
|
11121
|
+
"expired"
|
|
11122
|
+
]),
|
|
11123
|
+
title: string2().max(16384)
|
|
11124
|
+
});
|
|
11125
|
+
var zGemGitSourcePreviewInspectRequest = strictObject({
|
|
11126
|
+
headSha: string2().regex(/^[0-9a-f]{40}$\/iu/)
|
|
11127
|
+
});
|
|
11128
|
+
var zGemGitSourcePreviewInspection = strictObject({
|
|
11129
|
+
appDirectory: string2().max(240),
|
|
11130
|
+
diagnostics: array(zGemGitSourceInspectionDiagnostic).max(100),
|
|
11131
|
+
headSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
|
|
11132
|
+
previewId: uuid2(),
|
|
11133
|
+
proposedConfiguration: string2().max(65536).nullable(),
|
|
11134
|
+
ref: string2().min(1).max(512),
|
|
11135
|
+
resourceNeeds: array(object({
|
|
11136
|
+
kind: string2().min(1).max(128),
|
|
11137
|
+
name: string2().min(1).max(512)
|
|
11138
|
+
})).max(100),
|
|
11139
|
+
resourcePolicyHash: string2().regex(/^[0-9a-f]{64}$\/iu/).nullable(),
|
|
11140
|
+
state: _enum(["ready", "needs_configuration", "rejected"])
|
|
11141
|
+
});
|
|
11142
|
+
var zGemGitSourceRefs = array(object({
|
|
11143
|
+
kind: _enum(["branch", "tag"]),
|
|
11144
|
+
name: string2().min(1).max(512),
|
|
11145
|
+
ref: string2().min(1).max(512)
|
|
11146
|
+
})).max(2000);
|
|
11147
|
+
var zGemGitSourceRefsRequest = strictObject({
|
|
11148
|
+
connectionId: uuid2(),
|
|
11149
|
+
repositoryId: string2().regex(/^[1-9][0-9]{0,19}$\/u/)
|
|
11150
|
+
});
|
|
11151
|
+
var zGemGitSourceRepository = strictObject({
|
|
11152
|
+
connectionId: uuid2(),
|
|
11153
|
+
defaultBranch: string2().min(1).max(512),
|
|
11154
|
+
installationId: string2().regex(/^[1-9][0-9]{0,19}$\/u/),
|
|
11155
|
+
name: string2().min(1).max(255),
|
|
11156
|
+
owner: string2().min(1).max(255),
|
|
11157
|
+
private: boolean2(),
|
|
11158
|
+
repositoryId: string2().regex(/^[1-9][0-9]{0,19}$\/u/),
|
|
11159
|
+
url: url().max(2048)
|
|
11160
|
+
});
|
|
11161
|
+
var zGemGitSourceConnection = strictObject({
|
|
11162
|
+
authorizeUrl: url().max(2048).nullable(),
|
|
11163
|
+
expiresAt: exports_iso.datetime({ offset: true }).nullable(),
|
|
11164
|
+
id: uuid2().nullable(),
|
|
11165
|
+
installUrl: url().max(2048).nullable(),
|
|
11166
|
+
manageUrl: url().max(2048).nullable(),
|
|
11167
|
+
nextPage: int().gte(1).lte(101).nullable(),
|
|
11168
|
+
repositories: array(zGemGitSourceRepository).max(100),
|
|
11169
|
+
state: _enum([
|
|
11170
|
+
"not_connected",
|
|
11171
|
+
"awaiting_github",
|
|
11172
|
+
"pending_approval",
|
|
11173
|
+
"authorizing",
|
|
11174
|
+
"connected",
|
|
11175
|
+
"needs_access",
|
|
11176
|
+
"expired"
|
|
11177
|
+
])
|
|
11178
|
+
});
|
|
11179
|
+
var zGemGitSourceState = strictObject({
|
|
11180
|
+
allowedActions: array(_enum([
|
|
11181
|
+
"refresh",
|
|
11182
|
+
"retry",
|
|
11183
|
+
"cancel",
|
|
11184
|
+
"change_policy",
|
|
11185
|
+
"publish",
|
|
11186
|
+
"create_branch_preview",
|
|
11187
|
+
"approve_preview",
|
|
11188
|
+
"expire_preview",
|
|
11189
|
+
"disconnect",
|
|
11190
|
+
"reconnect",
|
|
11191
|
+
"change_source",
|
|
11192
|
+
"copy"
|
|
11193
|
+
])).max(12),
|
|
11194
|
+
artifactId: uuid2(),
|
|
11195
|
+
binding: object({
|
|
11196
|
+
access: _enum(["active", "suspended", "revoked", "needs_access"]),
|
|
11197
|
+
active: boolean2(),
|
|
11198
|
+
appDirectory: string2().max(240),
|
|
11199
|
+
currentCommitSha: string2().regex(/^[0-9a-f]{40}$\/iu/).nullable(),
|
|
11200
|
+
desiredCommitSha: string2().regex(/^[0-9a-f]{40}$\/iu/).nullable(),
|
|
11201
|
+
generation: int().gte(0),
|
|
11202
|
+
id: uuid2(),
|
|
11203
|
+
lastBuiltCommitSha: string2().regex(/^[0-9a-f]{40}$\/iu/).nullable(),
|
|
11204
|
+
ref: string2().min(1).max(512),
|
|
11205
|
+
repository: zGemGitSourceRepository
|
|
11206
|
+
}).nullable(),
|
|
11207
|
+
imports: array(zGemGitSourceImport).max(50),
|
|
11208
|
+
policy: object({
|
|
11209
|
+
automaticPublishing: boolean2(),
|
|
11210
|
+
previewsEnabled: boolean2(),
|
|
11211
|
+
revision: int().gte(0)
|
|
11212
|
+
}).nullable(),
|
|
11213
|
+
previews: array(zGemGitSourcePreview).max(50)
|
|
11214
|
+
});
|
|
11215
|
+
var zGemGitSourceImportResponse = strictObject({
|
|
11216
|
+
artifactId: uuid2(),
|
|
11217
|
+
import: zGemGitSourceImport,
|
|
11218
|
+
state: zGemGitSourceState
|
|
11219
|
+
});
|
|
10767
11220
|
var zGemLink = strictObject({
|
|
10768
11221
|
buildId: string2().optional(),
|
|
10769
11222
|
capabilityVersion: string2().optional(),
|
|
@@ -11281,7 +11734,7 @@ var zImpersonateResponse = object({
|
|
|
11281
11734
|
var zIntegrationHealthDismissRequest = object({
|
|
11282
11735
|
incidentIds: array(string2())
|
|
11283
11736
|
});
|
|
11284
|
-
var zIntegrationHealthExternalProvider = _enum(["none", "email", "slack"]).default("none");
|
|
11737
|
+
var zIntegrationHealthExternalProvider = _enum(["none", "email", "slack", "email_and_slack"]).default("none");
|
|
11285
11738
|
var zIntegrationHealthMarkReadRequest = object({
|
|
11286
11739
|
incidentIds: array(string2()).nullish()
|
|
11287
11740
|
});
|
|
@@ -11366,7 +11819,16 @@ var zInvitationValidationResponse = object({
|
|
|
11366
11819
|
workspaceSlug: string2()
|
|
11367
11820
|
});
|
|
11368
11821
|
var zLibraryBulkActionPreview = object({
|
|
11369
|
-
action:
|
|
11822
|
+
action: _enum([
|
|
11823
|
+
"deleteForever",
|
|
11824
|
+
"downloadDatasets",
|
|
11825
|
+
"editLabels",
|
|
11826
|
+
"move",
|
|
11827
|
+
"moveToWorkspace",
|
|
11828
|
+
"removeFromLibrary",
|
|
11829
|
+
"restore",
|
|
11830
|
+
"setFavorite"
|
|
11831
|
+
]),
|
|
11370
11832
|
affectedCount: int(),
|
|
11371
11833
|
confirmationRequired: boolean2(),
|
|
11372
11834
|
conflictCount: int(),
|
|
@@ -11435,7 +11897,16 @@ var zLibraryBulkActionStartRequest = object({
|
|
|
11435
11897
|
idempotencyKey: string2().min(1).max(128)
|
|
11436
11898
|
});
|
|
11437
11899
|
var zLibraryBulkJob = object({
|
|
11438
|
-
action:
|
|
11900
|
+
action: _enum([
|
|
11901
|
+
"deleteForever",
|
|
11902
|
+
"downloadDatasets",
|
|
11903
|
+
"editLabels",
|
|
11904
|
+
"move",
|
|
11905
|
+
"moveToWorkspace",
|
|
11906
|
+
"removeFromLibrary",
|
|
11907
|
+
"restore",
|
|
11908
|
+
"setFavorite"
|
|
11909
|
+
]),
|
|
11439
11910
|
download: object({
|
|
11440
11911
|
byteSize: int().nullable(),
|
|
11441
11912
|
filename: string2().nullable(),
|
|
@@ -11455,7 +11926,14 @@ var zLibraryBulkJob = object({
|
|
|
11455
11926
|
successful: int(),
|
|
11456
11927
|
total: int()
|
|
11457
11928
|
}),
|
|
11458
|
-
status:
|
|
11929
|
+
status: _enum([
|
|
11930
|
+
"completed",
|
|
11931
|
+
"completedWithErrors",
|
|
11932
|
+
"failed",
|
|
11933
|
+
"preview",
|
|
11934
|
+
"queued",
|
|
11935
|
+
"running"
|
|
11936
|
+
])
|
|
11459
11937
|
});
|
|
11460
11938
|
var zLibraryBulkSelectionEntry = object({
|
|
11461
11939
|
entryType: _enum(["item", "folder"]),
|
|
@@ -11463,7 +11941,16 @@ var zLibraryBulkSelectionEntry = object({
|
|
|
11463
11941
|
});
|
|
11464
11942
|
var zLibraryBulkSelectionPreview = object({
|
|
11465
11943
|
affectedCount: int(),
|
|
11466
|
-
availableActions: array(
|
|
11944
|
+
availableActions: array(_enum([
|
|
11945
|
+
"deleteForever",
|
|
11946
|
+
"downloadDatasets",
|
|
11947
|
+
"editLabels",
|
|
11948
|
+
"move",
|
|
11949
|
+
"moveToWorkspace",
|
|
11950
|
+
"removeFromLibrary",
|
|
11951
|
+
"restore",
|
|
11952
|
+
"setFavorite"
|
|
11953
|
+
])),
|
|
11467
11954
|
breakdown: object({
|
|
11468
11955
|
ownedCount: int(),
|
|
11469
11956
|
sharedReferenceCount: int(),
|
|
@@ -12239,6 +12726,7 @@ var zMcpConnectionOAuthStartRequest = object({
|
|
|
12239
12726
|
var zMcpConnectionOAuthStartResponse = object({
|
|
12240
12727
|
authorizationUrl: string2(),
|
|
12241
12728
|
connectionId: string2(),
|
|
12729
|
+
expiresAt: exports_iso.datetime({ offset: true }),
|
|
12242
12730
|
message: string2(),
|
|
12243
12731
|
success: boolean2()
|
|
12244
12732
|
});
|
|
@@ -12276,6 +12764,16 @@ var zExternalMemberResponse = object({
|
|
|
12276
12764
|
userName: string2().nullish(),
|
|
12277
12765
|
workspaceId: uuid2()
|
|
12278
12766
|
});
|
|
12767
|
+
var zMemberWithBlocks = object({
|
|
12768
|
+
blockedCount: int(),
|
|
12769
|
+
email: string2(),
|
|
12770
|
+
memberUserId: string2(),
|
|
12771
|
+
name: string2()
|
|
12772
|
+
});
|
|
12773
|
+
var zMembersWithBlocksResponse = object({
|
|
12774
|
+
members: array(zMemberWithBlocks),
|
|
12775
|
+
success: boolean2()
|
|
12776
|
+
});
|
|
12279
12777
|
var zModelCapabilities = object({
|
|
12280
12778
|
codeGeneration: int().gte(1).lte(10),
|
|
12281
12779
|
contextLength: int().gt(0),
|
|
@@ -12676,7 +13174,7 @@ var zPlatformToolExecuteResponse = object({
|
|
|
12676
13174
|
error: string2().nullish(),
|
|
12677
13175
|
errorCode: string2().nullish(),
|
|
12678
13176
|
errorDetails: unknown().optional(),
|
|
12679
|
-
errorId:
|
|
13177
|
+
errorId: string2().optional(),
|
|
12680
13178
|
errorMessage: string2().nullish(),
|
|
12681
13179
|
executionTimeMs: int().nullish(),
|
|
12682
13180
|
executorKind: string2().optional().default("platform"),
|
|
@@ -13518,15 +14016,15 @@ var zTeamResourcePolicyRequest = object({
|
|
|
13518
14016
|
});
|
|
13519
14017
|
var zTeamResponse = object({
|
|
13520
14018
|
createdAt: exports_iso.datetime({ offset: true }),
|
|
13521
|
-
createdBy:
|
|
14019
|
+
createdBy: string2().nullish(),
|
|
13522
14020
|
description: string2().nullish(),
|
|
13523
|
-
id:
|
|
14021
|
+
id: string2(),
|
|
13524
14022
|
memberCount: int().optional().default(0),
|
|
13525
14023
|
myRole: _enum(["member", "admin", "owner"]).nullish(),
|
|
13526
14024
|
name: string2(),
|
|
13527
14025
|
personaCount: int().optional().default(0),
|
|
13528
14026
|
updatedAt: exports_iso.datetime({ offset: true }),
|
|
13529
|
-
workspaceId:
|
|
14027
|
+
workspaceId: string2()
|
|
13530
14028
|
});
|
|
13531
14029
|
var zTeamToolGuardrailRequest = object({
|
|
13532
14030
|
blockWriteActions: boolean2().optional().default(false),
|
|
@@ -13910,7 +14408,21 @@ var zThreadQueuedInputView = object({
|
|
|
13910
14408
|
clientMessageId: string2(),
|
|
13911
14409
|
createdAtMs: int(),
|
|
13912
14410
|
disposition: zThreadQueueDisposition,
|
|
14411
|
+
intent: union([
|
|
14412
|
+
object({
|
|
14413
|
+
kind: _enum(["send"])
|
|
14414
|
+
}),
|
|
14415
|
+
object({
|
|
14416
|
+
editOfMessageId: string2(),
|
|
14417
|
+
kind: _enum(["edit"])
|
|
14418
|
+
}),
|
|
14419
|
+
object({
|
|
14420
|
+
kind: _enum(["branch"]),
|
|
14421
|
+
parentMessageId: string2()
|
|
14422
|
+
})
|
|
14423
|
+
]),
|
|
13913
14424
|
parts: array(zThreadInputPart),
|
|
14425
|
+
position: int(),
|
|
13914
14426
|
promotedRunId: string2().nullable(),
|
|
13915
14427
|
queuedInputId: string2(),
|
|
13916
14428
|
settledReason: _enum([
|
|
@@ -13918,6 +14430,7 @@ var zThreadQueuedInputView = object({
|
|
|
13918
14430
|
"target_run_orphaned",
|
|
13919
14431
|
"target_run_failed",
|
|
13920
14432
|
"target_run_cancelled",
|
|
14433
|
+
"intent_target_gone",
|
|
13921
14434
|
"unreachable_stale",
|
|
13922
14435
|
"claim_fingerprint_stale"
|
|
13923
14436
|
]).nullable(),
|
|
@@ -13925,7 +14438,7 @@ var zThreadQueuedInputView = object({
|
|
|
13925
14438
|
targetRunId: string2().nullable()
|
|
13926
14439
|
});
|
|
13927
14440
|
var zThreadQueueResponse = object({
|
|
13928
|
-
queued: zThreadQueuedInputView
|
|
14441
|
+
queued: array(zThreadQueuedInputView)
|
|
13929
14442
|
});
|
|
13930
14443
|
var zThreadQueueSteerNowResponse = object({
|
|
13931
14444
|
queued: zThreadQueuedInputView
|
|
@@ -14235,6 +14748,7 @@ var zThreadToolIdentity = object({
|
|
|
14235
14748
|
});
|
|
14236
14749
|
var zThreadMessagePart = union([
|
|
14237
14750
|
object({
|
|
14751
|
+
contentRef: string2().nullish(),
|
|
14238
14752
|
mentions: array(object({
|
|
14239
14753
|
agentId: string2().min(1),
|
|
14240
14754
|
handle: string2().min(1)
|
|
@@ -14333,6 +14847,8 @@ var zThreadMessagePart = union([
|
|
|
14333
14847
|
"tool_catalog_unavailable",
|
|
14334
14848
|
"sandbox_unavailable",
|
|
14335
14849
|
"sandbox_rate_limited",
|
|
14850
|
+
"tree_op_refused",
|
|
14851
|
+
"tree_rebuild_required",
|
|
14336
14852
|
"stale_writer",
|
|
14337
14853
|
"cancelled_by_user",
|
|
14338
14854
|
"internal_error"
|
|
@@ -14476,6 +14992,16 @@ var zToolActionClassificationRequest = object({
|
|
|
14476
14992
|
notes: string2().nullish(),
|
|
14477
14993
|
subToolName: string2().min(1)
|
|
14478
14994
|
});
|
|
14995
|
+
var zToolApprovalAnswerRequest = object({
|
|
14996
|
+
decision: _enum(["accept", "decline"])
|
|
14997
|
+
});
|
|
14998
|
+
var zToolApprovalAnswerResponse = object({
|
|
14999
|
+
alreadyResolved: boolean2(),
|
|
15000
|
+
approvalId: uuid2(),
|
|
15001
|
+
decidedAtMs: int(),
|
|
15002
|
+
decidedByUserId: uuid2().nullable(),
|
|
15003
|
+
decision: _enum(["approve", "approve_for_run", "deny", "cancel_run"])
|
|
15004
|
+
});
|
|
14479
15005
|
var zToolDefinitionResponse = object({
|
|
14480
15006
|
accountIdentifier: string2().nullish(),
|
|
14481
15007
|
accountLabel: string2().nullish(),
|
|
@@ -14740,24 +15266,13 @@ var zTriggersResponse = object({
|
|
|
14740
15266
|
success: boolean2(),
|
|
14741
15267
|
triggers: array(record(string2(), unknown()))
|
|
14742
15268
|
});
|
|
14743
|
-
var zUpdateBillingRequest =
|
|
14744
|
-
|
|
14745
|
-
|
|
14746
|
-
automationsHourlyRequestLimit: int().nullish(),
|
|
14747
|
-
automationsMonthlyPriceUsd: number2().nullish(),
|
|
14748
|
-
automationsPlanTier: string2().nullish(),
|
|
14749
|
-
automationsWeeklyBudgetUsd: number2().nullish(),
|
|
14750
|
-
billingEmail: string2().nullish(),
|
|
15269
|
+
var zUpdateBillingRequest = strictObject({
|
|
15270
|
+
automationsWeeklyBudgetUsd: number2().gte(0).nullish(),
|
|
15271
|
+
billingEmail: email2().nullish(),
|
|
14751
15272
|
billingName: string2().nullish(),
|
|
14752
|
-
|
|
14753
|
-
|
|
14754
|
-
|
|
14755
|
-
chatPlanTier: string2().nullish(),
|
|
14756
|
-
chatWeeklyBudgetUsd: number2().nullish(),
|
|
14757
|
-
markupPercentage: number2().nullish(),
|
|
14758
|
-
planType: string2().nullish(),
|
|
14759
|
-
spendingAlertThresholdUsd: number2().nullish(),
|
|
14760
|
-
spendingLimitUsd: number2().nullish()
|
|
15273
|
+
chatWeeklyBudgetUsd: number2().gte(0).nullish(),
|
|
15274
|
+
spendingAlertThresholdUsd: number2().gte(0).nullish(),
|
|
15275
|
+
spendingLimitUsd: number2().gte(0).nullish()
|
|
14761
15276
|
});
|
|
14762
15277
|
var zUpdateCollectionRequest = object({
|
|
14763
15278
|
description: string2().nullish(),
|
|
@@ -14858,15 +15373,21 @@ var zUploadResponse = object({
|
|
|
14858
15373
|
size: int(),
|
|
14859
15374
|
url: string2()
|
|
14860
15375
|
});
|
|
15376
|
+
var zUsageMonthStatus = object({
|
|
15377
|
+
alert_threshold_usd: number2().nullable(),
|
|
15378
|
+
limit_usd: number2().nullable(),
|
|
15379
|
+
percentage: number2(),
|
|
15380
|
+
remaining_usd: number2().nullable(),
|
|
15381
|
+
resets_in_seconds: int(),
|
|
15382
|
+
used_usd: number2()
|
|
15383
|
+
});
|
|
14861
15384
|
var zUsageStatusResponse = object({
|
|
14862
15385
|
automations: record(string2(), unknown()),
|
|
14863
|
-
chat: record(string2(), unknown())
|
|
15386
|
+
chat: record(string2(), unknown()),
|
|
15387
|
+
month: zUsageMonthStatus
|
|
14864
15388
|
});
|
|
14865
15389
|
var zUsageSummaryResponse = object({
|
|
14866
15390
|
dailyUsage: array(unknown()),
|
|
14867
|
-
hourlyRequestLimit: int(),
|
|
14868
|
-
hourlyRequestsUsed: int(),
|
|
14869
|
-
hourlyUsagePercentage: number2(),
|
|
14870
15391
|
modelUsage: record(string2(), unknown()),
|
|
14871
15392
|
serviceType: string2(),
|
|
14872
15393
|
totalCachedTokens: int(),
|
|
@@ -15065,8 +15586,10 @@ var zWorkspaceConnectionOffer = object({
|
|
|
15065
15586
|
decidedAt: string2().nullish(),
|
|
15066
15587
|
decidedByUserId: string2().nullish(),
|
|
15067
15588
|
deniedCapabilities: array(string2()),
|
|
15589
|
+
healthMessage: string2().nullable(),
|
|
15068
15590
|
id: string2(),
|
|
15069
15591
|
ownerCapabilities: array(string2()),
|
|
15592
|
+
ownerName: string2().nullable(),
|
|
15070
15593
|
ownerUserId: string2(),
|
|
15071
15594
|
providerType: string2(),
|
|
15072
15595
|
state: _enum(["pending", "approved", "rejected", "withdrawn", "revoked"]),
|
|
@@ -15159,6 +15682,20 @@ var zAuthSessionState = union([
|
|
|
15159
15682
|
workspaces: array(zWorkspaceLoginOption)
|
|
15160
15683
|
})
|
|
15161
15684
|
]);
|
|
15685
|
+
var zWorkspaceMemberListItem = object({
|
|
15686
|
+
createdAt: string2().nullable(),
|
|
15687
|
+
email: string2(),
|
|
15688
|
+
homeWorkspaceId: string2().nullable(),
|
|
15689
|
+
id: string2(),
|
|
15690
|
+
memberType: _enum(["internal", "external"]),
|
|
15691
|
+
name: string2(),
|
|
15692
|
+
role: string2(),
|
|
15693
|
+
status: _enum(["active", "inactive"]),
|
|
15694
|
+
updatedAt: string2().nullable()
|
|
15695
|
+
});
|
|
15696
|
+
var zWorkspaceMembersResponse = object({
|
|
15697
|
+
members: array(zWorkspaceMemberListItem)
|
|
15698
|
+
});
|
|
15162
15699
|
var zWorkspaceResourcePolicyRequest = object({
|
|
15163
15700
|
enabled: boolean2().optional().default(false),
|
|
15164
15701
|
personaRulesAlways: array(string2()).optional().default([]),
|
|
@@ -15584,7 +16121,6 @@ var zWhoamiApiAuthWhoamiGetHeaders = object({
|
|
|
15584
16121
|
var zGetWorkspaceMembersApiAuthWorkspaceWorkspaceIdMembersGetPath = object({
|
|
15585
16122
|
workspaceId: string2()
|
|
15586
16123
|
});
|
|
15587
|
-
var zGetWorkspaceMembersApiAuthWorkspaceWorkspaceIdMembersGetResponse = record(string2(), unknown());
|
|
15588
16124
|
var zRemoveWorkspaceMemberApiAuthWorkspaceWorkspaceIdMembersUserIdDeletePath = object({
|
|
15589
16125
|
workspaceId: string2(),
|
|
15590
16126
|
userId: string2()
|
|
@@ -15907,6 +16443,18 @@ var zBackgroundSyncStatusApiBackgroundSyncStatusGetResponse = record(string2(),
|
|
|
15907
16443
|
var zDeleteChatAccessConnectionApiChatAccessConnectionsProviderDeletePath = object({
|
|
15908
16444
|
provider: string2()
|
|
15909
16445
|
});
|
|
16446
|
+
var zGetChatAccessConnectionAttemptPath = object({
|
|
16447
|
+
provider: string2()
|
|
16448
|
+
});
|
|
16449
|
+
var zGetChatAccessConnectionAttemptResponse = object({
|
|
16450
|
+
attempt: union([zChatAccessDeviceCodeStart, zChatAccessBrowserPollStart]).nullable()
|
|
16451
|
+
});
|
|
16452
|
+
var zCancelChatAccessConnectionApiChatAccessConnectionsProviderCancelPostPath = object({
|
|
16453
|
+
provider: string2()
|
|
16454
|
+
});
|
|
16455
|
+
var zCancelChatAccessConnectionApiChatAccessConnectionsProviderCancelPostResponse = object({
|
|
16456
|
+
cancelled: boolean2()
|
|
16457
|
+
});
|
|
15910
16458
|
var zCompleteChatAccessConnectionApiChatAccessConnectionsProviderCompletePostPath = object({
|
|
15911
16459
|
provider: string2()
|
|
15912
16460
|
});
|
|
@@ -18894,15 +19442,6 @@ var zGetLibraryVisitorItemPreviewImageApiPlatformLibraryVisitorSessionsItemsItem
|
|
|
18894
19442
|
});
|
|
18895
19443
|
var zGetLibraryVisitorItemPreviewImageApiPlatformLibraryVisitorSessionsItemsItemIdPreviewImagePostResponse = zFilePreviewImageResponse.and(unknown());
|
|
18896
19444
|
var zVerifyLibraryVisitorSessionApiPlatformLibraryVisitorSessionsVerifyPostResponse = record(string2(), unknown());
|
|
18897
|
-
var zListPinnedArtifactsApiPlatformPinnedArtifactsGetResponse = record(string2(), unknown());
|
|
18898
|
-
var zUnpinArtifactApiPlatformPinnedArtifactsArtifactSlugDeletePath = object({
|
|
18899
|
-
artifactSlug: string2()
|
|
18900
|
-
});
|
|
18901
|
-
var zUnpinArtifactApiPlatformPinnedArtifactsArtifactSlugDeleteResponse = record(string2(), unknown());
|
|
18902
|
-
var zPinArtifactApiPlatformPinnedArtifactsArtifactSlugPostPath = object({
|
|
18903
|
-
artifactSlug: string2()
|
|
18904
|
-
});
|
|
18905
|
-
var zPinArtifactApiPlatformPinnedArtifactsArtifactSlugPostResponse = record(string2(), unknown());
|
|
18906
19445
|
var zSearchPromptsApiPlatformPromptsGetQuery = object({
|
|
18907
19446
|
query: string2().nullish(),
|
|
18908
19447
|
category: string2().nullish(),
|
|
@@ -19615,6 +20154,9 @@ var zThreadShareRevokePath = object({
|
|
|
19615
20154
|
threadId: uuid2(),
|
|
19616
20155
|
shareId: uuid2()
|
|
19617
20156
|
});
|
|
20157
|
+
var zToolApprovalAnswerPath = object({
|
|
20158
|
+
questionId: uuid2()
|
|
20159
|
+
});
|
|
19618
20160
|
var zListAvailableToolDefinitionsApiToolControlPlaneAvailableGetQuery = object({
|
|
19619
20161
|
enabledOnly: _enum(["true", "false"]).optional().default("true")
|
|
19620
20162
|
});
|
|
@@ -19760,6 +20302,48 @@ var zDeleteUserProfileApiUserProfilesDeleteResponse = record(string2(), string2(
|
|
|
19760
20302
|
var zGetUserProfileByIdApiUserProfilesUserIdGetPath = object({
|
|
19761
20303
|
userId: uuid2()
|
|
19762
20304
|
});
|
|
20305
|
+
var zGetGemGitSourcePath = object({
|
|
20306
|
+
artifactId: uuid2()
|
|
20307
|
+
});
|
|
20308
|
+
var zCommandGemGitSourcePath = object({
|
|
20309
|
+
artifactId: uuid2()
|
|
20310
|
+
});
|
|
20311
|
+
var zInspectGemGitPreviewPath = object({
|
|
20312
|
+
artifactId: uuid2(),
|
|
20313
|
+
previewId: uuid2()
|
|
20314
|
+
});
|
|
20315
|
+
var zOpenGemGitPreviewPath = object({
|
|
20316
|
+
artifactId: uuid2(),
|
|
20317
|
+
previewId: uuid2()
|
|
20318
|
+
});
|
|
20319
|
+
var zOpenGemGitPreviewResponse = object({
|
|
20320
|
+
url: url()
|
|
20321
|
+
});
|
|
20322
|
+
var zListGemGitSourceConnectionsPath = object({
|
|
20323
|
+
workspaceId: uuid2()
|
|
20324
|
+
});
|
|
20325
|
+
var zListGemGitSourceConnectionsQuery = object({
|
|
20326
|
+
page: int().gte(1).lte(100).optional().default(1)
|
|
20327
|
+
});
|
|
20328
|
+
var zCompleteGemGitSourceConnectionPath = object({
|
|
20329
|
+
workspaceId: uuid2()
|
|
20330
|
+
});
|
|
20331
|
+
var zBeginGemGitSourceConnectionPath = object({
|
|
20332
|
+
workspaceId: uuid2()
|
|
20333
|
+
});
|
|
20334
|
+
var zGetGemGitSourceConnectionPath = object({
|
|
20335
|
+
workspaceId: uuid2(),
|
|
20336
|
+
setupId: uuid2()
|
|
20337
|
+
});
|
|
20338
|
+
var zImportGemGitSourcePath = object({
|
|
20339
|
+
workspaceId: uuid2()
|
|
20340
|
+
});
|
|
20341
|
+
var zInspectGemGitSourcePath = object({
|
|
20342
|
+
workspaceId: uuid2()
|
|
20343
|
+
});
|
|
20344
|
+
var zListGemGitSourceRefsPath = object({
|
|
20345
|
+
workspaceId: uuid2()
|
|
20346
|
+
});
|
|
19763
20347
|
var zHealthCheckBasicAliasHealthGetResponse = object({
|
|
19764
20348
|
status: string2()
|
|
19765
20349
|
});
|
|
@@ -19783,6 +20367,8 @@ var zDeviceAuthorizationOauthDeviceCodePostBody = object({
|
|
|
19783
20367
|
var zValidateMcpTokenOauthMcpTokenValidatePostResponse = record(string2(), unknown());
|
|
19784
20368
|
var zRobotsTxtRobotsTxtGetResponse = string2();
|
|
19785
20369
|
|
|
20370
|
+
// ../../packages/types/src/mcp/gemResult.ts
|
|
20371
|
+
var GEM_RESULT_SCHEMA_V1 = "uru.gem.result.v1";
|
|
19786
20372
|
// src/json.ts
|
|
19787
20373
|
function isRecord(value) {
|
|
19788
20374
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -19838,12 +20424,11 @@ function stripTerminalControl(value) {
|
|
|
19838
20424
|
return out;
|
|
19839
20425
|
}
|
|
19840
20426
|
|
|
19841
|
-
// ../../packages/types/src/mcp/gemResult.ts
|
|
19842
|
-
var GEM_RESULT_SCHEMA_V1 = "uru.gem.result.v1";
|
|
19843
20427
|
// src/gem-result.ts
|
|
19844
20428
|
function gemEnvelope(body, operation) {
|
|
19845
20429
|
if (!isRecord(body) || body["schema"] !== GEM_RESULT_SCHEMA_V1) {
|
|
19846
|
-
|
|
20430
|
+
const seen = isRecord(body) && typeof body["schema"] === "string" ? body["schema"] : "none";
|
|
20431
|
+
throw new CliError(`Gem ${operation} answered with a result envelope this CLI does not read ` + `(schema ${seen}; this CLI reads ${GEM_RESULT_SCHEMA_V1}). The operation may ` + "have completed on the server: check with `uru library ls` before you retry, " + "then use the CLI version that matches the server.");
|
|
19847
20432
|
}
|
|
19848
20433
|
if (!Object.hasOwn(body, "result") || !Object.hasOwn(body, "error")) {
|
|
19849
20434
|
throw new CliError(`Gem ${operation} returned an incomplete result envelope.`);
|
|
@@ -20070,6 +20655,7 @@ class UruApiClient {
|
|
|
20070
20655
|
Accept: "application/json",
|
|
20071
20656
|
"X-Uru-Client-Name": "uru-cli",
|
|
20072
20657
|
"X-Uru-Client-Version": CLI_VERSION,
|
|
20658
|
+
"X-Uru-Gem-Result-Schema": GEM_RESULT_SCHEMA_V1,
|
|
20073
20659
|
...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
|
|
20074
20660
|
...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
|
|
20075
20661
|
...options.body === undefined ? {} : { "Content-Type": "application/json" }
|
|
@@ -20096,6 +20682,7 @@ class UruApiClient {
|
|
|
20096
20682
|
Accept: "application/x-ndjson, application/json",
|
|
20097
20683
|
"X-Uru-Client-Name": "uru-cli",
|
|
20098
20684
|
"X-Uru-Client-Version": CLI_VERSION,
|
|
20685
|
+
"X-Uru-Gem-Result-Schema": GEM_RESULT_SCHEMA_V1,
|
|
20099
20686
|
...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
|
|
20100
20687
|
...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
|
|
20101
20688
|
...options.body === undefined ? {} : { "Content-Type": "application/json" }
|
|
@@ -20129,6 +20716,7 @@ class UruApiClient {
|
|
|
20129
20716
|
Accept: "text/event-stream",
|
|
20130
20717
|
"X-Uru-Client-Name": "uru-cli",
|
|
20131
20718
|
"X-Uru-Client-Version": CLI_VERSION,
|
|
20719
|
+
"X-Uru-Gem-Result-Schema": GEM_RESULT_SCHEMA_V1,
|
|
20132
20720
|
...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
|
|
20133
20721
|
...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
|
|
20134
20722
|
...options.lastEventId === undefined || options.lastEventId === "" ? {} : { "Last-Event-ID": options.lastEventId }
|