@fleetless/contracts 13.3.0 → 15.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/CHANGELOG.md +304 -0
  2. package/artifacts/openapi.json +20156 -10513
  3. package/artifacts/routes.json +1429 -292
  4. package/artifacts/schema/access-warning.schema.json +51 -0
  5. package/artifacts/schema/action-config.schema.json +35 -0
  6. package/artifacts/schema/addon-catalogue-entry.schema.json +3 -1
  7. package/artifacts/schema/admin-plan-change-request.schema.json +26 -0
  8. package/artifacts/schema/app-access-response.schema.json +136 -0
  9. package/artifacts/schema/app-access.schema.json +80 -0
  10. package/artifacts/schema/app-deletion-summary.schema.json +15 -8
  11. package/artifacts/schema/app-invitation-list-response.schema.json +13 -6
  12. package/artifacts/schema/app-invitation.schema.json +5 -5
  13. package/artifacts/schema/app-list-response.schema.json +6 -6
  14. package/artifacts/schema/app-lock.schema.json +30 -0
  15. package/artifacts/schema/app-user-list-response.schema.json +13 -6
  16. package/artifacts/schema/app-user.schema.json +13 -6
  17. package/artifacts/schema/app.schema.json +6 -6
  18. package/artifacts/schema/asset-plan-limit-details.schema.json +3 -1
  19. package/artifacts/schema/auth-ok.schema.json +20 -6
  20. package/artifacts/schema/camera-list-response.schema.json +1 -1
  21. package/artifacts/schema/client-identity.schema.json +21 -6
  22. package/artifacts/schema/cloud-config.schema.json +359 -5
  23. package/artifacts/schema/collection-actor.schema.json +35 -0
  24. package/artifacts/schema/collection-definitions-response.schema.json +612 -0
  25. package/artifacts/schema/collection-event.schema.json +216 -0
  26. package/artifacts/schema/collection-export-query.schema.json +56 -0
  27. package/artifacts/schema/collection-filter.schema.json +9 -0
  28. package/artifacts/schema/collection-import-preview.schema.json +143 -0
  29. package/artifacts/schema/collection-import-request.schema.json +105 -0
  30. package/artifacts/schema/collection-import-result.schema.json +38 -0
  31. package/artifacts/schema/collection-list-response.schema.json +119 -0
  32. package/artifacts/schema/collection-record-get-query.schema.json +12 -0
  33. package/artifacts/schema/collection-record-history-query.schema.json +35 -0
  34. package/artifacts/schema/collection-record-history-response.schema.json +389 -0
  35. package/artifacts/schema/collection-record-list-query.schema.json +67 -0
  36. package/artifacts/schema/collection-record-list-response.schema.json +212 -0
  37. package/artifacts/schema/collection-record-restore-request.schema.json +14 -0
  38. package/artifacts/schema/collection-record-write.schema.json +31 -0
  39. package/artifacts/schema/collection-record.schema.json +180 -0
  40. package/artifacts/schema/collection-revision.schema.json +295 -0
  41. package/artifacts/schema/collection-subscribe-error.schema.json +31 -0
  42. package/artifacts/schema/collection-subscribe.schema.json +48 -0
  43. package/artifacts/schema/collection-subscribed.schema.json +22 -0
  44. package/artifacts/schema/collection-summary.schema.json +92 -0
  45. package/artifacts/schema/collection-unsubscribe.schema.json +22 -0
  46. package/artifacts/schema/collections-access-change.schema.json +34 -0
  47. package/artifacts/schema/collections-document.schema.json +732 -0
  48. package/artifacts/schema/collections-draft-response.schema.json +845 -0
  49. package/artifacts/schema/collections-effect.schema.json +384 -0
  50. package/artifacts/schema/collections-issue.schema.json +36 -0
  51. package/artifacts/schema/collections-publish-request.schema.json +18 -0
  52. package/artifacts/schema/collections-publish-response.schema.json +450 -0
  53. package/artifacts/schema/collections-purge-preview.schema.json +60 -0
  54. package/artifacts/schema/collections-purge-request.schema.json +27 -0
  55. package/artifacts/schema/collections-purge-response.schema.json +30 -0
  56. package/artifacts/schema/collections-restore-preview-query.schema.json +20 -0
  57. package/artifacts/schema/collections-restore-preview.schema.json +581 -0
  58. package/artifacts/schema/collections-restore-request.schema.json +27 -0
  59. package/artifacts/schema/collections-restore-response.schema.json +455 -0
  60. package/artifacts/schema/collections-schema-preview.schema.json +519 -0
  61. package/artifacts/schema/collections-schema-published.schema.json +22 -0
  62. package/artifacts/schema/collections-version-response.schema.json +869 -0
  63. package/artifacts/schema/collections-version-summary.schema.json +139 -0
  64. package/artifacts/schema/collections-versions-response.schema.json +167 -0
  65. package/artifacts/schema/config-draft-response.schema.json +359 -5
  66. package/artifacts/schema/config-version-response.schema.json +359 -5
  67. package/artifacts/schema/confirmation-required-details.schema.json +13 -0
  68. package/artifacts/schema/create-app-invitation-request.schema.json +4 -4
  69. package/artifacts/schema/create-app-user-request.schema.json +4 -4
  70. package/artifacts/schema/create-org-role-request.schema.json +33 -0
  71. package/artifacts/schema/dangling-reference.schema.json +130 -0
  72. package/artifacts/schema/datapoint-config.schema.json +35 -0
  73. package/artifacts/schema/datapoint-list-response.schema.json +2 -2
  74. package/artifacts/schema/effective-capability.schema.json +104 -0
  75. package/artifacts/schema/effective-rights-query.schema.json +19 -0
  76. package/artifacts/schema/effective-rights-response.schema.json +396 -0
  77. package/artifacts/schema/effective-robot-rights.schema.json +266 -0
  78. package/artifacts/schema/invoke-or-service-response.schema.json +1 -1
  79. package/artifacts/schema/invoke-response.schema.json +1 -1
  80. package/artifacts/schema/journal-intent-v2-body.schema.json +74 -0
  81. package/artifacts/schema/journal-intent-v2.schema.json +84 -0
  82. package/artifacts/schema/journal-replay-receipt-body.schema.json +1 -0
  83. package/artifacts/schema/journal-replay-receipt.schema.json +1 -0
  84. package/artifacts/schema/mcp-robot-datasheet.schema.json +2 -2
  85. package/artifacts/schema/org-plan.schema.json +29 -1
  86. package/artifacts/schema/org-quota-usage-counts.schema.json +18 -0
  87. package/artifacts/schema/org-quota-usage.schema.json +47 -1
  88. package/artifacts/schema/org-quotas.schema.json +29 -1
  89. package/artifacts/schema/org-role-list-response.schema.json +206 -0
  90. package/artifacts/schema/org-role.schema.json +59 -0
  91. package/artifacts/schema/patch-app-user-request.schema.json +4 -4
  92. package/artifacts/schema/patch-org-role-request.schema.json +38 -0
  93. package/artifacts/schema/plan-catalogue-entry.schema.json +29 -1
  94. package/artifacts/schema/plan-change-decision-status-response.schema.json +29 -1
  95. package/artifacts/schema/plan-limit-details.schema.json +3 -1
  96. package/artifacts/schema/plan-limits.schema.json +29 -1
  97. package/artifacts/schema/plan-overrides.schema.json +26 -0
  98. package/artifacts/schema/publish-config-response.schema.json +48 -1
  99. package/artifacts/schema/publisher-config.schema.json +35 -0
  100. package/artifacts/schema/put-collections-draft-request.schema.json +16 -0
  101. package/artifacts/schema/put-role-defaults-request.schema.json +127 -0
  102. package/artifacts/schema/record-changed-details.schema.json +16 -0
  103. package/artifacts/schema/record-referenced-details.schema.json +35 -0
  104. package/artifacts/schema/reference-invalid-details.schema.json +25 -0
  105. package/artifacts/schema/reference-place.schema.json +112 -0
  106. package/artifacts/schema/rename-slug-response.schema.json +4 -3
  107. package/artifacts/schema/required-missing-details.schema.json +19 -0
  108. package/artifacts/schema/robot-config-doc.schema.json +359 -5
  109. package/artifacts/schema/robot-deletion-summary.schema.json +33 -1
  110. package/artifacts/schema/role-collection-rights.schema.json +82 -0
  111. package/artifacts/schema/role-cycle-details.schema.json +18 -0
  112. package/artifacts/schema/role-defaults-response.schema.json +59 -0
  113. package/artifacts/schema/role-rename-preview.schema.json +147 -0
  114. package/artifacts/schema/service-config.schema.json +35 -0
  115. package/artifacts/schema/slug-usage-response.schema.json +4 -3
  116. package/artifacts/schema/update-app-request.schema.json +0 -12
  117. package/dist/app-users.d.ts +11 -8
  118. package/dist/app-users.js +18 -10
  119. package/dist/apps.d.ts +258 -71
  120. package/dist/apps.js +215 -151
  121. package/dist/audit.d.ts +35 -5
  122. package/dist/audit.js +40 -2
  123. package/dist/billing.d.ts +10 -10
  124. package/dist/client-auth.d.ts +5 -2
  125. package/dist/client-auth.js +11 -3
  126. package/dist/client-robots.d.ts +1 -1
  127. package/dist/client-robots.js +1 -1
  128. package/dist/collections-issues.d.ts +67 -0
  129. package/dist/collections-issues.js +340 -0
  130. package/dist/collections-records.d.ts +562 -0
  131. package/dist/collections-records.js +525 -0
  132. package/dist/collections-rights.d.ts +17 -0
  133. package/dist/collections-rights.js +41 -0
  134. package/dist/collections-schema.d.ts +1064 -0
  135. package/dist/collections-schema.js +386 -0
  136. package/dist/collections-templates.d.ts +55 -0
  137. package/dist/collections-templates.js +137 -0
  138. package/dist/collections-transfer.d.ts +101 -0
  139. package/dist/collections-transfer.js +206 -0
  140. package/dist/collections-values.d.ts +67 -0
  141. package/dist/collections-values.js +284 -0
  142. package/dist/collections.d.ts +568 -0
  143. package/dist/collections.js +332 -0
  144. package/dist/common.d.ts +1 -1
  145. package/dist/common.js +1 -1
  146. package/dist/config-issues.d.ts +1 -1
  147. package/dist/config-issues.js +1 -1
  148. package/dist/config.d.ts +78 -12
  149. package/dist/config.js +109 -15
  150. package/dist/errors.d.ts +63 -5
  151. package/dist/errors.js +152 -24
  152. package/dist/index.d.ts +40 -14
  153. package/dist/index.js +27 -7
  154. package/dist/journal-intents.d.ts +30 -0
  155. package/dist/journal-intents.js +3 -0
  156. package/dist/legal-acceptances.d.ts +2 -2
  157. package/dist/mcp.d.ts +5 -37
  158. package/dist/mcp.js +4 -14
  159. package/dist/org-roles.d.ts +186 -0
  160. package/dist/org-roles.js +199 -0
  161. package/dist/plans.d.ts +25 -7
  162. package/dist/plans.js +21 -1
  163. package/dist/protocol.d.ts +19 -1
  164. package/dist/realtime.d.ts +172 -3
  165. package/dist/realtime.js +164 -1
  166. package/dist/rest.d.ts +104 -53
  167. package/dist/rest.js +79 -55
  168. package/dist/rights.d.ts +197 -0
  169. package/dist/rights.js +396 -0
  170. package/dist/routes.d.ts +1 -1
  171. package/dist/routes.js +675 -150
  172. package/package.json +1 -1
  173. package/artifacts/schema/mcp-role-preview-response.schema.json +0 -134
  174. package/artifacts/schema/put-robot-details-request.schema.json +0 -41
  175. package/artifacts/schema/put-robot-details-response.schema.json +0 -43
  176. package/artifacts/schema/robot-details-doc.schema.json +0 -33
  177. package/artifacts/schema/role-delete-query.schema.json +0 -13
  178. package/artifacts/schema/role-in-use-details.schema.json +0 -28
  179. package/artifacts/schema/role-list-response.schema.json +0 -48
  180. package/artifacts/schema/role-permissions.schema.json +0 -61
  181. package/artifacts/schema/role-rename-request.schema.json +0 -16
  182. package/artifacts/schema/role.schema.json +0 -35
