@warmhub/sdk-ts 0.68.0 → 0.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -295,61 +295,6 @@ function joinFieldPathWithEscaper(escapeSegment, segments) {
|
|
|
295
295
|
(segment) => typeof segment === "number" ? `[${segment}]` : escapeSegment(segment)
|
|
296
296
|
).join(".").replace(/\.\[/g, "[");
|
|
297
297
|
}
|
|
298
|
-
var PLATFORM_STATUS_STATUSES = [
|
|
299
|
-
{
|
|
300
|
-
key: "available",
|
|
301
|
-
label: "Available",
|
|
302
|
-
description: "Works as expected."
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
key: "degraded",
|
|
306
|
-
label: "Degraded",
|
|
307
|
-
description: "Works with known caveats or partial reliability."
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
key: "unavailable",
|
|
311
|
-
label: "Unavailable",
|
|
312
|
-
description: "Exists in code but is broken or blocked."
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
key: "not_yet_built",
|
|
316
|
-
label: "Not Yet Built",
|
|
317
|
-
description: "This feature-surface combination does not exist yet."
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
key: "unknown",
|
|
321
|
-
label: "Unknown",
|
|
322
|
-
description: "Has not been assessed yet."
|
|
323
|
-
}
|
|
324
|
-
];
|
|
325
|
-
({
|
|
326
|
-
statuses: [
|
|
327
|
-
{
|
|
328
|
-
key: {
|
|
329
|
-
type: "string",
|
|
330
|
-
enum: PLATFORM_STATUS_STATUSES.map((status) => status.key),
|
|
331
|
-
description: "Stable status key."
|
|
332
|
-
},
|
|
333
|
-
label: {
|
|
334
|
-
type: "string",
|
|
335
|
-
description: "Human-readable label for the status."
|
|
336
|
-
},
|
|
337
|
-
description: {
|
|
338
|
-
type: "string",
|
|
339
|
-
description: "Human-readable definition of the status."
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
]});
|
|
343
|
-
({
|
|
344
|
-
status: {
|
|
345
|
-
enum: PLATFORM_STATUS_STATUSES.map((status) => status.key)},
|
|
346
|
-
"issueMiningBaseline?": {
|
|
347
|
-
status: {
|
|
348
|
-
enum: PLATFORM_STATUS_STATUSES.map((status) => status.key)}}
|
|
349
|
-
});
|
|
350
|
-
({
|
|
351
|
-
"statusHint?": {
|
|
352
|
-
enum: PLATFORM_STATUS_STATUSES.map((status) => status.key)}});
|
|
353
298
|
|
|
354
299
|
// ../rules/src/tokens.ts
|
|
355
300
|
var COMMIT_TOKEN_SYNTAX_REMOVED_MESSAGE = "$N/#N commit-token syntax is no longer supported. Use explicit names and explicit wrefs. For assertions about newly created things, create the thing with a deterministic name and set about to that wref in the same commit.";
|
|
@@ -7183,7 +7128,7 @@ function validatePersistedStringFieldLimits(value, typeDef, errors, path) {
|
|
|
7183
7128
|
}
|
|
7184
7129
|
if (Array.isArray(value)) {
|
|
7185
7130
|
const elementType = arrayElementType(normalized);
|
|
7186
|
-
if (
|
|
7131
|
+
if (elementType === void 0 && !isDeclaredArrayType(normalized)) return;
|
|
7187
7132
|
for (let i = 0; i < value.length; i++) {
|
|
7188
7133
|
validatePersistedStringFieldLimits(
|
|
7189
7134
|
value[i],
|
|
@@ -7220,6 +7165,10 @@ function arrayElementType(typeDef) {
|
|
|
7220
7165
|
return typeDef.items;
|
|
7221
7166
|
return void 0;
|
|
7222
7167
|
}
|
|
7168
|
+
function isDeclaredArrayType(typeDef) {
|
|
7169
|
+
if (typeDef === "array" || Array.isArray(typeDef)) return true;
|
|
7170
|
+
return isTypeSpecObject(typeDef) && typeDef.type === "array";
|
|
7171
|
+
}
|
|
7223
7172
|
function nestedObjectFields(typeDef) {
|
|
7224
7173
|
if (!isPlainObject(typeDef) || isTypeSpecObject(typeDef)) return void 0;
|
|
7225
7174
|
const fields = /* @__PURE__ */ new Map();
|
|
@@ -9283,7 +9232,7 @@ function validateWarmHubClientOptions(options) {
|
|
|
9283
9232
|
throw new TypeError(`Unknown WarmHubClient option "${key}"${hint}`);
|
|
9284
9233
|
}
|
|
9285
9234
|
}
|
|
9286
|
-
var SDK_VERSION = "0.
|
|
9235
|
+
var SDK_VERSION = "0.69.0" ;
|
|
9287
9236
|
var DEFAULT_API_URL = "https://api.warmhub.ai";
|
|
9288
9237
|
var UNBATCHED_TRPC_PATHS = /* @__PURE__ */ new Set([
|
|
9289
9238
|
"repo.shapeInstanceCounts",
|
|
@@ -9893,9 +9842,10 @@ var WarmHubClient = class _WarmHubClient {
|
|
|
9893
9842
|
}
|
|
9894
9843
|
},
|
|
9895
9844
|
/**
|
|
9896
|
-
* Search
|
|
9897
|
-
*
|
|
9898
|
-
* repo
|
|
9845
|
+
* Search registered components visible to the caller across all orgs
|
|
9846
|
+
* (GH-4383): public components plus private components the caller can
|
|
9847
|
+
* read. Distinct from listing components installed in a repo
|
|
9848
|
+
* (`component.list`).
|
|
9899
9849
|
*/
|
|
9900
9850
|
search: async (query, opts) => {
|
|
9901
9851
|
try {
|
|
@@ -10496,8 +10446,9 @@ var WarmHubClient = class _WarmHubClient {
|
|
|
10496
10446
|
}
|
|
10497
10447
|
},
|
|
10498
10448
|
/**
|
|
10499
|
-
* Search
|
|
10500
|
-
*
|
|
10449
|
+
* Search repos visible to the caller across all orgs (GH-4383): public
|
|
10450
|
+
* repos plus private repos the caller can read. BM25 over
|
|
10451
|
+
* name/description/shape vocabulary/README.
|
|
10501
10452
|
*/
|
|
10502
10453
|
search: async (query, opts) => {
|
|
10503
10454
|
try {
|
|
@@ -12816,5 +12767,5 @@ re2js/build/index.js:
|
|
|
12816
12767
|
*/
|
|
12817
12768
|
|
|
12818
12769
|
export { AllStreamOperationsFailedError, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, CliCallVerificationError, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT2 as MAX_STREAM_APPEND_OPERATION_COUNT, OperationBuilder, PartialStreamSubmissionError, SDK_VERSION, WarmHubClient, WarmHubError, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, isConnectionError, isRetryable, isWarmHubError, normalizeWref, resolveFunctionLogMode, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
|
|
12819
|
-
//# sourceMappingURL=chunk-
|
|
12820
|
-
//# sourceMappingURL=chunk-
|
|
12770
|
+
//# sourceMappingURL=chunk-QI7ELATB.js.map
|
|
12771
|
+
//# sourceMappingURL=chunk-QI7ELATB.js.map
|