@fleetless/contracts 13.3.0 → 15.0.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 +304 -0
- package/artifacts/openapi.json +20156 -10513
- package/artifacts/routes.json +1429 -292
- package/artifacts/schema/access-warning.schema.json +51 -0
- package/artifacts/schema/action-config.schema.json +35 -0
- package/artifacts/schema/addon-catalogue-entry.schema.json +3 -1
- package/artifacts/schema/admin-plan-change-request.schema.json +26 -0
- package/artifacts/schema/app-access-response.schema.json +136 -0
- package/artifacts/schema/app-access.schema.json +80 -0
- package/artifacts/schema/app-deletion-summary.schema.json +15 -8
- package/artifacts/schema/app-invitation-list-response.schema.json +13 -6
- package/artifacts/schema/app-invitation.schema.json +5 -5
- package/artifacts/schema/app-list-response.schema.json +6 -6
- package/artifacts/schema/app-lock.schema.json +30 -0
- package/artifacts/schema/app-user-list-response.schema.json +13 -6
- package/artifacts/schema/app-user.schema.json +13 -6
- package/artifacts/schema/app.schema.json +6 -6
- package/artifacts/schema/asset-plan-limit-details.schema.json +3 -1
- package/artifacts/schema/auth-ok.schema.json +20 -6
- package/artifacts/schema/camera-list-response.schema.json +1 -1
- package/artifacts/schema/client-identity.schema.json +21 -6
- package/artifacts/schema/cloud-config.schema.json +359 -5
- package/artifacts/schema/collection-actor.schema.json +35 -0
- package/artifacts/schema/collection-definitions-response.schema.json +612 -0
- package/artifacts/schema/collection-event.schema.json +216 -0
- package/artifacts/schema/collection-export-query.schema.json +56 -0
- package/artifacts/schema/collection-filter.schema.json +9 -0
- package/artifacts/schema/collection-import-preview.schema.json +143 -0
- package/artifacts/schema/collection-import-request.schema.json +105 -0
- package/artifacts/schema/collection-import-result.schema.json +38 -0
- package/artifacts/schema/collection-list-response.schema.json +119 -0
- package/artifacts/schema/collection-record-get-query.schema.json +12 -0
- package/artifacts/schema/collection-record-history-query.schema.json +35 -0
- package/artifacts/schema/collection-record-history-response.schema.json +389 -0
- package/artifacts/schema/collection-record-list-query.schema.json +67 -0
- package/artifacts/schema/collection-record-list-response.schema.json +212 -0
- package/artifacts/schema/collection-record-restore-request.schema.json +14 -0
- package/artifacts/schema/collection-record-write.schema.json +31 -0
- package/artifacts/schema/collection-record.schema.json +180 -0
- package/artifacts/schema/collection-revision.schema.json +295 -0
- package/artifacts/schema/collection-subscribe-error.schema.json +31 -0
- package/artifacts/schema/collection-subscribe.schema.json +48 -0
- package/artifacts/schema/collection-subscribed.schema.json +22 -0
- package/artifacts/schema/collection-summary.schema.json +92 -0
- package/artifacts/schema/collection-unsubscribe.schema.json +22 -0
- package/artifacts/schema/collections-access-change.schema.json +34 -0
- package/artifacts/schema/collections-document.schema.json +732 -0
- package/artifacts/schema/collections-draft-response.schema.json +845 -0
- package/artifacts/schema/collections-effect.schema.json +384 -0
- package/artifacts/schema/collections-issue.schema.json +36 -0
- package/artifacts/schema/collections-publish-request.schema.json +18 -0
- package/artifacts/schema/collections-publish-response.schema.json +450 -0
- package/artifacts/schema/collections-purge-preview.schema.json +60 -0
- package/artifacts/schema/collections-purge-request.schema.json +27 -0
- package/artifacts/schema/collections-purge-response.schema.json +30 -0
- package/artifacts/schema/collections-restore-preview-query.schema.json +20 -0
- package/artifacts/schema/collections-restore-preview.schema.json +581 -0
- package/artifacts/schema/collections-restore-request.schema.json +27 -0
- package/artifacts/schema/collections-restore-response.schema.json +455 -0
- package/artifacts/schema/collections-schema-preview.schema.json +519 -0
- package/artifacts/schema/collections-schema-published.schema.json +22 -0
- package/artifacts/schema/collections-version-response.schema.json +869 -0
- package/artifacts/schema/collections-version-summary.schema.json +139 -0
- package/artifacts/schema/collections-versions-response.schema.json +167 -0
- package/artifacts/schema/config-draft-response.schema.json +359 -5
- package/artifacts/schema/config-version-response.schema.json +359 -5
- package/artifacts/schema/confirmation-required-details.schema.json +13 -0
- package/artifacts/schema/create-app-invitation-request.schema.json +4 -4
- package/artifacts/schema/create-app-user-request.schema.json +4 -4
- package/artifacts/schema/create-org-role-request.schema.json +33 -0
- package/artifacts/schema/dangling-reference.schema.json +130 -0
- package/artifacts/schema/datapoint-config.schema.json +35 -0
- package/artifacts/schema/datapoint-list-response.schema.json +2 -2
- package/artifacts/schema/effective-capability.schema.json +104 -0
- package/artifacts/schema/effective-rights-query.schema.json +19 -0
- package/artifacts/schema/effective-rights-response.schema.json +396 -0
- package/artifacts/schema/effective-robot-rights.schema.json +266 -0
- package/artifacts/schema/invoke-or-service-response.schema.json +1 -1
- package/artifacts/schema/invoke-response.schema.json +1 -1
- package/artifacts/schema/journal-intent-v2-body.schema.json +74 -0
- package/artifacts/schema/journal-intent-v2.schema.json +84 -0
- package/artifacts/schema/journal-replay-receipt-body.schema.json +1 -0
- package/artifacts/schema/journal-replay-receipt.schema.json +1 -0
- package/artifacts/schema/mcp-robot-datasheet.schema.json +2 -2
- package/artifacts/schema/org-plan.schema.json +29 -1
- package/artifacts/schema/org-quota-usage-counts.schema.json +18 -0
- package/artifacts/schema/org-quota-usage.schema.json +47 -1
- package/artifacts/schema/org-quotas.schema.json +29 -1
- package/artifacts/schema/org-role-list-response.schema.json +206 -0
- package/artifacts/schema/org-role.schema.json +59 -0
- package/artifacts/schema/patch-app-user-request.schema.json +4 -4
- package/artifacts/schema/patch-org-role-request.schema.json +38 -0
- package/artifacts/schema/plan-catalogue-entry.schema.json +29 -1
- package/artifacts/schema/plan-change-decision-status-response.schema.json +29 -1
- package/artifacts/schema/plan-limit-details.schema.json +3 -1
- package/artifacts/schema/plan-limits.schema.json +29 -1
- package/artifacts/schema/plan-overrides.schema.json +26 -0
- package/artifacts/schema/publish-config-response.schema.json +48 -1
- package/artifacts/schema/publisher-config.schema.json +35 -0
- package/artifacts/schema/put-collections-draft-request.schema.json +16 -0
- package/artifacts/schema/put-role-defaults-request.schema.json +127 -0
- package/artifacts/schema/record-changed-details.schema.json +16 -0
- package/artifacts/schema/record-referenced-details.schema.json +35 -0
- package/artifacts/schema/reference-invalid-details.schema.json +25 -0
- package/artifacts/schema/reference-place.schema.json +112 -0
- package/artifacts/schema/rename-slug-response.schema.json +4 -3
- package/artifacts/schema/required-missing-details.schema.json +19 -0
- package/artifacts/schema/robot-config-doc.schema.json +359 -5
- package/artifacts/schema/robot-deletion-summary.schema.json +33 -1
- package/artifacts/schema/role-collection-rights.schema.json +82 -0
- package/artifacts/schema/role-cycle-details.schema.json +18 -0
- package/artifacts/schema/role-defaults-response.schema.json +59 -0
- package/artifacts/schema/role-rename-preview.schema.json +147 -0
- package/artifacts/schema/service-config.schema.json +35 -0
- package/artifacts/schema/slug-usage-response.schema.json +4 -3
- package/artifacts/schema/update-app-request.schema.json +0 -12
- package/dist/app-users.d.ts +11 -8
- package/dist/app-users.js +18 -10
- package/dist/apps.d.ts +258 -71
- package/dist/apps.js +215 -151
- package/dist/audit.d.ts +35 -5
- package/dist/audit.js +40 -2
- package/dist/billing.d.ts +10 -10
- package/dist/client-auth.d.ts +5 -2
- package/dist/client-auth.js +11 -3
- package/dist/client-robots.d.ts +1 -1
- package/dist/client-robots.js +1 -1
- package/dist/collections-issues.d.ts +67 -0
- package/dist/collections-issues.js +340 -0
- package/dist/collections-records.d.ts +562 -0
- package/dist/collections-records.js +525 -0
- package/dist/collections-rights.d.ts +17 -0
- package/dist/collections-rights.js +41 -0
- package/dist/collections-schema.d.ts +1064 -0
- package/dist/collections-schema.js +386 -0
- package/dist/collections-templates.d.ts +55 -0
- package/dist/collections-templates.js +137 -0
- package/dist/collections-transfer.d.ts +101 -0
- package/dist/collections-transfer.js +206 -0
- package/dist/collections-values.d.ts +67 -0
- package/dist/collections-values.js +284 -0
- package/dist/collections.d.ts +568 -0
- package/dist/collections.js +332 -0
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/config-issues.d.ts +1 -1
- package/dist/config-issues.js +1 -1
- package/dist/config.d.ts +78 -12
- package/dist/config.js +109 -15
- package/dist/errors.d.ts +63 -5
- package/dist/errors.js +152 -24
- package/dist/index.d.ts +40 -14
- package/dist/index.js +27 -7
- package/dist/journal-intents.d.ts +30 -0
- package/dist/journal-intents.js +3 -0
- package/dist/legal-acceptances.d.ts +2 -2
- package/dist/mcp.d.ts +5 -37
- package/dist/mcp.js +4 -14
- package/dist/org-roles.d.ts +186 -0
- package/dist/org-roles.js +199 -0
- package/dist/plans.d.ts +25 -7
- package/dist/plans.js +21 -1
- package/dist/protocol.d.ts +19 -1
- package/dist/realtime.d.ts +172 -3
- package/dist/realtime.js +164 -1
- package/dist/rest.d.ts +104 -53
- package/dist/rest.js +79 -55
- package/dist/rights.d.ts +197 -0
- package/dist/rights.js +396 -0
- package/dist/routes.d.ts +1 -1
- package/dist/routes.js +675 -150
- package/package.json +1 -1
- package/artifacts/schema/mcp-role-preview-response.schema.json +0 -134
- package/artifacts/schema/put-robot-details-request.schema.json +0 -41
- package/artifacts/schema/put-robot-details-response.schema.json +0 -43
- package/artifacts/schema/robot-details-doc.schema.json +0 -33
- package/artifacts/schema/role-delete-query.schema.json +0 -13
- package/artifacts/schema/role-in-use-details.schema.json +0 -28
- package/artifacts/schema/role-list-response.schema.json +0 -48
- package/artifacts/schema/role-permissions.schema.json +0 -61
- package/artifacts/schema/role-rename-request.schema.json +0 -16
- package/artifacts/schema/role.schema.json +0 -35
package/dist/index.d.ts
CHANGED
|
@@ -13,17 +13,17 @@ export { legalOfferListQuery, legalOfferSummary, legalOfferListResponse, legalOf
|
|
|
13
13
|
export type { LegalOfferListQuery, LegalOfferSummary, LegalOfferListResponse, LegalOfferDisplayRequest, LegalOfferDecisionRequest, LegalOfferDecisionLookupQuery, LegalOfferDecisionSnapshot, LegalOfferDisplayResponse, LegalOfferDecisionResult, LegalOfferConflictDetails, } from './legal-offers.js';
|
|
14
14
|
export { SLUG_RULE, ROS_NAME_RULE, ROS_TYPE_NAME_RULE, FIELD_PATH_RULE, slug, rosName, rosTypeName, fieldPath, wireSeqCursor, wireTimestampMs, applyErrorKind, applyError, } from './common.js';
|
|
15
15
|
export type { ApplyErrorKind, ApplyError } from './common.js';
|
|
16
|
-
export { MCP_PROTOCOL_VERSION, MCP_ENDPOINT_PATH, mcpAppEndpointPath, MCP_APP_PATHS, MCP_TOOL_NAME_MAX, MCP_ASSET_LINK_PATH, MCP_ASSET_LINK_TTL_MS, mcpToolNamePattern, mcpToolKind, mcpExposure, mcpCapabilities, mcpRobotDatasheet,
|
|
17
|
-
export type { McpAppPaths, McpToolKind, McpExposure, McpCapabilities, McpRobotDatasheet,
|
|
16
|
+
export { MCP_PROTOCOL_VERSION, MCP_ENDPOINT_PATH, mcpAppEndpointPath, MCP_APP_PATHS, MCP_TOOL_NAME_MAX, MCP_ASSET_LINK_PATH, MCP_ASSET_LINK_TTL_MS, mcpToolNamePattern, mcpToolKind, mcpExposure, mcpCapabilities, mcpRobotDatasheet, } from './mcp.js';
|
|
17
|
+
export type { McpAppPaths, McpToolKind, McpExposure, McpCapabilities, McpRobotDatasheet, } from './mcp.js';
|
|
18
18
|
export { PROTOCOL_VERSION, PROTOCOL_VERSIONS, PROTOCOL_SUNSET_DAYS, LATEST_BRIDGE_VERSION, protocolStatus, minimumProtocolVersion, sunsetOf, statusFromTable, bridgeHello, cloudHelloOk, cloudHelloError, cloudPing, bridgePong, bridgeLinkMode, datapointFrame, bridgeState, cloudConfig, bridgeConfigApplied, cloudIntrospectRequest, bridgeIntrospect, cloudTypeRequest, bridgeTypeDefinitions, cloudInvoke, cloudCancel, CANCEL_RETURN_CODES, cancelReturnCode, bridgeCancelResultEntry, bridgeCancelResult, cloudPublish, bridgeJobUpdate, bridgeJobLost, cloudJobQuery, bridgeJobStatusEntry, bridgeJobStatus, snapshotHeader, cloudCameraStart, cloudCameraStop, bridgeCameraState, SNAPSHOT_MAX_BYTES, CLOSE_ROBOT_DELETED, CLOSE_TOKEN_ROTATED, bridgeAssetsAvailable, cloudAssetRequest, bridgeAssetProgress, activeJob, DEFAULT_PATIENCE_MS, MAX_PATIENCE_MS, MIN_PATIENCE_MS, JOB_HEARTBEAT_INTERVAL_MS, JOB_HEARTBEAT_TIMEOUT_MS, JOB_OFFLINE_GRACE_MS, } from './protocol.js';
|
|
19
19
|
export type { ProtocolVersionEntry, ProtocolStatus, BridgeHello, CloudHelloOk, CloudHelloError, CloudPing, BridgePong, BridgeLinkMode, DatapointFrame, BridgeState, CloudConfig, BridgeConfigApplied, CloudIntrospectRequest, BridgeIntrospect, CloudTypeRequest, BridgeTypeDefinitions, CloudInvoke, CloudCancel, CancelReturnCode, BridgeCancelResultEntry, BridgeCancelResult, CloudPublish, BridgeJobUpdate, BridgeJobLost, CloudJobQuery, BridgeJobStatusEntry, BridgeJobStatus, SnapshotHeader, CloudCameraStart, CloudCameraStop, BridgeCameraState, ActiveJob, BridgeAssetsAvailable, CloudAssetRequest, BridgeAssetProgress, } from './protocol.js';
|
|
20
20
|
export { jobState, reportedJobState, jobOrigin, job, jobEvent, busyDetails, publisherBusyDetails, jobQueueFullDetails } from './jobs.js';
|
|
21
21
|
export type { JobState, ReportedJobState, JobOrigin, Job, JobEvent, BusyDetails, PublisherBusyDetails, JobQueueFullDetails, } from './jobs.js';
|
|
22
22
|
export { JOB_RUN_PAGE_MAX, JOB_RUN_RETENTION_DAYS, jobActor, jobRunKind, jobRun, jobRunQuery, jobRunListResponse, jobRunSummaryQuery, jobRunSummary, } from './jobs.js';
|
|
23
23
|
export type { JobActor, JobRunKind, JobRun, JobRunQuery, JobRunListResponse, JobRunSummary } from './jobs.js';
|
|
24
|
-
export { FLEETLESS_FORMAT_VERSION, RESERVED_SLUGS, parameterType, parameterSpec, parameterMap, serviceDescription, parameterDescription, messageTemplate, messageRef, messageBody, messageMap, PLACEHOLDER_RE, placeholderNames, actionConfig, serviceConfig, publisherConfig, cameraConfig, alertCondition, datapointAlert, rateThrottleHz, datapointNumeric, datapointRetention, datapointChart, datapointConfig, lowBandwidthSection, LOW_BANDWIDTH_DEFAULTS, robotConfigDoc, validationIssue, configState, snapshotIntervalSeconds, ALERT_SEVERITY_DEFAULT, ALERT_ENABLED_DEFAULT, RETENTION_INTERVAL_SECONDS_DEFAULT, CHART_WINDOW_MINUTES_DEFAULT, cameraSource, cameraCredentials, } from './config.js';
|
|
24
|
+
export { FLEETLESS_FORMAT_VERSION, RESERVED_SLUGS, parameterType, parameterSpec, parameterMap, serviceDescription, parameterDescription, messageTemplate, messageRef, messageBody, messageMap, PLACEHOLDER_RE, placeholderNames, actionConfig, serviceConfig, publisherConfig, cameraConfig, alertCondition, datapointAlert, rateThrottleHz, datapointNumeric, datapointRetention, datapointChart, datapointConfig, lowBandwidthSection, LOW_BANDWIDTH_DEFAULTS, robotConfigDoc, accessRule, accessSection, validationIssue, configState, snapshotIntervalSeconds, ALERT_SEVERITY_DEFAULT, ALERT_ENABLED_DEFAULT, RETENTION_INTERVAL_SECONDS_DEFAULT, CHART_WINDOW_MINUTES_DEFAULT, cameraSource, cameraCredentials, } from './config.js';
|
|
25
25
|
export type { CameraSource } from './config.js';
|
|
26
|
-
export type { ParameterType, ParameterSpec, ActionConfig, ServiceConfig, PublisherConfig, CameraConfig, CameraCredentials, AlertCondition, DatapointAlert, DatapointNumeric, DatapointRetention, DatapointChart, DatapointConfig, LowBandwidthSection, RobotConfigDoc, ValidationIssue, ConfigState, } from './config.js';
|
|
26
|
+
export type { ParameterType, ParameterSpec, ActionConfig, ServiceConfig, PublisherConfig, CameraConfig, CameraCredentials, AlertCondition, DatapointAlert, DatapointNumeric, DatapointRetention, DatapointChart, DatapointConfig, LowBandwidthSection, RobotConfigDoc, AccessRule, AccessSection, ValidationIssue, ConfigState, } from './config.js';
|
|
27
27
|
/**
|
|
28
28
|
* The one account of what is wrong with a configuration document, shared by
|
|
29
29
|
* every layer that reports on one. See `config-issues.ts`'s header for why a
|
|
@@ -31,24 +31,34 @@ export type { ParameterType, ParameterSpec, ActionConfig, ServiceConfig, Publish
|
|
|
31
31
|
*/
|
|
32
32
|
export { DOCUMENT_ROOT_PATH, EXPOSURE_SECTIONS, schemaIssues, formatPath, splitFormatPath, configSchemaHash, } from './config-issues.js';
|
|
33
33
|
export type { SchemaIssue, ExposureSection } from './config-issues.js';
|
|
34
|
+
/**
|
|
35
|
+
* Roles and the rights a document resolves to — one implementation for the
|
|
36
|
+
* cloud, the console editor and anything else that has to answer "who may use
|
|
37
|
+
* this?" the same way. See `rights.ts`.
|
|
38
|
+
*/
|
|
39
|
+
export { ROLE_KEY_PATTERN, ROLE_KEY_RULE, roleKey, roleRef, ACCESS_KINDS, accessKind, ENTRY_KINDS, MAX_ORG_ROLES, ROLE_NAME_MAX, SEED_ROLES, SEED_DEFAULTS, matchRosGlob, roleClosure, roleSatisfies, listExposures, requirementOf, findCycle, collectRoleRefs, roleIssues, } from './rights.js';
|
|
40
|
+
export type { RoleKey, RoleRef, RoleRefUse, AccessKind, EntryKind, RoleNode, RoleGraph, RoleDefaults, RequirementSource, Requirement, ExposureRef, RightsTarget, } from './rights.js';
|
|
41
|
+
/** Organization roles on the wire: the role list, create and change, the rename preview and the organization's defaults. See `org-roles.ts`. */
|
|
42
|
+
export { referencePlace, orgRole, danglingReference, orgRoleListResponse, createOrgRoleRequest, patchOrgRoleRequest, roleRenamePreview, roleDefaultsResponse, putRoleDefaultsRequest, } from './org-roles.js';
|
|
43
|
+
export type { ReferencePlace, OrgRole, DanglingReference, OrgRoleListResponse, CreateOrgRoleRequest, PatchOrgRoleRequest, RoleRenamePreview, RoleDefaultsResponse, PutRoleDefaultsRequest, } from './org-roles.js';
|
|
34
44
|
export { rosGraphEntry, rosGraph, typeField, typeDefinition, parameterFieldsOf } from './introspection.js';
|
|
35
45
|
export type { RosGraphEntry, RosGraph, TypeField, TypeDefinition } from './introspection.js';
|
|
36
|
-
export { robot, patchRobotResponse, robotToken, createRobotRequest, createRobotResponse, robotTokenRotateResponse, jointStatePutRequest, jointStatePutResponse, exposureCounts, protocolStatusValue, robotListItem, robotListResponse, datapointValue, robotDetailResponse, configAuthor, configDraftResponse, putConfigDraftRequest, publishConfigResponse, configVersionsResponse, configVersionResponse, introspectionResponse, typesResponse, fetchTypesRequest, fetchTypesResponse, datapointDescriptor, datapointListResponse,
|
|
46
|
+
export { robot, patchRobotResponse, robotToken, createRobotRequest, createRobotResponse, robotTokenRotateResponse, jointStatePutRequest, jointStatePutResponse, exposureCounts, protocolStatusValue, robotListItem, robotListResponse, datapointValue, robotDetailResponse, configAuthor, configDraftResponse, putConfigDraftRequest, publishConfigResponse, configVersionsResponse, configVersionResponse, introspectionResponse, typesResponse, fetchTypesRequest, fetchTypesResponse, datapointDescriptor, datapointListResponse, invokeRequest, invokeResponse, cancelRequest, recoverHeldJobRequest, recoverHeldJobResponse, releaseLiveQuery, serviceCallResponse, invokeOrServiceResponse, publishRequest, jobResponse, robotJobsResponse, rateLimitDetails, exposure, exposureListResponse, SNAPSHOT_HEADERS, ASSET_UPLOAD_HEADERS, cameraDescriptor, cameraListResponse, liveSessionResponse, snapshotMetaResponse, historyQuery, historySamplesResponse, historyBucketsResponse, historyResponse, orgQuotas, orgQuotaUsage, orgQuotaUsageCounts, robotDeletionSummary, RESOURCE_HEALTH_STATES, resourceHealthState, resourceHealthListResponse, orgHealthQuery, robotDeleteQuery, patchRobotRequest, renameSlugRequest, renameSlugResponse, slugUsageResponse, } from './rest.js';
|
|
37
47
|
export type { HistoryQuery, HistorySamplesResponse, HistoryResponse, HistoryBucketsResponse, OrgQuotas, OrgQuotaUsage, OrgQuotaUsageCounts, RobotDeletionSummary, ResourceHealthState, ResourceHealthListResponse, OrgHealthQuery, RobotDeleteQuery, PatchRobotRequest, RenameSlugRequest, RenameSlugResponse, SlugUsageResponse, } from './rest.js';
|
|
38
48
|
export { LATENCY_BUCKET_MS, BRIDGE_LATENCY_RETENTION_DAYS, MAX_LATENCY_BUCKETS_PER_RESPONSE, latencyBucket, robotLatencySeries, orgLatencyQuery, orgLatencyResponse, USAGE_WINDOW_MAX_DAYS, usageMetric, usageDay, orgUsageQuery, usageRow, orgUsageResponse, } from './rest.js';
|
|
39
49
|
export type { LatencyBucket, RobotLatencySeries, OrgLatencyResponse } from './rest.js';
|
|
40
50
|
export type { UsageMetric, OrgUsageQuery, UsageRow, OrgUsageResponse } from './rest.js';
|
|
41
|
-
export type { Robot, PatchRobotResponse, CreateRobotRequest, CreateRobotResponse, RobotTokenRotateResponse, JointStatePutRequest, JointStatePutResponse, ExposureCounts, ProtocolStatusValue, RobotListItem, RobotListResponse, DatapointValue, RobotDetailResponse, ConfigAuthor, ConfigDraftResponse, PutConfigDraftRequest, PublishConfigResponse, ConfigVersionsResponse, ConfigVersionResponse, IntrospectionResponse, TypesResponse, FetchTypesRequest, FetchTypesResponse, DatapointDescriptor, DatapointListResponse,
|
|
42
|
-
export { clientAuth, authOk, authError, clientInvoke, clientCancel, clientPublish, commandResult, errorFrame, clientSubscribe, clientUnsubscribe, subscribeError, datapointEvent, resourceHealthEvent, resourceHealthCleared, liveSessionEndReason, liveSessionEvent, ORG_EVENT_SAMPLE_INTERVAL_MS, ORG_EVENT_ORG_CEILING_PER_SECOND, ORG_EVENT_BUFFER_SIZE, ORG_EVENT_BUFFER_IDLE_MS, ORG_EVENT_DETAIL_MAX_BYTES, orgEventKind, orgEventSeverity, orgEvent, orgEventSubscribe, orgEventUnsubscribe, orgEventReplay, orgEventDropped, } from './realtime.js';
|
|
43
|
-
export type { ClientAuth, AuthOk, AuthError, ClientInvoke, ClientCancel, ClientPublish, CommandResult, ErrorFrame, ClientSubscribe, ClientUnsubscribe, SubscribeError, DatapointEvent, ResourceHealthEvent, ResourceHealthCleared, LiveSessionEndReason, LiveSessionEvent, OrgEventKind, OrgEventSeverity, OrgEvent, OrgEventSubscribe, OrgEventUnsubscribe, OrgEventReplay, OrgEventDropped, } from './realtime.js';
|
|
51
|
+
export type { Robot, PatchRobotResponse, CreateRobotRequest, CreateRobotResponse, RobotTokenRotateResponse, JointStatePutRequest, JointStatePutResponse, ExposureCounts, ProtocolStatusValue, RobotListItem, RobotListResponse, DatapointValue, RobotDetailResponse, ConfigAuthor, ConfigDraftResponse, PutConfigDraftRequest, PublishConfigResponse, ConfigVersionsResponse, ConfigVersionResponse, IntrospectionResponse, TypesResponse, FetchTypesRequest, FetchTypesResponse, DatapointDescriptor, DatapointListResponse, InvokeRequest, InvokeResponse, CancelRequest, RecoverHeldJobRequest, RecoverHeldJobResponse, ReleaseLiveQuery, ServiceCallResponse, InvokeOrServiceResponse, PublishRequest, JobResponse, RobotJobsResponse, RateLimitDetails, Exposure, ExposureListResponse, CameraDescriptor, CameraListResponse, LiveSessionResponse, SnapshotMetaResponse, } from './rest.js';
|
|
52
|
+
export { clientAuth, authOk, authError, clientInvoke, clientCancel, clientPublish, commandResult, errorFrame, clientSubscribe, clientUnsubscribe, subscribeError, datapointEvent, resourceHealthEvent, resourceHealthCleared, liveSessionEndReason, liveSessionEvent, ORG_EVENT_SAMPLE_INTERVAL_MS, ORG_EVENT_ORG_CEILING_PER_SECOND, ORG_EVENT_BUFFER_SIZE, ORG_EVENT_BUFFER_IDLE_MS, ORG_EVENT_DETAIL_MAX_BYTES, orgEventKind, orgEventSeverity, orgEvent, orgEventSubscribe, orgEventUnsubscribe, orgEventReplay, orgEventDropped, collectionSubscribe, collectionSubscribed, collectionUnsubscribe, collectionEvent, collectionSubscribeError, collectionsSchemaPublished, } from './realtime.js';
|
|
53
|
+
export type { ClientAuth, AuthOk, AuthError, ClientInvoke, ClientCancel, ClientPublish, CommandResult, ErrorFrame, ClientSubscribe, ClientUnsubscribe, SubscribeError, DatapointEvent, ResourceHealthEvent, ResourceHealthCleared, LiveSessionEndReason, LiveSessionEvent, OrgEventKind, OrgEventSeverity, OrgEvent, OrgEventSubscribe, OrgEventUnsubscribe, OrgEventReplay, OrgEventDropped, CollectionSubscribe, CollectionSubscribed, CollectionUnsubscribe, CollectionEvent, CollectionSubscribeError, CollectionsSchemaPublished, } from './realtime.js';
|
|
44
54
|
export { password, org, patchOrgResponse, sessionTokens, refreshRequest, WAITLIST_F1_TEXT_VERSION, waitlistRequest, USER_DISPLAY_NAME_MAX, orgAdminTier, fleetlessUser, fleetlessUserListResponse, createTeamInviteRequest, teamInvite, pendingTeamInvite, pendingTeamInviteListResponse, acceptTeamInviteRequest, patchFleetlessUserRequest, tierChangeRequest, mailStatus, tierRequiredDetails, passwordChangeRequest, idpIssuer, loginCode, totpCode, recoveryCode, recoveryCodesList, twoFactorSetupResponse, webauthnJson, webauthnOptionsResponse, developerPasskey, developerTwoFactor, createPasskeyRequest, createPasskeyResponse, renamePasskeyRequest, totpConfirmRequest, totpConfirmResponse, recoveryCodesResponse, authMeResponse, patchOrgRequest, patchAuthMeRequest, } from './identity.js';
|
|
45
55
|
export type { Org, PatchOrgResponse, SessionTokens, RefreshRequest, WaitlistRequest, OrgAdminTier, FleetlessUser, FleetlessUserListResponse, CreateTeamInviteRequest, TeamInvite, PendingTeamInvite, PendingTeamInviteListResponse, AcceptTeamInviteRequest, PatchFleetlessUserRequest, TierChangeRequest, MailStatus, TierRequiredDetails, PasswordChangeRequest, IdpIssuer, TwoFactorSetupResponse, WebauthnOptionsResponse, DeveloperPasskey, DeveloperTwoFactor, CreatePasskeyRequest, CreatePasskeyResponse, RenamePasskeyRequest, TotpConfirmRequest, TotpConfirmResponse, RecoveryCodesResponse, AuthMeResponse, PatchOrgRequest, PatchAuthMeRequest, } from './identity.js';
|
|
46
56
|
export { FEEDBACK_KINDS, FEEDBACK_MESSAGE_MAX, feedbackKind, feedbackRequest, feedbackResponse } from './feedback.js';
|
|
47
57
|
export type { FeedbackKind, FeedbackRequest, FeedbackResponse } from './feedback.js';
|
|
48
58
|
export { supportSessionInfo, supportTokenRequest, supportTokenResponse, supportRenewFailRequest, supportRenewFailRefusal, authMeSupportResponse } from './support.js';
|
|
49
59
|
export type { SupportSessionInfo, SupportTokenRequest, SupportTokenResponse, SupportRenewFailRequest, SupportRenewFailRefusal, AuthMeSupportResponse } from './support.js';
|
|
50
|
-
export { appIdentifier, app, appListResponse, appDeletionSummary, createAppRequest, updateAppRequest, serverKeyToken, serverKey, serverKeyListResponse, createServerKeyResponse,
|
|
51
|
-
export type { App, AppListResponse, AppDeletionSummary, CreateAppRequest, UpdateAppRequest, ServerKey, ServerKeyListResponse, CreateServerKeyResponse,
|
|
60
|
+
export { appIdentifier, app, appListResponse, appDeletionSummary, createAppRequest, updateAppRequest, serverKeyToken, serverKey, serverKeyListResponse, createServerKeyResponse, appLock, MAX_LOCK_SLUGS, appAccess, accessWarning, appAccessResponse, effectiveRightsQuery, effectiveCapability, effectiveRobotRights, effectiveRightsResponse, } from './apps.js';
|
|
61
|
+
export type { App, AppListResponse, AppDeletionSummary, CreateAppRequest, UpdateAppRequest, ServerKey, ServerKeyListResponse, CreateServerKeyResponse, AppLock, AppAccess, AccessWarning, AppAccessResponse, EffectiveRightsQuery, EffectiveCapability, EffectiveRobotRights, EffectiveRightsResponse, } from './apps.js';
|
|
52
62
|
export { clientLoginRequest, clientRefreshRequest, clientLogoutRequest, clientRegisterRequest, clientVerifyEmailRequest, clientResendVerificationRequest, clientPasswordResetRequest, clientPasswordResetConfirmRequest, clientAcceptInvitationRequest, CLIENT_OIDC_CALLBACK_PATH, clientProviderListQuery, clientProviderListResponse, clientOidcStartQuery, clientOidcCallbackQuery, clientOidcExchangeRequest, clientOidcErrorCode, clientMcpInteraction, clientMcpInteractionDecisionResponse, mcpConsentGrant, mcpConsentGrantListResponse, clientIdentity, clientLoginCodeRequest, clientLoginCodeVerifyRequest, twoFactorChallenge, clientSignInResult, clientTwoFactorVerifyRequest, clientTwoFactorSetupRequest, clientTwoFactorSetupConfirmRequest, clientTwoFactorSetupConfirmResponse, clientTwoFactorDisableRequest, } from './client-auth.js';
|
|
53
63
|
export type { ClientLoginRequest, ClientRefreshRequest, ClientLogoutRequest, ClientRegisterRequest, ClientVerifyEmailRequest, ClientResendVerificationRequest, ClientPasswordResetRequest, ClientPasswordResetConfirmRequest, ClientAcceptInvitationRequest, ClientProviderListQuery, ClientProviderListResponse, ClientOidcStartQuery, ClientOidcCallbackQuery, ClientOidcExchangeRequest, ClientOidcErrorCode, ClientMcpInteraction, ClientMcpInteractionDecisionResponse, McpConsentGrant, McpConsentGrantListResponse, ClientIdentity, ClientLoginCodeRequest, ClientLoginCodeVerifyRequest, TwoFactorChallenge, ClientSignInResult, ClientTwoFactorVerifyRequest, ClientTwoFactorSetupRequest, ClientTwoFactorSetupConfirmRequest, ClientTwoFactorSetupConfirmResponse, ClientTwoFactorDisableRequest, } from './client-auth.js';
|
|
54
64
|
export { clientRobotListItem, clientRobotListResponse } from './client-robots.js';
|
|
@@ -61,12 +71,12 @@ export { APP_USER_DISPLAY_NAME_MAX, APP_URL_PLACEHOLDERS, MAIL_TEMPLATE_VARIABLE
|
|
|
61
71
|
export type { AppUserStatus, AppUser, AppUserListResponse, CreateAppUserRequest, PatchAppUserRequest, CreateAppInvitationRequest, AppInvitation, PendingAppInvitation, AppInvitationListResponse, AppOidcProvider, AppOidcProviderListResponse, CreateAppOidcProviderRequest, PatchAppOidcProviderRequest, AppAuthConfig, AppSignInMethods, AppTwoFactorPolicy, AppHostedPages, HostedLogoShape, PutAppAuthRegistrationRequest, PutAppAuthSignInRequest, PutAppAuthUrlsRequest, PutAppAuthMcpRequest, PutAppAuthLookRequest, MailTemplateKind, AppMailTemplate, AppMailTemplateListResponse, PutAppMailTemplateRequest, MailTemplatePreviewRequest, MailTemplatePreviewResponse, MailTemplateProblemDetails, MailOutcome, } from './app-users.js';
|
|
62
72
|
export { assetKind, URDF_ASSET_NAME, asset, urdfCompleteness, assetListResponse, assetsClearResponse, missingAssetQuery, assetSyncRequest, assetSyncResponse, assetSyncState, assetSyncStatus, assetFailure, assetFailureKind, assetStoreRefusedDetails, assetSyncBusyDetails, ROBOT_ASSET_STORE_BYTES, ASSET_FILE_MAX_BYTES, } from './assets.js';
|
|
63
73
|
export type { AssetKind, Asset, UrdfCompleteness, AssetListResponse, AssetsClearResponse, MissingAssetQuery, AssetSyncRequest, AssetSyncResponse, AssetSyncState, AssetSyncStatus, AssetFailure, AssetFailureKind, AssetStoreRefusedDetails, AssetSyncBusyDetails, } from './assets.js';
|
|
64
|
-
export { auditActor, auditEvent, auditQuery, auditListResponse, AUDIT_CSV_COLUMNS, AUDIT_RETENTION_DAYS } from './audit.js';
|
|
65
|
-
export type { AuditActor, AuditEvent, AuditQuery, AuditListResponse } from './audit.js';
|
|
74
|
+
export { auditActor, auditEvent, auditQuery, auditListResponse, AUDIT_CSV_COLUMNS, AUDIT_RETENTION_DAYS, COLLECTION_AUDIT_ACTIONS } from './audit.js';
|
|
75
|
+
export type { AuditActor, AuditEvent, AuditQuery, AuditListResponse, CollectionAuditAction } from './audit.js';
|
|
66
76
|
export { alertRowCondition, alertSeverity, alertState, datapointAlertRow, alertListResponse, orgFiringAlertsResponse, orgAlertsQuery, datapointDisplay, putDatapointDisplayRequest, } from './alerts.js';
|
|
67
77
|
export type { AlertRowCondition, AlertSeverity, AlertState, DatapointAlertRow, AlertListResponse, OrgFiringAlertsResponse, OrgAlertsQuery, DatapointDisplay, PutDatapointDisplayRequest, } from './alerts.js';
|
|
68
|
-
export { apiError, parameterViolation, parameterInvalidDetails, cancelRejectedDetails, invalidCodeDetails, ERROR_CODES, planLimitDetails, assetPlanLimitDetails, planRequiredDetails, orgLockedDetails, fileTooLargeDetails, paymentProviderUnavailableDetails, billingDocumentsUnavailableDetails, } from './errors.js';
|
|
69
|
-
export type { ApiError, ParameterViolation, ParameterInvalidDetails, CancelRejectedDetails, InvalidCodeDetails, ErrorCode, PlanLimitDetails, AssetPlanLimitDetails, PlanRequiredDetails, OrgLockedDetails, FileTooLargeDetails, PaymentProviderUnavailableDetails, BillingDocumentsUnavailableDetails, } from './errors.js';
|
|
78
|
+
export { apiError, parameterViolation, parameterInvalidDetails, cancelRejectedDetails, invalidCodeDetails, ERROR_CODES, planLimitDetails, assetPlanLimitDetails, planRequiredDetails, orgLockedDetails, fileTooLargeDetails, paymentProviderUnavailableDetails, billingDocumentsUnavailableDetails, confirmationRequiredDetails, recordReferencedDetails, recordChangedDetails, referenceInvalidDetails, requiredMissingDetails, roleCycleDetails, } from './errors.js';
|
|
79
|
+
export type { ApiError, ParameterViolation, ParameterInvalidDetails, CancelRejectedDetails, InvalidCodeDetails, ErrorCode, PlanLimitDetails, AssetPlanLimitDetails, PlanRequiredDetails, OrgLockedDetails, FileTooLargeDetails, PaymentProviderUnavailableDetails, BillingDocumentsUnavailableDetails, ConfirmationRequiredDetails, RecordReferencedDetails, RecordChangedDetails, ReferenceInvalidDetails, RequiredMissingDetails, RoleCycleDetails, } from './errors.js';
|
|
70
80
|
export { oauthErrorCode, oauthError, oauthRedirectResponse, oauthCodeTokenRequest, oauthRefreshTokenRequest, oauthTokenRequest, oauthTokenResponse, redirectUri, codeChallengeMethod, oauthAuthorizeQuery, dynamicClientRegistrationRequest, MCP_DCR_MAX_REDIRECT_URIS, dynamicClientRegistrationResponse, authorizationServerMetadata, protectedResourceMetadata, } from './oauth.js';
|
|
71
81
|
export type { OauthErrorCode, OauthError, OauthRedirectResponse, OauthCodeTokenRequest, OauthRefreshTokenRequest, OauthTokenRequest, OauthTokenResponse, RedirectUri, OauthAuthorizeQuery, DynamicClientRegistrationRequest, DynamicClientRegistrationResponse, AuthorizationServerMetadata, ProtectedResourceMetadata, } from './oauth.js';
|
|
72
82
|
export { ROUTES, ROUTE_SECTIONS, IN_HANDLER_ROUTES, developerSignInRoutes } from './routes.js';
|
|
@@ -82,3 +92,19 @@ export { controllerRegisterAddress, controllerRegisterPrivacyContact, controller
|
|
|
82
92
|
export type { ControllerRegisterWrite, ControllerRegisterOrgResponse } from './controller-register.js';
|
|
83
93
|
export { purchaseBillingDetails, purchaseOperationKey, purchaseOperation, purchaseQuote, billingDecisionDisplayRequest, confirmationProof, billingDecisionAmounts, billingDecisionPeriod, billingDecisionSnapshot, billingDecisionDisplayResponse, planChangePrepareResponse, purchaseHoldReason, purchaseRefusalRule, purchaseIntent, purchaseIntentLookupQuery, purchaseIntentDraft, purchaseIntentPaymentStarted, purchaseIntentAcceptedWithoutPayment, purchaseIntentConfirmRequest, purchaseConflictDetails, invoicePayRequest, purchaseIntentResponse, vatDecision, viesPendingReason, } from './billing.js';
|
|
84
94
|
export type { PurchaseBillingDetails, PurchaseOperation, PurchaseQuote, PurchaseIntent, PurchaseIntentDraft, PurchaseIntentPaymentStarted, PurchaseIntentAcceptedWithoutPayment, BillingDecisionDisplayRequest, ConfirmationProof, BillingDecisionAmounts, BillingDecisionPeriod, BillingDecisionSnapshot, BillingDecisionDisplayResponse, PlanChangePrepareResponse, PurchaseIntentLookupQuery, PurchaseIntentConfirmRequest, PurchaseConflictDetails, InvoicePayRequest, PurchaseIntentResponse, ViesVerdict, ViesPendingReason, } from './billing.js';
|
|
95
|
+
export { COLLECTIONS_FORMAT_VERSION, COLLECTION_RESERVED_KEYS, COLLECTION_LIMITS, collectionKey, collectionBinding, collectionFieldType, collectionField, collectionAccessValue, collectionAccess, collectionDefinition, collectionsDocument, } from './collections.js';
|
|
96
|
+
export type { CollectionKey, CollectionBinding, CollectionFieldType, CollectionField, CollectionAccessValue, CollectionAccess, CollectionDefinition, CollectionsDocument, } from './collections.js';
|
|
97
|
+
export { roleCollectionRights } from './collections-rights.js';
|
|
98
|
+
export type { RoleCollectionRights } from './collections-rights.js';
|
|
99
|
+
export { collectionJsonTemplateName, COLLECTION_JSON_TEMPLATES, parseDisplayTemplate } from './collections-templates.js';
|
|
100
|
+
export type { CollectionJsonTemplateName, DisplayPlaceholder, DisplayTemplateParse } from './collections-templates.js';
|
|
101
|
+
export { checkCollectionValue, normalizeCollectionValue } from './collections-values.js';
|
|
102
|
+
export type { CollectionValueProblem, CollectionValueOptions } from './collections-values.js';
|
|
103
|
+
export { collectionsIssue, collectionsDocumentIssues, collectionsAccessWarnings } from './collections-issues.js';
|
|
104
|
+
export type { CollectionsIssue, CollectionsDocumentIssuesOptions } from './collections-issues.js';
|
|
105
|
+
export { COLLECTION_FILTER_OPS, COLLECTION_FILTER_SYSTEM_KEYS, collectionActor, collectionRecord, collectionFilter, parseCollectionFilter, parseCollectionSort, collectionRecordListQuery, collectionRecordGetQuery, collectionRecordListResponse, collectionRecordWrite, collectionRevision, collectionRecordHistoryQuery, collectionRecordHistoryResponse, collectionRecordRestoreRequest, collectionSummary, collectionListResponse, collectionDefinitionsResponse, } from './collections-records.js';
|
|
106
|
+
export type { CollectionActor, CollectionRecord, CollectionFilter, CollectionFilterOp, CollectionFilterNode, CollectionFilterIssue, CollectionFilterParse, CollectionSortField, CollectionSortParse, CollectionRecordListQuery, CollectionRecordGetQuery, CollectionRecordListResponse, CollectionRecordWrite, CollectionRevision, CollectionRecordHistoryQuery, CollectionRecordHistoryResponse, CollectionRecordRestoreRequest, CollectionSummary, CollectionListResponse, CollectionDefinitionsResponse, } from './collections-records.js';
|
|
107
|
+
export { collectionsEffect, collectionsAccessChange, collectionsSchemaPreview, collectionsDraftResponse, putCollectionsDraftRequest, collectionsPublishRequest, collectionsPublishResponse, collectionsVersionSummary, collectionsVersionsResponse, collectionsVersionResponse, collectionsRestorePreview, collectionsRestorePreviewQuery, collectionsRestoreRequest, collectionsRestoreResponse, collectionsPurgeRequest, collectionsPurgePreview, collectionsPurgeResponse, } from './collections-schema.js';
|
|
108
|
+
export type { CollectionsEffect, CollectionsAccessChange, CollectionsSchemaPreview, CollectionsDraftResponse, PutCollectionsDraftRequest, CollectionsPublishRequest, CollectionsPublishResponse, CollectionsVersionSummary, CollectionsVersionsResponse, CollectionsVersionResponse, CollectionsRestorePreview, CollectionsRestorePreviewQuery, CollectionsRestoreRequest, CollectionsRestoreResponse, CollectionsPurgeRequest, CollectionsPurgePreview, CollectionsPurgeResponse, } from './collections-schema.js';
|
|
109
|
+
export { collectionImportRequest, collectionImportPreview, collectionImportResult, collectionExportQuery, } from './collections-transfer.js';
|
|
110
|
+
export type { CollectionImportRequest, CollectionImportPreview, CollectionImportResult, CollectionExportQuery, } from './collections-transfer.js';
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export { journalIntentV2Body, journalIntentV2 } from './journal-intents.js';
|
|
|
6
6
|
export { journalFirstCheckpointBody, journalFirstCheckpoint, journalRegistryTransitionBody, journalRegistryTransition, journalRegistryActivationReceiptBody, journalRegistryActivationReceipt, } from './journal-controls.js';
|
|
7
7
|
export { legalOfferListQuery, legalOfferSummary, legalOfferListResponse, legalOfferDisplayRequest, legalOfferDecisionRequest, legalOfferDecisionLookupQuery, legalOfferDecisionSnapshot, legalOfferDisplayResponse, legalOfferDecisionResult, legalOfferConflictDetails, } from './legal-offers.js';
|
|
8
8
|
export { SLUG_RULE, ROS_NAME_RULE, ROS_TYPE_NAME_RULE, FIELD_PATH_RULE, slug, rosName, rosTypeName, fieldPath, wireSeqCursor, wireTimestampMs, applyErrorKind, applyError, } from './common.js';
|
|
9
|
-
export { MCP_PROTOCOL_VERSION, MCP_ENDPOINT_PATH, mcpAppEndpointPath, MCP_APP_PATHS, MCP_TOOL_NAME_MAX, MCP_ASSET_LINK_PATH, MCP_ASSET_LINK_TTL_MS, mcpToolNamePattern, mcpToolKind, mcpExposure, mcpCapabilities, mcpRobotDatasheet,
|
|
9
|
+
export { MCP_PROTOCOL_VERSION, MCP_ENDPOINT_PATH, mcpAppEndpointPath, MCP_APP_PATHS, MCP_TOOL_NAME_MAX, MCP_ASSET_LINK_PATH, MCP_ASSET_LINK_TTL_MS, mcpToolNamePattern, mcpToolKind, mcpExposure, mcpCapabilities, mcpRobotDatasheet, } from './mcp.js';
|
|
10
10
|
export { PROTOCOL_VERSION, PROTOCOL_VERSIONS, PROTOCOL_SUNSET_DAYS, LATEST_BRIDGE_VERSION, protocolStatus, minimumProtocolVersion, sunsetOf, statusFromTable, bridgeHello, cloudHelloOk, cloudHelloError, cloudPing, bridgePong, bridgeLinkMode, datapointFrame, bridgeState, cloudConfig, bridgeConfigApplied, cloudIntrospectRequest, bridgeIntrospect, cloudTypeRequest, bridgeTypeDefinitions, cloudInvoke, cloudCancel, CANCEL_RETURN_CODES, cancelReturnCode, bridgeCancelResultEntry, bridgeCancelResult, cloudPublish, bridgeJobUpdate, bridgeJobLost, cloudJobQuery, bridgeJobStatusEntry, bridgeJobStatus, snapshotHeader, cloudCameraStart, cloudCameraStop, bridgeCameraState, SNAPSHOT_MAX_BYTES, CLOSE_ROBOT_DELETED, CLOSE_TOKEN_ROTATED,
|
|
11
11
|
// Assets.
|
|
12
12
|
bridgeAssetsAvailable, cloudAssetRequest, bridgeAssetProgress,
|
|
@@ -14,7 +14,7 @@ bridgeAssetsAvailable, cloudAssetRequest, bridgeAssetProgress,
|
|
|
14
14
|
activeJob, DEFAULT_PATIENCE_MS, MAX_PATIENCE_MS, MIN_PATIENCE_MS, JOB_HEARTBEAT_INTERVAL_MS, JOB_HEARTBEAT_TIMEOUT_MS, JOB_OFFLINE_GRACE_MS, } from './protocol.js';
|
|
15
15
|
export { jobState, reportedJobState, jobOrigin, job, jobEvent, busyDetails, publisherBusyDetails, jobQueueFullDetails } from './jobs.js';
|
|
16
16
|
export { JOB_RUN_PAGE_MAX, JOB_RUN_RETENTION_DAYS, jobActor, jobRunKind, jobRun, jobRunQuery, jobRunListResponse, jobRunSummaryQuery, jobRunSummary, } from './jobs.js';
|
|
17
|
-
export { FLEETLESS_FORMAT_VERSION, RESERVED_SLUGS, parameterType, parameterSpec, parameterMap, serviceDescription, parameterDescription, messageTemplate, messageRef, messageBody, messageMap, PLACEHOLDER_RE, placeholderNames, actionConfig, serviceConfig, publisherConfig, cameraConfig, alertCondition, datapointAlert, rateThrottleHz, datapointNumeric, datapointRetention, datapointChart, datapointConfig, lowBandwidthSection, LOW_BANDWIDTH_DEFAULTS, robotConfigDoc, validationIssue, configState, snapshotIntervalSeconds,
|
|
17
|
+
export { FLEETLESS_FORMAT_VERSION, RESERVED_SLUGS, parameterType, parameterSpec, parameterMap, serviceDescription, parameterDescription, messageTemplate, messageRef, messageBody, messageMap, PLACEHOLDER_RE, placeholderNames, actionConfig, serviceConfig, publisherConfig, cameraConfig, alertCondition, datapointAlert, rateThrottleHz, datapointNumeric, datapointRetention, datapointChart, datapointConfig, lowBandwidthSection, LOW_BANDWIDTH_DEFAULTS, robotConfigDoc, accessRule, accessSection, validationIssue, configState, snapshotIntervalSeconds,
|
|
18
18
|
// The defaults the format names, so nobody invents them twice.
|
|
19
19
|
ALERT_SEVERITY_DEFAULT, ALERT_ENABLED_DEFAULT, RETENTION_INTERVAL_SECONDS_DEFAULT, CHART_WINDOW_MINUTES_DEFAULT,
|
|
20
20
|
// Retention, history and quotas.
|
|
@@ -25,8 +25,16 @@ cameraSource, cameraCredentials, } from './config.js';
|
|
|
25
25
|
* second copy of this vocabulary is a defect, not a convenience.
|
|
26
26
|
*/
|
|
27
27
|
export { DOCUMENT_ROOT_PATH, EXPOSURE_SECTIONS, schemaIssues, formatPath, splitFormatPath, configSchemaHash, } from './config-issues.js';
|
|
28
|
+
/**
|
|
29
|
+
* Roles and the rights a document resolves to — one implementation for the
|
|
30
|
+
* cloud, the console editor and anything else that has to answer "who may use
|
|
31
|
+
* this?" the same way. See `rights.ts`.
|
|
32
|
+
*/
|
|
33
|
+
export { ROLE_KEY_PATTERN, ROLE_KEY_RULE, roleKey, roleRef, ACCESS_KINDS, accessKind, ENTRY_KINDS, MAX_ORG_ROLES, ROLE_NAME_MAX, SEED_ROLES, SEED_DEFAULTS, matchRosGlob, roleClosure, roleSatisfies, listExposures, requirementOf, findCycle, collectRoleRefs, roleIssues, } from './rights.js';
|
|
34
|
+
/** Organization roles on the wire: the role list, create and change, the rename preview and the organization's defaults. See `org-roles.ts`. */
|
|
35
|
+
export { referencePlace, orgRole, danglingReference, orgRoleListResponse, createOrgRoleRequest, patchOrgRoleRequest, roleRenamePreview, roleDefaultsResponse, putRoleDefaultsRequest, } from './org-roles.js';
|
|
28
36
|
export { rosGraphEntry, rosGraph, typeField, typeDefinition, parameterFieldsOf } from './introspection.js';
|
|
29
|
-
export { robot, patchRobotResponse, robotToken, createRobotRequest, createRobotResponse, robotTokenRotateResponse, jointStatePutRequest, jointStatePutResponse, exposureCounts, protocolStatusValue, robotListItem, robotListResponse, datapointValue, robotDetailResponse, configAuthor, configDraftResponse, putConfigDraftRequest, publishConfigResponse, configVersionsResponse, configVersionResponse, introspectionResponse, typesResponse, fetchTypesRequest, fetchTypesResponse, datapointDescriptor, datapointListResponse,
|
|
37
|
+
export { robot, patchRobotResponse, robotToken, createRobotRequest, createRobotResponse, robotTokenRotateResponse, jointStatePutRequest, jointStatePutResponse, exposureCounts, protocolStatusValue, robotListItem, robotListResponse, datapointValue, robotDetailResponse, configAuthor, configDraftResponse, putConfigDraftRequest, publishConfigResponse, configVersionsResponse, configVersionResponse, introspectionResponse, typesResponse, fetchTypesRequest, fetchTypesResponse, datapointDescriptor, datapointListResponse, invokeRequest, invokeResponse,
|
|
30
38
|
// Addressing.
|
|
31
39
|
cancelRequest, recoverHeldJobRequest, recoverHeldJobResponse, releaseLiveQuery, serviceCallResponse, invokeOrServiceResponse, publishRequest, jobResponse, robotJobsResponse, rateLimitDetails, exposure, exposureListResponse, SNAPSHOT_HEADERS, ASSET_UPLOAD_HEADERS, cameraDescriptor, cameraListResponse, liveSessionResponse, snapshotMetaResponse,
|
|
32
40
|
// Retention, history, quotas.
|
|
@@ -34,7 +42,7 @@ historyQuery, historySamplesResponse, historyBucketsResponse, historyResponse, o
|
|
|
34
42
|
// Robot rename, slug rename.
|
|
35
43
|
patchRobotRequest, renameSlugRequest, renameSlugResponse, slugUsageResponse, } from './rest.js';
|
|
36
44
|
export { LATENCY_BUCKET_MS, BRIDGE_LATENCY_RETENTION_DAYS, MAX_LATENCY_BUCKETS_PER_RESPONSE, latencyBucket, robotLatencySeries, orgLatencyQuery, orgLatencyResponse, USAGE_WINDOW_MAX_DAYS, usageMetric, usageDay, orgUsageQuery, usageRow, orgUsageResponse, } from './rest.js';
|
|
37
|
-
export { clientAuth, authOk, authError, clientInvoke, clientCancel, clientPublish, commandResult, errorFrame, clientSubscribe, clientUnsubscribe, subscribeError, datapointEvent, resourceHealthEvent, resourceHealthCleared, liveSessionEndReason, liveSessionEvent, ORG_EVENT_SAMPLE_INTERVAL_MS, ORG_EVENT_ORG_CEILING_PER_SECOND, ORG_EVENT_BUFFER_SIZE, ORG_EVENT_BUFFER_IDLE_MS, ORG_EVENT_DETAIL_MAX_BYTES, orgEventKind, orgEventSeverity, orgEvent, orgEventSubscribe, orgEventUnsubscribe, orgEventReplay, orgEventDropped, } from './realtime.js';
|
|
45
|
+
export { clientAuth, authOk, authError, clientInvoke, clientCancel, clientPublish, commandResult, errorFrame, clientSubscribe, clientUnsubscribe, subscribeError, datapointEvent, resourceHealthEvent, resourceHealthCleared, liveSessionEndReason, liveSessionEvent, ORG_EVENT_SAMPLE_INTERVAL_MS, ORG_EVENT_ORG_CEILING_PER_SECOND, ORG_EVENT_BUFFER_SIZE, ORG_EVENT_BUFFER_IDLE_MS, ORG_EVENT_DETAIL_MAX_BYTES, orgEventKind, orgEventSeverity, orgEvent, orgEventSubscribe, orgEventUnsubscribe, orgEventReplay, orgEventDropped, collectionSubscribe, collectionSubscribed, collectionUnsubscribe, collectionEvent, collectionSubscribeError, collectionsSchemaPublished, } from './realtime.js';
|
|
38
46
|
export { password, org, patchOrgResponse, sessionTokens, refreshRequest,
|
|
39
47
|
// 2026-09-04 — the public site (closed beta).
|
|
40
48
|
WAITLIST_F1_TEXT_VERSION, waitlistRequest,
|
|
@@ -52,7 +60,7 @@ authMeResponse, patchOrgRequest, patchAuthMeRequest, } from './identity.js';
|
|
|
52
60
|
export { FEEDBACK_KINDS, FEEDBACK_MESSAGE_MAX, feedbackKind, feedbackRequest, feedbackResponse } from './feedback.js';
|
|
53
61
|
// Support sessions: an operator temporarily holding a console session for one org (internal, additive).
|
|
54
62
|
export { supportSessionInfo, supportTokenRequest, supportTokenResponse, supportRenewFailRequest, supportRenewFailRefusal, authMeSupportResponse } from './support.js';
|
|
55
|
-
export { appIdentifier, app, appListResponse, appDeletionSummary, createAppRequest, updateAppRequest, serverKeyToken, serverKey, serverKeyListResponse, createServerKeyResponse,
|
|
63
|
+
export { appIdentifier, app, appListResponse, appDeletionSummary, createAppRequest, updateAppRequest, serverKeyToken, serverKey, serverKeyListResponse, createServerKeyResponse, appLock, MAX_LOCK_SLUGS, appAccess, accessWarning, appAccessResponse, effectiveRightsQuery, effectiveCapability, effectiveRobotRights, effectiveRightsResponse, } from './apps.js';
|
|
56
64
|
export { clientLoginRequest, clientRefreshRequest, clientLogoutRequest, clientRegisterRequest, clientVerifyEmailRequest, clientResendVerificationRequest, clientPasswordResetRequest, clientPasswordResetConfirmRequest, clientAcceptInvitationRequest, CLIENT_OIDC_CALLBACK_PATH, clientProviderListQuery, clientProviderListResponse, clientOidcStartQuery, clientOidcCallbackQuery, clientOidcExchangeRequest, clientOidcErrorCode, clientMcpInteraction, clientMcpInteractionDecisionResponse, mcpConsentGrant, mcpConsentGrantListResponse, clientIdentity, clientLoginCodeRequest, clientLoginCodeVerifyRequest, twoFactorChallenge, clientSignInResult, clientTwoFactorVerifyRequest, clientTwoFactorSetupRequest, clientTwoFactorSetupConfirmRequest, clientTwoFactorSetupConfirmResponse, clientTwoFactorDisableRequest, } from './client-auth.js';
|
|
57
65
|
export { clientRobotListItem, clientRobotListResponse } from './client-robots.js';
|
|
58
66
|
export { httpsLegalUrl, legalDocumentReference, legalTextReferences, TERMS_VERSION, TERMS_VERSION_DATE, TERMS_VERSION_URL, DPA_VERSION, DPA_VERSION_DATE, DPA_VERSION_URL, } from './legal.js';
|
|
@@ -60,7 +68,7 @@ export { legalAcceptanceListQuery, legalAcceptanceVersionRow, legalAcceptanceLis
|
|
|
60
68
|
// The per-app identity space.
|
|
61
69
|
export { APP_USER_DISPLAY_NAME_MAX, APP_URL_PLACEHOLDERS, MAIL_TEMPLATE_VARIABLES, DEFAULT_MAIL_TEMPLATES, providerSlug, appUserStatus, appUser, appUserListResponse, createAppUserRequest, patchAppUserRequest, createAppInvitationRequest, appInvitation, pendingAppInvitation, appInvitationListResponse, appOidcProvider, appOidcProviderListResponse, createAppOidcProviderRequest, patchAppOidcProviderRequest, appUrlTemplate, allowedOrigin, emailDomain, appAuthConfig, appSignInMethods, appTwoFactorPolicy, appHomeUrl, hostedAccent, hostedLogoShape, HOSTED_LOGO_MAX_BYTES, HOSTED_LOGO_TYPES, appHostedPages, putAppAuthRegistrationRequest, putAppAuthSignInRequest, putAppAuthUrlsRequest, putAppAuthMcpRequest, putAppAuthLookRequest, mailTemplateKind, appMailTemplate, appMailTemplateListResponse, putAppMailTemplateRequest, mailTemplatePreviewRequest, mailTemplatePreviewResponse, mailTemplateProblemDetails, mailOutcome, } from './app-users.js';
|
|
62
70
|
export { assetKind, URDF_ASSET_NAME, asset, urdfCompleteness, assetListResponse, assetsClearResponse, missingAssetQuery, assetSyncRequest, assetSyncResponse, assetSyncState, assetSyncStatus, assetFailure, assetFailureKind, assetStoreRefusedDetails, assetSyncBusyDetails, ROBOT_ASSET_STORE_BYTES, ASSET_FILE_MAX_BYTES, } from './assets.js';
|
|
63
|
-
export { auditActor, auditEvent, auditQuery, auditListResponse, AUDIT_CSV_COLUMNS, AUDIT_RETENTION_DAYS } from './audit.js';
|
|
71
|
+
export { auditActor, auditEvent, auditQuery, auditListResponse, AUDIT_CSV_COLUMNS, AUDIT_RETENTION_DAYS, COLLECTION_AUDIT_ACTIONS } from './audit.js';
|
|
64
72
|
export { alertRowCondition, alertSeverity, alertState, datapointAlertRow, alertListResponse, orgFiringAlertsResponse, orgAlertsQuery, datapointDisplay, putDatapointDisplayRequest, } from './alerts.js';
|
|
65
73
|
export { apiError, parameterViolation, parameterInvalidDetails, cancelRejectedDetails, invalidCodeDetails, ERROR_CODES,
|
|
66
74
|
// 2026-10-02 — plans (#103). The plan errors (I-3).
|
|
@@ -70,7 +78,11 @@ fileTooLargeDetails,
|
|
|
70
78
|
// 2026-10-04 — billing through Mollie (#104).
|
|
71
79
|
paymentProviderUnavailableDetails,
|
|
72
80
|
// 2026-10-19 — Lexware billing documents (fleetless/fleetless#544).
|
|
73
|
-
billingDocumentsUnavailableDetails,
|
|
81
|
+
billingDocumentsUnavailableDetails,
|
|
82
|
+
// 2026-11-04 — app collections.
|
|
83
|
+
confirmationRequiredDetails, recordReferencedDetails, recordChangedDetails, referenceInvalidDetails, requiredMissingDetails,
|
|
84
|
+
// Organization roles.
|
|
85
|
+
roleCycleDetails, } from './errors.js';
|
|
74
86
|
export { oauthErrorCode, oauthError, oauthRedirectResponse, oauthCodeTokenRequest, oauthRefreshTokenRequest, oauthTokenRequest, oauthTokenResponse, redirectUri, codeChallengeMethod, oauthAuthorizeQuery, dynamicClientRegistrationRequest, MCP_DCR_MAX_REDIRECT_URIS, dynamicClientRegistrationResponse, authorizationServerMetadata, protectedResourceMetadata, } from './oauth.js';
|
|
75
87
|
export { ROUTES, ROUTE_SECTIONS, IN_HANDLER_ROUTES, developerSignInRoutes } from './routes.js';
|
|
76
88
|
// 2026-10-02 — plans (#103). The catalogue (I-1) only: `PLANS` and `ADDONS`
|
|
@@ -90,3 +102,11 @@ billingDocumentKind, billingDocumentStatus, billingDocumentProfile, billingDocum
|
|
|
90
102
|
billingIssuer, billingChargeInvoice, billingCharge, chargePayRequest, } from './billing.js';
|
|
91
103
|
export { controllerRegisterAddress, controllerRegisterPrivacyContact, controllerRegisterRepresentative, controllerRegisterWrite, controllerRegisterOrgRecord, controllerRegisterOrgResponse } from './controller-register.js';
|
|
92
104
|
export { purchaseBillingDetails, purchaseOperationKey, purchaseOperation, purchaseQuote, billingDecisionDisplayRequest, confirmationProof, billingDecisionAmounts, billingDecisionPeriod, billingDecisionSnapshot, billingDecisionDisplayResponse, planChangePrepareResponse, purchaseHoldReason, purchaseRefusalRule, purchaseIntent, purchaseIntentLookupQuery, purchaseIntentDraft, purchaseIntentPaymentStarted, purchaseIntentAcceptedWithoutPayment, purchaseIntentConfirmRequest, purchaseConflictDetails, invoicePayRequest, purchaseIntentResponse, vatDecision, viesPendingReason, } from './billing.js';
|
|
105
|
+
export { COLLECTIONS_FORMAT_VERSION, COLLECTION_RESERVED_KEYS, COLLECTION_LIMITS, collectionKey, collectionBinding, collectionFieldType, collectionField, collectionAccessValue, collectionAccess, collectionDefinition, collectionsDocument, } from './collections.js';
|
|
106
|
+
export { roleCollectionRights } from './collections-rights.js';
|
|
107
|
+
export { collectionJsonTemplateName, COLLECTION_JSON_TEMPLATES, parseDisplayTemplate } from './collections-templates.js';
|
|
108
|
+
export { checkCollectionValue, normalizeCollectionValue } from './collections-values.js';
|
|
109
|
+
export { collectionsIssue, collectionsDocumentIssues, collectionsAccessWarnings } from './collections-issues.js';
|
|
110
|
+
export { COLLECTION_FILTER_OPS, COLLECTION_FILTER_SYSTEM_KEYS, collectionActor, collectionRecord, collectionFilter, parseCollectionFilter, parseCollectionSort, collectionRecordListQuery, collectionRecordGetQuery, collectionRecordListResponse, collectionRecordWrite, collectionRevision, collectionRecordHistoryQuery, collectionRecordHistoryResponse, collectionRecordRestoreRequest, collectionSummary, collectionListResponse, collectionDefinitionsResponse, } from './collections-records.js';
|
|
111
|
+
export { collectionsEffect, collectionsAccessChange, collectionsSchemaPreview, collectionsDraftResponse, putCollectionsDraftRequest, collectionsPublishRequest, collectionsPublishResponse, collectionsVersionSummary, collectionsVersionsResponse, collectionsVersionResponse, collectionsRestorePreview, collectionsRestorePreviewQuery, collectionsRestoreRequest, collectionsRestoreResponse, collectionsPurgeRequest, collectionsPurgePreview, collectionsPurgeResponse, } from './collections-schema.js';
|
|
112
|
+
export { collectionImportRequest, collectionImportPreview, collectionImportResult, collectionExportQuery, } from './collections-transfer.js';
|
|
@@ -144,6 +144,20 @@ export declare const journalIntentV2Body: z.ZodDiscriminatedUnion<readonly [z.Zo
|
|
|
144
144
|
intent_at: z.ZodISODateTime;
|
|
145
145
|
previous_hash: z.ZodString;
|
|
146
146
|
signing_key_id: z.ZodString;
|
|
147
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
148
|
+
kind: z.ZodLiteral<"org_role.delete">;
|
|
149
|
+
ids: z.ZodObject<{
|
|
150
|
+
role_id: z.ZodString;
|
|
151
|
+
org_id: z.ZodString;
|
|
152
|
+
}, z.core.$strict>;
|
|
153
|
+
schema: z.ZodLiteral<"fleetless.deletion-intent.v2">;
|
|
154
|
+
environment: z.ZodString;
|
|
155
|
+
generation: z.ZodString;
|
|
156
|
+
sequence: z.ZodNumber;
|
|
157
|
+
operation_id: z.ZodString;
|
|
158
|
+
intent_at: z.ZodISODateTime;
|
|
159
|
+
previous_hash: z.ZodString;
|
|
160
|
+
signing_key_id: z.ZodString;
|
|
147
161
|
}, z.core.$strict>, z.ZodObject<{
|
|
148
162
|
kind: z.ZodLiteral<"billing_document_link.remove">;
|
|
149
163
|
ids: z.ZodObject<{
|
|
@@ -970,6 +984,22 @@ export declare const journalIntentV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
970
984
|
signing_key_id: z.ZodString;
|
|
971
985
|
record_hash: z.ZodString;
|
|
972
986
|
signature: z.ZodString;
|
|
987
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
988
|
+
kind: z.ZodLiteral<"org_role.delete">;
|
|
989
|
+
ids: z.ZodObject<{
|
|
990
|
+
role_id: z.ZodString;
|
|
991
|
+
org_id: z.ZodString;
|
|
992
|
+
}, z.core.$strict>;
|
|
993
|
+
schema: z.ZodLiteral<"fleetless.deletion-intent.v2">;
|
|
994
|
+
environment: z.ZodString;
|
|
995
|
+
generation: z.ZodString;
|
|
996
|
+
sequence: z.ZodNumber;
|
|
997
|
+
operation_id: z.ZodString;
|
|
998
|
+
intent_at: z.ZodISODateTime;
|
|
999
|
+
previous_hash: z.ZodString;
|
|
1000
|
+
signing_key_id: z.ZodString;
|
|
1001
|
+
record_hash: z.ZodString;
|
|
1002
|
+
signature: z.ZodString;
|
|
973
1003
|
}, z.core.$strict> | z.ZodObject<{
|
|
974
1004
|
kind: z.ZodLiteral<"billing_document_link.remove">;
|
|
975
1005
|
ids: z.ZodObject<{
|
package/dist/journal-intents.js
CHANGED
|
@@ -40,11 +40,14 @@ const branches = [
|
|
|
40
40
|
captured('app.delete', z.strictObject(app)),
|
|
41
41
|
captured('member.remove', z.strictObject({ ...org, user_id: uuid })),
|
|
42
42
|
captured('app_user.remove', z.strictObject({ ...app, app_user_id: uuid })),
|
|
43
|
+
// Retired: per-app roles no longer exist, so nothing writes this kind. It stays so
|
|
44
|
+
// journals written before still parse and replay (as a no-op).
|
|
43
45
|
captured('app_role.delete', z.discriminatedUnion('move_mode', [
|
|
44
46
|
z.strictObject({ ...app, role_id: uuid, move_mode: z.literal('none') }),
|
|
45
47
|
z.strictObject({ ...app, role_id: uuid, move_mode: z.literal('reassign'), move_to_role_id: uuid }),
|
|
46
48
|
])),
|
|
47
49
|
plain('server_key.revoke', z.strictObject({ ...app, key_id: uuid })),
|
|
50
|
+
plain('org_role.delete', z.strictObject({ ...org, role_id: uuid })),
|
|
48
51
|
plain('billing_document_link.remove', z.strictObject({ ...org, link_id: uuid })),
|
|
49
52
|
captured('app_oidc_provider.delete', z.strictObject({ ...app, provider_id: uuid })),
|
|
50
53
|
plain('team_invitation.revoke', z.strictObject({ ...org, invitation_id: uuid })),
|
|
@@ -8,8 +8,8 @@ export type LegalAcceptanceListQuery = z.infer<typeof legalAcceptanceListQuery>;
|
|
|
8
8
|
export declare const legalAcceptanceVersionRow: z.ZodObject<{
|
|
9
9
|
id: z.ZodUUID;
|
|
10
10
|
context: z.ZodEnum<{
|
|
11
|
-
registration: "registration";
|
|
12
11
|
invitation: "invitation";
|
|
12
|
+
registration: "registration";
|
|
13
13
|
order: "order";
|
|
14
14
|
existing_org: "existing_org";
|
|
15
15
|
amendment: "amendment";
|
|
@@ -33,8 +33,8 @@ export declare const legalAcceptanceListResponse: z.ZodObject<{
|
|
|
33
33
|
acceptances: z.ZodArray<z.ZodObject<{
|
|
34
34
|
id: z.ZodUUID;
|
|
35
35
|
context: z.ZodEnum<{
|
|
36
|
-
registration: "registration";
|
|
37
36
|
invitation: "invitation";
|
|
37
|
+
registration: "registration";
|
|
38
38
|
order: "order";
|
|
39
39
|
existing_org: "existing_org";
|
|
40
40
|
amendment: "amendment";
|
package/dist/mcp.d.ts
CHANGED
|
@@ -142,8 +142,8 @@ export type McpToolKind = z.infer<typeof mcpToolKind>;
|
|
|
142
142
|
export declare const MCP_TOOL_NAME_MAX = 128;
|
|
143
143
|
export declare const mcpToolNamePattern: RegExp;
|
|
144
144
|
/**
|
|
145
|
-
* One exposure of a robot, as `robots.describe` and
|
|
146
|
-
*
|
|
145
|
+
* One exposure of a robot, as `robots.describe` and `GET /api/robots/:id/datasheet`
|
|
146
|
+
* list it. Every exposure the caller's role grants is listed —
|
|
147
147
|
* a missing `description` is shown as `null`, never used to hide the entry.
|
|
148
148
|
*
|
|
149
149
|
* `input_schema` is a JSON Schema document generated from an action's,
|
|
@@ -166,9 +166,9 @@ export declare const mcpExposure: z.ZodObject<{
|
|
|
166
166
|
input_schema: z.ZodNullable<z.ZodUnknown>;
|
|
167
167
|
}, z.core.$strip>;
|
|
168
168
|
export type McpExposure = z.infer<typeof mcpExposure>;
|
|
169
|
-
/** The two
|
|
169
|
+
/** The two capabilities of a robot as a whole that a tool can need beyond a slug: its past jobs and its asset files. */
|
|
170
170
|
export declare const mcpCapabilities: z.ZodObject<{
|
|
171
|
-
|
|
171
|
+
job_history: z.ZodBoolean;
|
|
172
172
|
assets: z.ZodBoolean;
|
|
173
173
|
}, z.core.$strip>;
|
|
174
174
|
export type McpCapabilities = z.infer<typeof mcpCapabilities>;
|
|
@@ -182,7 +182,7 @@ export declare const mcpRobotDatasheet: z.ZodObject<{
|
|
|
182
182
|
robot_id: z.ZodUUID;
|
|
183
183
|
robot_name: z.ZodString;
|
|
184
184
|
capabilities: z.ZodObject<{
|
|
185
|
-
|
|
185
|
+
job_history: z.ZodBoolean;
|
|
186
186
|
assets: z.ZodBoolean;
|
|
187
187
|
}, z.core.$strip>;
|
|
188
188
|
exposures: z.ZodArray<z.ZodObject<{
|
|
@@ -201,38 +201,6 @@ export declare const mcpRobotDatasheet: z.ZodObject<{
|
|
|
201
201
|
}, z.core.$strip>>;
|
|
202
202
|
}, z.core.$strip>;
|
|
203
203
|
export type McpRobotDatasheet = z.infer<typeof mcpRobotDatasheet>;
|
|
204
|
-
/**
|
|
205
|
-
* What a developer sees before an end user connects: the datasheet each
|
|
206
|
-
* robot of the app would answer for one role. Replaces the per-slug tool
|
|
207
|
-
* preview and its `omitted` list — with a fixed catalog there is no tool to
|
|
208
|
-
* omit, only exposures to grant.
|
|
209
|
-
*/
|
|
210
|
-
export declare const mcpRolePreviewResponse: z.ZodObject<{
|
|
211
|
-
role_id: z.ZodUUID;
|
|
212
|
-
robots: z.ZodArray<z.ZodObject<{
|
|
213
|
-
robot_id: z.ZodUUID;
|
|
214
|
-
robot_name: z.ZodString;
|
|
215
|
-
capabilities: z.ZodObject<{
|
|
216
|
-
action_history: z.ZodBoolean;
|
|
217
|
-
assets: z.ZodBoolean;
|
|
218
|
-
}, z.core.$strip>;
|
|
219
|
-
exposures: z.ZodArray<z.ZodObject<{
|
|
220
|
-
slug: z.ZodString;
|
|
221
|
-
kind: z.ZodEnum<{
|
|
222
|
-
datapoint: "datapoint";
|
|
223
|
-
action: "action";
|
|
224
|
-
service: "service";
|
|
225
|
-
publisher: "publisher";
|
|
226
|
-
camera: "camera";
|
|
227
|
-
}>;
|
|
228
|
-
description: z.ZodNullable<z.ZodString>;
|
|
229
|
-
unit: z.ZodNullable<z.ZodString>;
|
|
230
|
-
decimals: z.ZodNullable<z.ZodNumber>;
|
|
231
|
-
input_schema: z.ZodNullable<z.ZodUnknown>;
|
|
232
|
-
}, z.core.$strip>>;
|
|
233
|
-
}, z.core.$strip>>;
|
|
234
|
-
}, z.core.$strip>;
|
|
235
|
-
export type McpRolePreviewResponse = z.infer<typeof mcpRolePreviewResponse>;
|
|
236
204
|
/**
|
|
237
205
|
* Where a signed asset link is served. An MCP session token is refused on
|
|
238
206
|
* REST by design, so `assets.get`/`assets.urdf` mint a bearer-free link the agent
|
package/dist/mcp.js
CHANGED
|
@@ -97,8 +97,8 @@ export const mcpToolKind = z.enum(['datapoint', 'service', 'action', 'publisher'
|
|
|
97
97
|
export const MCP_TOOL_NAME_MAX = 128;
|
|
98
98
|
export const mcpToolNamePattern = /^[a-z0-9][a-z0-9_-]*$/;
|
|
99
99
|
/**
|
|
100
|
-
* One exposure of a robot, as `robots.describe` and
|
|
101
|
-
*
|
|
100
|
+
* One exposure of a robot, as `robots.describe` and `GET /api/robots/:id/datasheet`
|
|
101
|
+
* list it. Every exposure the caller's role grants is listed —
|
|
102
102
|
* a missing `description` is shown as `null`, never used to hide the entry.
|
|
103
103
|
*
|
|
104
104
|
* `input_schema` is a JSON Schema document generated from an action's,
|
|
@@ -122,9 +122,9 @@ export const mcpExposure = z.object({
|
|
|
122
122
|
decimals: z.number().int().min(0).max(6).nullable(),
|
|
123
123
|
input_schema: z.unknown().nullable(),
|
|
124
124
|
});
|
|
125
|
-
/** The two
|
|
125
|
+
/** The two capabilities of a robot as a whole that a tool can need beyond a slug: its past jobs and its asset files. */
|
|
126
126
|
export const mcpCapabilities = z.object({
|
|
127
|
-
|
|
127
|
+
job_history: z.boolean(),
|
|
128
128
|
assets: z.boolean(),
|
|
129
129
|
});
|
|
130
130
|
/**
|
|
@@ -139,16 +139,6 @@ export const mcpRobotDatasheet = z.object({
|
|
|
139
139
|
capabilities: mcpCapabilities,
|
|
140
140
|
exposures: z.array(mcpExposure).max(2000),
|
|
141
141
|
});
|
|
142
|
-
/**
|
|
143
|
-
* What a developer sees before an end user connects: the datasheet each
|
|
144
|
-
* robot of the app would answer for one role. Replaces the per-slug tool
|
|
145
|
-
* preview and its `omitted` list — with a fixed catalog there is no tool to
|
|
146
|
-
* omit, only exposures to grant.
|
|
147
|
-
*/
|
|
148
|
-
export const mcpRolePreviewResponse = z.object({
|
|
149
|
-
role_id: z.uuid(),
|
|
150
|
-
robots: z.array(mcpRobotDatasheet).max(500),
|
|
151
|
-
});
|
|
152
142
|
/**
|
|
153
143
|
* Where a signed asset link is served. An MCP session token is refused on
|
|
154
144
|
* REST by design, so `assets.get`/`assets.urdf` mint a bearer-free link the agent
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/**
|
|
4
|
+
* A place that writes a role key, as the role list, the rename preview and
|
|
5
|
+
* the dangling-reference list all name it.
|
|
6
|
+
*
|
|
7
|
+
* One flat shape for every kind, with `null` for what a kind does not have,
|
|
8
|
+
* so a client renders a row without switching on `kind` to find a field.
|
|
9
|
+
*/
|
|
10
|
+
export declare const referencePlace: z.ZodObject<{
|
|
11
|
+
kind: z.ZodEnum<{
|
|
12
|
+
org_default: "org_default";
|
|
13
|
+
app_user: "app_user";
|
|
14
|
+
config: "config";
|
|
15
|
+
collection_schema: "collection_schema";
|
|
16
|
+
invitation: "invitation";
|
|
17
|
+
app_default: "app_default";
|
|
18
|
+
role_inherits: "role_inherits";
|
|
19
|
+
}>;
|
|
20
|
+
label: z.ZodString;
|
|
21
|
+
path: z.ZodNullable<z.ZodString>;
|
|
22
|
+
robot_id: z.ZodNullable<z.ZodUUID>;
|
|
23
|
+
app_id: z.ZodNullable<z.ZodUUID>;
|
|
24
|
+
user_id: z.ZodNullable<z.ZodUUID>;
|
|
25
|
+
document: z.ZodNullable<z.ZodEnum<{
|
|
26
|
+
published: "published";
|
|
27
|
+
draft: "draft";
|
|
28
|
+
}>>;
|
|
29
|
+
new_version: z.ZodNullable<z.ZodNumber>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type ReferencePlace = z.infer<typeof referencePlace>;
|
|
32
|
+
/** One role as `GET /api/org/roles` lists it, with how much depends on it. */
|
|
33
|
+
export declare const orgRole: z.ZodObject<{
|
|
34
|
+
key: z.ZodString;
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
inherits: z.ZodArray<z.ZodString>;
|
|
37
|
+
users: z.ZodNumber;
|
|
38
|
+
invitations: z.ZodNumber;
|
|
39
|
+
app_defaults: z.ZodNumber;
|
|
40
|
+
references: z.ZodNumber;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export type OrgRole = z.infer<typeof orgRole>;
|
|
43
|
+
/** A key that is written somewhere and is no role, with every place that writes it. */
|
|
44
|
+
export declare const danglingReference: z.ZodObject<{
|
|
45
|
+
key: z.ZodString;
|
|
46
|
+
places: z.ZodArray<z.ZodObject<{
|
|
47
|
+
kind: z.ZodEnum<{
|
|
48
|
+
org_default: "org_default";
|
|
49
|
+
app_user: "app_user";
|
|
50
|
+
config: "config";
|
|
51
|
+
collection_schema: "collection_schema";
|
|
52
|
+
invitation: "invitation";
|
|
53
|
+
app_default: "app_default";
|
|
54
|
+
role_inherits: "role_inherits";
|
|
55
|
+
}>;
|
|
56
|
+
label: z.ZodString;
|
|
57
|
+
path: z.ZodNullable<z.ZodString>;
|
|
58
|
+
robot_id: z.ZodNullable<z.ZodUUID>;
|
|
59
|
+
app_id: z.ZodNullable<z.ZodUUID>;
|
|
60
|
+
user_id: z.ZodNullable<z.ZodUUID>;
|
|
61
|
+
document: z.ZodNullable<z.ZodEnum<{
|
|
62
|
+
published: "published";
|
|
63
|
+
draft: "draft";
|
|
64
|
+
}>>;
|
|
65
|
+
new_version: z.ZodNullable<z.ZodNumber>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export type DanglingReference = z.infer<typeof danglingReference>;
|
|
69
|
+
/** What `GET /api/org/roles` answers. */
|
|
70
|
+
export declare const orgRoleListResponse: z.ZodObject<{
|
|
71
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
72
|
+
key: z.ZodString;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
inherits: z.ZodArray<z.ZodString>;
|
|
75
|
+
users: z.ZodNumber;
|
|
76
|
+
invitations: z.ZodNumber;
|
|
77
|
+
app_defaults: z.ZodNumber;
|
|
78
|
+
references: z.ZodNumber;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
dangling: z.ZodArray<z.ZodObject<{
|
|
81
|
+
key: z.ZodString;
|
|
82
|
+
places: z.ZodArray<z.ZodObject<{
|
|
83
|
+
kind: z.ZodEnum<{
|
|
84
|
+
org_default: "org_default";
|
|
85
|
+
app_user: "app_user";
|
|
86
|
+
config: "config";
|
|
87
|
+
collection_schema: "collection_schema";
|
|
88
|
+
invitation: "invitation";
|
|
89
|
+
app_default: "app_default";
|
|
90
|
+
role_inherits: "role_inherits";
|
|
91
|
+
}>;
|
|
92
|
+
label: z.ZodString;
|
|
93
|
+
path: z.ZodNullable<z.ZodString>;
|
|
94
|
+
robot_id: z.ZodNullable<z.ZodUUID>;
|
|
95
|
+
app_id: z.ZodNullable<z.ZodUUID>;
|
|
96
|
+
user_id: z.ZodNullable<z.ZodUUID>;
|
|
97
|
+
document: z.ZodNullable<z.ZodEnum<{
|
|
98
|
+
published: "published";
|
|
99
|
+
draft: "draft";
|
|
100
|
+
}>>;
|
|
101
|
+
new_version: z.ZodNullable<z.ZodNumber>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
export type OrgRoleListResponse = z.infer<typeof orgRoleListResponse>;
|
|
106
|
+
/** `POST /api/org/roles`: a new role. Strict, so a field this route does not take is refused rather than dropped. */
|
|
107
|
+
export declare const createOrgRoleRequest: z.ZodObject<{
|
|
108
|
+
key: z.ZodString;
|
|
109
|
+
name: z.ZodString;
|
|
110
|
+
inherits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
export type CreateOrgRoleRequest = z.infer<typeof createOrgRoleRequest>;
|
|
113
|
+
/**
|
|
114
|
+
* `PATCH /api/org/roles/:key`: change a role. Absent leaves a field alone.
|
|
115
|
+
*
|
|
116
|
+
* At least one field is required: an empty patch is a caller mistake, not a
|
|
117
|
+
* request to do nothing. `update_references` and `confirm` only mean something
|
|
118
|
+
* together with `key`.
|
|
119
|
+
*
|
|
120
|
+
* The one-field rule is a `.refine()`, which JSON Schema cannot express, so
|
|
121
|
+
* `patch-org-role-request.schema.json` describes five independent optional
|
|
122
|
+
* fields; the cloud is the only place an empty patch is refused.
|
|
123
|
+
*/
|
|
124
|
+
export declare const patchOrgRoleRequest: z.ZodObject<{
|
|
125
|
+
name: z.ZodOptional<z.ZodString>;
|
|
126
|
+
inherits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
127
|
+
key: z.ZodOptional<z.ZodString>;
|
|
128
|
+
update_references: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
+
confirm: z.ZodOptional<z.ZodString>;
|
|
130
|
+
}, z.core.$strict>;
|
|
131
|
+
export type PatchOrgRoleRequest = z.infer<typeof patchOrgRoleRequest>;
|
|
132
|
+
/**
|
|
133
|
+
* What a rename with `update_references` would rewrite: the `details` of the
|
|
134
|
+
* `409 confirmation_required` that answers it. Repeating the same request with
|
|
135
|
+
* `confirm` set to this token applies the rename.
|
|
136
|
+
*/
|
|
137
|
+
export declare const roleRenamePreview: z.ZodObject<{
|
|
138
|
+
from: z.ZodString;
|
|
139
|
+
to: z.ZodString;
|
|
140
|
+
references: z.ZodArray<z.ZodObject<{
|
|
141
|
+
kind: z.ZodEnum<{
|
|
142
|
+
org_default: "org_default";
|
|
143
|
+
app_user: "app_user";
|
|
144
|
+
config: "config";
|
|
145
|
+
collection_schema: "collection_schema";
|
|
146
|
+
invitation: "invitation";
|
|
147
|
+
app_default: "app_default";
|
|
148
|
+
role_inherits: "role_inherits";
|
|
149
|
+
}>;
|
|
150
|
+
label: z.ZodString;
|
|
151
|
+
path: z.ZodNullable<z.ZodString>;
|
|
152
|
+
robot_id: z.ZodNullable<z.ZodUUID>;
|
|
153
|
+
app_id: z.ZodNullable<z.ZodUUID>;
|
|
154
|
+
user_id: z.ZodNullable<z.ZodUUID>;
|
|
155
|
+
document: z.ZodNullable<z.ZodEnum<{
|
|
156
|
+
published: "published";
|
|
157
|
+
draft: "draft";
|
|
158
|
+
}>>;
|
|
159
|
+
new_version: z.ZodNullable<z.ZodNumber>;
|
|
160
|
+
}, z.core.$strip>>;
|
|
161
|
+
reference_count: z.ZodNumber;
|
|
162
|
+
confirm: z.ZodString;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
export type RoleRenamePreview = z.infer<typeof roleRenamePreview>;
|
|
165
|
+
/** What `GET` and `PUT /api/org/roles/defaults` answer: who holds each kind of access when a robot's configuration says nothing. */
|
|
166
|
+
export declare const roleDefaultsResponse: z.ZodObject<{
|
|
167
|
+
defaults: z.ZodObject<{
|
|
168
|
+
read: z.ZodArray<z.ZodString>;
|
|
169
|
+
invoke: z.ZodArray<z.ZodString>;
|
|
170
|
+
publish: z.ZodArray<z.ZodString>;
|
|
171
|
+
assets: z.ZodArray<z.ZodString>;
|
|
172
|
+
job_history: z.ZodArray<z.ZodString>;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
export type RoleDefaultsResponse = z.infer<typeof roleDefaultsResponse>;
|
|
176
|
+
/** `PUT /api/org/roles/defaults`: change some defaults and leave the others as they are. */
|
|
177
|
+
export declare const putRoleDefaultsRequest: z.ZodObject<{
|
|
178
|
+
defaults: z.ZodObject<{
|
|
179
|
+
read: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNull]>>;
|
|
180
|
+
invoke: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNull]>>;
|
|
181
|
+
publish: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNull]>>;
|
|
182
|
+
assets: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNull]>>;
|
|
183
|
+
job_history: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNull]>>;
|
|
184
|
+
}, z.core.$strict>;
|
|
185
|
+
}, z.core.$strict>;
|
|
186
|
+
export type PutRoleDefaultsRequest = z.infer<typeof putRoleDefaultsRequest>;
|