@fleetless/contracts 13.1.0 → 13.3.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 +43 -0
- package/artifacts/openapi.json +126 -20
- package/artifacts/routes.json +22 -47
- package/artifacts/schema/app-auth-config.schema.json +15 -0
- package/artifacts/schema/config-draft-response.schema.json +30 -0
- package/artifacts/schema/config-version-response.schema.json +30 -0
- package/artifacts/schema/config-versions-response.schema.json +30 -0
- package/dist/app-users.d.ts +19 -2
- package/dist/app-users.js +14 -2
- package/dist/assets.d.ts +1 -1
- package/dist/assets.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/rest.d.ts +28 -0
- package/dist/rest.js +30 -4
- package/dist/routes.js +32 -44
- package/package.json +1 -1
|
@@ -159,6 +159,21 @@
|
|
|
159
159
|
],
|
|
160
160
|
"description": "Where the hosted pages load the app's logo from, `<portal>/app/<identifier>/logo`, or `null` when no logo is stored. **Read-only** — the logo is written through `PUT /api/apps/:id/auth-config/logo`."
|
|
161
161
|
},
|
|
162
|
+
"hosted_logo_shape": {
|
|
163
|
+
"description": "How the hosted pages lay the logo out: `square` beside the app's name, `wide` in place of it. **Read-only** — derived from the stored image, and `null` exactly when `hosted_logo_url` is `null`. An image whose size cannot be read is `square`. Absent when the server predates this field: read an absent field as unknown, not as `square`. The cloud always sends it.",
|
|
164
|
+
"anyOf": [
|
|
165
|
+
{
|
|
166
|
+
"type": "string",
|
|
167
|
+
"enum": [
|
|
168
|
+
"square",
|
|
169
|
+
"wide"
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"type": "null"
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
},
|
|
162
177
|
"hosted_accent": {
|
|
163
178
|
"anyOf": [
|
|
164
179
|
{
|
|
@@ -1724,6 +1724,36 @@
|
|
|
1724
1724
|
}
|
|
1725
1725
|
]
|
|
1726
1726
|
},
|
|
1727
|
+
"updated_by": {
|
|
1728
|
+
"description": "Who saved the draft last. `null` when nobody has saved it yet, when the cloud itself rewrote it (a slug rename), when the member has since been removed, or when the draft is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.",
|
|
1729
|
+
"anyOf": [
|
|
1730
|
+
{
|
|
1731
|
+
"type": "object",
|
|
1732
|
+
"properties": {
|
|
1733
|
+
"id": {
|
|
1734
|
+
"type": "string",
|
|
1735
|
+
"format": "uuid",
|
|
1736
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
1737
|
+
"description": "The team member's id."
|
|
1738
|
+
},
|
|
1739
|
+
"name": {
|
|
1740
|
+
"type": "string",
|
|
1741
|
+
"minLength": 1,
|
|
1742
|
+
"maxLength": 200,
|
|
1743
|
+
"description": "The member's display name, or the local part of the email address when the member has none. Never a full email address."
|
|
1744
|
+
}
|
|
1745
|
+
},
|
|
1746
|
+
"required": [
|
|
1747
|
+
"id",
|
|
1748
|
+
"name"
|
|
1749
|
+
],
|
|
1750
|
+
"additionalProperties": false
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
"type": "null"
|
|
1754
|
+
}
|
|
1755
|
+
]
|
|
1756
|
+
},
|
|
1727
1757
|
"issues": {
|
|
1728
1758
|
"type": "array",
|
|
1729
1759
|
"items": {
|
|
@@ -12,6 +12,36 @@
|
|
|
12
12
|
"format": "date-time",
|
|
13
13
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
14
14
|
},
|
|
15
|
+
"published_by": {
|
|
16
|
+
"description": "Who published the version. `null` when the member has since been removed, or when the version is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.",
|
|
17
|
+
"anyOf": [
|
|
18
|
+
{
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"id": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"format": "uuid",
|
|
24
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
25
|
+
"description": "The team member's id."
|
|
26
|
+
},
|
|
27
|
+
"name": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1,
|
|
30
|
+
"maxLength": 200,
|
|
31
|
+
"description": "The member's display name, or the local part of the email address when the member has none. Never a full email address."
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": [
|
|
35
|
+
"id",
|
|
36
|
+
"name"
|
|
37
|
+
],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"type": "null"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
15
45
|
"doc": {
|
|
16
46
|
"type": "object",
|
|
17
47
|
"properties": {
|
|
@@ -16,6 +16,36 @@
|
|
|
16
16
|
"type": "string",
|
|
17
17
|
"format": "date-time",
|
|
18
18
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
19
|
+
},
|
|
20
|
+
"published_by": {
|
|
21
|
+
"description": "Who published the version. `null` when the member has since been removed, or when the version is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.",
|
|
22
|
+
"anyOf": [
|
|
23
|
+
{
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"id": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": "uuid",
|
|
29
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
30
|
+
"description": "The team member's id."
|
|
31
|
+
},
|
|
32
|
+
"name": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1,
|
|
35
|
+
"maxLength": 200,
|
|
36
|
+
"description": "The member's display name, or the local part of the email address when the member has none. Never a full email address."
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": [
|
|
40
|
+
"id",
|
|
41
|
+
"name"
|
|
42
|
+
],
|
|
43
|
+
"additionalProperties": false
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "null"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
19
49
|
}
|
|
20
50
|
},
|
|
21
51
|
"required": [
|
package/dist/app-users.d.ts
CHANGED
|
@@ -424,10 +424,23 @@ export type AppTwoFactorPolicy = z.infer<typeof appTwoFactorPolicy>;
|
|
|
424
424
|
export declare const appHomeUrl: z.ZodURL;
|
|
425
425
|
/** The accent colour of the hosted pages: `#rrggbb`, lowercase, the one spelling the renderer compares against. */
|
|
426
426
|
export declare const hostedAccent: z.ZodString;
|
|
427
|
-
/** The largest logo the hosted pages take, in bytes:
|
|
428
|
-
export declare const HOSTED_LOGO_MAX_BYTES =
|
|
427
|
+
/** The largest logo the hosted pages take, in bytes: 512 KB. */
|
|
428
|
+
export declare const HOSTED_LOGO_MAX_BYTES = 524288;
|
|
429
429
|
/** The logo types the hosted pages take. An SVG is served sandboxed and embedded only as an image. */
|
|
430
430
|
export declare const HOSTED_LOGO_TYPES: readonly ["image/png", "image/svg+xml"];
|
|
431
|
+
/**
|
|
432
|
+
* **How a stored logo is laid out on the hosted pages.**
|
|
433
|
+
*
|
|
434
|
+
* `wide` is a wordmark: it replaces the app's name. `square` is a mark: it
|
|
435
|
+
* sits beside the name. The cloud reads it from the stored image (its width
|
|
436
|
+
* and height, or an SVG's `viewBox`) and calls an image `wide` when it is more
|
|
437
|
+
* than one and a half times as wide as it is high.
|
|
438
|
+
*/
|
|
439
|
+
export declare const hostedLogoShape: z.ZodEnum<{
|
|
440
|
+
square: "square";
|
|
441
|
+
wide: "wide";
|
|
442
|
+
}>;
|
|
443
|
+
export type HostedLogoShape = z.infer<typeof hostedLogoShape>;
|
|
431
444
|
/**
|
|
432
445
|
* **The Fleetless-hosted pages an unset URL falls back to**, one per URL
|
|
433
446
|
* field, as templates with the same placeholder the field takes. Read-only:
|
|
@@ -481,6 +494,10 @@ export declare const appAuthConfig: z.ZodObject<{
|
|
|
481
494
|
off: "off";
|
|
482
495
|
}>;
|
|
483
496
|
hosted_logo_url: z.ZodNullable<z.ZodURL>;
|
|
497
|
+
hosted_logo_shape: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
498
|
+
square: "square";
|
|
499
|
+
wide: "wide";
|
|
500
|
+
}>>>;
|
|
484
501
|
hosted_accent: z.ZodNullable<z.ZodString>;
|
|
485
502
|
hosted_pages: z.ZodObject<{
|
|
486
503
|
invite_url: z.ZodURL;
|
package/dist/app-users.js
CHANGED
|
@@ -507,10 +507,19 @@ export const appHomeUrl = z
|
|
|
507
507
|
}, { message: 'An https URL (http only on localhost) without a placeholder.' });
|
|
508
508
|
/** The accent colour of the hosted pages: `#rrggbb`, lowercase, the one spelling the renderer compares against. */
|
|
509
509
|
export const hostedAccent = z.string().regex(/^#[0-9a-f]{6}$/, 'must be a lowercase hex colour, #rrggbb');
|
|
510
|
-
/** The largest logo the hosted pages take, in bytes:
|
|
511
|
-
export const HOSTED_LOGO_MAX_BYTES =
|
|
510
|
+
/** The largest logo the hosted pages take, in bytes: 512 KB. */
|
|
511
|
+
export const HOSTED_LOGO_MAX_BYTES = 524_288;
|
|
512
512
|
/** The logo types the hosted pages take. An SVG is served sandboxed and embedded only as an image. */
|
|
513
513
|
export const HOSTED_LOGO_TYPES = ['image/png', 'image/svg+xml'];
|
|
514
|
+
/**
|
|
515
|
+
* **How a stored logo is laid out on the hosted pages.**
|
|
516
|
+
*
|
|
517
|
+
* `wide` is a wordmark: it replaces the app's name. `square` is a mark: it
|
|
518
|
+
* sits beside the name. The cloud reads it from the stored image (its width
|
|
519
|
+
* and height, or an SVG's `viewBox`) and calls an image `wide` when it is more
|
|
520
|
+
* than one and a half times as wide as it is high.
|
|
521
|
+
*/
|
|
522
|
+
export const hostedLogoShape = z.enum(['square', 'wide']);
|
|
514
523
|
/**
|
|
515
524
|
* **The Fleetless-hosted pages an unset URL falls back to**, one per URL
|
|
516
525
|
* field, as templates with the same placeholder the field takes. Read-only:
|
|
@@ -584,6 +593,9 @@ export const appAuthConfig = z.object({
|
|
|
584
593
|
hosted_logo_url: z.url().nullable().meta({
|
|
585
594
|
description: 'Where the hosted pages load the app\'s logo from, `<portal>/app/<identifier>/logo`, or `null` when no logo is stored. **Read-only** — the logo is written through `PUT /api/apps/:id/auth-config/logo`.',
|
|
586
595
|
}),
|
|
596
|
+
hosted_logo_shape: hostedLogoShape.nullable().optional().meta({
|
|
597
|
+
description: 'How the hosted pages lay the logo out: `square` beside the app\'s name, `wide` in place of it. **Read-only** — derived from the stored image, and `null` exactly when `hosted_logo_url` is `null`. An image whose size cannot be read is `square`. Absent when the server predates this field: read an absent field as unknown, not as `square`. The cloud always sends it.',
|
|
598
|
+
}),
|
|
587
599
|
hosted_accent: hostedAccent.nullable().meta({
|
|
588
600
|
description: 'The accent colour of the hosted pages, `#rrggbb` in lowercase, or `null` for the neutral shell\'s own.',
|
|
589
601
|
}),
|
package/dist/assets.d.ts
CHANGED
|
@@ -390,7 +390,7 @@ export type AssetListResponse = z.infer<typeof assetListResponse>;
|
|
|
390
390
|
*
|
|
391
391
|
* A full store is never a dead end: the URDF upload is exempt from the gate,
|
|
392
392
|
* reconcile after every sync already frees what the new URDF stopped
|
|
393
|
-
* referencing, and this route is the third leg —
|
|
393
|
+
* referencing, and this route is the third leg — a developer can empty the
|
|
394
394
|
* store outright and let the next sync refill it. `deleted` and
|
|
395
395
|
* `bytes_freed` are what changed, not the store's state afterward — that is
|
|
396
396
|
* `0` by construction and not worth a field of its own.
|
package/dist/assets.js
CHANGED
|
@@ -527,7 +527,7 @@ export const assetListResponse = z.object({
|
|
|
527
527
|
*
|
|
528
528
|
* A full store is never a dead end: the URDF upload is exempt from the gate,
|
|
529
529
|
* reconcile after every sync already frees what the new URDF stopped
|
|
530
|
-
* referencing, and this route is the third leg —
|
|
530
|
+
* referencing, and this route is the third leg — a developer can empty the
|
|
531
531
|
* store outright and let the next sync refill it. `deleted` and
|
|
532
532
|
* `bytes_freed` are what changed, not the store's state afterward — that is
|
|
533
533
|
* `0` by construction and not worth a field of its own.
|
package/dist/index.d.ts
CHANGED
|
@@ -33,12 +33,12 @@ export { DOCUMENT_ROOT_PATH, EXPOSURE_SECTIONS, schemaIssues, formatPath, splitF
|
|
|
33
33
|
export type { SchemaIssue, ExposureSection } from './config-issues.js';
|
|
34
34
|
export { rosGraphEntry, rosGraph, typeField, typeDefinition, parameterFieldsOf } from './introspection.js';
|
|
35
35
|
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, configDraftResponse, putConfigDraftRequest, publishConfigResponse, configVersionsResponse, configVersionResponse, introspectionResponse, typesResponse, fetchTypesRequest, fetchTypesResponse, datapointDescriptor, datapointListResponse, robotDetailsDoc, putRobotDetailsResponse, putRobotDetailsRequest, 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';
|
|
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, robotDetailsDoc, putRobotDetailsResponse, putRobotDetailsRequest, 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
37
|
export type { HistoryQuery, HistorySamplesResponse, HistoryResponse, HistoryBucketsResponse, OrgQuotas, OrgQuotaUsage, OrgQuotaUsageCounts, RobotDeletionSummary, ResourceHealthState, ResourceHealthListResponse, OrgHealthQuery, RobotDeleteQuery, PatchRobotRequest, RenameSlugRequest, RenameSlugResponse, SlugUsageResponse, } from './rest.js';
|
|
38
38
|
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
39
|
export type { LatencyBucket, RobotLatencySeries, OrgLatencyResponse } from './rest.js';
|
|
40
40
|
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, ConfigDraftResponse, PutConfigDraftRequest, PublishConfigResponse, ConfigVersionsResponse, ConfigVersionResponse, IntrospectionResponse, TypesResponse, FetchTypesRequest, FetchTypesResponse, DatapointDescriptor, DatapointListResponse, RobotDetailsDoc, PutRobotDetailsResponse, PutRobotDetailsRequest, InvokeRequest, InvokeResponse, CancelRequest, RecoverHeldJobRequest, RecoverHeldJobResponse, ReleaseLiveQuery, ServiceCallResponse, InvokeOrServiceResponse, PublishRequest, JobResponse, RobotJobsResponse, RateLimitDetails, Exposure, ExposureListResponse, CameraDescriptor, CameraListResponse, LiveSessionResponse, SnapshotMetaResponse, } 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, RobotDetailsDoc, PutRobotDetailsResponse, PutRobotDetailsRequest, InvokeRequest, InvokeResponse, CancelRequest, RecoverHeldJobRequest, RecoverHeldJobResponse, ReleaseLiveQuery, ServiceCallResponse, InvokeOrServiceResponse, PublishRequest, JobResponse, RobotJobsResponse, RateLimitDetails, Exposure, ExposureListResponse, CameraDescriptor, CameraListResponse, LiveSessionResponse, SnapshotMetaResponse, } from './rest.js';
|
|
42
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
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';
|
|
44
44
|
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';
|
|
@@ -57,8 +57,8 @@ export { httpsLegalUrl, legalDocumentReference, legalTextReferences, TERMS_VERSI
|
|
|
57
57
|
export type { LegalDocumentReference, LegalTextReferences } from './legal.js';
|
|
58
58
|
export { legalAcceptanceListQuery, legalAcceptanceVersionRow, legalAcceptanceListResponse } from './legal-acceptances.js';
|
|
59
59
|
export type { LegalAcceptanceListQuery, LegalAcceptanceVersionRow, LegalAcceptanceListResponse } from './legal-acceptances.js';
|
|
60
|
-
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, 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';
|
|
61
|
-
export type { AppUserStatus, AppUser, AppUserListResponse, CreateAppUserRequest, PatchAppUserRequest, CreateAppInvitationRequest, AppInvitation, PendingAppInvitation, AppInvitationListResponse, AppOidcProvider, AppOidcProviderListResponse, CreateAppOidcProviderRequest, PatchAppOidcProviderRequest, AppAuthConfig, AppSignInMethods, AppTwoFactorPolicy, AppHostedPages, PutAppAuthRegistrationRequest, PutAppAuthSignInRequest, PutAppAuthUrlsRequest, PutAppAuthMcpRequest, PutAppAuthLookRequest, MailTemplateKind, AppMailTemplate, AppMailTemplateListResponse, PutAppMailTemplateRequest, MailTemplatePreviewRequest, MailTemplatePreviewResponse, MailTemplateProblemDetails, MailOutcome, } from './app-users.js';
|
|
60
|
+
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';
|
|
61
|
+
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
62
|
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
63
|
export type { AssetKind, Asset, UrdfCompleteness, AssetListResponse, AssetsClearResponse, MissingAssetQuery, AssetSyncRequest, AssetSyncResponse, AssetSyncState, AssetSyncStatus, AssetFailure, AssetFailureKind, AssetStoreRefusedDetails, AssetSyncBusyDetails, } from './assets.js';
|
|
64
64
|
export { auditActor, auditEvent, auditQuery, auditListResponse, AUDIT_CSV_COLUMNS, AUDIT_RETENTION_DAYS } from './audit.js';
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ cameraSource, cameraCredentials, } from './config.js';
|
|
|
26
26
|
*/
|
|
27
27
|
export { DOCUMENT_ROOT_PATH, EXPOSURE_SECTIONS, schemaIssues, formatPath, splitFormatPath, configSchemaHash, } from './config-issues.js';
|
|
28
28
|
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, configDraftResponse, putConfigDraftRequest, publishConfigResponse, configVersionsResponse, configVersionResponse, introspectionResponse, typesResponse, fetchTypesRequest, fetchTypesResponse, datapointDescriptor, datapointListResponse, robotDetailsDoc, putRobotDetailsResponse, putRobotDetailsRequest, invokeRequest, invokeResponse,
|
|
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, robotDetailsDoc, putRobotDetailsResponse, putRobotDetailsRequest, invokeRequest, invokeResponse,
|
|
30
30
|
// Addressing.
|
|
31
31
|
cancelRequest, recoverHeldJobRequest, recoverHeldJobResponse, releaseLiveQuery, serviceCallResponse, invokeOrServiceResponse, publishRequest, jobResponse, robotJobsResponse, rateLimitDetails, exposure, exposureListResponse, SNAPSHOT_HEADERS, ASSET_UPLOAD_HEADERS, cameraDescriptor, cameraListResponse, liveSessionResponse, snapshotMetaResponse,
|
|
32
32
|
// Retention, history, quotas.
|
|
@@ -58,7 +58,7 @@ export { clientRobotListItem, clientRobotListResponse } from './client-robots.js
|
|
|
58
58
|
export { httpsLegalUrl, legalDocumentReference, legalTextReferences, TERMS_VERSION, TERMS_VERSION_DATE, TERMS_VERSION_URL, DPA_VERSION, DPA_VERSION_DATE, DPA_VERSION_URL, } from './legal.js';
|
|
59
59
|
export { legalAcceptanceListQuery, legalAcceptanceVersionRow, legalAcceptanceListResponse } from './legal-acceptances.js';
|
|
60
60
|
// The per-app identity space.
|
|
61
|
-
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, 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';
|
|
61
|
+
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
62
|
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
63
|
export { auditActor, auditEvent, auditQuery, auditListResponse, AUDIT_CSV_COLUMNS, AUDIT_RETENTION_DAYS } from './audit.js';
|
|
64
64
|
export { alertRowCondition, alertSeverity, alertState, datapointAlertRow, alertListResponse, orgFiringAlertsResponse, orgAlertsQuery, datapointDisplay, putDatapointDisplayRequest, } from './alerts.js';
|
package/dist/rest.d.ts
CHANGED
|
@@ -244,6 +244,22 @@ export declare const robotDetailResponse: z.ZodObject<{
|
|
|
244
244
|
created_at: z.ZodISODateTime;
|
|
245
245
|
}, z.core.$strip>;
|
|
246
246
|
export type RobotDetailResponse = z.infer<typeof robotDetailResponse>;
|
|
247
|
+
/**
|
|
248
|
+
* **Who did it**: a console team member, by the name the team sees.
|
|
249
|
+
*
|
|
250
|
+
* `name` is the member's display name, or the local part of the member's email
|
|
251
|
+
* address when the member has set none. It is never an email address, so
|
|
252
|
+
* a response that carries authors can be shown to everyone who can read
|
|
253
|
+
* the configuration. `id` is the member's id, stable across renames.
|
|
254
|
+
*
|
|
255
|
+
* A member who has since been removed has no name to show, so the author is
|
|
256
|
+
* `null` wherever this shape is nullable.
|
|
257
|
+
*/
|
|
258
|
+
export declare const configAuthor: z.ZodObject<{
|
|
259
|
+
id: z.ZodUUID;
|
|
260
|
+
name: z.ZodString;
|
|
261
|
+
}, z.core.$strip>;
|
|
262
|
+
export type ConfigAuthor = z.infer<typeof configAuthor>;
|
|
247
263
|
/**
|
|
248
264
|
* The editable configuration. `issues` is recomputed on every read and
|
|
249
265
|
* write, so the editor never has to guess whether it may publish.
|
|
@@ -471,6 +487,10 @@ export declare const configDraftResponse: z.ZodObject<{
|
|
|
471
487
|
}, z.core.$strict>>;
|
|
472
488
|
source: z.ZodString;
|
|
473
489
|
updated_at: z.ZodNullable<z.ZodISODateTime>;
|
|
490
|
+
updated_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
491
|
+
id: z.ZodUUID;
|
|
492
|
+
name: z.ZodString;
|
|
493
|
+
}, z.core.$strip>>>;
|
|
474
494
|
issues: z.ZodArray<z.ZodObject<{
|
|
475
495
|
path: z.ZodString;
|
|
476
496
|
slug: z.ZodNullable<z.ZodString>;
|
|
@@ -516,6 +536,10 @@ export declare const configVersionsResponse: z.ZodObject<{
|
|
|
516
536
|
versions: z.ZodArray<z.ZodObject<{
|
|
517
537
|
version: z.ZodNumber;
|
|
518
538
|
published_at: z.ZodISODateTime;
|
|
539
|
+
published_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
540
|
+
id: z.ZodUUID;
|
|
541
|
+
name: z.ZodString;
|
|
542
|
+
}, z.core.$strip>>>;
|
|
519
543
|
}, z.core.$strip>>;
|
|
520
544
|
}, z.core.$strip>;
|
|
521
545
|
export type ConfigVersionsResponse = z.infer<typeof configVersionsResponse>;
|
|
@@ -530,6 +554,10 @@ export type ConfigVersionsResponse = z.infer<typeof configVersionsResponse>;
|
|
|
530
554
|
export declare const configVersionResponse: z.ZodObject<{
|
|
531
555
|
version: z.ZodNumber;
|
|
532
556
|
published_at: z.ZodISODateTime;
|
|
557
|
+
published_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
558
|
+
id: z.ZodUUID;
|
|
559
|
+
name: z.ZodString;
|
|
560
|
+
}, z.core.$strip>>>;
|
|
533
561
|
doc: z.ZodObject<{
|
|
534
562
|
fleetless: z.ZodLiteral<1>;
|
|
535
563
|
messages: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
package/dist/rest.js
CHANGED
|
@@ -174,6 +174,23 @@ export const robotDetailResponse = z.object({
|
|
|
174
174
|
.nullable(),
|
|
175
175
|
config: configState,
|
|
176
176
|
});
|
|
177
|
+
/**
|
|
178
|
+
* **Who did it**: a console team member, by the name the team sees.
|
|
179
|
+
*
|
|
180
|
+
* `name` is the member's display name, or the local part of the member's email
|
|
181
|
+
* address when the member has set none. It is never an email address, so
|
|
182
|
+
* a response that carries authors can be shown to everyone who can read
|
|
183
|
+
* the configuration. `id` is the member's id, stable across renames.
|
|
184
|
+
*
|
|
185
|
+
* A member who has since been removed has no name to show, so the author is
|
|
186
|
+
* `null` wherever this shape is nullable.
|
|
187
|
+
*/
|
|
188
|
+
export const configAuthor = z.object({
|
|
189
|
+
id: z.uuid().meta({ description: 'The team member\'s id.' }),
|
|
190
|
+
name: z.string().min(1).max(200).meta({
|
|
191
|
+
description: 'The member\'s display name, or the local part of the email address when the member has none. Never a full email address.',
|
|
192
|
+
}),
|
|
193
|
+
});
|
|
177
194
|
/**
|
|
178
195
|
* The editable configuration. `issues` is recomputed on every read and
|
|
179
196
|
* write, so the editor never has to guess whether it may publish.
|
|
@@ -209,6 +226,9 @@ export const configDraftResponse = z.object({
|
|
|
209
226
|
doc: robotConfigDoc.nullable(),
|
|
210
227
|
source: z.string(),
|
|
211
228
|
updated_at: z.iso.datetime().nullable(),
|
|
229
|
+
updated_by: configAuthor.nullable().optional().meta({
|
|
230
|
+
description: 'Who saved the draft last. `null` when nobody has saved it yet, when the cloud itself rewrote it (a slug rename), when the member has since been removed, or when the draft is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.',
|
|
231
|
+
}),
|
|
212
232
|
issues: z.array(validationIssue),
|
|
213
233
|
});
|
|
214
234
|
/**
|
|
@@ -240,6 +260,9 @@ export const configVersionsResponse = z.object({
|
|
|
240
260
|
versions: z.array(z.object({
|
|
241
261
|
version: z.number().int().positive(),
|
|
242
262
|
published_at: z.iso.datetime(),
|
|
263
|
+
published_by: configAuthor.nullable().optional().meta({
|
|
264
|
+
description: 'Who published the version. `null` when the member has since been removed, or when the version is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.',
|
|
265
|
+
}),
|
|
243
266
|
})),
|
|
244
267
|
});
|
|
245
268
|
/**
|
|
@@ -253,6 +276,9 @@ export const configVersionsResponse = z.object({
|
|
|
253
276
|
export const configVersionResponse = z.object({
|
|
254
277
|
version: z.number().int().positive(),
|
|
255
278
|
published_at: z.iso.datetime(),
|
|
279
|
+
published_by: configAuthor.nullable().optional().meta({
|
|
280
|
+
description: 'Who published the version. `null` when the member has since been removed, or when the version is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.',
|
|
281
|
+
}),
|
|
256
282
|
doc: robotConfigDoc,
|
|
257
283
|
source: z.string(),
|
|
258
284
|
});
|
|
@@ -644,7 +670,7 @@ export const jobResponse = z.object({
|
|
|
644
670
|
* | `GET /api/robots/{id}/assets/{assetId}` | developer **or** end user | `assets`, end users only |
|
|
645
671
|
* | `GET /api/robots/{id}/assets/missing?name=` | developer **or** end user | `assets`, end users only |
|
|
646
672
|
* | `GET /api/robots/{id}/urdf` | developer **or** end user | `assets`, end users only |
|
|
647
|
-
* | `POST /api/robots/{id}/assets/sync` | developer
|
|
673
|
+
* | `POST /api/robots/{id}/assets/sync` | developer | — |
|
|
648
674
|
* | `GET /api/robots/{id}/assets/sync/{syncId}` | developer | — |
|
|
649
675
|
* | `POST /api/bridge/assets` | robot token, per sync | — |
|
|
650
676
|
*
|
|
@@ -670,9 +696,9 @@ export const jobResponse = z.object({
|
|
|
670
696
|
* belonging to that robot. One mechanism instead of two, and robot deletion is
|
|
671
697
|
* already a cascade.
|
|
672
698
|
*
|
|
673
|
-
* Reading is a role capability; **changing the store
|
|
674
|
-
* spends the org's asset quota and a
|
|
675
|
-
*
|
|
699
|
+
* Reading is a role capability; **changing the store takes a developer
|
|
700
|
+
* session, never an end user's** — a sync spends the org's asset quota and a
|
|
701
|
+
* deletion breaks every app rendering that robot.
|
|
676
702
|
*
|
|
677
703
|
* **`GET .../assets/missing` is the sole producer of `asset_missing`.** It
|
|
678
704
|
* never succeeds,
|