@fleetless/sdk 5.2.0-next.1 → 5.2.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.
- package/CHANGELOG.md +3 -1
- package/dist/index.cjs +64 -64
- package/dist/index.js +64 -64
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,13 +4,15 @@ All notable changes to `@fleetless/sdk`. The format follows Keep a Changelog; th
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [5.2.0] — 2026-11-26
|
|
8
|
+
|
|
7
9
|
### Added
|
|
8
10
|
|
|
9
11
|
- **MCP clients by Client ID Metadata Document** (fleetless/fleetless#1218). `ClientMcpInteraction`, what `auth.mcpInteraction()` resolves, carries `client_id_host` (the domain the client's metadata document was fetched from, `null` for a self-registered client), `redirect_uri_host` and `redirect_uri_loopback`: a consent screen shows the domain and where the answer goes beside the unverified name, and warns when the answer goes to the person's own computer. `McpConsentGrant`, what `auth.listMcpGrants()` resolves, carries `client_id_host`. A grant's `client_id` may be the document's HTTPS URL; `auth.revokeMcpGrant()` encodes it as one path segment, as it encodes every id.
|
|
10
12
|
|
|
11
13
|
### Changed
|
|
12
14
|
|
|
13
|
-
- Built against `@fleetless/contracts` 18.1.0
|
|
15
|
+
- Built against `@fleetless/contracts` 18.1.0.
|
|
14
16
|
|
|
15
17
|
## [5.1.0] — 2026-11-06
|
|
16
18
|
|
package/dist/index.cjs
CHANGED
|
@@ -449,16 +449,16 @@ function createAssetsApi(http) {
|
|
|
449
449
|
};
|
|
450
450
|
}
|
|
451
451
|
|
|
452
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
452
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/journal-restore.js
|
|
453
453
|
var import_zod6 = require("zod");
|
|
454
454
|
|
|
455
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
455
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/journal-intents.js
|
|
456
456
|
var import_zod5 = require("zod");
|
|
457
457
|
|
|
458
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
458
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/app-users.js
|
|
459
459
|
var import_zod4 = require("zod");
|
|
460
460
|
|
|
461
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
461
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/identity.js
|
|
462
462
|
var import_zod = require("zod");
|
|
463
463
|
var password = import_zod.z.string().min(12).max(256);
|
|
464
464
|
var USER_DISPLAY_NAME_MAX = 120;
|
|
@@ -681,7 +681,7 @@ var recoveryCodesResponse = import_zod.z.object({
|
|
|
681
681
|
recovery_codes: recoveryCodesList.meta({ description: "The ten new recovery codes, lowercase, shown once. Every earlier code is void." })
|
|
682
682
|
});
|
|
683
683
|
|
|
684
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
684
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/app-mail-html.js
|
|
685
685
|
var DEFAULT_MAIL_HTML = {
|
|
686
686
|
"invite": `<!doctype html>
|
|
687
687
|
<html lang="en">
|
|
@@ -769,7 +769,7 @@ var DEFAULT_MAIL_HTML = {
|
|
|
769
769
|
`
|
|
770
770
|
};
|
|
771
771
|
|
|
772
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
772
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/legal.js
|
|
773
773
|
var import_zod2 = require("zod");
|
|
774
774
|
var httpsLegalUrl = import_zod2.z.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) => {
|
|
775
775
|
try {
|
|
@@ -789,7 +789,7 @@ var legalTextReferences = import_zod2.z.object({
|
|
|
789
789
|
dpa: legalDocumentReference.nullable()
|
|
790
790
|
}).strict();
|
|
791
791
|
|
|
792
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
792
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/rights.js
|
|
793
793
|
var import_zod3 = require("zod");
|
|
794
794
|
var ROLE_KEY_PATTERN = /^(?!defaults$)[a-z][a-z0-9_]{0,62}$/;
|
|
795
795
|
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.";
|
|
@@ -827,7 +827,7 @@ var ENTRY_KIND_OF = {
|
|
|
827
827
|
};
|
|
828
828
|
var SECTIONS = Object.keys(ENTRY_KIND_OF);
|
|
829
829
|
|
|
830
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
830
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/app-users.js
|
|
831
831
|
var APP_USER_DISPLAY_NAME_MAX = 120;
|
|
832
832
|
var providerSlug = import_zod4.z.string().max(40).regex(/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/, "must be lowercase and hyphen-separated, starting with a letter");
|
|
833
833
|
var appUserStatus = import_zod4.z.enum(["pending_verification", "active", "blocked"]);
|
|
@@ -1215,7 +1215,7 @@ var mailOutcome = import_zod4.z.object({
|
|
|
1215
1215
|
})
|
|
1216
1216
|
});
|
|
1217
1217
|
|
|
1218
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
1218
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/journal-intents.js
|
|
1219
1219
|
var hash = import_zod5.z.string().regex(/^[0-9a-f]{64}$/);
|
|
1220
1220
|
var uuid = import_zod5.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/);
|
|
1221
1221
|
var opaqueId = import_zod5.z.string().min(1);
|
|
@@ -1313,7 +1313,7 @@ var journalIntentV2 = import_zod5.z.discriminatedUnion("kind", [
|
|
|
1313
1313
|
...branches.slice(1).map((branch) => branch.extend(envelope))
|
|
1314
1314
|
]);
|
|
1315
1315
|
|
|
1316
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
1316
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/journal-restore.js
|
|
1317
1317
|
var hash2 = import_zod6.z.string().regex(/^[0-9a-f]{64}$/);
|
|
1318
1318
|
var uuid2 = import_zod6.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/);
|
|
1319
1319
|
var opaqueId2 = import_zod6.z.string().min(1);
|
|
@@ -1733,7 +1733,7 @@ var journalReplayReceiptBody = import_zod6.z.strictObject(receiptFields).superRe
|
|
|
1733
1733
|
}).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.");
|
|
1734
1734
|
var journalReplayReceipt = journalReplayReceiptBody.safeExtend({ receipt_hash: hash2, signature: signature2 });
|
|
1735
1735
|
|
|
1736
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
1736
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/journal-manifests.js
|
|
1737
1737
|
var import_zod7 = require("zod");
|
|
1738
1738
|
var uuid3 = import_zod7.z.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}$/);
|
|
1739
1739
|
var hash3 = import_zod7.z.string().regex(/^[0-9a-f]{64}$/);
|
|
@@ -2089,7 +2089,7 @@ var journalManifestBinding = import_zod7.z.strictObject({
|
|
|
2089
2089
|
problem("Unexpected batch", ["manifest", "batches"]);
|
|
2090
2090
|
}).describe("JSON Schema consumers must also verify exact intent/scope/batch binding, sorted physical membership, original bytes and protected readbacks.");
|
|
2091
2091
|
|
|
2092
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
2092
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/journal-seals.js
|
|
2093
2093
|
var import_zod8 = require("zod");
|
|
2094
2094
|
var hash4 = import_zod8.z.string().regex(/^[0-9a-f]{64}$/);
|
|
2095
2095
|
var uuid4 = import_zod8.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/);
|
|
@@ -2171,7 +2171,7 @@ var journalFinalSealBody = import_zod8.z.strictObject({
|
|
|
2171
2171
|
}, { 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.");
|
|
2172
2172
|
var journalFinalSeal = journalFinalSealBody.safeExtend({ seal_hash: hash4, signature: signature3 });
|
|
2173
2173
|
|
|
2174
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
2174
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/journal-controls.js
|
|
2175
2175
|
var import_zod9 = require("zod");
|
|
2176
2176
|
var hash5 = import_zod9.z.string().regex(/^[0-9a-f]{64}$/);
|
|
2177
2177
|
var zeroHash = import_zod9.z.literal("0".repeat(64));
|
|
@@ -2274,23 +2274,23 @@ var journalRegistryActivationReceipt = import_zod9.z.union([
|
|
|
2274
2274
|
laterActivationBody.extend({ receipt_hash: hash5, signature: signature4 })
|
|
2275
2275
|
]);
|
|
2276
2276
|
|
|
2277
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
2277
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/legal-offers.js
|
|
2278
2278
|
var import_zod13 = require("zod");
|
|
2279
2279
|
|
|
2280
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
2280
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/plans.js
|
|
2281
2281
|
var import_zod12 = require("zod");
|
|
2282
2282
|
|
|
2283
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
2283
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/purchase-operation-key.js
|
|
2284
2284
|
var import_zod10 = require("zod");
|
|
2285
2285
|
var purchaseOperationKey = import_zod10.z.uuid().meta({ description: "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input." });
|
|
2286
2286
|
|
|
2287
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
2287
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/confirmation-proof.js
|
|
2288
2288
|
var import_zod11 = require("zod");
|
|
2289
2289
|
var confirmationProof = import_zod11.z.string().regex(/^[A-Za-z0-9_-]{43}$/).meta({
|
|
2290
2290
|
description: "Opaque 32-byte Cloud proof, unpadded base64url. Syntax alone is not evidence."
|
|
2291
2291
|
});
|
|
2292
2292
|
|
|
2293
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
2293
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/plans.js
|
|
2294
2294
|
var planId = import_zod12.z.enum(["basic", "plus", "pro", "enterprise"]);
|
|
2295
2295
|
var PLAN_ORDER = ["basic", "plus", "pro", "enterprise"];
|
|
2296
2296
|
var planLimitKey = import_zod12.z.enum([
|
|
@@ -2599,7 +2599,7 @@ var adminPlanChangeRequest = import_zod12.z.object({
|
|
|
2599
2599
|
})
|
|
2600
2600
|
}).strict();
|
|
2601
2601
|
|
|
2602
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
2602
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/legal-offers.js
|
|
2603
2603
|
var utc = import_zod13.z.iso.datetime().regex(/Z$/);
|
|
2604
2604
|
var text = import_zod13.z.string().min(1).regex(/\S/);
|
|
2605
2605
|
var cents2 = import_zod13.z.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
|
|
@@ -2735,7 +2735,7 @@ var legalOfferConflictDetails = import_zod13.z.strictObject({
|
|
|
2735
2735
|
rule: import_zod13.z.enum(["withdrawn", "stale", "expired", "reused", "boundary_changed", "deadline_unavailable"])
|
|
2736
2736
|
});
|
|
2737
2737
|
|
|
2738
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
2738
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/common.js
|
|
2739
2739
|
var import_zod14 = require("zod");
|
|
2740
2740
|
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.";
|
|
2741
2741
|
var slug = import_zod14.z.string().min(2).max(63).regex(/^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$/, SLUG_RULE);
|
|
@@ -2766,7 +2766,7 @@ var applyError = import_zod14.z.object({
|
|
|
2766
2766
|
details: import_zod14.z.record(import_zod14.z.string(), import_zod14.z.unknown()).optional()
|
|
2767
2767
|
});
|
|
2768
2768
|
|
|
2769
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
2769
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/mcp.js
|
|
2770
2770
|
var import_zod15 = require("zod");
|
|
2771
2771
|
function mcpAppEndpointPath(appIdentifier2) {
|
|
2772
2772
|
return `/mcp/${appIdentifier2}`;
|
|
@@ -2811,13 +2811,13 @@ var mcpRobotDatasheet = import_zod15.z.object({
|
|
|
2811
2811
|
});
|
|
2812
2812
|
var MCP_ASSET_LINK_TTL_MS = 15 * 60 * 1e3;
|
|
2813
2813
|
|
|
2814
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
2814
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/protocol.js
|
|
2815
2815
|
var import_zod22 = require("zod");
|
|
2816
2816
|
|
|
2817
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
2817
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/assets.js
|
|
2818
2818
|
var import_zod17 = require("zod");
|
|
2819
2819
|
|
|
2820
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
2820
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/file-too-large-details.js
|
|
2821
2821
|
var import_zod16 = require("zod");
|
|
2822
2822
|
var fileTooLargeDetails = import_zod16.z.object({
|
|
2823
2823
|
max_bytes: import_zod16.z.number().int().positive().meta({
|
|
@@ -2828,7 +2828,7 @@ var fileTooLargeDetails = import_zod16.z.object({
|
|
|
2828
2828
|
})
|
|
2829
2829
|
});
|
|
2830
2830
|
|
|
2831
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
2831
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/assets.js
|
|
2832
2832
|
var assetKind = import_zod17.z.enum(["urdf", "mesh", "texture"]);
|
|
2833
2833
|
var asset = import_zod17.z.object({
|
|
2834
2834
|
id: import_zod17.z.uuid().meta({ description: "The asset's id in the store." }),
|
|
@@ -3168,10 +3168,10 @@ var assetSyncBusyDetails = import_zod17.z.object({
|
|
|
3168
3168
|
started_at_ms: import_zod17.z.number().int().nonnegative()
|
|
3169
3169
|
});
|
|
3170
3170
|
|
|
3171
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
3171
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/config.js
|
|
3172
3172
|
var import_zod19 = require("zod");
|
|
3173
3173
|
|
|
3174
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
3174
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/alerts.js
|
|
3175
3175
|
var import_zod18 = require("zod");
|
|
3176
3176
|
var alertRowCondition = import_zod18.z.discriminatedUnion("kind", [
|
|
3177
3177
|
import_zod18.z.strictObject({
|
|
@@ -3241,7 +3241,7 @@ var putDatapointDisplayRequest = import_zod18.z.object({
|
|
|
3241
3241
|
y_max: import_zod18.z.number().finite().nullable()
|
|
3242
3242
|
}).strict();
|
|
3243
3243
|
|
|
3244
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
3244
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/config.js
|
|
3245
3245
|
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:`.";
|
|
3246
3246
|
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:`.";
|
|
3247
3247
|
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.";
|
|
@@ -4464,7 +4464,7 @@ var configState = import_zod19.z.object({
|
|
|
4464
4464
|
applied_errors: import_zod19.z.array(applyError).nullable()
|
|
4465
4465
|
});
|
|
4466
4466
|
|
|
4467
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
4467
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/introspection.js
|
|
4468
4468
|
var import_zod20 = require("zod");
|
|
4469
4469
|
var rosGraphEntry = import_zod20.z.object({
|
|
4470
4470
|
name: rosName,
|
|
@@ -4503,7 +4503,7 @@ var typeDefinition = import_zod20.z.discriminatedUnion("kind", [
|
|
|
4503
4503
|
})
|
|
4504
4504
|
]);
|
|
4505
4505
|
|
|
4506
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
4506
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/jobs.js
|
|
4507
4507
|
var import_zod21 = require("zod");
|
|
4508
4508
|
var jobState = import_zod21.z.enum(["running", "unknown", "succeeded", "failed", "cancelled", "lost"]);
|
|
4509
4509
|
var reportedJobState = jobState.exclude(["unknown"]);
|
|
@@ -4740,7 +4740,7 @@ var jobRunSummary = import_zod21.z.object({
|
|
|
4740
4740
|
since_ms: import_zod21.z.number().int().nonnegative()
|
|
4741
4741
|
});
|
|
4742
4742
|
|
|
4743
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
4743
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/protocol.js
|
|
4744
4744
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
4745
4745
|
var MAX_PATIENCE_MS = 12e4;
|
|
4746
4746
|
var MIN_PATIENCE_MS = 1e3;
|
|
@@ -5139,11 +5139,11 @@ var bridgeCameraState = import_zod22.z.object({
|
|
|
5139
5139
|
request_id: import_zod22.z.string().min(1).max(64).nullable()
|
|
5140
5140
|
});
|
|
5141
5141
|
|
|
5142
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
5142
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/config-issues.js
|
|
5143
5143
|
var EXPOSURE_SECTIONS = ["datapoints", "actions", "services", "publishers", "cameras"];
|
|
5144
5144
|
var EXPOSURE_SECTION_NAMES = new Set(EXPOSURE_SECTIONS);
|
|
5145
5145
|
|
|
5146
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
5146
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/org-roles.js
|
|
5147
5147
|
var import_zod23 = require("zod");
|
|
5148
5148
|
var roleName = import_zod23.z.string().trim().min(1).max(ROLE_NAME_MAX);
|
|
5149
5149
|
var referencePlace = import_zod23.z.object({
|
|
@@ -5282,7 +5282,7 @@ var putRoleDefaultsRequest = import_zod23.z.object({
|
|
|
5282
5282
|
})
|
|
5283
5283
|
}).strict();
|
|
5284
5284
|
|
|
5285
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
5285
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/rest.js
|
|
5286
5286
|
var import_zod24 = require("zod");
|
|
5287
5287
|
var robot2 = import_zod24.z.object({
|
|
5288
5288
|
id: import_zod24.z.uuid().meta({
|
|
@@ -6090,19 +6090,19 @@ var slugUsageResponse = import_zod24.z.object({
|
|
|
6090
6090
|
alert_count: import_zod24.z.number().int().nonnegative()
|
|
6091
6091
|
});
|
|
6092
6092
|
|
|
6093
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6093
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/realtime.js
|
|
6094
6094
|
var import_zod30 = require("zod");
|
|
6095
6095
|
|
|
6096
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6096
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/client-auth.js
|
|
6097
6097
|
var import_zod28 = require("zod");
|
|
6098
6098
|
|
|
6099
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6099
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/apps.js
|
|
6100
6100
|
var import_zod27 = require("zod");
|
|
6101
6101
|
|
|
6102
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6102
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-rights.js
|
|
6103
6103
|
var import_zod26 = require("zod");
|
|
6104
6104
|
|
|
6105
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6105
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections.js
|
|
6106
6106
|
var import_zod25 = require("zod");
|
|
6107
6107
|
var COLLECTIONS_FORMAT_VERSION = 1;
|
|
6108
6108
|
var COLLECTION_LIMITS = {
|
|
@@ -6280,7 +6280,7 @@ var collectionsDocument = import_zod25.z.object({
|
|
|
6280
6280
|
collections: import_zod25.z.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.` })
|
|
6281
6281
|
}).strict().meta({ description: "The data model of an app: its collections, their fields, and who may use them." });
|
|
6282
6282
|
|
|
6283
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6283
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-rights.js
|
|
6284
6284
|
var records = import_zod26.z.union([import_zod26.z.literal("all"), import_zod26.z.literal("own"), import_zod26.z.literal(false)]);
|
|
6285
6285
|
var roleCollectionRights = import_zod26.z.object({
|
|
6286
6286
|
collection: collectionKey.meta({ description: "The collection's key." }),
|
|
@@ -6299,7 +6299,7 @@ var roleCollectionRights = import_zod26.z.object({
|
|
|
6299
6299
|
})
|
|
6300
6300
|
}).meta({ description: "What one role may do with the records of one collection." });
|
|
6301
6301
|
|
|
6302
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6302
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/apps.js
|
|
6303
6303
|
var appIdentifier = slug;
|
|
6304
6304
|
var app2 = import_zod27.z.object({
|
|
6305
6305
|
id: import_zod27.z.uuid().meta({
|
|
@@ -6538,7 +6538,7 @@ var effectiveRightsResponse = import_zod27.z.object({
|
|
|
6538
6538
|
})
|
|
6539
6539
|
});
|
|
6540
6540
|
|
|
6541
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6541
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/client-auth.js
|
|
6542
6542
|
var clientLoginRequest = import_zod28.z.object({
|
|
6543
6543
|
app_identifier: appIdentifier.meta({
|
|
6544
6544
|
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."
|
|
@@ -6801,7 +6801,7 @@ var clientIdentity = import_zod28.z.object({
|
|
|
6801
6801
|
})
|
|
6802
6802
|
});
|
|
6803
6803
|
|
|
6804
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6804
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-records.js
|
|
6805
6805
|
var import_zod29 = require("zod");
|
|
6806
6806
|
var timestamp = import_zod29.z.iso.datetime();
|
|
6807
6807
|
var count3 = import_zod29.z.number().int().min(0);
|
|
@@ -6948,7 +6948,7 @@ var collectionDefinitionsResponse = import_zod29.z.object({
|
|
|
6948
6948
|
}))
|
|
6949
6949
|
}).meta({ description: "The collections the caller may read, with their field definitions and the caller's rights." });
|
|
6950
6950
|
|
|
6951
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6951
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/realtime.js
|
|
6952
6952
|
var clientAuth = import_zod30.z.object({
|
|
6953
6953
|
type: import_zod30.z.literal("auth"),
|
|
6954
6954
|
token: import_zod30.z.string().min(1)
|
|
@@ -7278,7 +7278,7 @@ var collectionsSchemaPublished = import_zod30.z.object({
|
|
|
7278
7278
|
version: import_zod30.z.number().int().min(1).meta({ description: "The version that is in force now." })
|
|
7279
7279
|
}).strict().meta({ description: "A new schema version is in force for the app." });
|
|
7280
7280
|
|
|
7281
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7281
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/feedback.js
|
|
7282
7282
|
var import_zod31 = require("zod");
|
|
7283
7283
|
var FEEDBACK_KINDS = ["idea", "problem", "question", "other"];
|
|
7284
7284
|
var feedbackKind = import_zod31.z.enum(FEEDBACK_KINDS);
|
|
@@ -7303,7 +7303,7 @@ var feedbackResponse = import_zod31.z.object({
|
|
|
7303
7303
|
})
|
|
7304
7304
|
}).strict();
|
|
7305
7305
|
|
|
7306
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7306
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/support.js
|
|
7307
7307
|
var import_zod32 = require("zod");
|
|
7308
7308
|
var supportSessionInfo = import_zod32.z.object({
|
|
7309
7309
|
session_id: import_zod32.z.uuid().meta({
|
|
@@ -7359,7 +7359,7 @@ var supportRenewFailRefusal = import_zod32.z.union([
|
|
|
7359
7359
|
]);
|
|
7360
7360
|
var authMeSupportResponse = authMeResponse.extend({ support: supportSessionInfo.optional() });
|
|
7361
7361
|
|
|
7362
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7362
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/client-robots.js
|
|
7363
7363
|
var import_zod33 = require("zod");
|
|
7364
7364
|
var clientRobotListItem = import_zod33.z.object({
|
|
7365
7365
|
...robot2.shape,
|
|
@@ -7376,7 +7376,7 @@ var clientRobotListResponse = import_zod33.z.object({
|
|
|
7376
7376
|
})
|
|
7377
7377
|
});
|
|
7378
7378
|
|
|
7379
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7379
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/legal-acceptances.js
|
|
7380
7380
|
var import_zod34 = require("zod");
|
|
7381
7381
|
var legalAcceptanceCursor = import_zod34.z.string().min(1).max(512).regex(/^[A-Za-z0-9_-]+$/);
|
|
7382
7382
|
var legalAcceptanceListQuery = import_zod34.z.object({
|
|
@@ -7403,7 +7403,7 @@ var legalAcceptanceListResponse = import_zod34.z.object({
|
|
|
7403
7403
|
next_cursor: legalAcceptanceCursor.nullable()
|
|
7404
7404
|
}).strict();
|
|
7405
7405
|
|
|
7406
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7406
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/audit.js
|
|
7407
7407
|
var import_zod35 = require("zod");
|
|
7408
7408
|
var auditActor = import_zod35.z.object({
|
|
7409
7409
|
kind: import_zod35.z.enum(["developer", "end_user", "app_user", "server_key", "bridge", "fleetless"]),
|
|
@@ -7545,7 +7545,7 @@ var auditListResponse = import_zod35.z.object({
|
|
|
7545
7545
|
next_cursor: import_zod35.z.number().int().positive().nullable()
|
|
7546
7546
|
});
|
|
7547
7547
|
|
|
7548
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7548
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/errors.js
|
|
7549
7549
|
var import_zod36 = require("zod");
|
|
7550
7550
|
var apiError = import_zod36.z.object({
|
|
7551
7551
|
code: import_zod36.z.string().min(1),
|
|
@@ -7642,7 +7642,7 @@ var roleCycleDetails = import_zod36.z.object({
|
|
|
7642
7642
|
})
|
|
7643
7643
|
});
|
|
7644
7644
|
|
|
7645
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7645
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/oauth.js
|
|
7646
7646
|
var import_zod37 = require("zod");
|
|
7647
7647
|
var oauthErrorCode = import_zod37.z.enum([
|
|
7648
7648
|
"invalid_request",
|
|
@@ -7885,13 +7885,13 @@ var oauthAuthorizeQuery = import_zod37.z.object({
|
|
|
7885
7885
|
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."
|
|
7886
7886
|
});
|
|
7887
7887
|
|
|
7888
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7888
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-schema.js
|
|
7889
7889
|
var import_zod40 = require("zod");
|
|
7890
7890
|
|
|
7891
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7891
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-issues.js
|
|
7892
7892
|
var import_zod39 = require("zod");
|
|
7893
7893
|
|
|
7894
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7894
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-templates.js
|
|
7895
7895
|
var import_zod38 = require("zod");
|
|
7896
7896
|
var collectionJsonTemplateName = import_zod38.z.enum(["pose2d", "point2d", "polygon2d", "range1d"]).meta({ description: "The name of a built-in JSON template: `pose2d`, `point2d`, `polygon2d` or `range1d`." });
|
|
7897
7897
|
function deepFreeze(value) {
|
|
@@ -7949,10 +7949,10 @@ var COLLECTION_JSON_TEMPLATES = deepFreeze({
|
|
|
7949
7949
|
}
|
|
7950
7950
|
});
|
|
7951
7951
|
|
|
7952
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7952
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-values.js
|
|
7953
7953
|
var TOO_DEEP_JSON = `The value nests arrays and objects more than ${COLLECTION_LIMITS.jsonDepth} levels deep.`;
|
|
7954
7954
|
|
|
7955
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7955
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-issues.js
|
|
7956
7956
|
var collectionsIssue = import_zod39.z.object({
|
|
7957
7957
|
path: import_zod39.z.string().min(1).meta({ description: "Where in the document, with dots between the keys: `collections.chargers.fields.location.to`." }),
|
|
7958
7958
|
code: import_zod39.z.string().meta({ description: "A stable name for the kind of finding, for code to branch on." }),
|
|
@@ -7962,7 +7962,7 @@ var collectionsIssue = import_zod39.z.object({
|
|
|
7962
7962
|
})
|
|
7963
7963
|
}).meta({ description: "One finding about a collections document." });
|
|
7964
7964
|
|
|
7965
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7965
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-schema.js
|
|
7966
7966
|
var timestamp2 = import_zod40.z.iso.datetime();
|
|
7967
7967
|
var count4 = import_zod40.z.number().int().min(0);
|
|
7968
7968
|
var schemaVersion2 = import_zod40.z.number().int().min(1);
|
|
@@ -8205,7 +8205,7 @@ var collectionsPurgeResponse = import_zod40.z.object({
|
|
|
8205
8205
|
purged_at: timestamp2
|
|
8206
8206
|
}).meta({ description: "What a purge removed." });
|
|
8207
8207
|
|
|
8208
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
8208
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-transfer.js
|
|
8209
8209
|
var import_zod41 = require("zod");
|
|
8210
8210
|
var IMPORT_ERRORS_LISTED = 1e3;
|
|
8211
8211
|
var count5 = import_zod41.z.number().int().min(0);
|
|
@@ -8301,7 +8301,7 @@ var collectionExportQuery = import_zod41.z.object({
|
|
|
8301
8301
|
}).optional()
|
|
8302
8302
|
}).strict();
|
|
8303
8303
|
|
|
8304
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
8304
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/controller-register.js
|
|
8305
8305
|
var import_zod42 = require("zod");
|
|
8306
8306
|
var text2 = (max) => import_zod42.z.string().regex(/^\P{Cc}*$/u).trim().min(1).max(max);
|
|
8307
8307
|
var email = import_zod42.z.string().regex(/^\P{Cc}*$/u).trim().email().max(320);
|
|
@@ -8341,10 +8341,10 @@ var controllerRegisterOrgResponse = import_zod42.z.object({
|
|
|
8341
8341
|
details: controllerRegisterOrgRecord.nullable()
|
|
8342
8342
|
}).strict();
|
|
8343
8343
|
|
|
8344
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
8344
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/billing.js
|
|
8345
8345
|
var import_zod43 = require("zod");
|
|
8346
8346
|
|
|
8347
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
8347
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/iana-time-zones.js
|
|
8348
8348
|
var ianaTimeZones = [
|
|
8349
8349
|
"UTC",
|
|
8350
8350
|
"Etc/UTC",
|
|
@@ -8769,7 +8769,7 @@ var ianaTimeZones = [
|
|
|
8769
8769
|
"Pacific/Wallis"
|
|
8770
8770
|
];
|
|
8771
8771
|
|
|
8772
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
8772
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/billing.js
|
|
8773
8773
|
var countryCode = import_zod43.z.string().regex(/^[A-Z]{2}$/);
|
|
8774
8774
|
var EU_COUNTRIES = [
|
|
8775
8775
|
"AT",
|
|
@@ -9645,7 +9645,7 @@ var purchaseIntentResponse = import_zod43.z.union([
|
|
|
9645
9645
|
acceptedNoPaymentChange
|
|
9646
9646
|
]);
|
|
9647
9647
|
|
|
9648
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
9648
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/routes.js
|
|
9649
9649
|
var MCP_APP = MCP_APP_PATHS(":appIdentifier");
|
|
9650
9650
|
var APP_IDENTIFIER = {
|
|
9651
9651
|
name: "appIdentifier",
|
|
@@ -11526,7 +11526,7 @@ var ROUTES = [
|
|
|
11526
11526
|
response: null,
|
|
11527
11527
|
errors: [],
|
|
11528
11528
|
transport: "http",
|
|
11529
|
-
notes: "**The query schema is what this endpoint accepts, not what it parses**: the handler reads it parameter by parameter because the answers differ, and one parse would collapse them. Client and `redirect_uri` are validated first and a failure there never redirects, the same open-redirect discipline the app flow applies; those refusals are `oauthError`. \n\n**Three client kinds.** The one central client; a client that registered itself at `POST /mcp/oauth/register`; and a client whose `client_id` is the HTTPS URL of its Client ID Metadata Document (draft-ietf-oauth-client-id-metadata-document). The last is recognised by its `https://` prefix, which no issued id carries. Its URL must have a path other than `/`, no dot segment, query, fragment or userinfo, and at most 512 characters. On a cache miss the server fetches the document: `GET`, no redirects followed, 5 s, at most 5,120 bytes, `200` with a JSON content type, from a public address only, connecting to the exact address it checked. The document must name this URL as its `client_id`, list its `redirect_uris` and be a public client (`token_endpoint_auth_method` absent or `none`). A valid document is cached for its `Cache-Control: max-age`, clamped to 5 min \u2026 24 h (1 h without one); a failed fetch caches nothing and aborts with `invalid_client` and the cause. The fetches of one address share a bucket of 5 and one more a minute \u2014 a cache hit spends nothing \u2014 and a refused fetch is `invalid_client` too, answered in the handler rather than by a preHandler, which is why `rateLimited` is `false`. \n\n`redirect_uri` is matched exactly. The loopback-port wildcard of RFC 8252 \xA77.3 applies to the central client, whose URIs are configured ahead of time, and to a metadata-document client, whose static document cannot name the port a native client binds: a loopback `http` URI there may differ from a listed one in its port only. A client that registered itself seconds ago can name the port it bound, so it gets no wildcard. Nothing about the person is decided here \u2014 the next card asks for an email address, or a passkey, and the steps after it resolve the account; this route knows only the client."
|
|
11529
|
+
notes: "**The query schema is what this endpoint accepts, not what it parses**: the handler reads it parameter by parameter because the answers differ, and one parse would collapse them. Client and `redirect_uri` are validated first and a failure there never redirects, the same open-redirect discipline the app flow applies; those refusals are `oauthError`. \n\n**Three client kinds.** The one central client; a client that registered itself at `POST /mcp/oauth/register`; and a client whose `client_id` is the HTTPS URL of its Client ID Metadata Document (draft-ietf-oauth-client-id-metadata-document). The last is recognised by its `https://` prefix, which no issued id carries. Its URL must have a host and a path other than `/`, no dot segment, query, fragment or userinfo, and at most 512 characters, and it must be spelled the way a URL parser writes it back (`new URL(id).href === id`: a lower-case host, no `:443`, no escape the parser rewrites), so the id a grant is stored under is the only spelling of it. On a cache miss the server fetches the document: `GET`, no redirects followed, 5 s, at most 5,120 bytes, `200` with a JSON content type, from a public address only, connecting to the exact address it checked. The document must name this URL as its `client_id`, list its `redirect_uris` and be a public client (`token_endpoint_auth_method` absent or `none`). A valid document is cached for its `Cache-Control: max-age`, clamped to 5 min \u2026 24 h (1 h without one); a failed fetch caches nothing and aborts with `invalid_client` and the cause. The fetches of one address share a bucket of 5 and one more a minute \u2014 a cache hit spends nothing \u2014 and a refused fetch is `invalid_client` too, answered in the handler rather than by a preHandler, which is why `rateLimited` is `false`. \n\n`redirect_uri` is matched exactly. The loopback-port wildcard of RFC 8252 \xA77.3 applies to the central client, whose URIs are configured ahead of time, and to a metadata-document client, whose static document cannot name the port a native client binds: a loopback `http` URI there may differ from a listed one in its port only. A client that registered itself seconds ago can name the port it bound, so it gets no wildcard. Nothing about the person is decided here \u2014 the next card asks for an email address, or a passkey, and the steps after it resolve the account; this route knows only the client."
|
|
11530
11530
|
},
|
|
11531
11531
|
{
|
|
11532
11532
|
method: "GET",
|
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.1.0
|
|
416
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
419
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
422
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
425
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
648
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
736
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
756
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
794
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
1182
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
1280
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
1700
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
2056
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
2138
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
2241
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
2244
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
2247
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
2251
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
2257
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
2566
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
2702
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
2733
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
2778
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
2781
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
2784
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
2795
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
3135
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
3138
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
3208
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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.1.0
|
|
4431
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.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,
|
|
@@ -4467,7 +4467,7 @@ var typeDefinition = z20.discriminatedUnion("kind", [
|
|
|
4467
4467
|
})
|
|
4468
4468
|
]);
|
|
4469
4469
|
|
|
4470
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
4470
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/jobs.js
|
|
4471
4471
|
import { z as z21 } from "zod";
|
|
4472
4472
|
var jobState = z21.enum(["running", "unknown", "succeeded", "failed", "cancelled", "lost"]);
|
|
4473
4473
|
var reportedJobState = jobState.exclude(["unknown"]);
|
|
@@ -4704,7 +4704,7 @@ var jobRunSummary = z21.object({
|
|
|
4704
4704
|
since_ms: z21.number().int().nonnegative()
|
|
4705
4705
|
});
|
|
4706
4706
|
|
|
4707
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
4707
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/protocol.js
|
|
4708
4708
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
4709
4709
|
var MAX_PATIENCE_MS = 12e4;
|
|
4710
4710
|
var MIN_PATIENCE_MS = 1e3;
|
|
@@ -5103,11 +5103,11 @@ var bridgeCameraState = z22.object({
|
|
|
5103
5103
|
request_id: z22.string().min(1).max(64).nullable()
|
|
5104
5104
|
});
|
|
5105
5105
|
|
|
5106
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
5106
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/config-issues.js
|
|
5107
5107
|
var EXPOSURE_SECTIONS = ["datapoints", "actions", "services", "publishers", "cameras"];
|
|
5108
5108
|
var EXPOSURE_SECTION_NAMES = new Set(EXPOSURE_SECTIONS);
|
|
5109
5109
|
|
|
5110
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
5110
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/org-roles.js
|
|
5111
5111
|
import { z as z23 } from "zod";
|
|
5112
5112
|
var roleName = z23.string().trim().min(1).max(ROLE_NAME_MAX);
|
|
5113
5113
|
var referencePlace = z23.object({
|
|
@@ -5246,7 +5246,7 @@ var putRoleDefaultsRequest = z23.object({
|
|
|
5246
5246
|
})
|
|
5247
5247
|
}).strict();
|
|
5248
5248
|
|
|
5249
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
5249
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/rest.js
|
|
5250
5250
|
import { z as z24 } from "zod";
|
|
5251
5251
|
var robot2 = z24.object({
|
|
5252
5252
|
id: z24.uuid().meta({
|
|
@@ -6054,19 +6054,19 @@ var slugUsageResponse = z24.object({
|
|
|
6054
6054
|
alert_count: z24.number().int().nonnegative()
|
|
6055
6055
|
});
|
|
6056
6056
|
|
|
6057
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6057
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/realtime.js
|
|
6058
6058
|
import { z as z30 } from "zod";
|
|
6059
6059
|
|
|
6060
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6060
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/client-auth.js
|
|
6061
6061
|
import { z as z28 } from "zod";
|
|
6062
6062
|
|
|
6063
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6063
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/apps.js
|
|
6064
6064
|
import { z as z27 } from "zod";
|
|
6065
6065
|
|
|
6066
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6066
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-rights.js
|
|
6067
6067
|
import { z as z26 } from "zod";
|
|
6068
6068
|
|
|
6069
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6069
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections.js
|
|
6070
6070
|
import { z as z25 } from "zod";
|
|
6071
6071
|
var COLLECTIONS_FORMAT_VERSION = 1;
|
|
6072
6072
|
var COLLECTION_LIMITS = {
|
|
@@ -6244,7 +6244,7 @@ var collectionsDocument = z25.object({
|
|
|
6244
6244
|
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
6245
|
}).strict().meta({ description: "The data model of an app: its collections, their fields, and who may use them." });
|
|
6246
6246
|
|
|
6247
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6247
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-rights.js
|
|
6248
6248
|
var records = z26.union([z26.literal("all"), z26.literal("own"), z26.literal(false)]);
|
|
6249
6249
|
var roleCollectionRights = z26.object({
|
|
6250
6250
|
collection: collectionKey.meta({ description: "The collection's key." }),
|
|
@@ -6263,7 +6263,7 @@ var roleCollectionRights = z26.object({
|
|
|
6263
6263
|
})
|
|
6264
6264
|
}).meta({ description: "What one role may do with the records of one collection." });
|
|
6265
6265
|
|
|
6266
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6266
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/apps.js
|
|
6267
6267
|
var appIdentifier = slug;
|
|
6268
6268
|
var app2 = z27.object({
|
|
6269
6269
|
id: z27.uuid().meta({
|
|
@@ -6502,7 +6502,7 @@ var effectiveRightsResponse = z27.object({
|
|
|
6502
6502
|
})
|
|
6503
6503
|
});
|
|
6504
6504
|
|
|
6505
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6505
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/client-auth.js
|
|
6506
6506
|
var clientLoginRequest = z28.object({
|
|
6507
6507
|
app_identifier: appIdentifier.meta({
|
|
6508
6508
|
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 +6765,7 @@ var clientIdentity = z28.object({
|
|
|
6765
6765
|
})
|
|
6766
6766
|
});
|
|
6767
6767
|
|
|
6768
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6768
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-records.js
|
|
6769
6769
|
import { z as z29 } from "zod";
|
|
6770
6770
|
var timestamp = z29.iso.datetime();
|
|
6771
6771
|
var count3 = z29.number().int().min(0);
|
|
@@ -6912,7 +6912,7 @@ var collectionDefinitionsResponse = z29.object({
|
|
|
6912
6912
|
}))
|
|
6913
6913
|
}).meta({ description: "The collections the caller may read, with their field definitions and the caller's rights." });
|
|
6914
6914
|
|
|
6915
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
6915
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/realtime.js
|
|
6916
6916
|
var clientAuth = z30.object({
|
|
6917
6917
|
type: z30.literal("auth"),
|
|
6918
6918
|
token: z30.string().min(1)
|
|
@@ -7242,7 +7242,7 @@ var collectionsSchemaPublished = z30.object({
|
|
|
7242
7242
|
version: z30.number().int().min(1).meta({ description: "The version that is in force now." })
|
|
7243
7243
|
}).strict().meta({ description: "A new schema version is in force for the app." });
|
|
7244
7244
|
|
|
7245
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7245
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/feedback.js
|
|
7246
7246
|
import { z as z31 } from "zod";
|
|
7247
7247
|
var FEEDBACK_KINDS = ["idea", "problem", "question", "other"];
|
|
7248
7248
|
var feedbackKind = z31.enum(FEEDBACK_KINDS);
|
|
@@ -7267,7 +7267,7 @@ var feedbackResponse = z31.object({
|
|
|
7267
7267
|
})
|
|
7268
7268
|
}).strict();
|
|
7269
7269
|
|
|
7270
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7270
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/support.js
|
|
7271
7271
|
import { z as z32 } from "zod";
|
|
7272
7272
|
var supportSessionInfo = z32.object({
|
|
7273
7273
|
session_id: z32.uuid().meta({
|
|
@@ -7323,7 +7323,7 @@ var supportRenewFailRefusal = z32.union([
|
|
|
7323
7323
|
]);
|
|
7324
7324
|
var authMeSupportResponse = authMeResponse.extend({ support: supportSessionInfo.optional() });
|
|
7325
7325
|
|
|
7326
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7326
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/client-robots.js
|
|
7327
7327
|
import { z as z33 } from "zod";
|
|
7328
7328
|
var clientRobotListItem = z33.object({
|
|
7329
7329
|
...robot2.shape,
|
|
@@ -7340,7 +7340,7 @@ var clientRobotListResponse = z33.object({
|
|
|
7340
7340
|
})
|
|
7341
7341
|
});
|
|
7342
7342
|
|
|
7343
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7343
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/legal-acceptances.js
|
|
7344
7344
|
import { z as z34 } from "zod";
|
|
7345
7345
|
var legalAcceptanceCursor = z34.string().min(1).max(512).regex(/^[A-Za-z0-9_-]+$/);
|
|
7346
7346
|
var legalAcceptanceListQuery = z34.object({
|
|
@@ -7367,7 +7367,7 @@ var legalAcceptanceListResponse = z34.object({
|
|
|
7367
7367
|
next_cursor: legalAcceptanceCursor.nullable()
|
|
7368
7368
|
}).strict();
|
|
7369
7369
|
|
|
7370
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7370
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/audit.js
|
|
7371
7371
|
import { z as z35 } from "zod";
|
|
7372
7372
|
var auditActor = z35.object({
|
|
7373
7373
|
kind: z35.enum(["developer", "end_user", "app_user", "server_key", "bridge", "fleetless"]),
|
|
@@ -7509,7 +7509,7 @@ var auditListResponse = z35.object({
|
|
|
7509
7509
|
next_cursor: z35.number().int().positive().nullable()
|
|
7510
7510
|
});
|
|
7511
7511
|
|
|
7512
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7512
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/errors.js
|
|
7513
7513
|
import { z as z36 } from "zod";
|
|
7514
7514
|
var apiError = z36.object({
|
|
7515
7515
|
code: z36.string().min(1),
|
|
@@ -7606,7 +7606,7 @@ var roleCycleDetails = z36.object({
|
|
|
7606
7606
|
})
|
|
7607
7607
|
});
|
|
7608
7608
|
|
|
7609
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7609
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/oauth.js
|
|
7610
7610
|
import { z as z37 } from "zod";
|
|
7611
7611
|
var oauthErrorCode = z37.enum([
|
|
7612
7612
|
"invalid_request",
|
|
@@ -7849,13 +7849,13 @@ var oauthAuthorizeQuery = z37.object({
|
|
|
7849
7849
|
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
7850
|
});
|
|
7851
7851
|
|
|
7852
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7852
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-schema.js
|
|
7853
7853
|
import { z as z40 } from "zod";
|
|
7854
7854
|
|
|
7855
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7855
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-issues.js
|
|
7856
7856
|
import { z as z39 } from "zod";
|
|
7857
7857
|
|
|
7858
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7858
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-templates.js
|
|
7859
7859
|
import { z as z38 } from "zod";
|
|
7860
7860
|
var collectionJsonTemplateName = z38.enum(["pose2d", "point2d", "polygon2d", "range1d"]).meta({ description: "The name of a built-in JSON template: `pose2d`, `point2d`, `polygon2d` or `range1d`." });
|
|
7861
7861
|
function deepFreeze(value) {
|
|
@@ -7913,10 +7913,10 @@ var COLLECTION_JSON_TEMPLATES = deepFreeze({
|
|
|
7913
7913
|
}
|
|
7914
7914
|
});
|
|
7915
7915
|
|
|
7916
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7916
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-values.js
|
|
7917
7917
|
var TOO_DEEP_JSON = `The value nests arrays and objects more than ${COLLECTION_LIMITS.jsonDepth} levels deep.`;
|
|
7918
7918
|
|
|
7919
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7919
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-issues.js
|
|
7920
7920
|
var collectionsIssue = z39.object({
|
|
7921
7921
|
path: z39.string().min(1).meta({ description: "Where in the document, with dots between the keys: `collections.chargers.fields.location.to`." }),
|
|
7922
7922
|
code: z39.string().meta({ description: "A stable name for the kind of finding, for code to branch on." }),
|
|
@@ -7926,7 +7926,7 @@ var collectionsIssue = z39.object({
|
|
|
7926
7926
|
})
|
|
7927
7927
|
}).meta({ description: "One finding about a collections document." });
|
|
7928
7928
|
|
|
7929
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
7929
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-schema.js
|
|
7930
7930
|
var timestamp2 = z40.iso.datetime();
|
|
7931
7931
|
var count4 = z40.number().int().min(0);
|
|
7932
7932
|
var schemaVersion2 = z40.number().int().min(1);
|
|
@@ -8169,7 +8169,7 @@ var collectionsPurgeResponse = z40.object({
|
|
|
8169
8169
|
purged_at: timestamp2
|
|
8170
8170
|
}).meta({ description: "What a purge removed." });
|
|
8171
8171
|
|
|
8172
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
8172
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/collections-transfer.js
|
|
8173
8173
|
import { z as z41 } from "zod";
|
|
8174
8174
|
var IMPORT_ERRORS_LISTED = 1e3;
|
|
8175
8175
|
var count5 = z41.number().int().min(0);
|
|
@@ -8265,7 +8265,7 @@ var collectionExportQuery = z41.object({
|
|
|
8265
8265
|
}).optional()
|
|
8266
8266
|
}).strict();
|
|
8267
8267
|
|
|
8268
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
8268
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/controller-register.js
|
|
8269
8269
|
import { z as z42 } from "zod";
|
|
8270
8270
|
var text2 = (max) => z42.string().regex(/^\P{Cc}*$/u).trim().min(1).max(max);
|
|
8271
8271
|
var email = z42.string().regex(/^\P{Cc}*$/u).trim().email().max(320);
|
|
@@ -8305,10 +8305,10 @@ var controllerRegisterOrgResponse = z42.object({
|
|
|
8305
8305
|
details: controllerRegisterOrgRecord.nullable()
|
|
8306
8306
|
}).strict();
|
|
8307
8307
|
|
|
8308
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
8308
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/billing.js
|
|
8309
8309
|
import { z as z43 } from "zod";
|
|
8310
8310
|
|
|
8311
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
8311
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/iana-time-zones.js
|
|
8312
8312
|
var ianaTimeZones = [
|
|
8313
8313
|
"UTC",
|
|
8314
8314
|
"Etc/UTC",
|
|
@@ -8733,7 +8733,7 @@ var ianaTimeZones = [
|
|
|
8733
8733
|
"Pacific/Wallis"
|
|
8734
8734
|
];
|
|
8735
8735
|
|
|
8736
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
8736
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/billing.js
|
|
8737
8737
|
var countryCode = z43.string().regex(/^[A-Z]{2}$/);
|
|
8738
8738
|
var EU_COUNTRIES = [
|
|
8739
8739
|
"AT",
|
|
@@ -9609,7 +9609,7 @@ var purchaseIntentResponse = z43.union([
|
|
|
9609
9609
|
acceptedNoPaymentChange
|
|
9610
9610
|
]);
|
|
9611
9611
|
|
|
9612
|
-
// node_modules/.pnpm/@fleetless+contracts@18.1.0
|
|
9612
|
+
// node_modules/.pnpm/@fleetless+contracts@18.1.0/node_modules/@fleetless/contracts/dist/routes.js
|
|
9613
9613
|
var MCP_APP = MCP_APP_PATHS(":appIdentifier");
|
|
9614
9614
|
var APP_IDENTIFIER = {
|
|
9615
9615
|
name: "appIdentifier",
|
|
@@ -11490,7 +11490,7 @@ var ROUTES = [
|
|
|
11490
11490
|
response: null,
|
|
11491
11491
|
errors: [],
|
|
11492
11492
|
transport: "http",
|
|
11493
|
-
notes: "**The query schema is what this endpoint accepts, not what it parses**: the handler reads it parameter by parameter because the answers differ, and one parse would collapse them. Client and `redirect_uri` are validated first and a failure there never redirects, the same open-redirect discipline the app flow applies; those refusals are `oauthError`. \n\n**Three client kinds.** The one central client; a client that registered itself at `POST /mcp/oauth/register`; and a client whose `client_id` is the HTTPS URL of its Client ID Metadata Document (draft-ietf-oauth-client-id-metadata-document). The last is recognised by its `https://` prefix, which no issued id carries. Its URL must have a path other than `/`, no dot segment, query, fragment or userinfo, and at most 512 characters. On a cache miss the server fetches the document: `GET`, no redirects followed, 5 s, at most 5,120 bytes, `200` with a JSON content type, from a public address only, connecting to the exact address it checked. The document must name this URL as its `client_id`, list its `redirect_uris` and be a public client (`token_endpoint_auth_method` absent or `none`). A valid document is cached for its `Cache-Control: max-age`, clamped to 5 min \u2026 24 h (1 h without one); a failed fetch caches nothing and aborts with `invalid_client` and the cause. The fetches of one address share a bucket of 5 and one more a minute \u2014 a cache hit spends nothing \u2014 and a refused fetch is `invalid_client` too, answered in the handler rather than by a preHandler, which is why `rateLimited` is `false`. \n\n`redirect_uri` is matched exactly. The loopback-port wildcard of RFC 8252 \xA77.3 applies to the central client, whose URIs are configured ahead of time, and to a metadata-document client, whose static document cannot name the port a native client binds: a loopback `http` URI there may differ from a listed one in its port only. A client that registered itself seconds ago can name the port it bound, so it gets no wildcard. Nothing about the person is decided here \u2014 the next card asks for an email address, or a passkey, and the steps after it resolve the account; this route knows only the client."
|
|
11493
|
+
notes: "**The query schema is what this endpoint accepts, not what it parses**: the handler reads it parameter by parameter because the answers differ, and one parse would collapse them. Client and `redirect_uri` are validated first and a failure there never redirects, the same open-redirect discipline the app flow applies; those refusals are `oauthError`. \n\n**Three client kinds.** The one central client; a client that registered itself at `POST /mcp/oauth/register`; and a client whose `client_id` is the HTTPS URL of its Client ID Metadata Document (draft-ietf-oauth-client-id-metadata-document). The last is recognised by its `https://` prefix, which no issued id carries. Its URL must have a host and a path other than `/`, no dot segment, query, fragment or userinfo, and at most 512 characters, and it must be spelled the way a URL parser writes it back (`new URL(id).href === id`: a lower-case host, no `:443`, no escape the parser rewrites), so the id a grant is stored under is the only spelling of it. On a cache miss the server fetches the document: `GET`, no redirects followed, 5 s, at most 5,120 bytes, `200` with a JSON content type, from a public address only, connecting to the exact address it checked. The document must name this URL as its `client_id`, list its `redirect_uris` and be a public client (`token_endpoint_auth_method` absent or `none`). A valid document is cached for its `Cache-Control: max-age`, clamped to 5 min \u2026 24 h (1 h without one); a failed fetch caches nothing and aborts with `invalid_client` and the cause. The fetches of one address share a bucket of 5 and one more a minute \u2014 a cache hit spends nothing \u2014 and a refused fetch is `invalid_client` too, answered in the handler rather than by a preHandler, which is why `rateLimited` is `false`. \n\n`redirect_uri` is matched exactly. The loopback-port wildcard of RFC 8252 \xA77.3 applies to the central client, whose URIs are configured ahead of time, and to a metadata-document client, whose static document cannot name the port a native client binds: a loopback `http` URI there may differ from a listed one in its port only. A client that registered itself seconds ago can name the port it bound, so it gets no wildcard. Nothing about the person is decided here \u2014 the next card asks for an email address, or a passkey, and the steps after it resolve the account; this route knows only the client."
|
|
11494
11494
|
},
|
|
11495
11495
|
{
|
|
11496
11496
|
method: "GET",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fleetless/sdk",
|
|
3
|
-
"version": "5.2.0
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "The official TypeScript SDK for Fleetless client apps — a ROS 2 robot as a REST and realtime API, cameras, jobs, and the app's own user accounts, federated sign-in and MCP consent.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"zod": "^4.0.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@fleetless/contracts": "18.1.0
|
|
79
|
+
"@fleetless/contracts": "18.1.0",
|
|
80
80
|
"@types/node": "^22.20.1",
|
|
81
81
|
"tsup": "^8.3.0",
|
|
82
82
|
"typedoc": "0.28.20",
|