@fleetless/sdk 5.2.0 → 5.2.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/CHANGELOG.md +6 -0
- package/README.md +3 -1
- package/dist/index.cjs +132 -68
- package/dist/index.d.cts +57 -2
- package/dist/index.d.ts +57 -2
- package/dist/index.js +132 -68
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -413,16 +413,16 @@ function createAssetsApi(http) {
|
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
416
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/journal-restore.js
|
|
417
417
|
import { z as z6 } from "zod";
|
|
418
418
|
|
|
419
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
419
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/journal-intents.js
|
|
420
420
|
import { z as z5 } from "zod";
|
|
421
421
|
|
|
422
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
422
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/app-users.js
|
|
423
423
|
import { z as z4 } from "zod";
|
|
424
424
|
|
|
425
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
425
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/identity.js
|
|
426
426
|
import { z } from "zod";
|
|
427
427
|
var password = z.string().min(12).max(256);
|
|
428
428
|
var USER_DISPLAY_NAME_MAX = 120;
|
|
@@ -645,7 +645,7 @@ var recoveryCodesResponse = z.object({
|
|
|
645
645
|
recovery_codes: recoveryCodesList.meta({ description: "The ten new recovery codes, lowercase, shown once. Every earlier code is void." })
|
|
646
646
|
});
|
|
647
647
|
|
|
648
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
648
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/app-mail-html.js
|
|
649
649
|
var DEFAULT_MAIL_HTML = {
|
|
650
650
|
"invite": `<!doctype html>
|
|
651
651
|
<html lang="en">
|
|
@@ -733,7 +733,7 @@ var DEFAULT_MAIL_HTML = {
|
|
|
733
733
|
`
|
|
734
734
|
};
|
|
735
735
|
|
|
736
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
736
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/legal.js
|
|
737
737
|
import { z as z2 } from "zod";
|
|
738
738
|
var httpsLegalUrl = z2.url().max(2048).regex(/^https:\/\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)/).refine((value) => {
|
|
739
739
|
try {
|
|
@@ -753,7 +753,7 @@ var legalTextReferences = z2.object({
|
|
|
753
753
|
dpa: legalDocumentReference.nullable()
|
|
754
754
|
}).strict();
|
|
755
755
|
|
|
756
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
756
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/rights.js
|
|
757
757
|
import { z as z3 } from "zod";
|
|
758
758
|
var ROLE_KEY_PATTERN = /^(?!defaults$)[a-z][a-z0-9_]{0,62}$/;
|
|
759
759
|
var ROLE_KEY_RULE = "A role key is lower-case: it starts with a letter and continues with letters, digits and underscores, up to 63 characters in all \u2014 `operate`, `night_shift`. A capital, a dash, a dot, a space or a leading digit is refused, and `defaults` is reserved.";
|
|
@@ -791,7 +791,7 @@ var ENTRY_KIND_OF = {
|
|
|
791
791
|
};
|
|
792
792
|
var SECTIONS = Object.keys(ENTRY_KIND_OF);
|
|
793
793
|
|
|
794
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
794
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/app-users.js
|
|
795
795
|
var APP_USER_DISPLAY_NAME_MAX = 120;
|
|
796
796
|
var providerSlug = z4.string().max(40).regex(/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/, "must be lowercase and hyphen-separated, starting with a letter");
|
|
797
797
|
var appUserStatus = z4.enum(["pending_verification", "active", "blocked"]);
|
|
@@ -1179,7 +1179,7 @@ var mailOutcome = z4.object({
|
|
|
1179
1179
|
})
|
|
1180
1180
|
});
|
|
1181
1181
|
|
|
1182
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
1182
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/journal-intents.js
|
|
1183
1183
|
var hash = z5.string().regex(/^[0-9a-f]{64}$/);
|
|
1184
1184
|
var uuid = z5.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/);
|
|
1185
1185
|
var opaqueId = z5.string().min(1);
|
|
@@ -1277,7 +1277,7 @@ var journalIntentV2 = z5.discriminatedUnion("kind", [
|
|
|
1277
1277
|
...branches.slice(1).map((branch) => branch.extend(envelope))
|
|
1278
1278
|
]);
|
|
1279
1279
|
|
|
1280
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
1280
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/journal-restore.js
|
|
1281
1281
|
var hash2 = z6.string().regex(/^[0-9a-f]{64}$/);
|
|
1282
1282
|
var uuid2 = z6.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/);
|
|
1283
1283
|
var opaqueId2 = z6.string().min(1);
|
|
@@ -1697,7 +1697,7 @@ var journalReplayReceiptBody = z6.strictObject(receiptFields).superRefine((value
|
|
|
1697
1697
|
}).describe("JSON Schema consumers must also verify counts, exact erase-proof set, reference bindings, kind/registry surface applicability and pass outcomes, signatures and protected-version readbacks.");
|
|
1698
1698
|
var journalReplayReceipt = journalReplayReceiptBody.safeExtend({ receipt_hash: hash2, signature: signature2 });
|
|
1699
1699
|
|
|
1700
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
1700
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/journal-manifests.js
|
|
1701
1701
|
import { z as z7 } from "zod";
|
|
1702
1702
|
var uuid3 = z7.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/);
|
|
1703
1703
|
var hash3 = z7.string().regex(/^[0-9a-f]{64}$/);
|
|
@@ -2053,7 +2053,7 @@ var journalManifestBinding = z7.strictObject({
|
|
|
2053
2053
|
problem("Unexpected batch", ["manifest", "batches"]);
|
|
2054
2054
|
}).describe("JSON Schema consumers must also verify exact intent/scope/batch binding, sorted physical membership, original bytes and protected readbacks.");
|
|
2055
2055
|
|
|
2056
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
2056
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/journal-seals.js
|
|
2057
2057
|
import { z as z8 } from "zod";
|
|
2058
2058
|
var hash4 = z8.string().regex(/^[0-9a-f]{64}$/);
|
|
2059
2059
|
var uuid4 = z8.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/);
|
|
@@ -2135,7 +2135,7 @@ var journalFinalSealBody = z8.strictObject({
|
|
|
2135
2135
|
}, { path: ["cutoff_utc"], message: "Must equal max(ceil_to_second(T + E_max + W_max), previous C + 1 second)" }).describe("JSON Schema consumers must also verify C = max(ceil_to_second(T + E_max + W_max), previous C + 1 second), original signatures and complete drain/admission evidence.");
|
|
2136
2136
|
var journalFinalSeal = journalFinalSealBody.safeExtend({ seal_hash: hash4, signature: signature3 });
|
|
2137
2137
|
|
|
2138
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
2138
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/journal-controls.js
|
|
2139
2139
|
import { z as z9 } from "zod";
|
|
2140
2140
|
var hash5 = z9.string().regex(/^[0-9a-f]{64}$/);
|
|
2141
2141
|
var zeroHash = z9.literal("0".repeat(64));
|
|
@@ -2238,23 +2238,23 @@ var journalRegistryActivationReceipt = z9.union([
|
|
|
2238
2238
|
laterActivationBody.extend({ receipt_hash: hash5, signature: signature4 })
|
|
2239
2239
|
]);
|
|
2240
2240
|
|
|
2241
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
2241
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/legal-offers.js
|
|
2242
2242
|
import { z as z13 } from "zod";
|
|
2243
2243
|
|
|
2244
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
2244
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/plans.js
|
|
2245
2245
|
import { z as z12 } from "zod";
|
|
2246
2246
|
|
|
2247
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
2247
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/purchase-operation-key.js
|
|
2248
2248
|
import { z as z10 } from "zod";
|
|
2249
2249
|
var purchaseOperationKey = z10.uuid().meta({ description: "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input." });
|
|
2250
2250
|
|
|
2251
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
2251
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/confirmation-proof.js
|
|
2252
2252
|
import { z as z11 } from "zod";
|
|
2253
2253
|
var confirmationProof = z11.string().regex(/^[A-Za-z0-9_-]{43}$/).meta({
|
|
2254
2254
|
description: "Opaque 32-byte Cloud proof, unpadded base64url. Syntax alone is not evidence."
|
|
2255
2255
|
});
|
|
2256
2256
|
|
|
2257
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
2257
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/plans.js
|
|
2258
2258
|
var planId = z12.enum(["basic", "plus", "pro", "enterprise"]);
|
|
2259
2259
|
var PLAN_ORDER = ["basic", "plus", "pro", "enterprise"];
|
|
2260
2260
|
var planLimitKey = z12.enum([
|
|
@@ -2563,7 +2563,7 @@ var adminPlanChangeRequest = z12.object({
|
|
|
2563
2563
|
})
|
|
2564
2564
|
}).strict();
|
|
2565
2565
|
|
|
2566
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
2566
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/legal-offers.js
|
|
2567
2567
|
var utc = z13.iso.datetime().regex(/Z$/);
|
|
2568
2568
|
var text = z13.string().min(1).regex(/\S/);
|
|
2569
2569
|
var cents2 = z13.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
|
|
@@ -2699,7 +2699,7 @@ var legalOfferConflictDetails = z13.strictObject({
|
|
|
2699
2699
|
rule: z13.enum(["withdrawn", "stale", "expired", "reused", "boundary_changed", "deadline_unavailable"])
|
|
2700
2700
|
});
|
|
2701
2701
|
|
|
2702
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
2702
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/common.js
|
|
2703
2703
|
import { z as z14 } from "zod";
|
|
2704
2704
|
var SLUG_RULE = "A name is lower-case: it starts with a letter, continues with letters and digits, and joins further words with a single underscore \u2014 `battery_voltage`. Capitals, dashes, dots, spaces, a leading digit and a doubled or trailing underscore are all refused.";
|
|
2705
2705
|
var slug = z14.string().min(2).max(63).regex(/^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$/, SLUG_RULE);
|
|
@@ -2730,7 +2730,7 @@ var applyError = z14.object({
|
|
|
2730
2730
|
details: z14.record(z14.string(), z14.unknown()).optional()
|
|
2731
2731
|
});
|
|
2732
2732
|
|
|
2733
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
2733
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/mcp.js
|
|
2734
2734
|
import { z as z15 } from "zod";
|
|
2735
2735
|
function mcpAppEndpointPath(appIdentifier2) {
|
|
2736
2736
|
return `/mcp/${appIdentifier2}`;
|
|
@@ -2775,13 +2775,13 @@ var mcpRobotDatasheet = z15.object({
|
|
|
2775
2775
|
});
|
|
2776
2776
|
var MCP_ASSET_LINK_TTL_MS = 15 * 60 * 1e3;
|
|
2777
2777
|
|
|
2778
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
2778
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/protocol.js
|
|
2779
2779
|
import { z as z22 } from "zod";
|
|
2780
2780
|
|
|
2781
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
2781
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/assets.js
|
|
2782
2782
|
import { z as z17 } from "zod";
|
|
2783
2783
|
|
|
2784
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
2784
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/file-too-large-details.js
|
|
2785
2785
|
import { z as z16 } from "zod";
|
|
2786
2786
|
var fileTooLargeDetails = z16.object({
|
|
2787
2787
|
max_bytes: z16.number().int().positive().meta({
|
|
@@ -2792,7 +2792,7 @@ var fileTooLargeDetails = z16.object({
|
|
|
2792
2792
|
})
|
|
2793
2793
|
});
|
|
2794
2794
|
|
|
2795
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
2795
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/assets.js
|
|
2796
2796
|
var assetKind = z17.enum(["urdf", "mesh", "texture"]);
|
|
2797
2797
|
var asset = z17.object({
|
|
2798
2798
|
id: z17.uuid().meta({ description: "The asset's id in the store." }),
|
|
@@ -3132,10 +3132,10 @@ var assetSyncBusyDetails = z17.object({
|
|
|
3132
3132
|
started_at_ms: z17.number().int().nonnegative()
|
|
3133
3133
|
});
|
|
3134
3134
|
|
|
3135
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
3135
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/config.js
|
|
3136
3136
|
import { z as z19 } from "zod";
|
|
3137
3137
|
|
|
3138
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
3138
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/alerts.js
|
|
3139
3139
|
import { z as z18 } from "zod";
|
|
3140
3140
|
var alertRowCondition = z18.discriminatedUnion("kind", [
|
|
3141
3141
|
z18.strictObject({
|
|
@@ -3205,7 +3205,7 @@ var putDatapointDisplayRequest = z18.object({
|
|
|
3205
3205
|
y_max: z18.number().finite().nullable()
|
|
3206
3206
|
}).strict();
|
|
3207
3207
|
|
|
3208
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
3208
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/config.js
|
|
3209
3209
|
var RTSP_URL_RULE = "The URL has to begin with `rtsp://` or `rtsps://` \u2014 `rtsp://cam-1.plant.local/stream1`. No other scheme is accepted: the bridge opens this with a library that would equally honour `file:`.";
|
|
3210
3210
|
var MJPEG_URL_RULE = "The URL has to begin with `http://` or `https://` \u2014 `http://cam-1.plant.local/video.mjpg`. No other scheme is accepted: the bridge opens this with a library that would equally serve `file:`.";
|
|
3211
3211
|
var DEVICE_PATH_RULE = "A capture device is a path under `/dev/`, and the character straight after it is a letter or a digit \u2014 `/dev/video0`, or a stable `/dev/v4l/by-id/...` symlink. Nothing outside `/dev/` is accepted: the string reaches OpenCV, which would as happily open an ordinary file.";
|
|
@@ -4428,7 +4428,7 @@ var configState = z19.object({
|
|
|
4428
4428
|
applied_errors: z19.array(applyError).nullable()
|
|
4429
4429
|
});
|
|
4430
4430
|
|
|
4431
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
4431
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/introspection.js
|
|
4432
4432
|
import { z as z20 } from "zod";
|
|
4433
4433
|
var rosGraphEntry = z20.object({
|
|
4434
4434
|
name: rosName,
|
|
@@ -4438,7 +4438,22 @@ var rosGraph = z20.object({
|
|
|
4438
4438
|
topics: z20.array(rosGraphEntry),
|
|
4439
4439
|
services: z20.array(rosGraphEntry),
|
|
4440
4440
|
actions: z20.array(rosGraphEntry),
|
|
4441
|
-
captured_at_ms: z20.number().int().nonnegative()
|
|
4441
|
+
captured_at_ms: z20.number().int().nonnegative(),
|
|
4442
|
+
/**
|
|
4443
|
+
* How many entries of each list the bridge left out because the graph did
|
|
4444
|
+
* not fit `BRIDGE_FRAME_MAX_BYTES` (fleetless/fleetless#1222); absent when
|
|
4445
|
+
* the graph is complete. The bridge keeps first every name the applied
|
|
4446
|
+
* configuration references, then fills up in name order, so a validation
|
|
4447
|
+
* against the published config stays exact; a name that is missing may
|
|
4448
|
+
* still exist on the robot.
|
|
4449
|
+
*/
|
|
4450
|
+
omitted: z20.object({
|
|
4451
|
+
topics: z20.number().int().nonnegative(),
|
|
4452
|
+
services: z20.number().int().nonnegative(),
|
|
4453
|
+
actions: z20.number().int().nonnegative()
|
|
4454
|
+
}).optional().meta({
|
|
4455
|
+
description: "How many entries of each list the bridge left out because the graph did not fit `BRIDGE_FRAME_MAX_BYTES`; absent when the graph is complete."
|
|
4456
|
+
})
|
|
4442
4457
|
});
|
|
4443
4458
|
var typeField = z20.lazy(() => z20.object({
|
|
4444
4459
|
name: z20.string().min(1).max(128),
|
|
@@ -4467,11 +4482,25 @@ var typeDefinition = z20.discriminatedUnion("kind", [
|
|
|
4467
4482
|
})
|
|
4468
4483
|
]);
|
|
4469
4484
|
|
|
4470
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
4485
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/jobs.js
|
|
4471
4486
|
import { z as z21 } from "zod";
|
|
4472
4487
|
var jobState = z21.enum(["running", "unknown", "succeeded", "failed", "cancelled", "lost"]);
|
|
4473
4488
|
var reportedJobState = jobState.exclude(["unknown"]);
|
|
4474
4489
|
var jobOrigin = z21.enum(["fleetless", "external"]);
|
|
4490
|
+
var resultOmitted = z21.object({
|
|
4491
|
+
reason: z21.enum(["too_large"]).meta({
|
|
4492
|
+
description: "Why the result was left out. `too_large`: its frame would have exceeded the robot's frame limit."
|
|
4493
|
+
}),
|
|
4494
|
+
bytes: z21.number().int().positive().meta({
|
|
4495
|
+
description: "The size of the result alone, serialised as JSON, in bytes."
|
|
4496
|
+
}),
|
|
4497
|
+
limit_bytes: z21.number().int().positive().meta({
|
|
4498
|
+
description: "The frame limit the robot applied, in bytes (`BRIDGE_FRAME_MAX_BYTES`, 1.5 MiB)."
|
|
4499
|
+
})
|
|
4500
|
+
}).meta({
|
|
4501
|
+
description: "The robot had a result and did not send it because it was too large; `result` is `null`. The state is unchanged, and the result cannot be fetched later."
|
|
4502
|
+
});
|
|
4503
|
+
var RESULT_OMITTED_DESCRIPTION = "Present when the robot had a result and did not send it because it was too large; `result` is `null` then. The state is unchanged: a goal that succeeded is still `succeeded`. Absent otherwise.";
|
|
4475
4504
|
var job = z21.object({
|
|
4476
4505
|
id: z21.uuid().meta({
|
|
4477
4506
|
description: "The job's id, minted by the cloud when the invocation is accepted. Informative \u2014 state is observed by slug; a cancel names this id to stop one specific job rather than whatever is running."
|
|
@@ -4514,6 +4543,7 @@ var job = z21.object({
|
|
|
4514
4543
|
result: z21.unknown().nullable().meta({
|
|
4515
4544
|
description: "What the call returned once it succeeded, shaped by the ROS action or service itself. `null` until then, and for a job that did not succeed."
|
|
4516
4545
|
}),
|
|
4546
|
+
result_omitted: resultOmitted.optional().meta({ description: RESULT_OMITTED_DESCRIPTION }),
|
|
4517
4547
|
/**
|
|
4518
4548
|
* Present on `failed`; a human message, plus a code where one exists.
|
|
4519
4549
|
*
|
|
@@ -4550,6 +4580,8 @@ var jobEvent = z21.object({
|
|
|
4550
4580
|
feedback: z21.unknown().nullable(),
|
|
4551
4581
|
/** 0..1 when the action reports progress; null when it does not. */
|
|
4552
4582
|
progress: z21.number().min(0).max(1).nullable(),
|
|
4583
|
+
/** The job's own `result_omitted`, repeated so a consumer of the event alone sees it — see `resultOmitted`. */
|
|
4584
|
+
result_omitted: resultOmitted.optional().meta({ description: RESULT_OMITTED_DESCRIPTION }),
|
|
4553
4585
|
timestamp_ms: z21.number().int().nonnegative()
|
|
4554
4586
|
});
|
|
4555
4587
|
var busyDetails = z21.object({
|
|
@@ -4625,6 +4657,7 @@ var jobRun = z21.object({
|
|
|
4625
4657
|
result: z21.unknown().nullable().meta({
|
|
4626
4658
|
description: "What the action or service returned once it succeeded, shaped by ROS itself. `null` otherwise."
|
|
4627
4659
|
}),
|
|
4660
|
+
result_omitted: resultOmitted.optional().meta({ description: RESULT_OMITTED_DESCRIPTION }),
|
|
4628
4661
|
error: z21.object({
|
|
4629
4662
|
code: z21.string().min(1).meta({
|
|
4630
4663
|
description: "A machine-readable code for the failure, such as `job_queue_full`, where one exists for it."
|
|
@@ -4704,7 +4737,7 @@ var jobRunSummary = z21.object({
|
|
|
4704
4737
|
since_ms: z21.number().int().nonnegative()
|
|
4705
4738
|
});
|
|
4706
4739
|
|
|
4707
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
4740
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/protocol.js
|
|
4708
4741
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
4709
4742
|
var MAX_PATIENCE_MS = 12e4;
|
|
4710
4743
|
var MIN_PATIENCE_MS = 1e3;
|
|
@@ -4766,6 +4799,17 @@ var datapointFrame = z22.object({
|
|
|
4766
4799
|
timestamp_ms: z22.number().int().nonnegative(),
|
|
4767
4800
|
backfill: z22.boolean().optional().meta({ description: "true when the sample was captured while the bridge was disconnected and is being replayed after the reconnect. The cloud keeps such a sample out of its lag measure; absent means live." })
|
|
4768
4801
|
});
|
|
4802
|
+
var bridgeDatapointDropped = z22.object({
|
|
4803
|
+
type: z22.literal("datapoint_dropped"),
|
|
4804
|
+
slug,
|
|
4805
|
+
reason: z22.enum(["too_large"]),
|
|
4806
|
+
/** The size of the frame that was not sent, in bytes. */
|
|
4807
|
+
bytes: z22.number().int().positive(),
|
|
4808
|
+
/** `BRIDGE_FRAME_MAX_BYTES` as the bridge applied it. */
|
|
4809
|
+
limit_bytes: z22.number().int().positive(),
|
|
4810
|
+
/** Bridge capture time of the dropped sample, like `datapointFrame.timestamp_ms`. */
|
|
4811
|
+
timestamp_ms: z22.number().int().nonnegative()
|
|
4812
|
+
});
|
|
4769
4813
|
var cloudPing = z22.object({
|
|
4770
4814
|
type: z22.literal("ping"),
|
|
4771
4815
|
ts_ms: z22.number().int().nonnegative(),
|
|
@@ -4885,6 +4929,8 @@ var bridgeJobUpdate = z22.object({
|
|
|
4885
4929
|
feedback: z22.unknown().nullable(),
|
|
4886
4930
|
progress: z22.number().min(0).max(1).nullable(),
|
|
4887
4931
|
result: z22.unknown().nullable(),
|
|
4932
|
+
/** The robot had a result and did not send it because it was too large; `result` is `null`. See `resultOmitted`. */
|
|
4933
|
+
result_omitted: resultOmitted.optional(),
|
|
4888
4934
|
/** Same shape as `job.error`, `details` included — see `jobs.ts`. */
|
|
4889
4935
|
error: z22.object({ code: z22.string().min(1), message: z22.string().min(1), details: z22.unknown().optional() }).nullable(),
|
|
4890
4936
|
timestamp_ms: z22.number().int().nonnegative()
|
|
@@ -4906,6 +4952,8 @@ var bridgeJobStatusEntry = z22.object({
|
|
|
4906
4952
|
feedback: z22.unknown().nullable(),
|
|
4907
4953
|
progress: z22.number().min(0).max(1).nullable(),
|
|
4908
4954
|
result: z22.unknown().nullable(),
|
|
4955
|
+
/** The robot had a result and did not send it because it was too large; `result` is `null`. See `resultOmitted`. */
|
|
4956
|
+
result_omitted: resultOmitted.optional(),
|
|
4909
4957
|
/** Same shape as `job.error`, `details` included — see `jobs.ts`. */
|
|
4910
4958
|
error: z22.object({ code: z22.string().min(1), message: z22.string().min(1), details: z22.unknown().optional() }).nullable()
|
|
4911
4959
|
});
|
|
@@ -5103,11 +5151,11 @@ var bridgeCameraState = z22.object({
|
|
|
5103
5151
|
request_id: z22.string().min(1).max(64).nullable()
|
|
5104
5152
|
});
|
|
5105
5153
|
|
|
5106
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
5154
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/config-issues.js
|
|
5107
5155
|
var EXPOSURE_SECTIONS = ["datapoints", "actions", "services", "publishers", "cameras"];
|
|
5108
5156
|
var EXPOSURE_SECTION_NAMES = new Set(EXPOSURE_SECTIONS);
|
|
5109
5157
|
|
|
5110
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
5158
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/org-roles.js
|
|
5111
5159
|
import { z as z23 } from "zod";
|
|
5112
5160
|
var roleName = z23.string().trim().min(1).max(ROLE_NAME_MAX);
|
|
5113
5161
|
var referencePlace = z23.object({
|
|
@@ -5246,7 +5294,7 @@ var putRoleDefaultsRequest = z23.object({
|
|
|
5246
5294
|
})
|
|
5247
5295
|
}).strict();
|
|
5248
5296
|
|
|
5249
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
5297
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/rest.js
|
|
5250
5298
|
import { z as z24 } from "zod";
|
|
5251
5299
|
var robot2 = z24.object({
|
|
5252
5300
|
id: z24.uuid().meta({
|
|
@@ -5482,6 +5530,15 @@ var invokeResponse = z24.object({
|
|
|
5482
5530
|
var serviceCallResponse = z24.object({
|
|
5483
5531
|
result: z24.unknown().meta({
|
|
5484
5532
|
description: "What the service returned, shaped by the ROS service. A service call is awaited to completion, so there is no job to observe afterwards and no id to hold on to."
|
|
5533
|
+
}),
|
|
5534
|
+
/**
|
|
5535
|
+
* The service answered, and its response did not fit the robot's frame
|
|
5536
|
+
* limit (fleetless/fleetless#1222): `result` is `null` and this says why.
|
|
5537
|
+
* Without it, an omitted response would read as a service that returned
|
|
5538
|
+
* nothing.
|
|
5539
|
+
*/
|
|
5540
|
+
result_omitted: resultOmitted.optional().meta({
|
|
5541
|
+
description: "Present when the service answered and the robot did not send the response because it was too large; `result` is `null` then. Absent otherwise."
|
|
5485
5542
|
})
|
|
5486
5543
|
});
|
|
5487
5544
|
var invokeOrServiceResponse = z24.union([invokeResponse, serviceCallResponse]);
|
|
@@ -5844,6 +5901,7 @@ var robotDeleteQuery = z24.object({
|
|
|
5844
5901
|
description: "Pass `true` to delete a robot that has a live session open; without it that is `409 robot_in_use`. **`true` and nothing else** \u2014 any other value is `400 validation_error`, reported against the field `force` with rule `invalid_value`, so a caller is never left believing they forced a deletion they did not. The deletion is a full cascade, which is why saying it is the whole decision."
|
|
5845
5902
|
})
|
|
5846
5903
|
}).meta({ description: "The one optional parameter of `DELETE /api/robots/:id`, and it is the difference between a refusal and a cascade. It accepts the exact string `true`, or its own absence, and refuses everything else." });
|
|
5904
|
+
var RESOURCE_HEALTH_KINDS = ["camera", "datapoint"];
|
|
5847
5905
|
var RESOURCE_HEALTH_STATES = [
|
|
5848
5906
|
"ok",
|
|
5849
5907
|
/** The host did not answer. Not the same as refusing the password. */
|
|
@@ -5875,6 +5933,12 @@ var RESOURCE_HEALTH_STATES = [
|
|
|
5875
5933
|
"stopped_by_config_change",
|
|
5876
5934
|
/** Publishing failed after the session was already granted. */
|
|
5877
5935
|
"publish_failed",
|
|
5936
|
+
/**
|
|
5937
|
+
* The robot dropped the last value because its frame exceeded
|
|
5938
|
+
* `BRIDGE_FRAME_MAX_BYTES` (a datapoint only, fleetless/fleetless#1222).
|
|
5939
|
+
* `reason` names the size and the limit, built from numbers only.
|
|
5940
|
+
*/
|
|
5941
|
+
"too_large",
|
|
5878
5942
|
/**
|
|
5879
5943
|
* Something is wrong and this platform cannot say what.
|
|
5880
5944
|
*
|
|
@@ -5889,8 +5953,8 @@ var RESOURCE_HEALTH_STATES = [
|
|
|
5889
5953
|
];
|
|
5890
5954
|
var resourceHealthState = z24.object({
|
|
5891
5955
|
robot_id: z24.uuid(),
|
|
5892
|
-
kind: z24.enum(
|
|
5893
|
-
/** The camera
|
|
5956
|
+
kind: z24.enum(RESOURCE_HEALTH_KINDS),
|
|
5957
|
+
/** The camera or datapoint slug. */
|
|
5894
5958
|
ref: z24.string().min(1).max(64),
|
|
5895
5959
|
/**
|
|
5896
5960
|
* **Which of two questions this entry answers.**
|
|
@@ -6054,19 +6118,19 @@ var slugUsageResponse = z24.object({
|
|
|
6054
6118
|
alert_count: z24.number().int().nonnegative()
|
|
6055
6119
|
});
|
|
6056
6120
|
|
|
6057
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
6121
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/realtime.js
|
|
6058
6122
|
import { z as z30 } from "zod";
|
|
6059
6123
|
|
|
6060
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
6124
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/client-auth.js
|
|
6061
6125
|
import { z as z28 } from "zod";
|
|
6062
6126
|
|
|
6063
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
6127
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/apps.js
|
|
6064
6128
|
import { z as z27 } from "zod";
|
|
6065
6129
|
|
|
6066
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
6130
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/collections-rights.js
|
|
6067
6131
|
import { z as z26 } from "zod";
|
|
6068
6132
|
|
|
6069
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
6133
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/collections.js
|
|
6070
6134
|
import { z as z25 } from "zod";
|
|
6071
6135
|
var COLLECTIONS_FORMAT_VERSION = 1;
|
|
6072
6136
|
var COLLECTION_LIMITS = {
|
|
@@ -6244,7 +6308,7 @@ var collectionsDocument = z25.object({
|
|
|
6244
6308
|
collections: z25.codec(collectionsMap.nullable(), collectionsMap, { decode: (value) => value ?? {}, encode: (value) => value }).meta({ description: `The collections of the app by key, at most ${COLLECTION_LIMITS.collections}. Nothing under \`collections:\` (null) means none.` })
|
|
6245
6309
|
}).strict().meta({ description: "The data model of an app: its collections, their fields, and who may use them." });
|
|
6246
6310
|
|
|
6247
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
6311
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/collections-rights.js
|
|
6248
6312
|
var records = z26.union([z26.literal("all"), z26.literal("own"), z26.literal(false)]);
|
|
6249
6313
|
var roleCollectionRights = z26.object({
|
|
6250
6314
|
collection: collectionKey.meta({ description: "The collection's key." }),
|
|
@@ -6263,7 +6327,7 @@ var roleCollectionRights = z26.object({
|
|
|
6263
6327
|
})
|
|
6264
6328
|
}).meta({ description: "What one role may do with the records of one collection." });
|
|
6265
6329
|
|
|
6266
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
6330
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/apps.js
|
|
6267
6331
|
var appIdentifier = slug;
|
|
6268
6332
|
var app2 = z27.object({
|
|
6269
6333
|
id: z27.uuid().meta({
|
|
@@ -6502,7 +6566,7 @@ var effectiveRightsResponse = z27.object({
|
|
|
6502
6566
|
})
|
|
6503
6567
|
});
|
|
6504
6568
|
|
|
6505
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
6569
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/client-auth.js
|
|
6506
6570
|
var clientLoginRequest = z28.object({
|
|
6507
6571
|
app_identifier: appIdentifier.meta({
|
|
6508
6572
|
description: "The app being logged in to: its globally unique, lowercase, underscore-separated identifier, chosen by the developer at creation. There is no organisation context at login, so this is what decides which app the credentials are checked for."
|
|
@@ -6765,7 +6829,7 @@ var clientIdentity = z28.object({
|
|
|
6765
6829
|
})
|
|
6766
6830
|
});
|
|
6767
6831
|
|
|
6768
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
6832
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/collections-records.js
|
|
6769
6833
|
import { z as z29 } from "zod";
|
|
6770
6834
|
var timestamp = z29.iso.datetime();
|
|
6771
6835
|
var count3 = z29.number().int().min(0);
|
|
@@ -6912,7 +6976,7 @@ var collectionDefinitionsResponse = z29.object({
|
|
|
6912
6976
|
}))
|
|
6913
6977
|
}).meta({ description: "The collections the caller may read, with their field definitions and the caller's rights." });
|
|
6914
6978
|
|
|
6915
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
6979
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/realtime.js
|
|
6916
6980
|
var clientAuth = z30.object({
|
|
6917
6981
|
type: z30.literal("auth"),
|
|
6918
6982
|
token: z30.string().min(1)
|
|
@@ -7121,7 +7185,7 @@ var liveSessionEvent = z30.object({
|
|
|
7121
7185
|
var resourceHealthCleared = z30.object({
|
|
7122
7186
|
type: z30.literal("resource_health_cleared"),
|
|
7123
7187
|
robot_id: z30.uuid(),
|
|
7124
|
-
kind: z30.enum(
|
|
7188
|
+
kind: z30.enum(RESOURCE_HEALTH_KINDS),
|
|
7125
7189
|
ref: z30.string().min(1).max(64),
|
|
7126
7190
|
facet: z30.enum(["source", "publish"]),
|
|
7127
7191
|
cleared_at_ms: z30.number().int().nonnegative()
|
|
@@ -7129,7 +7193,7 @@ var resourceHealthCleared = z30.object({
|
|
|
7129
7193
|
var resourceHealthEvent = z30.object({
|
|
7130
7194
|
type: z30.literal("resource_health"),
|
|
7131
7195
|
robot_id: z30.uuid(),
|
|
7132
|
-
kind: z30.enum(
|
|
7196
|
+
kind: z30.enum(RESOURCE_HEALTH_KINDS),
|
|
7133
7197
|
ref: z30.string().min(1).max(64),
|
|
7134
7198
|
/** Which of the two questions this entry answers — see `resourceHealthState.facet`. */
|
|
7135
7199
|
facet: z30.enum(["source", "publish"]),
|
|
@@ -7242,7 +7306,7 @@ var collectionsSchemaPublished = z30.object({
|
|
|
7242
7306
|
version: z30.number().int().min(1).meta({ description: "The version that is in force now." })
|
|
7243
7307
|
}).strict().meta({ description: "A new schema version is in force for the app." });
|
|
7244
7308
|
|
|
7245
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
7309
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/feedback.js
|
|
7246
7310
|
import { z as z31 } from "zod";
|
|
7247
7311
|
var FEEDBACK_KINDS = ["idea", "problem", "question", "other"];
|
|
7248
7312
|
var feedbackKind = z31.enum(FEEDBACK_KINDS);
|
|
@@ -7267,7 +7331,7 @@ var feedbackResponse = z31.object({
|
|
|
7267
7331
|
})
|
|
7268
7332
|
}).strict();
|
|
7269
7333
|
|
|
7270
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
7334
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/support.js
|
|
7271
7335
|
import { z as z32 } from "zod";
|
|
7272
7336
|
var supportSessionInfo = z32.object({
|
|
7273
7337
|
session_id: z32.uuid().meta({
|
|
@@ -7323,7 +7387,7 @@ var supportRenewFailRefusal = z32.union([
|
|
|
7323
7387
|
]);
|
|
7324
7388
|
var authMeSupportResponse = authMeResponse.extend({ support: supportSessionInfo.optional() });
|
|
7325
7389
|
|
|
7326
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
7390
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/client-robots.js
|
|
7327
7391
|
import { z as z33 } from "zod";
|
|
7328
7392
|
var clientRobotListItem = z33.object({
|
|
7329
7393
|
...robot2.shape,
|
|
@@ -7340,7 +7404,7 @@ var clientRobotListResponse = z33.object({
|
|
|
7340
7404
|
})
|
|
7341
7405
|
});
|
|
7342
7406
|
|
|
7343
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
7407
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/legal-acceptances.js
|
|
7344
7408
|
import { z as z34 } from "zod";
|
|
7345
7409
|
var legalAcceptanceCursor = z34.string().min(1).max(512).regex(/^[A-Za-z0-9_-]+$/);
|
|
7346
7410
|
var legalAcceptanceListQuery = z34.object({
|
|
@@ -7367,7 +7431,7 @@ var legalAcceptanceListResponse = z34.object({
|
|
|
7367
7431
|
next_cursor: legalAcceptanceCursor.nullable()
|
|
7368
7432
|
}).strict();
|
|
7369
7433
|
|
|
7370
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
7434
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/audit.js
|
|
7371
7435
|
import { z as z35 } from "zod";
|
|
7372
7436
|
var auditActor = z35.object({
|
|
7373
7437
|
kind: z35.enum(["developer", "end_user", "app_user", "server_key", "bridge", "fleetless"]),
|
|
@@ -7509,7 +7573,7 @@ var auditListResponse = z35.object({
|
|
|
7509
7573
|
next_cursor: z35.number().int().positive().nullable()
|
|
7510
7574
|
});
|
|
7511
7575
|
|
|
7512
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
7576
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/errors.js
|
|
7513
7577
|
import { z as z36 } from "zod";
|
|
7514
7578
|
var apiError = z36.object({
|
|
7515
7579
|
code: z36.string().min(1),
|
|
@@ -7606,7 +7670,7 @@ var roleCycleDetails = z36.object({
|
|
|
7606
7670
|
})
|
|
7607
7671
|
});
|
|
7608
7672
|
|
|
7609
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
7673
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/oauth.js
|
|
7610
7674
|
import { z as z37 } from "zod";
|
|
7611
7675
|
var oauthErrorCode = z37.enum([
|
|
7612
7676
|
"invalid_request",
|
|
@@ -7849,13 +7913,13 @@ var oauthAuthorizeQuery = z37.object({
|
|
|
7849
7913
|
description: "The authorization request an MCP client sends, per RFC 6749 \xA74.1.1 with mandatory PKCE. The handler reads it parameter by parameter rather than through one parse, because the answers differ: `client_id` and `redirect_uri` are refused flat, with no redirect, since until both are confirmed there is no trusted target to bounce a browser to, and everything after them is reported to the client's own callback as query parameters."
|
|
7850
7914
|
});
|
|
7851
7915
|
|
|
7852
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
7916
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/collections-schema.js
|
|
7853
7917
|
import { z as z40 } from "zod";
|
|
7854
7918
|
|
|
7855
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
7919
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/collections-issues.js
|
|
7856
7920
|
import { z as z39 } from "zod";
|
|
7857
7921
|
|
|
7858
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
7922
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/collections-templates.js
|
|
7859
7923
|
import { z as z38 } from "zod";
|
|
7860
7924
|
var collectionJsonTemplateName = z38.enum(["pose2d", "point2d", "polygon2d", "range1d"]).meta({ description: "The name of a built-in JSON template: `pose2d`, `point2d`, `polygon2d` or `range1d`." });
|
|
7861
7925
|
function deepFreeze(value) {
|
|
@@ -7913,10 +7977,10 @@ var COLLECTION_JSON_TEMPLATES = deepFreeze({
|
|
|
7913
7977
|
}
|
|
7914
7978
|
});
|
|
7915
7979
|
|
|
7916
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
7980
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/collections-values.js
|
|
7917
7981
|
var TOO_DEEP_JSON = `The value nests arrays and objects more than ${COLLECTION_LIMITS.jsonDepth} levels deep.`;
|
|
7918
7982
|
|
|
7919
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
7983
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/collections-issues.js
|
|
7920
7984
|
var collectionsIssue = z39.object({
|
|
7921
7985
|
path: z39.string().min(1).meta({ description: "Where in the document, with dots between the keys: `collections.chargers.fields.location.to`." }),
|
|
7922
7986
|
code: z39.string().meta({ description: "A stable name for the kind of finding, for code to branch on." }),
|
|
@@ -7926,7 +7990,7 @@ var collectionsIssue = z39.object({
|
|
|
7926
7990
|
})
|
|
7927
7991
|
}).meta({ description: "One finding about a collections document." });
|
|
7928
7992
|
|
|
7929
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
7993
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/collections-schema.js
|
|
7930
7994
|
var timestamp2 = z40.iso.datetime();
|
|
7931
7995
|
var count4 = z40.number().int().min(0);
|
|
7932
7996
|
var schemaVersion2 = z40.number().int().min(1);
|
|
@@ -8169,7 +8233,7 @@ var collectionsPurgeResponse = z40.object({
|
|
|
8169
8233
|
purged_at: timestamp2
|
|
8170
8234
|
}).meta({ description: "What a purge removed." });
|
|
8171
8235
|
|
|
8172
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
8236
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/collections-transfer.js
|
|
8173
8237
|
import { z as z41 } from "zod";
|
|
8174
8238
|
var IMPORT_ERRORS_LISTED = 1e3;
|
|
8175
8239
|
var count5 = z41.number().int().min(0);
|
|
@@ -8265,7 +8329,7 @@ var collectionExportQuery = z41.object({
|
|
|
8265
8329
|
}).optional()
|
|
8266
8330
|
}).strict();
|
|
8267
8331
|
|
|
8268
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
8332
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/controller-register.js
|
|
8269
8333
|
import { z as z42 } from "zod";
|
|
8270
8334
|
var text2 = (max) => z42.string().regex(/^\P{Cc}*$/u).trim().min(1).max(max);
|
|
8271
8335
|
var email = z42.string().regex(/^\P{Cc}*$/u).trim().email().max(320);
|
|
@@ -8305,10 +8369,10 @@ var controllerRegisterOrgResponse = z42.object({
|
|
|
8305
8369
|
details: controllerRegisterOrgRecord.nullable()
|
|
8306
8370
|
}).strict();
|
|
8307
8371
|
|
|
8308
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
8372
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/billing.js
|
|
8309
8373
|
import { z as z43 } from "zod";
|
|
8310
8374
|
|
|
8311
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
8375
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/iana-time-zones.js
|
|
8312
8376
|
var ianaTimeZones = [
|
|
8313
8377
|
"UTC",
|
|
8314
8378
|
"Etc/UTC",
|
|
@@ -8733,7 +8797,7 @@ var ianaTimeZones = [
|
|
|
8733
8797
|
"Pacific/Wallis"
|
|
8734
8798
|
];
|
|
8735
8799
|
|
|
8736
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
8800
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/billing.js
|
|
8737
8801
|
var countryCode = z43.string().regex(/^[A-Z]{2}$/);
|
|
8738
8802
|
var EU_COUNTRIES = [
|
|
8739
8803
|
"AT",
|
|
@@ -9609,7 +9673,7 @@ var purchaseIntentResponse = z43.union([
|
|
|
9609
9673
|
acceptedNoPaymentChange
|
|
9610
9674
|
]);
|
|
9611
9675
|
|
|
9612
|
-
// node_modules/.pnpm/@fleetless+contracts@18.
|
|
9676
|
+
// node_modules/.pnpm/@fleetless+contracts@18.2.0/node_modules/@fleetless/contracts/dist/routes.js
|
|
9613
9677
|
var MCP_APP = MCP_APP_PATHS(":appIdentifier");
|
|
9614
9678
|
var APP_IDENTIFIER = {
|
|
9615
9679
|
name: "appIdentifier",
|