@fleetless/contracts 14.0.0 → 15.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +184 -0
- package/artifacts/openapi.json +20210 -11764
- package/artifacts/routes.json +1160 -39
- 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-deletion-summary.schema.json +15 -1
- package/artifacts/schema/asset-plan-limit-details.schema.json +3 -1
- package/artifacts/schema/billing-change-response.schema.json +9 -8
- package/artifacts/schema/checkout-response.schema.json +6 -6
- package/artifacts/schema/cloud-config.schema.json +5 -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 +5 -5
- package/artifacts/schema/config-version-response.schema.json +5 -5
- package/artifacts/schema/confirmation-required-details.schema.json +13 -0
- package/artifacts/schema/dangling-reference.schema.json +7 -6
- package/artifacts/schema/datapoint-list-response.schema.json +2 -2
- package/artifacts/schema/effective-rights-response.schema.json +87 -1
- 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 +8 -7
- package/artifacts/schema/org-role.schema.json +1 -1
- 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/purchase-conflict-details.schema.json +6 -6
- package/artifacts/schema/purchase-intent-draft.schema.json +5 -5
- package/artifacts/schema/purchase-intent-payment-started.schema.json +1 -1
- package/artifacts/schema/purchase-intent-response.schema.json +10 -9
- package/artifacts/schema/put-collections-draft-request.schema.json +16 -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 +7 -6
- package/artifacts/schema/required-missing-details.schema.json +19 -0
- package/artifacts/schema/robot-config-doc.schema.json +5 -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-rename-preview.schema.json +7 -6
- package/dist/apps.d.ts +18 -2
- package/dist/apps.js +12 -2
- package/dist/audit.d.ts +32 -2
- package/dist/audit.js +40 -2
- package/dist/billing.js +12 -3
- 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/config.d.ts +8 -8
- package/dist/config.js +13 -13
- package/dist/errors.d.ts +50 -1
- package/dist/errors.js +117 -2
- package/dist/index.d.ts +24 -8
- package/dist/index.js +13 -3
- package/dist/org-roles.d.ts +4 -0
- package/dist/org-roles.js +10 -9
- package/dist/plans.d.ts +22 -2
- package/dist/plans.js +26 -4
- package/dist/realtime.d.ts +166 -0
- package/dist/realtime.js +163 -0
- package/dist/rest.d.ts +28 -28
- package/dist/rest.js +39 -27
- package/dist/rights.d.ts +2 -2
- package/dist/rights.js +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/routes.js +495 -21
- package/package.json +1 -1
- 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/dist/errors.js
CHANGED
|
@@ -164,6 +164,62 @@ export const billingDocumentsUnavailableDetails = z.object({
|
|
|
164
164
|
'its account check, so every Lexware read stays closed).',
|
|
165
165
|
}),
|
|
166
166
|
}).strict();
|
|
167
|
+
/**
|
|
168
|
+
* The `details` of a `409 confirmation_required` refusal: the preview as it is
|
|
169
|
+
* now, which carries the `token` that confirms it. Sent when a publish, a
|
|
170
|
+
* restore, a purge or an import would change or remove data and the request
|
|
171
|
+
* brought no token, or one for data that has changed since.
|
|
172
|
+
*/
|
|
173
|
+
export const confirmationRequiredDetails = z
|
|
174
|
+
.object({
|
|
175
|
+
preview: z.unknown().meta({
|
|
176
|
+
description: 'The current preview of the operation, with its `token`: a `collectionsSchemaPreview` for a publish, a `collectionsRestorePreview` for a restore, a `collectionsPurgePreview` for a purge and a `collectionImportPreview` for an import. Confirm it by sending that `token` as `confirm`. A publish that names a `source_sha256` which is not the saved draft\'s, because the draft was saved again since it was previewed, is refused the same way with a preview whose `token` can be `null` (no effects, nothing to confirm): read this preview, then publish again with its `source_sha256`, and with its `token` as `confirm` when it has one.',
|
|
177
|
+
}),
|
|
178
|
+
})
|
|
179
|
+
.strict();
|
|
180
|
+
/**
|
|
181
|
+
* The `details` of a `409 record_referenced` refusal. Counts only: the caller
|
|
182
|
+
* may not be allowed to read the records that point here, so neither their
|
|
183
|
+
* ids nor their values are told. Nor is the key of a collection the caller may
|
|
184
|
+
* not read, for the reason `collection_not_found` is answered for one: the list
|
|
185
|
+
* names only collections the caller may read, and it is empty when every
|
|
186
|
+
* collection that points here is one they may not.
|
|
187
|
+
*/
|
|
188
|
+
export const recordReferencedDetails = z
|
|
189
|
+
.object({
|
|
190
|
+
references: z
|
|
191
|
+
.array(z
|
|
192
|
+
.object({
|
|
193
|
+
collection: z.string().min(1).meta({ description: 'The key of a collection that has records pointing at this one.' }),
|
|
194
|
+
count: z.number().int().min(1).meta({ description: 'How many records of that collection point at it.' }),
|
|
195
|
+
})
|
|
196
|
+
.strict())
|
|
197
|
+
.meta({
|
|
198
|
+
description: 'The collections whose records reference the record, each with how many. Only collections the caller may read are named, so the list is empty when the records that point here are all in collections the caller cannot read; the refusal still stands.',
|
|
199
|
+
}),
|
|
200
|
+
})
|
|
201
|
+
.strict();
|
|
202
|
+
/** The `details` of a `409 record_changed` refusal: the revision the record is at now, for the caller to read it again. */
|
|
203
|
+
export const recordChangedDetails = z
|
|
204
|
+
.object({
|
|
205
|
+
revision: z.number().int().min(1).meta({ description: 'The current revision of the record, which is not the `expected_revision` that was sent.' }),
|
|
206
|
+
})
|
|
207
|
+
.strict();
|
|
208
|
+
/** The `details` of a `400 reference_invalid` refusal: which reference field, and why its value was refused. */
|
|
209
|
+
export const referenceInvalidDetails = z
|
|
210
|
+
.object({
|
|
211
|
+
field: z.string().min(1).meta({ description: 'The key of the reference field.' }),
|
|
212
|
+
reason: z.enum(['missing', 'other_robot', 'not_readable']).meta({
|
|
213
|
+
description: '`missing`: no record of the target collection has that id. `other_robot`: the target belongs to another robot than the record that points at it. `not_readable`: the caller may not read the target collection.',
|
|
214
|
+
}),
|
|
215
|
+
})
|
|
216
|
+
.strict();
|
|
217
|
+
/** The `details` of a `400 required_missing` refusal: every required field the write would leave empty. */
|
|
218
|
+
export const requiredMissingDetails = z
|
|
219
|
+
.object({
|
|
220
|
+
fields: z.array(z.string().min(1)).min(1).meta({ description: 'The keys of the required fields that have no value.' }),
|
|
221
|
+
})
|
|
222
|
+
.strict();
|
|
167
223
|
/**
|
|
168
224
|
* The `details` of a `400 role_cycle` refusal: the loop the change would have
|
|
169
225
|
* made, along the `inherits` edges, as `[a, b, a]` — the first key again at
|
|
@@ -723,6 +779,13 @@ export const ERROR_CODES = [
|
|
|
723
779
|
* that answers it: for renaming an organization role with
|
|
724
780
|
* `update_references` it is `roleRenamePreview`.
|
|
725
781
|
*
|
|
782
|
+
* App collections use the code for a publish, a restore, a purge and an
|
|
783
|
+
* import that would change or remove data and brought no token. There
|
|
784
|
+
* `details` is `confirmationRequiredDetails`: `{ preview }`, the current
|
|
785
|
+
* preview of the operation, whose `token` is sent back as `confirm`. The
|
|
786
|
+
* answer is not "someone else got there first" but "this is exactly what
|
|
787
|
+
* would happen now, say yes to it".
|
|
788
|
+
*
|
|
726
789
|
* A token fits the effects its preview lists and nothing else. When
|
|
727
790
|
* anything those effects cover has changed since, the call answers a new
|
|
728
791
|
* preview instead of applying on a stale token, so what is applied is always
|
|
@@ -1042,8 +1105,8 @@ export const ERROR_CODES = [
|
|
|
1042
1105
|
/**
|
|
1043
1106
|
* `403`: the feature the caller reached for is not on the org's plan — an
|
|
1044
1107
|
* app's MCP endpoint, two-factor for a developer, a two-factor requirement
|
|
1045
|
-
* for the org, an app's OIDC federation, a hosted logo,
|
|
1046
|
-
*
|
|
1108
|
+
* for the org, an app's OIDC federation, a hosted logo, or add-ons
|
|
1109
|
+
* themselves. `details` is `planRequiredDetails`:
|
|
1047
1110
|
* the feature, the org's own plan, and the cheapest plan that has it, so
|
|
1048
1111
|
* the console can offer the upgrade in the same breath as the refusal.
|
|
1049
1112
|
*/
|
|
@@ -1149,4 +1212,56 @@ export const ERROR_CODES = [
|
|
|
1149
1212
|
* policy guard on the developer HTTP surface.
|
|
1150
1213
|
*/
|
|
1151
1214
|
'support_forbidden',
|
|
1215
|
+
// 2026-11-04 — app collections.
|
|
1216
|
+
/**
|
|
1217
|
+
* `409`: the record cannot be deleted, or an import cannot delete it,
|
|
1218
|
+
* because other records point at it through a reference whose `on_delete` is
|
|
1219
|
+
* `prevent`. `details` is `recordReferencedDetails`: the collections that
|
|
1220
|
+
* reference it, among those the caller may read, and how many records each
|
|
1221
|
+
* has, never their ids or values.
|
|
1222
|
+
*/
|
|
1223
|
+
'record_referenced',
|
|
1224
|
+
/**
|
|
1225
|
+
* `409`: a write sent an `expected_revision` and the record is at another
|
|
1226
|
+
* revision now. Nothing was changed. `details` is `recordChangedDetails`:
|
|
1227
|
+
* the current revision; read the record again and decide.
|
|
1228
|
+
*/
|
|
1229
|
+
'record_changed',
|
|
1230
|
+
/**
|
|
1231
|
+
* `404`: the app has no published collection with that key. A caller who has
|
|
1232
|
+
* no right at all on a collection gets the same answer, so that the key of a
|
|
1233
|
+
* collection they may not touch is not told; a caller with some right, but
|
|
1234
|
+
* not the one this request needs, gets `403 forbidden` instead. Also the
|
|
1235
|
+
* code of a refused `collection_subscribe`.
|
|
1236
|
+
*/
|
|
1237
|
+
'collection_not_found',
|
|
1238
|
+
/**
|
|
1239
|
+
* Realtime only, no HTTP status: a `collection_subscribe_error` frame that
|
|
1240
|
+
* ends a subscription because a publish removed its collection from the
|
|
1241
|
+
* schema.
|
|
1242
|
+
*/
|
|
1243
|
+
'collection_removed',
|
|
1244
|
+
/**
|
|
1245
|
+
* `400`: a reference field points at something it may not: a record that
|
|
1246
|
+
* does not exist, one of another robot, or one in a collection the caller
|
|
1247
|
+
* may not read. `details` is `referenceInvalidDetails`: the field and the
|
|
1248
|
+
* reason.
|
|
1249
|
+
*/
|
|
1250
|
+
'reference_invalid',
|
|
1251
|
+
/**
|
|
1252
|
+
* `400`: a create leaves a required field empty, or an update clears one.
|
|
1253
|
+
* `details` is `requiredMissingDetails`: every such field, not only the
|
|
1254
|
+
* first. A record whose required fields were emptied by a schema change can
|
|
1255
|
+
* still be updated in its other fields; it is the write that breaks the
|
|
1256
|
+
* rule that is refused.
|
|
1257
|
+
*/
|
|
1258
|
+
'required_missing',
|
|
1259
|
+
/**
|
|
1260
|
+
* `400`: the request names a robot that the app does not have attached, or
|
|
1261
|
+
* that the caller cannot reach, for example the `robot_id` of a new record, a
|
|
1262
|
+
* `robot` filter or a `collection_subscribe`. Over realtime it also ends a
|
|
1263
|
+
* subscription whose robot was detached. A detached robot's records are kept
|
|
1264
|
+
* and stay hidden until it is attached again.
|
|
1265
|
+
*/
|
|
1266
|
+
'robot_not_attached',
|
|
1152
1267
|
];
|
package/dist/index.d.ts
CHANGED
|
@@ -43,14 +43,14 @@ export { referencePlace, orgRole, danglingReference, orgRoleListResponse, create
|
|
|
43
43
|
export type { ReferencePlace, OrgRole, DanglingReference, OrgRoleListResponse, CreateOrgRoleRequest, PatchOrgRoleRequest, RoleRenamePreview, RoleDefaultsResponse, PutRoleDefaultsRequest, } from './org-roles.js';
|
|
44
44
|
export { rosGraphEntry, rosGraph, typeField, typeDefinition, parameterFieldsOf } from './introspection.js';
|
|
45
45
|
export type { RosGraphEntry, RosGraph, TypeField, TypeDefinition } from './introspection.js';
|
|
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,
|
|
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';
|
|
47
47
|
export type { HistoryQuery, HistorySamplesResponse, HistoryResponse, HistoryBucketsResponse, OrgQuotas, OrgQuotaUsage, OrgQuotaUsageCounts, RobotDeletionSummary, ResourceHealthState, ResourceHealthListResponse, OrgHealthQuery, RobotDeleteQuery, PatchRobotRequest, RenameSlugRequest, RenameSlugResponse, SlugUsageResponse, } from './rest.js';
|
|
48
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';
|
|
49
49
|
export type { LatencyBucket, RobotLatencySeries, OrgLatencyResponse } from './rest.js';
|
|
50
50
|
export type { UsageMetric, OrgUsageQuery, UsageRow, OrgUsageResponse } from './rest.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,
|
|
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, } 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, } 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';
|
|
54
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';
|
|
55
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';
|
|
56
56
|
export { FEEDBACK_KINDS, FEEDBACK_MESSAGE_MAX, feedbackKind, feedbackRequest, feedbackResponse } from './feedback.js';
|
|
@@ -71,12 +71,12 @@ export { APP_USER_DISPLAY_NAME_MAX, APP_URL_PLACEHOLDERS, MAIL_TEMPLATE_VARIABLE
|
|
|
71
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';
|
|
72
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';
|
|
73
73
|
export type { AssetKind, Asset, UrdfCompleteness, AssetListResponse, AssetsClearResponse, MissingAssetQuery, AssetSyncRequest, AssetSyncResponse, AssetSyncState, AssetSyncStatus, AssetFailure, AssetFailureKind, AssetStoreRefusedDetails, AssetSyncBusyDetails, } from './assets.js';
|
|
74
|
-
export { auditActor, auditEvent, auditQuery, auditListResponse, AUDIT_CSV_COLUMNS, AUDIT_RETENTION_DAYS } from './audit.js';
|
|
75
|
-
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';
|
|
76
76
|
export { alertRowCondition, alertSeverity, alertState, datapointAlertRow, alertListResponse, orgFiringAlertsResponse, orgAlertsQuery, datapointDisplay, putDatapointDisplayRequest, } from './alerts.js';
|
|
77
77
|
export type { AlertRowCondition, AlertSeverity, AlertState, DatapointAlertRow, AlertListResponse, OrgFiringAlertsResponse, OrgAlertsQuery, DatapointDisplay, PutDatapointDisplayRequest, } from './alerts.js';
|
|
78
|
-
export { apiError, parameterViolation, parameterInvalidDetails, cancelRejectedDetails, invalidCodeDetails, ERROR_CODES, planLimitDetails, assetPlanLimitDetails, planRequiredDetails, orgLockedDetails, fileTooLargeDetails, paymentProviderUnavailableDetails, billingDocumentsUnavailableDetails, roleCycleDetails, } from './errors.js';
|
|
79
|
-
export type { ApiError, ParameterViolation, ParameterInvalidDetails, CancelRejectedDetails, InvalidCodeDetails, ErrorCode, PlanLimitDetails, AssetPlanLimitDetails, PlanRequiredDetails, OrgLockedDetails, FileTooLargeDetails, PaymentProviderUnavailableDetails, BillingDocumentsUnavailableDetails, RoleCycleDetails, } 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';
|
|
80
80
|
export { oauthErrorCode, oauthError, oauthRedirectResponse, oauthCodeTokenRequest, oauthRefreshTokenRequest, oauthTokenRequest, oauthTokenResponse, redirectUri, codeChallengeMethod, oauthAuthorizeQuery, dynamicClientRegistrationRequest, MCP_DCR_MAX_REDIRECT_URIS, dynamicClientRegistrationResponse, authorizationServerMetadata, protectedResourceMetadata, } from './oauth.js';
|
|
81
81
|
export type { OauthErrorCode, OauthError, OauthRedirectResponse, OauthCodeTokenRequest, OauthRefreshTokenRequest, OauthTokenRequest, OauthTokenResponse, RedirectUri, OauthAuthorizeQuery, DynamicClientRegistrationRequest, DynamicClientRegistrationResponse, AuthorizationServerMetadata, ProtectedResourceMetadata, } from './oauth.js';
|
|
82
82
|
export { ROUTES, ROUTE_SECTIONS, IN_HANDLER_ROUTES, developerSignInRoutes } from './routes.js';
|
|
@@ -92,3 +92,19 @@ export { controllerRegisterAddress, controllerRegisterPrivacyContact, controller
|
|
|
92
92
|
export type { ControllerRegisterWrite, ControllerRegisterOrgResponse } from './controller-register.js';
|
|
93
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';
|
|
94
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
|
@@ -34,7 +34,7 @@ export { ROLE_KEY_PATTERN, ROLE_KEY_RULE, roleKey, roleRef, ACCESS_KINDS, access
|
|
|
34
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
35
|
export { referencePlace, orgRole, danglingReference, orgRoleListResponse, createOrgRoleRequest, patchOrgRoleRequest, roleRenamePreview, roleDefaultsResponse, putRoleDefaultsRequest, } from './org-roles.js';
|
|
36
36
|
export { rosGraphEntry, rosGraph, typeField, typeDefinition, parameterFieldsOf } from './introspection.js';
|
|
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,
|
|
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,
|
|
38
38
|
// Addressing.
|
|
39
39
|
cancelRequest, recoverHeldJobRequest, recoverHeldJobResponse, releaseLiveQuery, serviceCallResponse, invokeOrServiceResponse, publishRequest, jobResponse, robotJobsResponse, rateLimitDetails, exposure, exposureListResponse, SNAPSHOT_HEADERS, ASSET_UPLOAD_HEADERS, cameraDescriptor, cameraListResponse, liveSessionResponse, snapshotMetaResponse,
|
|
40
40
|
// Retention, history, quotas.
|
|
@@ -42,7 +42,7 @@ historyQuery, historySamplesResponse, historyBucketsResponse, historyResponse, o
|
|
|
42
42
|
// Robot rename, slug rename.
|
|
43
43
|
patchRobotRequest, renameSlugRequest, renameSlugResponse, slugUsageResponse, } from './rest.js';
|
|
44
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';
|
|
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, } 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';
|
|
46
46
|
export { password, org, patchOrgResponse, sessionTokens, refreshRequest,
|
|
47
47
|
// 2026-09-04 — the public site (closed beta).
|
|
48
48
|
WAITLIST_F1_TEXT_VERSION, waitlistRequest,
|
|
@@ -68,7 +68,7 @@ export { legalAcceptanceListQuery, legalAcceptanceVersionRow, legalAcceptanceLis
|
|
|
68
68
|
// The per-app identity space.
|
|
69
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';
|
|
70
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';
|
|
71
|
-
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';
|
|
72
72
|
export { alertRowCondition, alertSeverity, alertState, datapointAlertRow, alertListResponse, orgFiringAlertsResponse, orgAlertsQuery, datapointDisplay, putDatapointDisplayRequest, } from './alerts.js';
|
|
73
73
|
export { apiError, parameterViolation, parameterInvalidDetails, cancelRejectedDetails, invalidCodeDetails, ERROR_CODES,
|
|
74
74
|
// 2026-10-02 — plans (#103). The plan errors (I-3).
|
|
@@ -79,6 +79,8 @@ fileTooLargeDetails,
|
|
|
79
79
|
paymentProviderUnavailableDetails,
|
|
80
80
|
// 2026-10-19 — Lexware billing documents (fleetless/fleetless#544).
|
|
81
81
|
billingDocumentsUnavailableDetails,
|
|
82
|
+
// 2026-11-04 — app collections.
|
|
83
|
+
confirmationRequiredDetails, recordReferencedDetails, recordChangedDetails, referenceInvalidDetails, requiredMissingDetails,
|
|
82
84
|
// Organization roles.
|
|
83
85
|
roleCycleDetails, } from './errors.js';
|
|
84
86
|
export { oauthErrorCode, oauthError, oauthRedirectResponse, oauthCodeTokenRequest, oauthRefreshTokenRequest, oauthTokenRequest, oauthTokenResponse, redirectUri, codeChallengeMethod, oauthAuthorizeQuery, dynamicClientRegistrationRequest, MCP_DCR_MAX_REDIRECT_URIS, dynamicClientRegistrationResponse, authorizationServerMetadata, protectedResourceMetadata, } from './oauth.js';
|
|
@@ -100,3 +102,11 @@ billingDocumentKind, billingDocumentStatus, billingDocumentProfile, billingDocum
|
|
|
100
102
|
billingIssuer, billingChargeInvoice, billingCharge, chargePayRequest, } from './billing.js';
|
|
101
103
|
export { controllerRegisterAddress, controllerRegisterPrivacyContact, controllerRegisterRepresentative, controllerRegisterWrite, controllerRegisterOrgRecord, controllerRegisterOrgResponse } from './controller-register.js';
|
|
102
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';
|
package/dist/org-roles.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const referencePlace: z.ZodObject<{
|
|
|
12
12
|
org_default: "org_default";
|
|
13
13
|
app_user: "app_user";
|
|
14
14
|
config: "config";
|
|
15
|
+
collection_schema: "collection_schema";
|
|
15
16
|
invitation: "invitation";
|
|
16
17
|
app_default: "app_default";
|
|
17
18
|
role_inherits: "role_inherits";
|
|
@@ -47,6 +48,7 @@ export declare const danglingReference: z.ZodObject<{
|
|
|
47
48
|
org_default: "org_default";
|
|
48
49
|
app_user: "app_user";
|
|
49
50
|
config: "config";
|
|
51
|
+
collection_schema: "collection_schema";
|
|
50
52
|
invitation: "invitation";
|
|
51
53
|
app_default: "app_default";
|
|
52
54
|
role_inherits: "role_inherits";
|
|
@@ -82,6 +84,7 @@ export declare const orgRoleListResponse: z.ZodObject<{
|
|
|
82
84
|
org_default: "org_default";
|
|
83
85
|
app_user: "app_user";
|
|
84
86
|
config: "config";
|
|
87
|
+
collection_schema: "collection_schema";
|
|
85
88
|
invitation: "invitation";
|
|
86
89
|
app_default: "app_default";
|
|
87
90
|
role_inherits: "role_inherits";
|
|
@@ -139,6 +142,7 @@ export declare const roleRenamePreview: z.ZodObject<{
|
|
|
139
142
|
org_default: "org_default";
|
|
140
143
|
app_user: "app_user";
|
|
141
144
|
config: "config";
|
|
145
|
+
collection_schema: "collection_schema";
|
|
142
146
|
invitation: "invitation";
|
|
143
147
|
app_default: "app_default";
|
|
144
148
|
role_inherits: "role_inherits";
|
package/dist/org-roles.js
CHANGED
|
@@ -26,32 +26,33 @@ const roleName = z.string().trim().min(1).max(ROLE_NAME_MAX);
|
|
|
26
26
|
* so a client renders a row without switching on `kind` to find a field.
|
|
27
27
|
*/
|
|
28
28
|
export const referencePlace = z.object({
|
|
29
|
-
kind: z.enum(['config', 'app_user', 'invitation', 'app_default', 'role_inherits', 'org_default']).meta({
|
|
30
|
-
description: 'What writes the key: `config` is a `role` or `access` value in a robot\'s `fleetless.yaml`, `
|
|
31
|
-
'
|
|
32
|
-
'and `org_default` one of the organization\'s defaults.',
|
|
29
|
+
kind: z.enum(['config', 'collection_schema', 'app_user', 'invitation', 'app_default', 'role_inherits', 'org_default']).meta({
|
|
30
|
+
description: 'What writes the key: `config` is a `role` or `access` value in a robot\'s `fleetless.yaml`, `collection_schema` an `access` entry of a collection ' +
|
|
31
|
+
'in an app\'s collections schema, `app_user` an app user who holds it, `invitation` an invitation that carries it, `app_default` an app\'s ' +
|
|
32
|
+
'default role, `role_inherits` another role that inherits from it, and `org_default` one of the organization\'s defaults.',
|
|
33
33
|
}),
|
|
34
34
|
label: z.string().meta({
|
|
35
|
-
description: 'What a person reads to find the place: the robot name (`config`), the e-mail address of the app user or of the invitee (`app_user`, `invitation`), the
|
|
35
|
+
description: 'What a person reads to find the place: the robot name (`config`), the app name (`collection_schema`, `app_default`), the e-mail address of the app user or of the invitee (`app_user`, `invitation`), the name of the inheriting role (`role_inherits`), or the access kind of an organization default (`org_default`).',
|
|
36
36
|
}),
|
|
37
37
|
path: z.string().nullable().meta({
|
|
38
38
|
description: 'Where the key is written. For `config`, the place in the YAML, such as `services.arm_home.role` or `access.rules[1].role`; for ' +
|
|
39
|
+
'`collection_schema`, the place in the collections schema, such as `collections.notes.access.update.own[1]`; for ' +
|
|
39
40
|
'`role_inherits`, the key of the role that inherits from it, because display names are not unique; `null` for every other kind.',
|
|
40
41
|
}),
|
|
41
42
|
robot_id: z.uuid().nullable().meta({
|
|
42
43
|
description: 'The robot whose document holds the key (`config`); `null` for every other kind.',
|
|
43
44
|
}),
|
|
44
45
|
app_id: z.uuid().nullable().meta({
|
|
45
|
-
description: 'The app the user, invitation or default role
|
|
46
|
+
description: 'The app the key belongs to: the app whose collections schema holds it (`collection_schema`), or the app of the user, invitation or default role (`app_user`, `invitation`, `app_default`); `null` for every other kind.',
|
|
46
47
|
}),
|
|
47
48
|
user_id: z.uuid().nullable().meta({
|
|
48
49
|
description: 'The app user who holds the key (`app_user`); `null` for every other kind.',
|
|
49
50
|
}),
|
|
50
51
|
document: z.enum(['published', 'draft']).nullable().meta({
|
|
51
|
-
description: 'Which version of the
|
|
52
|
+
description: 'Which version of the document holds the key (`config`: the robot\'s configuration, `collection_schema`: the app\'s collections schema): the published one or the draft; `null` for every other kind.',
|
|
52
53
|
}),
|
|
53
54
|
new_version: z.number().int().positive().nullable().meta({
|
|
54
|
-
description: 'For a published document, the version number a rename with `update_references` would give it, a copy that differs only in the key; ' +
|
|
55
|
+
description: 'For a published document (`config` or `collection_schema`), the version number a rename with `update_references` would give it, a copy that differs only in the key; ' +
|
|
55
56
|
'`null` for a draft and for every place that is no document.',
|
|
56
57
|
}),
|
|
57
58
|
});
|
|
@@ -77,7 +78,7 @@ export const orgRole = z.object({
|
|
|
77
78
|
description: 'Apps that use this role as their default role.',
|
|
78
79
|
}),
|
|
79
80
|
references: z.number().int().nonnegative().meta({
|
|
80
|
-
description: 'Places in documents that name this role, such as a `role` in a robot\'s `fleetless.yaml
|
|
81
|
+
description: 'Places in documents that name this role, such as a `role` in a robot\'s `fleetless.yaml` or an `access` entry in an app\'s collections schema. A rename with `update_references` rewrites them.',
|
|
81
82
|
}),
|
|
82
83
|
});
|
|
83
84
|
/** A key that is written somewhere and is no role, with every place that writes it. */
|
package/dist/plans.d.ts
CHANGED
|
@@ -25,7 +25,9 @@ export declare const PLAN_ORDER: readonly PlanId[];
|
|
|
25
25
|
* The limits a plan ties a number to. `history_days` and `audit_days` are
|
|
26
26
|
* not refused against — they size a retention window, not a quota that an
|
|
27
27
|
* action can exceed — but they share this vocabulary because they are read
|
|
28
|
-
* off the same catalogue row.
|
|
28
|
+
* off the same catalogue row. `collection_records` and `collection_bytes`
|
|
29
|
+
* are counted over the org's app collections, across all its apps, and
|
|
30
|
+
* refuse only what a person or an app adds: no add-on raises them.
|
|
29
31
|
*/
|
|
30
32
|
export declare const planLimitKey: z.ZodEnum<{
|
|
31
33
|
apps: "apps";
|
|
@@ -36,6 +38,8 @@ export declare const planLimitKey: z.ZodEnum<{
|
|
|
36
38
|
asset_bytes_per_robot: "asset_bytes_per_robot";
|
|
37
39
|
history_days: "history_days";
|
|
38
40
|
audit_days: "audit_days";
|
|
41
|
+
collection_records: "collection_records";
|
|
42
|
+
collection_bytes: "collection_bytes";
|
|
39
43
|
}>;
|
|
40
44
|
export type PlanLimitKey = z.infer<typeof planLimitKey>;
|
|
41
45
|
export declare const planLimits: z.ZodObject<{
|
|
@@ -47,6 +51,8 @@ export declare const planLimits: z.ZodObject<{
|
|
|
47
51
|
asset_bytes_per_robot: z.ZodNullable<z.ZodNumber>;
|
|
48
52
|
history_days: z.ZodNullable<z.ZodNumber>;
|
|
49
53
|
audit_days: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
collection_records: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
collection_bytes: z.ZodNullable<z.ZodNumber>;
|
|
50
56
|
}, z.core.$strip>;
|
|
51
57
|
export type PlanLimits = z.infer<typeof planLimits>;
|
|
52
58
|
/**
|
|
@@ -106,6 +112,8 @@ export declare const planCatalogueEntry: z.ZodObject<{
|
|
|
106
112
|
asset_bytes_per_robot: z.ZodNullable<z.ZodNumber>;
|
|
107
113
|
history_days: z.ZodNullable<z.ZodNumber>;
|
|
108
114
|
audit_days: z.ZodNullable<z.ZodNumber>;
|
|
115
|
+
collection_records: z.ZodNullable<z.ZodNumber>;
|
|
116
|
+
collection_bytes: z.ZodNullable<z.ZodNumber>;
|
|
109
117
|
}, z.core.$strip>;
|
|
110
118
|
features: z.ZodObject<{
|
|
111
119
|
require_two_factor: z.ZodBoolean;
|
|
@@ -158,6 +166,8 @@ export declare const addonCatalogueEntry: z.ZodObject<{
|
|
|
158
166
|
asset_bytes_per_robot: "asset_bytes_per_robot";
|
|
159
167
|
history_days: "history_days";
|
|
160
168
|
audit_days: "audit_days";
|
|
169
|
+
collection_records: "collection_records";
|
|
170
|
+
collection_bytes: "collection_bytes";
|
|
161
171
|
}>;
|
|
162
172
|
per_unit: z.ZodNumber;
|
|
163
173
|
prices: z.ZodObject<{
|
|
@@ -186,7 +196,9 @@ export declare function yearlyEurCents(monthEurCents: number): number;
|
|
|
186
196
|
*/
|
|
187
197
|
export declare function pricesFromEurMonth(eurMonthCents: number): PlanPrices;
|
|
188
198
|
/**
|
|
189
|
-
* The catalogue,
|
|
199
|
+
* The catalogue: limits, prices and features as the decision table
|
|
200
|
+
* (2026-09-30) states them, except that the audit export is on every plan,
|
|
201
|
+
* as the developer docs (`plans-and-limits.md`) and the cloud have it.
|
|
190
202
|
* Live video is in milliseconds, asset storage in decimal bytes per robot;
|
|
191
203
|
* Enterprise's limits and features are `null` / `true` throughout because
|
|
192
204
|
* they are set by contract, not read off this table.
|
|
@@ -360,6 +372,8 @@ export declare const orgPlan: z.ZodObject<{
|
|
|
360
372
|
asset_bytes_per_robot: z.ZodNullable<z.ZodNumber>;
|
|
361
373
|
history_days: z.ZodNullable<z.ZodNumber>;
|
|
362
374
|
audit_days: z.ZodNullable<z.ZodNumber>;
|
|
375
|
+
collection_records: z.ZodNullable<z.ZodNumber>;
|
|
376
|
+
collection_bytes: z.ZodNullable<z.ZodNumber>;
|
|
363
377
|
}, z.core.$strip>;
|
|
364
378
|
features: z.ZodObject<{
|
|
365
379
|
require_two_factor: z.ZodBoolean;
|
|
@@ -508,6 +522,8 @@ export declare const planChangeDecisionStatusResponse: z.ZodDiscriminatedUnion<[
|
|
|
508
522
|
asset_bytes_per_robot: z.ZodNullable<z.ZodNumber>;
|
|
509
523
|
history_days: z.ZodNullable<z.ZodNumber>;
|
|
510
524
|
audit_days: z.ZodNullable<z.ZodNumber>;
|
|
525
|
+
collection_records: z.ZodNullable<z.ZodNumber>;
|
|
526
|
+
collection_bytes: z.ZodNullable<z.ZodNumber>;
|
|
511
527
|
}, z.core.$strip>;
|
|
512
528
|
features: z.ZodObject<{
|
|
513
529
|
require_two_factor: z.ZodBoolean;
|
|
@@ -581,6 +597,8 @@ export declare const planOverrides: z.ZodObject<{
|
|
|
581
597
|
asset_bytes_per_robot: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
582
598
|
history_days: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
583
599
|
audit_days: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
600
|
+
collection_records: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
601
|
+
collection_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
584
602
|
}, z.core.$strict>;
|
|
585
603
|
export type PlanOverrides = z.infer<typeof planOverrides>;
|
|
586
604
|
/**
|
|
@@ -616,6 +634,8 @@ export declare const adminPlanChangeRequest: z.ZodObject<{
|
|
|
616
634
|
asset_bytes_per_robot: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
617
635
|
history_days: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
618
636
|
audit_days: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
637
|
+
collection_records: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
638
|
+
collection_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
619
639
|
}, z.core.$strict>>;
|
|
620
640
|
currency: z.ZodOptional<z.ZodEnum<{
|
|
621
641
|
eur: "eur";
|
package/dist/plans.js
CHANGED
|
@@ -21,7 +21,9 @@ export const PLAN_ORDER = ['basic', 'plus', 'pro', 'enterprise'];
|
|
|
21
21
|
* The limits a plan ties a number to. `history_days` and `audit_days` are
|
|
22
22
|
* not refused against — they size a retention window, not a quota that an
|
|
23
23
|
* action can exceed — but they share this vocabulary because they are read
|
|
24
|
-
* off the same catalogue row.
|
|
24
|
+
* off the same catalogue row. `collection_records` and `collection_bytes`
|
|
25
|
+
* are counted over the org's app collections, across all its apps, and
|
|
26
|
+
* refuse only what a person or an app adds: no add-on raises them.
|
|
25
27
|
*/
|
|
26
28
|
export const planLimitKey = z.enum([
|
|
27
29
|
'seats',
|
|
@@ -32,6 +34,8 @@ export const planLimitKey = z.enum([
|
|
|
32
34
|
'asset_bytes_per_robot',
|
|
33
35
|
'history_days',
|
|
34
36
|
'audit_days',
|
|
37
|
+
'collection_records',
|
|
38
|
+
'collection_bytes',
|
|
35
39
|
]);
|
|
36
40
|
/** `null` = by contract (Enterprise) or unlimited; see `orgPlan.limits`. */
|
|
37
41
|
const limit = z.number().int().positive().nullable();
|
|
@@ -48,6 +52,14 @@ export const planLimits = z.object({
|
|
|
48
52
|
}),
|
|
49
53
|
history_days: limit.meta({ description: 'Days the org\'s robot history is kept.' }),
|
|
50
54
|
audit_days: limit.meta({ description: 'Days the org\'s audit log is kept.' }),
|
|
55
|
+
collection_records: limit.meta({
|
|
56
|
+
description: 'Records in the app collections of all the org\'s apps, together. Only current records count, deleted ones and the history do not. ' +
|
|
57
|
+
'A write or an import that would add records past it is refused `409 plan_limit` naming this key; reads continue.',
|
|
58
|
+
}),
|
|
59
|
+
collection_bytes: limit.meta({
|
|
60
|
+
description: 'Bytes the current records of all the org\'s app collections occupy, as stored JSON (decimal: 1 GB = 1,000,000,000). The history is ' +
|
|
61
|
+
'shown beside it and not limited. A write or an import that would add data past it is refused `409 plan_limit` naming this key; reads continue.',
|
|
62
|
+
}),
|
|
51
63
|
});
|
|
52
64
|
/**
|
|
53
65
|
* What a plan unlocks beyond a number: `app_mcp` (the app's MCP server),
|
|
@@ -125,7 +137,9 @@ export function pricesFromEurMonth(eurMonthCents) {
|
|
|
125
137
|
};
|
|
126
138
|
}
|
|
127
139
|
/**
|
|
128
|
-
* The catalogue,
|
|
140
|
+
* The catalogue: limits, prices and features as the decision table
|
|
141
|
+
* (2026-09-30) states them, except that the audit export is on every plan,
|
|
142
|
+
* as the developer docs (`plans-and-limits.md`) and the cloud have it.
|
|
129
143
|
* Live video is in milliseconds, asset storage in decimal bytes per robot;
|
|
130
144
|
* Enterprise's limits and features are `null` / `true` throughout because
|
|
131
145
|
* they are set by contract, not read off this table.
|
|
@@ -143,6 +157,8 @@ export const PLANS = {
|
|
|
143
157
|
asset_bytes_per_robot: 1_000_000_000,
|
|
144
158
|
history_days: 7,
|
|
145
159
|
audit_days: 7,
|
|
160
|
+
collection_records: 25_000,
|
|
161
|
+
collection_bytes: 1_000_000_000,
|
|
146
162
|
},
|
|
147
163
|
features: {
|
|
148
164
|
app_mcp: false,
|
|
@@ -150,7 +166,7 @@ export const PLANS = {
|
|
|
150
166
|
require_two_factor: false,
|
|
151
167
|
app_oidc: false,
|
|
152
168
|
hosted_logo: false,
|
|
153
|
-
audit_export:
|
|
169
|
+
audit_export: true,
|
|
154
170
|
addons: false,
|
|
155
171
|
},
|
|
156
172
|
prices: pricesFromEurMonth(0),
|
|
@@ -168,6 +184,8 @@ export const PLANS = {
|
|
|
168
184
|
asset_bytes_per_robot: 2_000_000_000,
|
|
169
185
|
history_days: 30,
|
|
170
186
|
audit_days: 30,
|
|
187
|
+
collection_records: 250_000,
|
|
188
|
+
collection_bytes: 10_000_000_000,
|
|
171
189
|
},
|
|
172
190
|
features: {
|
|
173
191
|
app_mcp: true,
|
|
@@ -175,7 +193,7 @@ export const PLANS = {
|
|
|
175
193
|
require_two_factor: false,
|
|
176
194
|
app_oidc: true,
|
|
177
195
|
hosted_logo: true,
|
|
178
|
-
audit_export:
|
|
196
|
+
audit_export: true,
|
|
179
197
|
addons: false,
|
|
180
198
|
},
|
|
181
199
|
prices: pricesFromEurMonth(2900),
|
|
@@ -193,6 +211,8 @@ export const PLANS = {
|
|
|
193
211
|
asset_bytes_per_robot: 3_000_000_000,
|
|
194
212
|
history_days: 90,
|
|
195
213
|
audit_days: 90,
|
|
214
|
+
collection_records: 1_000_000,
|
|
215
|
+
collection_bytes: 50_000_000_000,
|
|
196
216
|
},
|
|
197
217
|
features: {
|
|
198
218
|
app_mcp: true,
|
|
@@ -218,6 +238,8 @@ export const PLANS = {
|
|
|
218
238
|
asset_bytes_per_robot: null,
|
|
219
239
|
history_days: null,
|
|
220
240
|
audit_days: null,
|
|
241
|
+
collection_records: null,
|
|
242
|
+
collection_bytes: null,
|
|
221
243
|
},
|
|
222
244
|
features: {
|
|
223
245
|
app_mcp: true,
|