@fleetless/contracts 8.2.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/artifacts/openapi.json +264 -2
- package/artifacts/routes.json +25 -0
- package/artifacts/schema/app-auth-config.schema.json +30 -0
- package/artifacts/schema/legal-acceptance-list-query.schema.json +26 -0
- package/artifacts/schema/legal-acceptance-list-response.schema.json +127 -0
- package/artifacts/schema/legal-acceptance-version-row.schema.json +101 -0
- package/artifacts/schema/legal-document-reference.schema.json +28 -0
- package/artifacts/schema/legal-text-references.schema.json +72 -0
- package/artifacts/schema/put-app-auth-urls-request.schema.json +31 -1
- package/artifacts/schema/waitlist-request.schema.json +9 -1
- package/dist/app-users.d.ts +12 -5
- package/dist/app-users.js +29 -6
- package/dist/identity.d.ts +5 -2
- package/dist/identity.js +10 -3
- package/dist/index.d.ts +5 -1
- package/dist/index.js +3 -1
- package/dist/legal-acceptances.d.ts +54 -0
- package/dist/legal-acceptances.js +22 -0
- package/dist/legal.d.ts +31 -0
- package/dist/legal.js +29 -0
- package/dist/routes.js +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"id": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"format": "uuid",
|
|
8
|
+
"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)$"
|
|
9
|
+
},
|
|
10
|
+
"context": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"enum": [
|
|
13
|
+
"registration",
|
|
14
|
+
"invitation",
|
|
15
|
+
"order",
|
|
16
|
+
"existing_org"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"accepted_at": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"format": "date-time",
|
|
22
|
+
"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{6}(?:Z))$"
|
|
23
|
+
},
|
|
24
|
+
"text_id": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"minLength": 1,
|
|
27
|
+
"maxLength": 80,
|
|
28
|
+
"pattern": "\\S"
|
|
29
|
+
},
|
|
30
|
+
"terms": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {
|
|
33
|
+
"version": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"minLength": 1,
|
|
36
|
+
"maxLength": 80
|
|
37
|
+
},
|
|
38
|
+
"version_date": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"format": "date",
|
|
41
|
+
"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])))$"
|
|
42
|
+
},
|
|
43
|
+
"url": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"maxLength": 2048,
|
|
46
|
+
"pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
|
|
47
|
+
"format": "uri"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"required": [
|
|
51
|
+
"version",
|
|
52
|
+
"version_date",
|
|
53
|
+
"url"
|
|
54
|
+
],
|
|
55
|
+
"additionalProperties": false
|
|
56
|
+
},
|
|
57
|
+
"dpa": {
|
|
58
|
+
"anyOf": [
|
|
59
|
+
{
|
|
60
|
+
"type": "object",
|
|
61
|
+
"properties": {
|
|
62
|
+
"version": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"minLength": 1,
|
|
65
|
+
"maxLength": 80
|
|
66
|
+
},
|
|
67
|
+
"version_date": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"format": "date",
|
|
70
|
+
"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])))$"
|
|
71
|
+
},
|
|
72
|
+
"url": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"maxLength": 2048,
|
|
75
|
+
"pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
|
|
76
|
+
"format": "uri"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"required": [
|
|
80
|
+
"version",
|
|
81
|
+
"version_date",
|
|
82
|
+
"url"
|
|
83
|
+
],
|
|
84
|
+
"additionalProperties": false
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "null"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": [
|
|
93
|
+
"id",
|
|
94
|
+
"context",
|
|
95
|
+
"accepted_at",
|
|
96
|
+
"text_id",
|
|
97
|
+
"terms",
|
|
98
|
+
"dpa"
|
|
99
|
+
],
|
|
100
|
+
"additionalProperties": false
|
|
101
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"version": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1,
|
|
8
|
+
"maxLength": 80
|
|
9
|
+
},
|
|
10
|
+
"version_date": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"format": "date",
|
|
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])))$"
|
|
14
|
+
},
|
|
15
|
+
"url": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"maxLength": 2048,
|
|
18
|
+
"pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
|
|
19
|
+
"format": "uri"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"version",
|
|
24
|
+
"version_date",
|
|
25
|
+
"url"
|
|
26
|
+
],
|
|
27
|
+
"additionalProperties": false
|
|
28
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"terms": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"version": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"minLength": 1,
|
|
11
|
+
"maxLength": 80
|
|
12
|
+
},
|
|
13
|
+
"version_date": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"format": "date",
|
|
16
|
+
"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])))$"
|
|
17
|
+
},
|
|
18
|
+
"url": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"maxLength": 2048,
|
|
21
|
+
"pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
|
|
22
|
+
"format": "uri"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"version",
|
|
27
|
+
"version_date",
|
|
28
|
+
"url"
|
|
29
|
+
],
|
|
30
|
+
"additionalProperties": false
|
|
31
|
+
},
|
|
32
|
+
"dpa": {
|
|
33
|
+
"anyOf": [
|
|
34
|
+
{
|
|
35
|
+
"type": "object",
|
|
36
|
+
"properties": {
|
|
37
|
+
"version": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"minLength": 1,
|
|
40
|
+
"maxLength": 80
|
|
41
|
+
},
|
|
42
|
+
"version_date": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"format": "date",
|
|
45
|
+
"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])))$"
|
|
46
|
+
},
|
|
47
|
+
"url": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"maxLength": 2048,
|
|
50
|
+
"pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
|
|
51
|
+
"format": "uri"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": [
|
|
55
|
+
"version",
|
|
56
|
+
"version_date",
|
|
57
|
+
"url"
|
|
58
|
+
],
|
|
59
|
+
"additionalProperties": false
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "null"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": [
|
|
68
|
+
"terms",
|
|
69
|
+
"dpa"
|
|
70
|
+
],
|
|
71
|
+
"additionalProperties": false
|
|
72
|
+
}
|
|
@@ -62,6 +62,34 @@
|
|
|
62
62
|
}
|
|
63
63
|
],
|
|
64
64
|
"description": "The page an MCP authorization redirects to, with `{interaction}` where the interaction id goes. Not a token: the id names a pending request the server already holds, and the app authenticates the user itself before approving it. `null` means the hosted MCP sign-in in `hosted_pages` is used."
|
|
65
|
+
},
|
|
66
|
+
"operator_info_url": {
|
|
67
|
+
"anyOf": [
|
|
68
|
+
{
|
|
69
|
+
"type": "string",
|
|
70
|
+
"maxLength": 2048,
|
|
71
|
+
"pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
|
|
72
|
+
"format": "uri"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"type": "null"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"description": "Operator information / legal notice URL for this customer app. `null` means unset; cloud checks reachability and public addresses before allowing new app-user access flows."
|
|
79
|
+
},
|
|
80
|
+
"privacy_policy_url": {
|
|
81
|
+
"anyOf": [
|
|
82
|
+
{
|
|
83
|
+
"type": "string",
|
|
84
|
+
"maxLength": 2048,
|
|
85
|
+
"pattern": "^https:\\/\\/(?=[A-Za-z0-9.-]{1,253}(?::[0-9]{1,5})?(?:[/?#]|$))[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*(?::(?:[0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:[/?#]|$)",
|
|
86
|
+
"format": "uri"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"type": "null"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"description": "Privacy policy URL for this customer app. `null` means unset; cloud checks reachability and public addresses before allowing new app-user access flows."
|
|
65
93
|
}
|
|
66
94
|
},
|
|
67
95
|
"required": [
|
|
@@ -69,7 +97,9 @@
|
|
|
69
97
|
"invite_url",
|
|
70
98
|
"verify_url",
|
|
71
99
|
"reset_url",
|
|
72
|
-
"mcp_login_url"
|
|
100
|
+
"mcp_login_url",
|
|
101
|
+
"operator_info_url",
|
|
102
|
+
"privacy_policy_url"
|
|
73
103
|
],
|
|
74
104
|
"additionalProperties": false
|
|
75
105
|
}
|
|
@@ -7,9 +7,17 @@
|
|
|
7
7
|
"maxLength": 254,
|
|
8
8
|
"format": "email",
|
|
9
9
|
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
|
|
10
|
+
},
|
|
11
|
+
"consent_text_version": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"minLength": 1,
|
|
14
|
+
"maxLength": 80,
|
|
15
|
+
"pattern": "\\S",
|
|
16
|
+
"description": "Version of the F.1 text shown at submission. Cloud rejects unsupported versions and stores the submitted value in a consent record separate from the waiting list."
|
|
10
17
|
}
|
|
11
18
|
},
|
|
12
19
|
"required": [
|
|
13
|
-
"email"
|
|
20
|
+
"email",
|
|
21
|
+
"consent_text_version"
|
|
14
22
|
]
|
|
15
23
|
}
|
package/dist/app-users.d.ts
CHANGED
|
@@ -455,6 +455,9 @@ export type AppHostedPages = z.infer<typeof appHostedPages>;
|
|
|
455
455
|
* Fleetless-hosted page in `hosted_pages`, so nothing is refused for a
|
|
456
456
|
* missing URL — self-registration, mailed invitations, resets and MCP sign-in
|
|
457
457
|
* all work before the app has a page of its own.
|
|
458
|
+
* The app's operator-information and privacy-policy links are separate:
|
|
459
|
+
* `null` represents an unset legacy link. The cloud checks reachability and
|
|
460
|
+
* public addresses and gates new access flows until both are valid.
|
|
458
461
|
*/
|
|
459
462
|
export declare const appAuthConfig: z.ZodObject<{
|
|
460
463
|
self_registration: z.ZodBoolean;
|
|
@@ -466,6 +469,8 @@ export declare const appAuthConfig: z.ZodObject<{
|
|
|
466
469
|
reset_url: z.ZodNullable<z.ZodString>;
|
|
467
470
|
mcp_login_url: z.ZodNullable<z.ZodString>;
|
|
468
471
|
app_url: z.ZodNullable<z.ZodURL>;
|
|
472
|
+
operator_info_url: z.ZodNullable<z.ZodURL>;
|
|
473
|
+
privacy_policy_url: z.ZodNullable<z.ZodURL>;
|
|
469
474
|
sign_in_methods: z.ZodObject<{
|
|
470
475
|
password: z.ZodBoolean;
|
|
471
476
|
email_code: z.ZodBoolean;
|
|
@@ -520,10 +525,10 @@ export declare const putAppAuthSignInRequest: z.ZodObject<{
|
|
|
520
525
|
}, z.core.$strict>;
|
|
521
526
|
export type PutAppAuthSignInRequest = z.infer<typeof putAppAuthSignInRequest>;
|
|
522
527
|
/**
|
|
523
|
-
* `PUT /api/apps/:id/auth-config/urls` — the app's home page
|
|
524
|
-
* pages
|
|
525
|
-
*
|
|
526
|
-
*
|
|
528
|
+
* `PUT /api/apps/:id/auth-config/urls` — the app's home page, four flow pages,
|
|
529
|
+
* and two legal pages. The console's Pages section owns all seven. `null`
|
|
530
|
+
* falls back to a hosted flow page for the four flow URLs; `null` on a legal
|
|
531
|
+
* link clears it and the cloud gates the affected new access flows.
|
|
527
532
|
*/
|
|
528
533
|
export declare const putAppAuthUrlsRequest: z.ZodObject<{
|
|
529
534
|
invite_url: z.ZodNullable<z.ZodString>;
|
|
@@ -531,6 +536,8 @@ export declare const putAppAuthUrlsRequest: z.ZodObject<{
|
|
|
531
536
|
reset_url: z.ZodNullable<z.ZodString>;
|
|
532
537
|
mcp_login_url: z.ZodNullable<z.ZodString>;
|
|
533
538
|
app_url: z.ZodNullable<z.ZodURL>;
|
|
539
|
+
operator_info_url: z.ZodNullable<z.ZodURL>;
|
|
540
|
+
privacy_policy_url: z.ZodNullable<z.ZodURL>;
|
|
534
541
|
}, z.core.$strict>;
|
|
535
542
|
export type PutAppAuthUrlsRequest = z.infer<typeof putAppAuthUrlsRequest>;
|
|
536
543
|
/**
|
|
@@ -570,7 +577,7 @@ export type MailTemplateKind = z.infer<typeof mailTemplateKind>;
|
|
|
570
577
|
* where the renderer, the console's completion and the docs all read the same
|
|
571
578
|
* one.
|
|
572
579
|
*/
|
|
573
|
-
export declare const MAIL_TEMPLATE_VARIABLES: readonly ["app.name", "org.name", "user.email", "user.display_name", "role.name", "link", "expires_in_hours", "code", "expires_in_minutes"];
|
|
580
|
+
export declare const MAIL_TEMPLATE_VARIABLES: readonly ["app.name", "org.name", "user.email", "user.display_name", "role.name", "link", "expires_in_hours", "code", "expires_in_minutes", "app.operator_info_url", "app.privacy_policy_url"];
|
|
574
581
|
/**
|
|
575
582
|
* **The Fleetless default text for the four app mails.**
|
|
576
583
|
*
|
package/dist/app-users.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { idpIssuer, mailStatus, password } from './identity.js';
|
|
4
|
+
import { httpsLegalUrl } from './legal.js';
|
|
4
5
|
/**
|
|
5
6
|
* **App users: the per-app identity space.**
|
|
6
7
|
*
|
|
@@ -536,6 +537,9 @@ export const appHostedPages = z.object({
|
|
|
536
537
|
* Fleetless-hosted page in `hosted_pages`, so nothing is refused for a
|
|
537
538
|
* missing URL — self-registration, mailed invitations, resets and MCP sign-in
|
|
538
539
|
* all work before the app has a page of its own.
|
|
540
|
+
* The app's operator-information and privacy-policy links are separate:
|
|
541
|
+
* `null` represents an unset legacy link. The cloud checks reachability and
|
|
542
|
+
* public addresses and gates new access flows until both are valid.
|
|
539
543
|
*/
|
|
540
544
|
export const appAuthConfig = z.object({
|
|
541
545
|
self_registration: z.boolean().meta({
|
|
@@ -565,6 +569,12 @@ export const appAuthConfig = z.object({
|
|
|
565
569
|
app_url: appHomeUrl.nullable().meta({
|
|
566
570
|
description: 'The app\'s own home page, linked as `Open <app>` when a hosted flow is done. `null` makes the hosted done page say `You can close this tab`.',
|
|
567
571
|
}),
|
|
572
|
+
operator_info_url: httpsLegalUrl.nullable().meta({
|
|
573
|
+
description: 'Operator information / legal notice URL for this customer app. `null` means unset; cloud checks reachability and public addresses before allowing new app-user access flows.',
|
|
574
|
+
}),
|
|
575
|
+
privacy_policy_url: httpsLegalUrl.nullable().meta({
|
|
576
|
+
description: 'Privacy policy URL for this customer app. `null` means unset; cloud checks reachability and public addresses before allowing new app-user access flows.',
|
|
577
|
+
}),
|
|
568
578
|
sign_in_methods: appSignInMethods.meta({
|
|
569
579
|
description: 'Which sign-in methods the app offers: password, emailed code, or both — at least one. Identity providers stay on top of either. The default is password only.',
|
|
570
580
|
}),
|
|
@@ -606,13 +616,14 @@ export const putAppAuthSignInRequest = appAuthConfig
|
|
|
606
616
|
.pick({ sign_in_methods: true, two_factor: true })
|
|
607
617
|
.strict();
|
|
608
618
|
/**
|
|
609
|
-
* `PUT /api/apps/:id/auth-config/urls` — the app's home page
|
|
610
|
-
* pages
|
|
611
|
-
*
|
|
612
|
-
*
|
|
619
|
+
* `PUT /api/apps/:id/auth-config/urls` — the app's home page, four flow pages,
|
|
620
|
+
* and two legal pages. The console's Pages section owns all seven. `null`
|
|
621
|
+
* falls back to a hosted flow page for the four flow URLs; `null` on a legal
|
|
622
|
+
* link clears it and the cloud gates the affected new access flows.
|
|
613
623
|
*/
|
|
614
624
|
export const putAppAuthUrlsRequest = appAuthConfig
|
|
615
|
-
.pick({ app_url: true, invite_url: true, verify_url: true, reset_url: true, mcp_login_url: true
|
|
625
|
+
.pick({ app_url: true, invite_url: true, verify_url: true, reset_url: true, mcp_login_url: true,
|
|
626
|
+
operator_info_url: true, privacy_policy_url: true })
|
|
616
627
|
.strict();
|
|
617
628
|
/**
|
|
618
629
|
* `PUT /api/apps/:id/auth-config/mcp` — the switch alone. Its login URL moved
|
|
@@ -653,7 +664,14 @@ export const MAIL_TEMPLATE_VARIABLES = [
|
|
|
653
664
|
'expires_in_hours',
|
|
654
665
|
'code',
|
|
655
666
|
'expires_in_minutes',
|
|
667
|
+
'app.operator_info_url',
|
|
668
|
+
'app.privacy_policy_url',
|
|
656
669
|
];
|
|
670
|
+
/** Omit the entire D.2 line while a legacy app has either legal link unset. */
|
|
671
|
+
const APP_LEGAL_MAIL_FOOTER = `{% if app.operator_info_url and app.privacy_policy_url %}
|
|
672
|
+
|
|
673
|
+
{{ app.name }} · Operator information: {{ app.operator_info_url }} · Privacy policy: {{ app.privacy_policy_url }}
|
|
674
|
+
{% endif %}`;
|
|
657
675
|
/**
|
|
658
676
|
* **The Fleetless default text for the four app mails.**
|
|
659
677
|
*
|
|
@@ -716,6 +734,7 @@ Accept the invitation:
|
|
|
716
734
|
{{ link }}
|
|
717
735
|
|
|
718
736
|
The link works for the next {% if expires_in_hours >= 48 %}{{ expires_in_hours | divided_by: 24 }} days{% elsif expires_in_hours == 1 %}1 hour{% else %}{{ expires_in_hours }} hours{% endif %}. If you were not expecting this invitation, ignore this mail — no account is created until you accept.
|
|
737
|
+
${APP_LEGAL_MAIL_FOOTER}
|
|
719
738
|
`,
|
|
720
739
|
html: null,
|
|
721
740
|
},
|
|
@@ -727,6 +746,7 @@ Confirm this address so you can sign in to {{ app.name }}:
|
|
|
727
746
|
{{ link }}
|
|
728
747
|
|
|
729
748
|
The link works for the next {% if expires_in_hours >= 48 %}{{ expires_in_hours | divided_by: 24 }} days{% elsif expires_in_hours == 1 %}1 hour{% else %}{{ expires_in_hours }} hours{% endif %}. If you did not create this account, ignore this mail — the account stays unconfirmed and cannot be used.
|
|
749
|
+
${APP_LEGAL_MAIL_FOOTER}
|
|
730
750
|
`,
|
|
731
751
|
html: null,
|
|
732
752
|
},
|
|
@@ -740,6 +760,7 @@ Choose a new password:
|
|
|
740
760
|
{{ link }}
|
|
741
761
|
|
|
742
762
|
The link works for the next {% if expires_in_hours >= 48 %}{{ expires_in_hours | divided_by: 24 }} days{% elsif expires_in_hours == 1 %}1 hour{% else %}{{ expires_in_hours }} hours{% endif %}. If it was not you, ignore this mail — your current password keeps working and nothing changes.
|
|
763
|
+
${APP_LEGAL_MAIL_FOOTER}
|
|
743
764
|
`,
|
|
744
765
|
html: null,
|
|
745
766
|
},
|
|
@@ -747,7 +768,9 @@ The link works for the next {% if expires_in_hours >= 48 %}{{ expires_in_hours |
|
|
|
747
768
|
subject: 'Your {{ app.name }} sign-in code',
|
|
748
769
|
text: `Your sign-in code for {{ app.name }} is {{ code }}.
|
|
749
770
|
|
|
750
|
-
It works once, for {{ expires_in_minutes }} minutes. If you did not ask for it, ignore this mail
|
|
771
|
+
It works once, for {{ expires_in_minutes }} minutes. If you did not ask for it, ignore this mail.
|
|
772
|
+
|
|
773
|
+
${APP_LEGAL_MAIL_FOOTER}`,
|
|
751
774
|
html: null,
|
|
752
775
|
},
|
|
753
776
|
};
|
package/dist/identity.d.ts
CHANGED
|
@@ -192,9 +192,11 @@ export declare const twoFactorSetupResponse: z.ZodObject<{
|
|
|
192
192
|
otpauth_url: z.ZodString;
|
|
193
193
|
}, z.core.$strip>;
|
|
194
194
|
export type TwoFactorSetupResponse = z.infer<typeof twoFactorSetupResponse>;
|
|
195
|
+
/** Version of the approved F.1 text shown by the waiting-list form. */
|
|
196
|
+
export declare const WAITLIST_F1_TEXT_VERSION = "F.1:1.0";
|
|
195
197
|
/**
|
|
196
|
-
* The landing page's waiting list (public site, 2026-09-04):
|
|
197
|
-
*
|
|
198
|
+
* The landing page's waiting list (public site, 2026-09-04): an address and
|
|
199
|
+
* the F.1 text version shown, posted while sign-up is closed. The route answers
|
|
198
200
|
* `202` whether or not the address was already listed.
|
|
199
201
|
*
|
|
200
202
|
* The address is bounded at 254 characters, the RFC 5321 forward-path limit.
|
|
@@ -204,6 +206,7 @@ export type TwoFactorSetupResponse = z.infer<typeof twoFactorSetupResponse>;
|
|
|
204
206
|
*/
|
|
205
207
|
export declare const waitlistRequest: z.ZodObject<{
|
|
206
208
|
email: z.ZodEmail;
|
|
209
|
+
consent_text_version: z.ZodString;
|
|
207
210
|
}, z.core.$strip>;
|
|
208
211
|
export type WaitlistRequest = z.infer<typeof waitlistRequest>;
|
|
209
212
|
/**
|
package/dist/identity.js
CHANGED
|
@@ -200,9 +200,11 @@ export const twoFactorSetupResponse = z.object({
|
|
|
200
200
|
description: 'The same secret as an `otpauth://totp/` URL, to render as a QR code. It carries the secret: never log it.',
|
|
201
201
|
}),
|
|
202
202
|
});
|
|
203
|
+
/** Version of the approved F.1 text shown by the waiting-list form. */
|
|
204
|
+
export const WAITLIST_F1_TEXT_VERSION = 'F.1:1.0';
|
|
203
205
|
/**
|
|
204
|
-
* The landing page's waiting list (public site, 2026-09-04):
|
|
205
|
-
*
|
|
206
|
+
* The landing page's waiting list (public site, 2026-09-04): an address and
|
|
207
|
+
* the F.1 text version shown, posted while sign-up is closed. The route answers
|
|
206
208
|
* `202` whether or not the address was already listed.
|
|
207
209
|
*
|
|
208
210
|
* The address is bounded at 254 characters, the RFC 5321 forward-path limit.
|
|
@@ -210,7 +212,12 @@ export const twoFactorSetupResponse = z.object({
|
|
|
210
212
|
* btree index, which raises above roughly 2704 bytes — so an unbounded address
|
|
211
213
|
* turns an unauthenticated public route into a `500`.
|
|
212
214
|
*/
|
|
213
|
-
export const waitlistRequest = z.object({
|
|
215
|
+
export const waitlistRequest = z.object({
|
|
216
|
+
email: z.email().max(254),
|
|
217
|
+
consent_text_version: z.string().min(1).max(80).regex(/\S/).meta({
|
|
218
|
+
description: 'Version of the F.1 text shown at submission. Cloud rejects unsupported versions and stores the submitted value in a consent record separate from the waiting list.',
|
|
219
|
+
}),
|
|
220
|
+
});
|
|
214
221
|
/**
|
|
215
222
|
* What happened to the mail, in four words instead of one.
|
|
216
223
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export type { UsageMetric, OrgUsageQuery, UsageRow, OrgUsageResponse } from './r
|
|
|
29
29
|
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, ReleaseLiveQuery, ServiceCallResponse, InvokeOrServiceResponse, PublishRequest, JobResponse, RobotJobsResponse, RateLimitDetails, Exposure, ExposureListResponse, CameraDescriptor, CameraListResponse, LiveSessionResponse, SnapshotMetaResponse, } from './rest.js';
|
|
30
30
|
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';
|
|
31
31
|
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';
|
|
32
|
-
export { password, org, patchOrgResponse, sessionTokens, refreshRequest, 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';
|
|
32
|
+
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';
|
|
33
33
|
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';
|
|
34
34
|
export { FEEDBACK_KINDS, FEEDBACK_MESSAGE_MAX, feedbackKind, feedbackRequest, feedbackResponse } from './feedback.js';
|
|
35
35
|
export type { FeedbackKind, FeedbackRequest, FeedbackResponse } from './feedback.js';
|
|
@@ -41,6 +41,10 @@ export { clientLoginRequest, clientRefreshRequest, clientLogoutRequest, clientRe
|
|
|
41
41
|
export type { ClientLoginRequest, ClientRefreshRequest, ClientLogoutRequest, ClientRegisterRequest, ClientVerifyEmailRequest, ClientResendVerificationRequest, ClientPasswordResetRequest, ClientPasswordResetConfirmRequest, ClientAcceptInvitationRequest, ClientProviderListQuery, ClientProviderListResponse, ClientOidcStartQuery, ClientOidcCallbackQuery, ClientOidcExchangeRequest, ClientOidcErrorCode, ClientMcpInteraction, ClientMcpInteractionDecisionResponse, McpConsentGrant, McpConsentGrantListResponse, ClientIdentity, ClientLoginCodeRequest, ClientLoginCodeVerifyRequest, TwoFactorChallenge, ClientSignInResult, ClientTwoFactorVerifyRequest, ClientTwoFactorSetupRequest, ClientTwoFactorSetupConfirmRequest, ClientTwoFactorSetupConfirmResponse, ClientTwoFactorDisableRequest, } from './client-auth.js';
|
|
42
42
|
export { clientRobotListItem, clientRobotListResponse } from './client-robots.js';
|
|
43
43
|
export type { ClientRobotListItem, ClientRobotListResponse } from './client-robots.js';
|
|
44
|
+
export { httpsLegalUrl, legalDocumentReference, legalTextReferences, TERMS_VERSION, TERMS_VERSION_DATE, TERMS_VERSION_URL, DPA_VERSION, DPA_VERSION_DATE, DPA_VERSION_URL, } from './legal.js';
|
|
45
|
+
export type { LegalDocumentReference, LegalTextReferences } from './legal.js';
|
|
46
|
+
export { legalAcceptanceListQuery, legalAcceptanceVersionRow, legalAcceptanceListResponse } from './legal-acceptances.js';
|
|
47
|
+
export type { LegalAcceptanceListQuery, LegalAcceptanceVersionRow, LegalAcceptanceListResponse } from './legal-acceptances.js';
|
|
44
48
|
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';
|
|
45
49
|
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';
|
|
46
50
|
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';
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ export { LATENCY_BUCKET_MS, BRIDGE_LATENCY_RETENTION_DAYS, MAX_LATENCY_BUCKETS_P
|
|
|
31
31
|
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';
|
|
32
32
|
export { password, org, patchOrgResponse, sessionTokens, refreshRequest,
|
|
33
33
|
// 2026-09-04 — the public site (closed beta).
|
|
34
|
-
waitlistRequest,
|
|
34
|
+
WAITLIST_F1_TEXT_VERSION, waitlistRequest,
|
|
35
35
|
// The two identity spaces.
|
|
36
36
|
USER_DISPLAY_NAME_MAX, orgAdminTier, fleetlessUser, fleetlessUserListResponse, createTeamInviteRequest, teamInvite, pendingTeamInvite, pendingTeamInviteListResponse, acceptTeamInviteRequest, patchFleetlessUserRequest, tierChangeRequest,
|
|
37
37
|
// Identity.
|
|
@@ -49,6 +49,8 @@ export { supportSessionInfo, supportTokenRequest, supportTokenResponse, authMeSu
|
|
|
49
49
|
export { appIdentifier, app, appListResponse, appDeletionSummary, createAppRequest, updateAppRequest, serverKeyToken, serverKey, serverKeyListResponse, createServerKeyResponse, role, roleListResponse, rolePermissions, roleRenameRequest, roleDeleteQuery, roleInUseDetails, } from './apps.js';
|
|
50
50
|
export { clientLoginRequest, clientRefreshRequest, clientLogoutRequest, clientRegisterRequest, clientVerifyEmailRequest, clientResendVerificationRequest, clientPasswordResetRequest, clientPasswordResetConfirmRequest, clientAcceptInvitationRequest, CLIENT_OIDC_CALLBACK_PATH, clientProviderListQuery, clientProviderListResponse, clientOidcStartQuery, clientOidcCallbackQuery, clientOidcExchangeRequest, clientOidcErrorCode, clientMcpInteraction, clientMcpInteractionDecisionResponse, mcpConsentGrant, mcpConsentGrantListResponse, clientIdentity, clientLoginCodeRequest, clientLoginCodeVerifyRequest, twoFactorChallenge, clientSignInResult, clientTwoFactorVerifyRequest, clientTwoFactorSetupRequest, clientTwoFactorSetupConfirmRequest, clientTwoFactorSetupConfirmResponse, clientTwoFactorDisableRequest, } from './client-auth.js';
|
|
51
51
|
export { clientRobotListItem, clientRobotListResponse } from './client-robots.js';
|
|
52
|
+
export { httpsLegalUrl, legalDocumentReference, legalTextReferences, TERMS_VERSION, TERMS_VERSION_DATE, TERMS_VERSION_URL, DPA_VERSION, DPA_VERSION_DATE, DPA_VERSION_URL, } from './legal.js';
|
|
53
|
+
export { legalAcceptanceListQuery, legalAcceptanceVersionRow, legalAcceptanceListResponse } from './legal-acceptances.js';
|
|
52
54
|
// The per-app identity space.
|
|
53
55
|
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';
|
|
54
56
|
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';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare const legalAcceptanceListQuery: z.ZodObject<{
|
|
4
|
+
limit: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
export type LegalAcceptanceListQuery = z.infer<typeof legalAcceptanceListQuery>;
|
|
8
|
+
export declare const legalAcceptanceVersionRow: z.ZodObject<{
|
|
9
|
+
id: z.ZodUUID;
|
|
10
|
+
context: z.ZodEnum<{
|
|
11
|
+
registration: "registration";
|
|
12
|
+
invitation: "invitation";
|
|
13
|
+
order: "order";
|
|
14
|
+
existing_org: "existing_org";
|
|
15
|
+
}>;
|
|
16
|
+
accepted_at: z.ZodISODateTime;
|
|
17
|
+
text_id: z.ZodString;
|
|
18
|
+
terms: z.ZodObject<{
|
|
19
|
+
version: z.ZodString;
|
|
20
|
+
version_date: z.ZodISODate;
|
|
21
|
+
url: z.ZodURL;
|
|
22
|
+
}, z.core.$strict>;
|
|
23
|
+
dpa: z.ZodNullable<z.ZodObject<{
|
|
24
|
+
version: z.ZodString;
|
|
25
|
+
version_date: z.ZodISODate;
|
|
26
|
+
url: z.ZodURL;
|
|
27
|
+
}, z.core.$strict>>;
|
|
28
|
+
}, z.core.$strict>;
|
|
29
|
+
export type LegalAcceptanceVersionRow = z.infer<typeof legalAcceptanceVersionRow>;
|
|
30
|
+
export declare const legalAcceptanceListResponse: z.ZodObject<{
|
|
31
|
+
acceptances: z.ZodArray<z.ZodObject<{
|
|
32
|
+
id: z.ZodUUID;
|
|
33
|
+
context: z.ZodEnum<{
|
|
34
|
+
registration: "registration";
|
|
35
|
+
invitation: "invitation";
|
|
36
|
+
order: "order";
|
|
37
|
+
existing_org: "existing_org";
|
|
38
|
+
}>;
|
|
39
|
+
accepted_at: z.ZodISODateTime;
|
|
40
|
+
text_id: z.ZodString;
|
|
41
|
+
terms: z.ZodObject<{
|
|
42
|
+
version: z.ZodString;
|
|
43
|
+
version_date: z.ZodISODate;
|
|
44
|
+
url: z.ZodURL;
|
|
45
|
+
}, z.core.$strict>;
|
|
46
|
+
dpa: z.ZodNullable<z.ZodObject<{
|
|
47
|
+
version: z.ZodString;
|
|
48
|
+
version_date: z.ZodISODate;
|
|
49
|
+
url: z.ZodURL;
|
|
50
|
+
}, z.core.$strict>>;
|
|
51
|
+
}, z.core.$strict>>;
|
|
52
|
+
next_cursor: z.ZodNullable<z.ZodString>;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
export type LegalAcceptanceListResponse = z.infer<typeof legalAcceptanceListResponse>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { legalDocumentReference } from './legal.js';
|
|
4
|
+
/** The cloud decodes the canonical [accepted_at, id] token; this checks its wire syntax. */
|
|
5
|
+
const legalAcceptanceCursor = z.string().min(1).max(512).regex(/^[A-Za-z0-9_-]+$/);
|
|
6
|
+
export const legalAcceptanceListQuery = z.object({
|
|
7
|
+
limit: z.union([z.string().regex(/^(?:0{0,2}[1-9]|0?[1-9][0-9]|100)$/), z.number().int().min(1).max(100)])
|
|
8
|
+
.transform(Number).pipe(z.number().int().min(1).max(100)).optional(),
|
|
9
|
+
cursor: legalAcceptanceCursor.optional(),
|
|
10
|
+
}).strict();
|
|
11
|
+
export const legalAcceptanceVersionRow = z.object({
|
|
12
|
+
id: z.uuid(),
|
|
13
|
+
context: z.enum(['registration', 'invitation', 'order', 'existing_org']),
|
|
14
|
+
accepted_at: z.iso.datetime({ precision: 6 }),
|
|
15
|
+
text_id: z.string().min(1).max(80).regex(/\S/),
|
|
16
|
+
terms: legalDocumentReference,
|
|
17
|
+
dpa: legalDocumentReference.nullable(),
|
|
18
|
+
}).strict();
|
|
19
|
+
export const legalAcceptanceListResponse = z.object({
|
|
20
|
+
acceptances: z.array(legalAcceptanceVersionRow),
|
|
21
|
+
next_cursor: legalAcceptanceCursor.nullable(),
|
|
22
|
+
}).strict();
|
package/dist/legal.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/** HTTPS syntax only. The cloud checks resolved addresses, redirects and reachability. */
|
|
4
|
+
export declare const httpsLegalUrl: z.ZodURL;
|
|
5
|
+
/** A permanent link to exactly one dated version of a legal document. */
|
|
6
|
+
export declare const legalDocumentReference: z.ZodObject<{
|
|
7
|
+
version: z.ZodString;
|
|
8
|
+
version_date: z.ZodISODate;
|
|
9
|
+
url: z.ZodURL;
|
|
10
|
+
}, z.core.$strict>;
|
|
11
|
+
export type LegalDocumentReference = z.infer<typeof legalDocumentReference>;
|
|
12
|
+
/** The DPA is null only in an acceptance context where it does not apply. */
|
|
13
|
+
export declare const legalTextReferences: z.ZodObject<{
|
|
14
|
+
terms: z.ZodObject<{
|
|
15
|
+
version: z.ZodString;
|
|
16
|
+
version_date: z.ZodISODate;
|
|
17
|
+
url: z.ZodURL;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
dpa: z.ZodNullable<z.ZodObject<{
|
|
20
|
+
version: z.ZodString;
|
|
21
|
+
version_date: z.ZodISODate;
|
|
22
|
+
url: z.ZodURL;
|
|
23
|
+
}, z.core.$strict>>;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
export type LegalTextReferences = z.infer<typeof legalTextReferences>;
|
|
26
|
+
export declare const TERMS_VERSION = "1.0";
|
|
27
|
+
export declare const TERMS_VERSION_DATE = "2026-11-01";
|
|
28
|
+
export declare const TERMS_VERSION_URL = "https://fleetless.dev/terms/v1.0/";
|
|
29
|
+
export declare const DPA_VERSION = "1.0";
|
|
30
|
+
export declare const DPA_VERSION_DATE = "2026-11-01";
|
|
31
|
+
export declare const DPA_VERSION_URL = "https://fleetless.dev/dpa/v1.0/";
|