@@ -0,0 +1,139 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "version": {
6
+ "type": "integer",
7
+ "minimum": 1,
8
+ "maximum": 9007199254740991
9
+ },
10
+ "published_at": {
11
+ "type": "string",
12
+ "format": "date-time",
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
+ },
15
+ "published_by": {
16
+ "type": "object",
17
+ "properties": {
18
+ "kind": {
19
+ "type": "string",
20
+ "enum": [
21
+ "developer",
22
+ "app_user",
23
+ "server_key",
24
+ "fleetless"
25
+ ],
26
+ "description": "What made the change: a developer, a user of the app, a server key of the app, or the platform itself."
27
+ },
28
+ "id": {
29
+ "type": "string",
30
+ "format": "uuid",
31
+ "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)$",
32
+ "description": "The id of the developer, app user or server key. The nil id for the platform."
33
+ },
34
+ "label": {
35
+ "type": "string",
36
+ "minLength": 1,
37
+ "maxLength": 200,
38
+ "description": "A name to show: the person's display name, the name of a server key, `Fleetless`, `Deleted user` when the user no longer exists, or `Deleted key` when the key does. A person without a display name reads as their email address to a developer or a server key and to themselves, and to an app user reading someone else as `Team member` (a developer) or `User` (an app user): an app user never learns another person's address."
39
+ }
40
+ },
41
+ "required": [
42
+ "kind",
43
+ "id",
44
+ "label"
45
+ ],
46
+ "additionalProperties": false,
47
+ "description": "Who or what made a change to a record."
48
+ },
49
+ "effect_counts": {
50
+ "type": "object",
51
+ "propertyNames": {
52
+ "type": "string"
53
+ },
54
+ "additionalProperties": {
55
+ "type": "integer",
56
+ "minimum": 0,
57
+ "maximum": 9007199254740991
58
+ },
59
+ "description": "For each kind of effect the publish had, how many records or values it touched, by effect `kind`. Empty when it had none."
60
+ },
61
+ "restored_from": {
62
+ "anyOf": [
63
+ {
64
+ "type": "integer",
65
+ "minimum": 1,
66
+ "maximum": 9007199254740991
67
+ },
68
+ {
69
+ "type": "null"
70
+ }
71
+ ],
72
+ "description": "The version this one restored. Null for an ordinary publish."
73
+ },
74
+ "restore_with_data": {
75
+ "type": "boolean",
76
+ "description": "Whether restoring this version can also put records back: its restore point is at most 90 days old, has not been purged, and it is not the current version."
77
+ },
78
+ "with_data": {
79
+ "type": "boolean",
80
+ "description": "Whether this version came from a restore that also put records back. `false` for an ordinary publish and for a restore of the document alone."
81
+ },
82
+ "reverted_totals": {
83
+ "anyOf": [
84
+ {
85
+ "type": "object",
86
+ "properties": {
87
+ "changes": {
88
+ "type": "integer",
89
+ "minimum": 0,
90
+ "maximum": 9007199254740991,
91
+ "description": "Changes made since the restore point that were reverted."
92
+ },
93
+ "records_back": {
94
+ "type": "integer",
95
+ "minimum": 0,
96
+ "maximum": 9007199254740991,
97
+ "description": "Deleted records that came back."
98
+ },
99
+ "records_deleted": {
100
+ "type": "integer",
101
+ "minimum": 0,
102
+ "maximum": 9007199254740991,
103
+ "description": "Records created since the restore point that were deleted."
104
+ },
105
+ "robots_gone": {
106
+ "type": "integer",
107
+ "minimum": 0,
108
+ "maximum": 9007199254740991,
109
+ "description": "Records of robots that were deleted since, which could not come back."
110
+ }
111
+ },
112
+ "required": [
113
+ "changes",
114
+ "records_back",
115
+ "records_deleted",
116
+ "robots_gone"
117
+ ],
118
+ "additionalProperties": false
119
+ },
120
+ {
121
+ "type": "null"
122
+ }
123
+ ],
124
+ "description": "What putting the records back did, in all the collections together, so that the history of versions can say what came back. Null unless `with_data`."
125
+ }
126
+ },
127
+ "required": [
128
+ "version",
129
+ "published_at",
130
+ "published_by",
131
+ "effect_counts",
132
+ "restored_from",
133
+ "restore_with_data",
134
+ "with_data",
135
+ "reverted_totals"
136
+ ],
137
+ "additionalProperties": false,
138
+ "description": "A published version of the schema document."
139
+ }
@@ -0,0 +1,167 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "current": {
6
+ "anyOf": [
7
+ {
8
+ "type": "integer",
9
+ "minimum": 1,
10
+ "maximum": 9007199254740991
11
+ },
12
+ {
13
+ "type": "null"
14
+ }
15
+ ],
16
+ "description": "The version in force. Null before the first publish."
17
+ },
18
+ "versions": {
19
+ "type": "array",
20
+ "items": {
21
+ "type": "object",
22
+ "properties": {
23
+ "version": {
24
+ "type": "integer",
25
+ "minimum": 1,
26
+ "maximum": 9007199254740991
27
+ },
28
+ "published_at": {
29
+ "type": "string",
30
+ "format": "date-time",
31
+ "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))$"
32
+ },
33
+ "published_by": {
34
+ "type": "object",
35
+ "properties": {
36
+ "kind": {
37
+ "type": "string",
38
+ "enum": [
39
+ "developer",
40
+ "app_user",
41
+ "server_key",
42
+ "fleetless"
43
+ ],
44
+ "description": "What made the change: a developer, a user of the app, a server key of the app, or the platform itself."
45
+ },
46
+ "id": {
47
+ "type": "string",
48
+ "format": "uuid",
49
+ "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)$",
50
+ "description": "The id of the developer, app user or server key. The nil id for the platform."
51
+ },
52
+ "label": {
53
+ "type": "string",
54
+ "minLength": 1,
55
+ "maxLength": 200,
56
+ "description": "A name to show: the person's display name, the name of a server key, `Fleetless`, `Deleted user` when the user no longer exists, or `Deleted key` when the key does. A person without a display name reads as their email address to a developer or a server key and to themselves, and to an app user reading someone else as `Team member` (a developer) or `User` (an app user): an app user never learns another person's address."
57
+ }
58
+ },
59
+ "required": [
60
+ "kind",
61
+ "id",
62
+ "label"
63
+ ],
64
+ "additionalProperties": false,
65
+ "description": "Who or what made a change to a record."
66
+ },
67
+ "effect_counts": {
68
+ "type": "object",
69
+ "propertyNames": {
70
+ "type": "string"
71
+ },
72
+ "additionalProperties": {
73
+ "type": "integer",
74
+ "minimum": 0,
75
+ "maximum": 9007199254740991
76
+ },
77
+ "description": "For each kind of effect the publish had, how many records or values it touched, by effect `kind`. Empty when it had none."
78
+ },
79
+ "restored_from": {
80
+ "anyOf": [
81
+ {
82
+ "type": "integer",
83
+ "minimum": 1,
84
+ "maximum": 9007199254740991
85
+ },
86
+ {
87
+ "type": "null"
88
+ }
89
+ ],
90
+ "description": "The version this one restored. Null for an ordinary publish."
91
+ },
92
+ "restore_with_data": {
93
+ "type": "boolean",
94
+ "description": "Whether restoring this version can also put records back: its restore point is at most 90 days old, has not been purged, and it is not the current version."
95
+ },
96
+ "with_data": {
97
+ "type": "boolean",
98
+ "description": "Whether this version came from a restore that also put records back. `false` for an ordinary publish and for a restore of the document alone."
99
+ },
100
+ "reverted_totals": {
101
+ "anyOf": [
102
+ {
103
+ "type": "object",
104
+ "properties": {
105
+ "changes": {
106
+ "type": "integer",
107
+ "minimum": 0,
108
+ "maximum": 9007199254740991,
109
+ "description": "Changes made since the restore point that were reverted."
110
+ },
111
+ "records_back": {
112
+ "type": "integer",
113
+ "minimum": 0,
114
+ "maximum": 9007199254740991,
115
+ "description": "Deleted records that came back."
116
+ },
117
+ "records_deleted": {
118
+ "type": "integer",
119
+ "minimum": 0,
120
+ "maximum": 9007199254740991,
121
+ "description": "Records created since the restore point that were deleted."
122
+ },
123
+ "robots_gone": {
124
+ "type": "integer",
125
+ "minimum": 0,
126
+ "maximum": 9007199254740991,
127
+ "description": "Records of robots that were deleted since, which could not come back."
128
+ }
129
+ },
130
+ "required": [
131
+ "changes",
132
+ "records_back",
133
+ "records_deleted",
134
+ "robots_gone"
135
+ ],
136
+ "additionalProperties": false
137
+ },
138
+ {
139
+ "type": "null"
140
+ }
141
+ ],
142
+ "description": "What putting the records back did, in all the collections together, so that the history of versions can say what came back. Null unless `with_data`."
143
+ }
144
+ },
145
+ "required": [
146
+ "version",
147
+ "published_at",
148
+ "published_by",
149
+ "effect_counts",
150
+ "restored_from",
151
+ "restore_with_data",
152
+ "with_data",
153
+ "reverted_totals"
154
+ ],
155
+ "additionalProperties": false,
156
+ "description": "A published version of the schema document."
157
+ },
158
+ "description": "Newest first."
159
+ }
160
+ },
161
+ "required": [
162
+ "current",
163
+ "versions"
164
+ ],
165
+ "additionalProperties": false,
166
+ "description": "The published versions of the schema document."
167
+ }